Thread: [Asterisk-java-users] Originate call with Caller Presentation
Brought to you by:
srt
From: David R. <dr...@in...> - 2007-07-11 09:23:13
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, everybody. I'm trying to create a call using the manager API that has a caller ID presentation of 35 (presentation restricted, screening network-provided). Using OriginateAction.setCallingPres(35) does not work, though, the NewCallerIdEvent emitted as a result of the OriginateAction always shows a caller ID presentation of 0. We are using Asterisk 1.2.13 here. Is there any way to set the caller ID presentation using the manager API before using OriginateAction? Thanks in advance, David Roden - -- 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äftsführer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGlKFcah2J2g3uuwIRAmY9AKC4Eany1b/XqSobSha0Z0g6nfMWLwCdHySn HufiWmr330DzGxkNH/rvbM8= =/YbM -----END PGP SIGNATURE----- |
From: Stefan R. <ste...@re...> - 2007-07-11 09:52:30
Attachments:
signature.asc
|
Hi David, > I'm trying to create a call using the manager API that has a caller ID > presentation of 35 (presentation restricted, screening > network-provided). Using OriginateAction.setCallingPres(35) does not > work, though, the NewCallerIdEvent emitted as a result of the > OriginateAction always shows a caller ID presentation of 0. We are usin= g > Asterisk 1.2.13 here. As the javadocs say: "This property is only available on BRIstuffed Asterisk servers." Are you using a vanilla Asterisk server or a BRIstuffed one? > Is there any way to set the caller ID presentation using the manager AP= I > before using OriginateAction? You could do it in the dialplan and use a Local/ channel to originate from an extension with that sets the correct calling presentation. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: David R. <dr...@in...> - 2007-07-11 10:33:44
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Stefan, > As the javadocs say: "This property is only available on BRIstuffed > Asterisk servers." Are you using a vanilla Asterisk server or a > BRIstuffed one? Hmm, probably a vanilla one using chan_ss7 which would explain the not-working part. > You could do it in the dialplan and use a Local/ channel to originate > from an extension with that sets the correct calling presentation. Is there any way to do it without dialplan modifications? 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? :) That would at least help me in the "the least possible changes in the dialplan"-department. :) > =Stefan Thanks, David - -- 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äftsführer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGlLHwah2J2g3uuwIRAlodAKCpXwWbZIDODDn+lq09pG0xmtULEQCgzUY7 qFOdZP8QNijKtww6KTUXOUU= =zUmD -----END PGP SIGNATURE----- |
From: David R. <dr...@in...> - 2007-07-11 15:04:47
Attachments:
signature.asc
|
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 |