Hey there, i have a python script that drops a call.call file into the /var/spool/asterisk/outgoing directory the extension it points to reads like this [outboundmsg1] exten => s,1,Answer exten => s,2,Wait(3) exten => s,3,AGI(server_dialout.py) exten => s,4,Hangup the problem is that when the script is run, there is no pause to answer, and even if the phone is not answered, the script continues to run. any idea how to make the answer function stop and wait for the answer? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060807/50b3d139/attachment.htm
Try switching the wait and answer: Wait 3 Answer What kind of interface is this? Zaptel, SIP, IAX, FXO, PRI?? ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of shawn bright Sent: Monday, August 07, 2006 9:49 PM To: asterisk mailing list Subject: [asterisk-users] agi script runs even if no answer Hey there, i have a python script that drops a call.call file into the /var/spool/asterisk/outgoing directory the extension it points to reads like this [outboundmsg1] exten => s,1,Answer exten => s,2,Wait(3) exten => s,3,AGI(server_dialout.py) exten => s,4,Hangup the problem is that when the script is run, there is no pause to answer, and even if the phone is not answered, the script continues to run. any idea how to make the answer function stop and wait for the answer? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060807/61fe2585/attachment.htm
Tony Mountifield
2006-Aug-08 00:31 UTC
[asterisk-users] Re: agi script runs even if no answer
In article <384c93600608071849r14942051h82113d8fc7247b77@mail.gmail.com>, shawn bright <nephish@gmail.com> wrote:> > i have a python script that drops a call.call file into the > /var/spool/asterisk/outgoing directory > the extension it points to reads like this > > [outboundmsg1] > exten => s,1,Answer > exten => s,2,Wait(3) > exten => s,3,AGI(server_dialout.py) > exten => s,4,Hangup > > the problem is that when the script is run, there is no pause to answer, and > even if the phone is not answered, the script > continues to run. > > any idea how to make the answer function stop and wait for the answer?Please post the contents of the call file that you generate... Cheers Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org
ok, here is the text written by my script in a file called drop.call in /var/spool/asterisk/tmp. After the file is created, it is moved to /var/spool/asterisk/outgoing Channel: Zap/4/2441243 Callerid: 2445599 WaitTime: 15 Context: outboundmsg1 Extension: s thanks sk On 8/8/06, Tony Mountifield <tony@softins.clara.co.uk> wrote:> > In article <384c93600608071849r14942051h82113d8fc7247b77@mail.gmail.com>, > shawn bright <nephish@gmail.com> wrote: > > > > i have a python script that drops a call.call file into the > > /var/spool/asterisk/outgoing directory > > the extension it points to reads like this > > > > [outboundmsg1] > > exten => s,1,Answer > > exten => s,2,Wait(3) > > exten => s,3,AGI(server_dialout.py) > > exten => s,4,Hangup > > > > the problem is that when the script is run, there is no pause to answer, > and > > even if the phone is not answered, the script > > continues to run. > > > > any idea how to make the answer function stop and wait for the answer? > > Please post the contents of the call file that you generate... > > Cheers > Tony > -- > Tony Mountifield > Work: tony@softins.co.uk - http://www.softins.co.uk > Play: tony@mountifield.org - http://tony.mountifield.org > _______________________________________________ > --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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060808/f6151b70/attachment.htm