Bonjour,
ma configuration pjsip.conf pour freephonie
Code:
[freephonie.net-reg]
type = registration
retry_interval = 20
max_retries = 10
expiration = 120
transport = transport-udp
outbound_auth = freephonie.net-auth
client_uri = sip:09xxxxxxxx@freephonie.net
server_uri = sip:freephonie.net
[freephonie.net-auth]
type = auth
auth_type = md5
md5_cred = 1dc1203fcf085e3fa84e4f601415e70c
username = 09xxxxxxxx
[freephonie.net]
type = endpoint
context = from-ext
disallow = all
allow = alaw
transport = transport-udp
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
mon dialplan en ael
en sortie
Free refuse maintenant les appels avec une identité "custom"
Code:
Set(CALLERID(name)=0953717424);
Set(CALLERID(num)=0953717424);
Dial(PJSIP/freephonie.net/sip:${FILTER(0-9,${EXTEN})}@freephonie.net,,Tt);
Hangup();
en entrée
Code:
s => {
Noop(appel de ${CALLERID(name)} numéro ${CALLERID(num)});
Dial(PJSIP/abdcef,30,rTt);
Hangup();
}
résultat d'un appel entrant
Code:
[Apr 13 10:30:22] -- Executing [s@from-ext:1] NoOp("PJSIP/freephonie.net-0000000c", "appel de 01xxxxxxxx numéro 01xxxxxxxx") in new stack
[Apr 13 10:30:22] -- Executing [s@from-ext:2] Dial("PJSIP/freephonie.net-0000000c", "PJSIP/abdcef,30,rTt") in new stack