Re: enabling dialing by sip uri

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On 05/10/2012 09:39 AM, Arif Hossain wrote:
I have following sip account :

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

and i have set up the following extensions for them:



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

exten=>s,n,NoOp(Calling as SIP address: ${ARG1})

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

Asterisk is not a SIP proxy. If you are entering a SIP URI into your phone, and that URI does not resolve to the Asterisk server as its target, then the INVITE request sent by the phone should not even be sent to Asterisk at all (it should go to wherever the URI resolves to).

Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming@xxxxxxxxxx | SIP: kpfleming@xxxxxxxxxx | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at &

-- Bandwidth and Colocation Provided by --
New to Asterisk? Join us for a live introductory webinar every Thurs:

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

[Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [DCCP]     [Gimp]     [100% Free Online Dating]     [Yosemite News]     [Arts & Crafts]     [Yosemite Photos]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]

Add to Google Powered by Linux