[asterisk-users] parse error in GosubIf
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Wed Oct 17 15:53:54 CDT 2007
On Wednesday 17 October 2007 14:57:41 Michael Iedema wrote:
> exten => h,1,Set(MISSEDCAUSE=hungup)
> exten => h,n,GosubIf($[${SENDNOTIFICATIONS} = 1]?notify,1)
> exten => h,n,Hangup()
>
> exten => notify,1,Macro(email-${MISSEDCAUSE})
> exten => notify,n,Return()
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. :-)
Also, I note that in your pastebin, you had a space before
the word "exten", and " exten" != "exten" as far as the parser
is concerned.
--
Tilghman
More information about the asterisk-users
mailing list