Re: [asterisk-users] Re: agi script runs even if no answer

2006-08-08 Thread shawn bright
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
skOn 8/8/06, Tony Mountifield [EMAIL PROTECTED] wrote:
In article [EMAIL PROTECTED],shawn bright [EMAIL PROTECTED]
 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...
CheersTony--Tony MountifieldWork: [EMAIL PROTECTED] - http://www.softins.co.ukPlay: 
[EMAIL PROTECTED] - http://tony.mountifield.org___--Bandwidth and Colocation provided by Easynews.com
 --asterisk-users mailing listTo UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users

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


Re: [asterisk-users] Re: agi script runs even if no answer

2006-08-08 Thread shawn bright
Yep, its an analog channel, a land line to the Central Office.
i did manage to get the connection fixed (had a broken line)
that was driving me nuts. But still, if no one answers, i need to write something like
an acknowlage requirement that will let me know.
thanks for your help, i am a little closer now.
-skOn 8/8/06, Tony Mountifield [EMAIL PROTECTED] wrote:
In article [EMAIL PROTECTED],shawn bright [EMAIL PROTECTED]
 wrote: 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 skOK, so you are calling out via a Zap channel. Is this an analogue line
or a digital line?I suspect it is an analogue line, in which case it can be tricky to tellwhen the line has been answered at the other end. I believe the defaultis for Asterisk to consider the line answered as soon as the call is
placed.There is experimental support for call progress detection, which canbe enabled in /etc/asterisk/zapata.conf (look for the callprogressoption). However, I don't know anything about it, having never used it.
The only way to make this really reliable is to use a digital interface,either BRI or PRI.Hope this helpsCheersTony On 8/8/06, Tony Mountifield 
[EMAIL PROTECTED] wrote:   In article [EMAIL PROTECTED]
,  shawn bright [EMAIL PROTECTED] 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: [EMAIL PROTECTED] - http://www.softins.co.uk
  Play: [EMAIL PROTECTED] - 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  -=-=-=-=-=- [Alternative: text/html] -=-=-=-=-=-
 -=-=-=-=-=- ___ --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 -=-=-=-=-=-
--Tony MountifieldWork: [EMAIL PROTECTED] - http://www.softins.co.ukPlay: [EMAIL PROTECTED]
 - http://tony.mountifield.org___--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing listTo UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users

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