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 _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users