[asterisk-users] Global h exten

Steve Edwards asterisk.org at sedwards.com
Wed Mar 18 12:57:46 CDT 2009


On Wed, 18 Mar 2009, Gabriel Ortiz Lour wrote:

>  Is there something like a global h exten, that gets called on every 
> hang up, no matter what exten?

(no matter what context)

Nope -- but it sounds like a great idea.

I do it this way...

I define an "h" template:

 	[h](!)
 	        exten = h,1,                    goto(finish-call,h,1)

And then every context references the template:

 	[block-me](digit-timeout,h,i,max-timeout,pound-main,s)

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list