Re: [Asterisk-java-users] Executing a call with agi script
Brought to you by:
srt
From: Miguel S. <m.s...@gm...> - 2013-06-01 06:11:29
|
Try creating an AMI connection inside the agi and using originateAction instead. El 31/05/2013 17:28, "Daniele Renda" <dan...@gm...> escribió: > Hi, > I need to make a call inside an agi script: > > In my > public void service(AgiRequest request, AgiChannel channel) throws > AgiException { > > I've this line: > channel.exec("Dial", channel+ phoneNumber); > > But the call don't go out. I want to replace my dialplan in which now I've > this: > > exten =>_XXX.,n,Dial(SIP/provider/${EXTEN}) > > with this: > exten =>_XXX.,n,Agi(agi://localhost/chiamatevoip.agi,ph003,${EXTEN}) > > Thanks > > -- > Daniele Renda > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |