[asterisk-users] How to execute an AGI script for each call.
dennis.guse at alumni.tu-berlin.de
Wed Jul 2 08:15:07 CDT 2014
You could try either the predial-handler or the dial-macro M.
On Wed, Jul 2, 2014 at 3:06 PM, Joshua Colp <jcolp at digium.com> wrote:
> Anurag Rana wrote:
>> Hi All,
> Kia ora,
> I am trying to execute some AGI script no matter what extension is called.
>> There is 'h' extension to call AGI script when any call hangs up no
>> matter what extension hangup.
>> for example ->
>> /// something here which call AGI script no matter what extension
>> receive call.
>> exten => 111,1,Dial(SIP/111)
>> exten => 112,1,Dial(SIP/112)
>> exten => h,1,AGI(pt.py) ;; executes no matter what extension hang up
> Have your first priority be a pattern match of something like _X. which
> executes your AGI. Then have your second priority be the specialized logic
> (such as the Dial above). That should do what you want.
> Joshua Colp
> Digium, Inc. | Senior Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US
> Check us out at: www.digium.com & www.asterisk.org
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the asterisk-users