[Asterisk-Dev] Re: [Asterisk-cvs] asterisk/channels chan_sip.c,1.248,1.249

asterisk at lists.styx.org asterisk at lists.styx.org
Tue Nov 25 15:19:42 MST 2003


On Tue, Nov 25, 2003 at 10:02:57PM +0100, Olle E. Johansson wrote:
> 
> Behold the beauty of a loop :-)
> These are the pages I want to add more details to.
> 
> From the later of the Wiki pages (that I added myself):
> 
>   *.4.1.5.1 IN NAPTR 100 10 "u" "IAX2+E2U" 
>   "!^\\+*(.*)$!iax2:mtl-gateway/\\1!" .
> 
> So I ask again, what's the full syntax? This is only one example...

I believe the NAPTR syntax itself is documented there...

> I would like to document the IAX2 URL used here.

The 'iax2:' gets replaced by EnumLookup with IAX2/, and the
'\1' get replaced by the dialed number. So if you call 
15145551212, what will get returned is IAX2/mtl-gateway/15145551212

You can put anything that is valid as an IAX2 Dial parameter in
there -- i.e. you could have 'iax2:user:passwd at iax2host/\\1' if
you wanted -- though I don't suggest you store that stuff in the
DNS unless you're *very* careful.

If you wanted to specify the context, as well, you could even do
'iax2:user:passwd at iax2host/\\1/context' I believe.

-w

--
/~\  The ASCII Ribbon Campaign
\ /    No HTML/RTF in email
 X     No Word docs in email
/ \  Respect for open standards



More information about the asterisk-dev mailing list