[Asterisk-java-devel] Dial using FastAGI
Brought to you by:
srt
From: Jeryes . <je...@vo...> - 2011-05-10 15:53:22
|
Hi All! I have an application that is connected to Asterisk by BaseAgiScript, and it only answers, play a file and disconnect the call. Now I am trying to dial to another destination after receive a new call, executing the command Dial: *agiChannel.exec("Dial", "SIP/otherUser@otherUserIp:5060");* *agiChannel* is the channel received in a new incoming AgiRequest by the event *service(AgiRequest request, AgiChannel agiChannel)*. But doing this way I am not able to change the domain on from or to Header, is there a way to change the domain dynamically? I've tried the option *o *to keep the original *from* received on incoming AgiRequest, but it had no effect: *agiChannel.exec("Dial", "SIP/otherUser@otherUserIp:5060|o"); *I couldn't do it with Manager Api eather.*** * Please, could some one help?* * Thanks in advance! Regards Jeryes |