[asterisk-users] enabling dialing by sip uri

Arif Hossain aftnix at gmail.com
Thu May 10 09:39:01 CDT 2012


I have following sip account :

Name/username             Host                                    Dyn
Forcerport ACL Port     Status      Description
demo-alice/demo-alice     192.168.7.47                             D
N             1080     Unmonitored
demo-bob/demo-bob         192.168.7.47                             D
N             5060     Unmonitored

and i have set up the following extensions for them:

ASTERISK_IP=192.168.7.39

[users]
exten=>6001,1,Dial(SIP/demo-alice,20)
exten=>6002,1,Dial(SIP/demo-bob,20)

exten => _.,n,GotoIf($[${SIPDOMAIN} = ${ASTERISK_IP}]?unhandled)
exten => _.,n,GotoIf($[${SIPDOMAIN} = ${ASTERISK_IP}:5060]?unhandled)
exten => _.,n,Macro(uri-dial,${EXTEN}@${SIPDOMAIN})
exten => _.,n,HangUp()u

[macro-uri-dial]
exten=>s,n,NoOp(Calling as SIP address: ${ARG1})
exten=>s,n,Dial(SIP/${ARG1},60)


But if i dial sip uri the call does not happen. asterisk cli shows
extension is rejected.



-- 
-aft



More information about the asterisk-users mailing list