[asterisk-users] parse error in GosubIf
Michael Iedema
michael at askozia.com
Wed Oct 17 16:32:43 CDT 2007
Tilghman,
> exten => h,1,Set(MISSEDCAUSE=hungup)
> exten => h,n,GosubIf($["${SENDNOTIFICATIONS}" = "1"]?notify)
> exten => h,n,Hangup()
> exten => h,n(notify),Macro(email-${MISSEDCAUSE})
> exten => h,n,Return()
>
> Don't leave the h extension; it's special. :-)
Fantastic! That solved it. I also needed one more check on the hang-up
to see if another "miss" status had already been set. I still need to
do a lot of work on this but at least the triggers are working.
The static example is here: http://pastebin.ca/740336
Thanks again for finding that,
-Michael I.
More information about the asterisk-users
mailing list