Re: [Asterisk-java-users] Execute AMD() inside a forwarded call by AGI
Brought to you by:
srt
From: Zoumana T. <zou...@gm...> - 2014-05-31 12:16:47
|
Hi, Thanks for the guidelines. I've just read a bit more about local channels, you mean doing something like this: -turn AGI short into channel.answer(); channel.exec("Dial", Local/1@amd"); -add into the dialplan file something like [amd] exten => 1,1,Dial(SIP/200) exten => 1,2,AMD() ... While waiting for your return, i will test that out. Thanks, Zoumana *--- * *Zoumana TRAORE* 2014-05-31 13:00 GMT+02:00 Yves A. <yv...@gm...>: > Hi, > > this will surely be possible. Due to lack of time I cant give you a fully > working example, but it is not to hard. > 1.) Read about using "local channels" > 2.) after that... dont "dial" your extension directly but "dial" into > another part of your dialplan (yet to write), where you handle dialling > the extension amd AMDing and so on... > > regards, > yves > > Am 30.05.2014 16:01, schrieb Zoumana TRAORE: > > Hi every body, > > I am dealing with a use case within an IVR (driven by AJ AGI) received > call > 1. Play audio to announce the call forward > 2. Make the forward using Dial > 3. When the forwarded called is answered, execute an AMD() command to > detect the status DURING THE call > > public void service(AgiRequest request, AgiChannel channel) > throws AgiException { > > channel.answer(); > channel.streamFile("svi/transfer-announce"); > channel.exec("Dial", "SIP/200"); > channel.exec("AMD"); > channel.getVariable("AMD_STATUS"); > channel.hangup(); > } > > But as AGI lines are sequential, my AMD command come up when the > forwarded call is already hangup so i got nothing. Somebody sees a solution > or workaround for this? > > > Thanks, > Zoumana > > > *--- * > > *Zoumana TRAORE* > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes.www.restlet.com/downloadhttp://p.sf.net/sfu/restlet > > > > _______________________________________________ > Asterisk-java-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |