<br><br><div class="gmail_quote">On Wed, Mar 18, 2009 at 11:57 AM, Steve Edwards <span dir="ltr"><<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, 18 Mar 2009, Gabriel Ortiz Lour wrote:<br>
<br>
> Is there something like a global h exten, that gets called on every<br>
> hang up, no matter what exten?<br>
<br>
</div>(no matter what context)<br>
<br>
Nope -- but it sounds like a great idea.<br>
<br>
I do it this way...<br>
<br>
I define an "h" template:<br>
<br>
[h](!)<br>
exten = h,1, goto(finish-call,h,1)<br>
<br>
And then every context references the template:<br>
<br>
[block-me](digit-timeout,h,i,max-timeout,pound-main,s)</blockquote><div><br>That's an elegant way to do it, another in AEL, would be to define a <br>context with an h-exten, and include it in your other contexts...<br>
<br>Just beware, that the h-exten is NOT ALWAYS called; the in the<br>channel/peer role world, the h-exten is usually called on just<br>the channel in the channel role. The parking manager doesn't<br>run the h-exten if a channel hangs up while parked. And channel<br>
and peer roles can sometimes get a bit confused in transfer<br>scenarios. The truth of each sentence above will surely change<br>with new releases...<br><br>murf<br></div></div><br clear="all"><br>-- <br>Steve Murphy<br>ParseTree Corp<br>
<br>