[asterisk-users] parse error in GosubIf

Atis Lezdins atis at iq-labs.net
Wed Oct 17 15:59:57 CDT 2007


On Wednesday 17 October 2007 23:41:28 Michael Iedema wrote:
> On 10/17/07, Ira <ira at extrasensory.com> wrote:
> > At 12:57 PM 10/17/2007, you wrote:
> > >If there's anyone who can shed some light on why my GosubIf condition
> > >is throwing a parse error, I'd greatly appreciate your insight. This
> > >was really frustrating and is probably a stupid mistake.
> >
> > exten => h,n,GosubIf($["${SENDNOTIFICATIONS}" = "1"]?notify,1)
>
> I just tried this again with quotes as many have suggested (thanks!)
> but am still getting the same error. The first step in that
> email-hungup macro is being executed and nothing else.
>
> Also, this:
>
> Oct 17 22:14:54 -- Executing [h at macro-vm:2] GosubIf("Zap/3-1",
> "1?notify|1") in new stack

This means, the variable evaluates to 1 - only values are shown in log.

Regards,
Atis


-- 
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835



More information about the asterisk-users mailing list