[asterisk-users] agi dial termination cause ?
Hi All, in an AGI script, if executing the Asterisk command Dial, I only get result = -1 (if the call has been answered by the callee) and result = 0 (for everything else) Question: how can I know if the call was not answered because of timeout or because the callee was busy ? (I'm using Asterisk 1.8) Thank you very much for supporting, regards and have a nice day. Mike -- _ -- 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
Re: [asterisk-users] agi dial termination cause ?
Am 19.01.2011 16:57, schrieb mancyb...@gmail.com: Hi All, in an AGI script, if executing the Asterisk command Dial, I only get result = -1 (if the call has been answered by the callee) and result = 0 (for everything else) Question: how can I know if the call was not answered because of timeout or because the callee was busy ? (I'm using Asterisk 1.8) Thank you very much for supporting, regards and have a nice day. Mike -- Take a look here: http://www.voip-info.org/wiki/view/Asterisk+variables Perhaps you can get this info from ${ANSWEREDTIME} or from ${DIALSTATUS}. -Thorsten- -- _ -- 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
Re: [asterisk-users] agi dial termination cause ?
_ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Thorsten Göllner Sent: Wednesday, January 19, 2011 10:03 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] agi dial termination cause ? Am 19.01.2011 16:57, schrieb mancyb...@gmail.com: Hi All, in an AGI script, if executing the Asterisk command Dial, I only get result = -1 (if the call has been answered by the callee) and result = 0 (for everything else) Question: how can I know if the call was not answered because of timeout or because the callee was busy ? (I'm using Asterisk 1.8) Thank you very much for supporting, regards and have a nice day. Mike -- Take a look here: http://www.voip-info.org/wiki/view/Asterisk+variables Perhaps you can get this info from ${ANSWEREDTIME} or from ${DIALSTATUS}. -Thorsten- You may end up needing to use a context to dial and get the desired results instead of using the dial command. -- _ -- 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
Re: [asterisk-users] agi dial termination cause ?
On Wed, 19 Jan 2011 17:03:03 +0100 Thorsten Göllner t...@ovm-group.com wrote: Am 19.01.2011 16:57, schrieb mancyb...@gmail.com:Hi All, in an AGI script, if executing the Asterisk command Dial, I only get result = -1 (if the call has been answered by the callee) and result = 0 (for everything else) Question: how can I know if the call was not answered because of timeout or because the callee was busy ? (I'm using Asterisk 1.8) Thank you very much for supporting, regards and have a nice day. Mike -- Take a look here: http://www.voip-info.org/wiki/view/Asterisk+variables Perhaps you can get this info from ${ANSWEREDTIME} or from ${DIALSTATUS}. -Thorsten- Ohh great! I have forgot about them, thank you both very much! I confirm that if using phpagi the array $agi-get_variable(DIALSTATUS) ['data'] gets populated with NOANSWER, BUSY, CANCEL, ... Thank you again and have a nice day :) Mike -- _ -- 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