Re: [Asterisk-java-users] Originate call with Caller Presentation
Brought to you by:
srt
From: David R. <dr...@in...> - 2007-07-11 15:04:47
|
David Roden wrote: > Hmm... I could define an extension which does nothing else than > contacting my backend via AGI so that I could use SetCallerPres via the= > AGI channel. I think I'll try that. I can use Originate to simply > execute stuff from a certain context in the dialplan, can I? :) Turns out it's not as simple as I thought. I have the following in my extensions.conf: [javaclient] exten =3D> outgoingagi,1,AGI(agi://192.168.42.201:4573/outgoingCall.agi) exten =3D> ignore,1,Answer() Now when using Originate to jump to the outgoingagi extension (via setContext(), setExten() and setPriority()) I have the problem that I need to specify a channel - but I don't have a channel. The whole point is to create a channel that I can then use to place a call with Dial on (and executing SetCallerPres _before_ the Dial). When using local channels, i.e. Local/outgoingagi@javaclient) my AGI script is called twice, once when the Originate comes in and once when the Dial from within the AGI script connected to a remote party. When using "Local/ignore@javaclient" the call created from the Dial is hung up immediately after connect. Exchanging the extensions in the local channel and the Originate command also didn't help. So my question ultimately remains: How can I create a channel that contacts my AGI script without using Dial? Still hoping for The Ultimate Solution (tm), David --=20 INA Service GmbH Papenreye 63 22453 Hamburg Germany Mail: in...@in... Phone: +49 (0)40 557 07-07 Fax: +49 (0)40 557 07-100 Gesch=C3=A4ftsf=C3=BChrer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 |