[asterisk-users] Associating an Originate Request to a Channel before the call is answered

Stefan Reuter srt at reucon.net
Mon Aug 14 02:52:06 MST 2006


Janahan Vivekanandan wrote:
> I know that I can use the ActionID to accomplish this once I receive
> the OriginateSuccess event, but I need to be able to cancel the call
> before it is answered(I'm pretty sure OriginateSuccess is only sent
> after the  call is answered, correct me if I'm wrong...:-)

You are right and the canonical answer seems to be you can't.
I had the same problem a few weeks ago for the development of
Asterisk-Java and solved it by setting a channel variable in the
Originate action which I check for with every NewChannel event.
Not nice, but it a working hack.

=Stefan

-- 
reuter network consulting
Neusser Str. 110
50760 Koeln
Germany
Telefon: +49 221 1305699-0
Telefax: +49 221 1305699-90
E-Mail:  srt at reucon.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 271 bytes
Desc: OpenPGP digital signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060814/4cf58656/signature.pgp


More information about the asterisk-users mailing list