[Asterisk-Dev] escaping @ in extensions ?
Luigi Rizzo
rizzo at icir.org
Wed May 25 15:10:33 MST 2005
On Wed, May 25, 2005 at 03:57:08PM -0500, Tilghman Lesher wrote:
...
> > perhaps you mean "SIP/foo at address@context" for the latter case ?
>
> No, I don't think so. That would be inconsistent with the rest of
> Asterisk (not that SIP necessarily has any consistency anyway). I tried
> to look where this is parsed, and I'm coming up empty.
well, many places parse '@' left to right, e.g.
chan_alsa.c, chan_oss.c in the "dial foo" command
pbx.c in function handle_show_dialplan
apps/app_voicemail.c in all places where it is looking for a 'context'
channels/chan_iax2.c in iax2_transfer()
channels/chan_local.c in local_alloc()
channels/chan_sip.c
pbx/pbx_config.c
and a few others. In all these cases, i would expect that
a "context" in which to interpret the string as the last
thing to appear in the string itself.
cheers
luigi
> > Interesting observation, anyways.
> > Too bad the code in chan_alsa.c or chan_oss.c and probably everywhere
> > else does the parsing from left to right :(
>
> Labels are parsed right to left, as well:
>
> priority
> extension|priority
> context|extension|priority
>
> --
> Tilghman
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list