Re: [asterisk-users] Fwd: Manager Interface Originate (ASYNC) - How to get the Originate Status
you can get the originate resonse with a function dump_event and the $asm-add_event_handler;off corse you can do it with a script php. 2009/2/13 Aloysius Thevarajah Lloyd (SunTel Technologies) lloyd.aloys...@sunteltech.ca Dear All, I am originating the call directly to the SIP Provider using the maganger interface + originate (ASYNC) command. Here is the PHP-AGI Script. $call = $asm-send_request('Originate', array('Channel'=SIP/416...@abc/n, 'Context'='ORIG', 'Exten'='s', * 'Async'='1',* 'MaxRetries' = '1', 'RetryTime' = '10', 'Priority'=1, 'Account'=$phonenumber, 'Callerid'=$callid) *extensions.conf* [ORIG] exten = s,1,Answer exten = s,2,Playback(ivrfile) exten = s,n,Hangup How Can I get the Originate Status using Async? ANSWER, BUSY, NOANSWER etc.. Thank you. Lloyd ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Fwd: Manager Interface Originate (ASYNC) - How to get the Originate Status
Dear All, I am originating the call directly to the SIP Provider using the maganger interface + originate (ASYNC) command. Here is the PHP-AGI Script. $call = $asm-send_request('Originate', array('Channel'=SIP/416...@abc/n, 'Context'='ORIG', 'Exten'='s', * 'Async'='1',* 'MaxRetries' = '1', 'RetryTime' = '10', 'Priority'=1, 'Account'=$phonenumber, 'Callerid'=$callid) *extensions.conf* [ORIG] exten = s,1,Answer exten = s,2,Playback(ivrfile) exten = s,n,Hangup How Can I get the Originate Status using Async? ANSWER, BUSY, NOANSWER etc.. Thank you. Lloyd ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Fwd: Manager Interface Originate (ASYNC) - How to get the Originate Status
2009/2/13 Aloysius Thevarajah Lloyd (SunTel Technologies) lloyd.aloys...@sunteltech.ca Dear All, I am originating the call directly to the SIP Provider using the maganger interface + originate (ASYNC) command. Here is the PHP-AGI Script. $call = $asm-send_request('Originate', array('Channel'=SIP/416...@abc/n, 'Context'='ORIG', 'Exten'='s', * 'Async'='1',* 'MaxRetries' = '1', 'RetryTime' = '10', 'Priority'=1, 'Account'=$phonenumber, 'Callerid'=$callid) *extensions.conf* [ORIG] exten = s,1,Answer exten = s,2,Playback(ivrfile) exten = s,n,Hangup How Can I get the Originate Status using Async? ANSWER, BUSY, NOANSWER etc.. Thank you. Lloyd ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Hi., You can use 'failed' extension on the ORIG . -- Pagarbiai / Best Regards, Giedrius Augys ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Fwd: Manager Interface Originate (ASYNC) - How to get the Originate Status
Can you explain what do you mean failed extension ? Regards Lloyd On Fri, Feb 13, 2009 at 2:00 AM, Giedrius Augys voi...@gmail.com wrote: 2009/2/13 Aloysius Thevarajah Lloyd (SunTel Technologies) lloyd.aloys...@sunteltech.ca Dear All, I am originating the call directly to the SIP Provider using the maganger interface + originate (ASYNC) command. Here is the PHP-AGI Script. $call = $asm-send_request('Originate', array('Channel'=SIP/416...@abc/n, 'Context'='ORIG', 'Exten'='s', * 'Async'='1',* 'MaxRetries' = '1', 'RetryTime' = '10', 'Priority'=1, 'Account'=$phonenumber, 'Callerid'=$callid) *extensions.conf* [ORIG] exten = s,1,Answer exten = s,2,Playback(ivrfile) exten = s,n,Hangup How Can I get the Originate Status using Async? ANSWER, BUSY, NOANSWER etc.. Thank you. Lloyd ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Hi., You can use 'failed' extension on the ORIG . -- Pagarbiai / Best Regards, Giedrius Augys ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Fwd: Manager Interface Originate (ASYNC) - How to get the Originate Status
You mean exten = failed, Regards, Lloyd On Fri, Feb 13, 2009 at 2:00 AM, Giedrius Augys voi...@gmail.com wrote: 2009/2/13 Aloysius Thevarajah Lloyd (SunTel Technologies) lloyd.aloys...@sunteltech.ca Dear All, I am originating the call directly to the SIP Provider using the maganger interface + originate (ASYNC) command. Here is the PHP-AGI Script. $call = $asm-send_request('Originate', array('Channel'=SIP/416...@abc/n, 'Context'='ORIG', 'Exten'='s', * 'Async'='1',* 'MaxRetries' = '1', 'RetryTime' = '10', 'Priority'=1, 'Account'=$phonenumber, 'Callerid'=$callid) *extensions.conf* [ORIG] exten = s,1,Answer exten = s,2,Playback(ivrfile) exten = s,n,Hangup How Can I get the Originate Status using Async? ANSWER, BUSY, NOANSWER etc.. Thank you. Lloyd ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Hi., You can use 'failed' extension on the ORIG . -- Pagarbiai / Best Regards, Giedrius Augys ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Fwd: Manager Interface Originate (ASYNC) - How to get the Originate Status
2009/2/13 Aloysius Lloyd lloyd.aloys...@sunteltech.ca Can you explain what do you mean failed extension ? Regards Lloyd On Fri, Feb 13, 2009 at 2:00 AM, Giedrius Augys voi...@gmail.com wrote: 2009/2/13 Aloysius Thevarajah Lloyd (SunTel Technologies) lloyd.aloys...@sunteltech.ca Dear All, I am originating the call directly to the SIP Provider using the maganger interface + originate (ASYNC) command. Here is the PHP-AGI Script. $call = $asm-send_request('Originate', array('Channel'=SIP/416...@abc/n, 'Context'='ORIG', 'Exten'='s', * 'Async'='1',* 'MaxRetries' = '1', 'RetryTime' = '10', 'Priority'=1, 'Account'=$phonenumber, 'Callerid'=$callid) *extensions.conf* [ORIG] exten = s,1,Answer exten = s,2,Playback(ivrfile) exten = s,n,Hangup How Can I get the Originate Status using Async? ANSWER, BUSY, NOANSWER etc.. Thank you. Lloyd ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Hi., You can use 'failed' extension on the ORIG . -- Pagarbiai / Best Regards, Giedrius Augys ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users I hope this help you: context autodialer { _X. = { Answer(); Wait(1); Playback(${PROMPT}); Hangup(); }; failed = { Noop(Unsuccessfull call); }; }; -- Pagarbiai / Best Regards, Giedrius Augys ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Fwd: Manager Interface Originate (ASYNC) - How to get the Originate Status
Thank you. Lloyd On Fri, Feb 13, 2009 at 2:43 AM, Giedrius Augys voi...@gmail.com wrote: 2009/2/13 Aloysius Lloyd lloyd.aloys...@sunteltech.ca Can you explain what do you mean failed extension ? Regards Lloyd On Fri, Feb 13, 2009 at 2:00 AM, Giedrius Augys voi...@gmail.comwrote: 2009/2/13 Aloysius Thevarajah Lloyd (SunTel Technologies) lloyd.aloys...@sunteltech.ca Dear All, I am originating the call directly to the SIP Provider using the maganger interface + originate (ASYNC) command. Here is the PHP-AGI Script. $call = $asm-send_request('Originate', array('Channel'=SIP/416...@abc/n, 'Context'='ORIG', 'Exten'='s', * 'Async'='1',* 'MaxRetries' = '1', 'RetryTime' = '10', 'Priority'=1, 'Account'=$phonenumber, 'Callerid'=$callid) *extensions.conf* [ORIG] exten = s,1,Answer exten = s,2,Playback(ivrfile) exten = s,n,Hangup How Can I get the Originate Status using Async? ANSWER, BUSY, NOANSWER etc.. Thank you. Lloyd ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Hi., You can use 'failed' extension on the ORIG . -- Pagarbiai / Best Regards, Giedrius Augys ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users I hope this help you: context autodialer { _X. = { Answer(); Wait(1); Playback(${PROMPT}); Hangup(); }; failed = { Noop(Unsuccessfull call); }; }; -- Pagarbiai / Best Regards, Giedrius Augys ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users