[asterisk-users] Macro conversion in 1.6
Atis Lezdins
atis at iq-labs.net
Thu Nov 20 10:12:09 CST 2008
On Thu, Nov 20, 2008 at 5:57 PM, Joseph L. Casale
<JCasale at activenetwerx.com> wrote:
> I create my sip users using a common macro in 1.4:
> [internal]
> exten => 200,1,Macro(phones|200|SIP/200)
> [macro-phones]
> exten => s,1,Dial(${ARG2}|45|Tt)
> etc...
>
> But now in 1.6 this fails:
>
> -- Executing [200 at handsets:1] Macro("SIP/201-0942b530", "phones|200|SIP/200") in new stack
> [Nov 20 08:55:55] WARNING[5958]: app_macro.c:201 _macro_exec: No such context 'macro-phones|200|SIP/200' for macro 'phones|200|SIP/200'
> -- Executing [200 at handsets:2] Wait("SIP/201-0942b530", "1") in new stack
> -- Executing [200 at handsets:3] Playback("SIP/201-0942b530", "invalid") in new stack
> -- <SIP/201-0942b530> Playing 'invalid.gsm' (language 'en')
>
> Why does the user's extension get created (all the phones work) but I can't dial to it?
>
AFAIR it was mentioned in UPGRADE.txt that argument separator was
changed from pipe to comma. Unless you read it, you might also
experience lot of other problems.
It should be Macro(phones,200,SIP/200)
However it's not recommended to use macro's, you are encouraged to
convert them to GoSub's, as they now support arguments.
Regards,
Atis
--
Atis Lezdins,
VoIP Project Manager / Developer,
IQ Labs Inc,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835
More information about the asterisk-users
mailing list