Re: [asterisk-users] 'h' extension and which one applies?

2007-02-06 Thread Steve Davies

On 2/6/07, Eric ManxPower Wieling <[EMAIL PROTECTED]> wrote:

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"


AFAIK, RxFax does not hang-up, so in both cases the CallER was hanging
up, and both times it DOES execute the 'h' context, but a different
one.

Cheers,
Steve
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] 'h' extension and which one applies?

2007-02-05 Thread Eric \"ManxPower\" Wieling

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"

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] 'h' extension and which one applies?

2007-02-05 Thread Steve Davies

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/[EMAIL PROTECTED])


(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
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users