ma configuration "trunk" chez Free
pjsip.conf
Code:
[freephonie.net-reg]
type = registration
retry_interval = 20
max_retries = 10
expiration = 120
transport = transport-udp-nat
outbound_auth = freephonie.net-auth
client_uri = sip:095xxxxxxx@freephonie.net
server_uri = sip:freephonie.net
[freephonie.net-auth]
type = auth
auth_type = md5
md5_cred = fca38294azeru4dfb067c765efb0fd9
username = 095xxxxxxx
;realm = freephonie.net
[freephonie.net]
type = endpoint
context = from-ext
disallow = all
allow = alaw
transport = transport-udp-nat
outbound_auth = freephonie.net-auth
aors = freephonie.net
direct_media = no
dtmf_mode = rfc4733
;trust_id_outbound = yes
[freephonie.net]
type = aor
contact=sip:freephonie.net:5060
[identify_freephonie.net]
type = identify
endpoint = freephonie.net
match = freephonie.net
et pour linphone.org
Code:
[linphone.org-reg]
type = registration
retry_interval = 20
max_retries = 10
expiration = 120
transport = transport-udp-nat
outbound_auth = linphone.org-auth
client_uri = sip:login@sip.linphone.org
server_uri = sip:sip.linphone.org
[linphone.org-auth]
type = auth
password = unmotdePasse
username = login
[linphone.org]
type = endpoint
context = from-ext
disallow = all
allow = ulaw,alaw
transport = transport-udp-nat
outbound_auth = linphone.org-auth
aors = linphone.org
direct_media = no
dtmf_mode = rfc4733
;trust_id_outbound = yes
[linphone.org]
type = aor
contact=sip:sip.linphone.org:5060
[identify_linphone.org]
type = identify
endpoint = linphone.org
match = sip.linphone.org
extension.ael
Code:
context [vers_free]
_0[1-79]XXXXXXXX => {
//Free n'accepte plus les appels avec des identifiants personnalisés.
Set(CALLERID(name)=095xxxxxxx);
Set(CALLERID(num)=095xxxxxx);
Dial(PJSIP/freephonie.net/sip:${EXTEN}@freephonie.net,,rRtT);
Hangup();
}