Bonjour,
ma configuration pjsip.conf pour freephonie
mon dialplan en aelCode:[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
en sortie
Free refuse maintenant les appels avec une identité "custom"
en entréeCode:Set(CALLERID(name)=0953717424); Set(CALLERID(num)=0953717424); Dial(PJSIP/freephonie.net/sip:${FILTER(0-9,${EXTEN})}@freephonie.net,,Tt); Hangup();
résultat d'un appel entrantCode:s => { Noop(appel de ${CALLERID(name)} numéro ${CALLERID(num)}); Dial(PJSIP/abdcef,30,rTt); Hangup(); }
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




Répondre avec citation