Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] How to execute an AGI script for each call.


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
anuragrana31189 at gma...
Guest





PostPosted: Fri Jun 27, 2014 2:32 pm    Post subject: [asterisk-users] How to execute an AGI script for each call. Reply with quote

Hi All,


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 ->


[some-context]


/// 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


​Thanks​


--
Anurag Rana
http://newbie42.blogspot.in/
On the trampoline of life's experiences, Striving towards a saintly life in the midst of these materialistic turbulences.
Back to top
jcolp at digium.com
Guest





PostPosted: Wed Jul 02, 2014 8:06 am    Post subject: [asterisk-users] How to execute an AGI script for each call. Reply with quote

Anurag Rana wrote:
Quote:
Hi All,

Kia ora,

Quote:
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 ->

[some-context]

/// 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.

Cheers,

--
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:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
dennis.guse at alumni....
Guest





PostPosted: Wed Jul 02, 2014 8:15 am    Post subject: [asterisk-users] How to execute an AGI script for each call. Reply with quote

You could try either the predial-handler or the dial-macro M.
---
Dennis Guse



On Wed, Jul 2, 2014 at 3:06 PM, Joshua Colp <jcolp@digium.com (jcolp@digium.com)> wrote:
Quote:
Anurag Rana wrote:
Quote:
Hi All,

Kia ora,

Quote:
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 ->

[some-context]

/// 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.

Cheers,

--
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:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services