[asterisk-dev] IAX support for SIP URI as called number

Alec Davis sivad.a at paradise.net.nz
Wed Aug 29 23:25:57 CDT 2012


Just implemented distributed call queues using jabber, and sucessfully
distributing device state.
With the queue making calls to the remote site over an IAX trunk, but having
to use the remote extension number.

queues.conf:
...
member => IAX2/server2/8819,0,Test User,SIP/XYZ9000

But the IAX protocol should be able to handle a SIP URI in the CALLED_NUMBER

http://www.rfc-editor.org/rfc/rfc5456.txt 
8.6.1.  CALLED NUMBER
   The purpose of the CALLED NUMBER information element ... 
   ...It is possible for a number or extension to include non-numeric
characters.  The CALLED
   NUMBER IE MAY contain a SIP URI, [RFC3261] or a URI in any other
   format.  The ability to serve a CALLED NUMBER is server dependent.

So we should be able to have
queues.conf:
...
member => IAX2/server2/sip:XYZ9000,0,Test User,SIP/XYZ9000

The first and easy change is in parse_dial_string to look for a ':'in the
exten.
The other side yet to determine.

The question is. Do we want it?
Am I barking up the wrong tree.

Alec Davis







More information about the asterisk-dev mailing list