[asterisk-users] Macro arguments seperator

Leif Madsen
2009-01-08T12:55:24Z

If I understand this, you can do it with the pbx_realtime=1.4 section in
the [compat] header of asterisk.conf.

I found this information in the UPGRADE-1.6.txt file... funny enough.
Fifth paragraph:

* The delimiter passed to applications has been changed to the comma
(','), as that is what people are used to using within extensions.conf.
  If you are using realtime extensions, you will need to translate your
existing dialplan to use this separator.  To use a literal comma, you
need merely to escape it with a backslash ('\').  Another possible side
effect is that you may need to remove the obscene level of backslashing
that was necessary for the dialplan to work correctly in 1.4 and
previous versions.  This should make writing dialplans less painful in
the future, albeit with the pain of a one-time conversion.  If you would
like to avoid this conversion immediately, set pbx_realtime=1.4 in the
[compat] section of asterisk.conf.  After transitioning, set
pbx_realtime=1.6 in the same section.

Leif Madsen.
http://www.leifmadsen.com
http://www.asteriskdocs.org

Morten Isaksen wrote:
> Hi!
>
> I am in the process of upgrading our 1.2 servers to 1.6.
>
> We have a lot of realtime extensions with app=Macro and
> appdata=stdexten|080512|SIP/080512
>
> But this does not work in 1.6. It is expecting , and not | as the
> argument seperator. If I change the | to , then it does not work in
> 1.2.
>
> Is there any backwards compatible switch you can enable in 1.6, so it
> accepts | as a argument seperator in 1.6?
>