[asterisk-dev] Bug in setting/retrieving channel variables

David Roden dr at ina-germany.de
Tue Jul 24 04:21:39 CDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, everyone.

I'm building a telephony application using asterisk-1.2.13 and
Asterisk-Java 0.3 and I encounter some strange behaviour in the
following situation:

I use local channels to create an AGI connection to my server, enabling
me to set the caller presentation and the caller ID before making a dial
over the AGI connection. Before sending the Dial command I also set a
variable on the channel (using name, _name, and __name as variable
names). Using the Manager API I wait for the NewChannelEvent and send a
GetVar action to retrieve the variable from the new channel so that I
can connect the new channel with the dial command from the old channel.

Unfortunately this only works about 90% to 95% of the time, the rest of
the time the GetVar action returns an empty variable value. Are there
some timing issues involved in this or is this a bug or is this indeed
some intended behaviour?


Thanks,

	David Roden
- --
INA Service GmbH
Papenreye 63
22453 Hamburg
Germany

Mail: info at ina-germany.de
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

iD8DBQFGpcSaah2J2g3uuwIRAhqQAJ98Dg0JiSRkJHEKSVU3sNml1zd+iQCgsgz9
wdl7yonjUAhiYih40E4xJZE=
=UtGi
-----END PGP SIGNATURE-----



More information about the asterisk-dev mailing list