All pastes #740081 Raw Edit

Something

public text v1 · immutable
#740081 ·published 2007-10-17 18:10 UTC
rendered paste body
[macro-vm];

...snip

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()



---------
Oct 17 20:08:13 -- Executing [h@macro-vm:1] Set("Zap/4-1", "MISSEDCAUSE=hungup") in new stack
Oct 17 20:08:13 ast_expr2.fl:398 in ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '=', expecting $end; Input: = 1 ^
Oct 17 20:08:13 ast_expr2.fl:402 in ast_yyerror: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
Oct 17 20:08:13 -- Executing [h@macro-vm:2] GosubIf("Zap/4-1", "?notify|1") in new stack