Hi, I have a problem understanding which 'h' (hangup) extension is used in which case - It seems to vary depending on channel type. Assuming the following simplified dialplan: [macro-faxhere] exten => s,1,rxfax(file) exten => h,1,NoOp(Hangup in macro) [fax] exten => _X.,1,Macro(faxhere) exten => h,1,NoOp(Hangup in fax context) [direct] exten => _X.,1,Goto(fax,${EXTEN},1) [indirect] exten => _X.,1,Dial(Local/123@direct) (Please note, the above config paraphrases a larger setup, so has not been tested exactly as shown) If a call arrives from a Zap channel into [direct], then I get "Hangup in fax context", if a call arrives from a Zap channel into [indirect] and creates the additional Local channel, then I get "Hangup in macro" Is this behaviour intentional? Defined somewhere? Thanks, Steve
Eric "ManxPower" Wieling
2007-Feb-05 20:56 UTC
[asterisk-users] 'h' extension and which one applies?
Steve Davies wrote:> I have a problem understanding which 'h' (hangup) extension is used in > which case - It seems to vary depending on channel type.It doesn't. It depends on which side of the call hangs up. "h" is executed when the callER hangs up. If you want to handle instances of the callEE hanging up, then look at the "g" option to Dial(). "show application dial"