[mod_socket] Can't set channel variable SOMETIMES
Hello! I've got strange problem: In my app which talks to FreeSwitch via mod_socket there is such logic: <pre conditions: channel1 - newly created, parked channell - with help of 'uuid_create' and 'originate ... &park'; channel2 is talking with channel3> for (channel in {array of channel1, channel2, channel3}) { set value for the channel variable X } uuid_transfer channel1 extension Y uuid_transfer -both channel2 extension Y In extension Y there is a logic based on the channel variable X. The problem itself: every second launching falls, the reason - channel variable X hasn't been set for one of channel1..3. Sniffer shows that commands are sent (and confirmated by FreeSwitch) consiquently, FreeSwitch sends OK for each command in time. Temporary sollution that I found is to wait 0.5 sec after 'set' commands have been sent and before transfer any channel to extension Y. Maybe some already faced with similar problem? Thanks, Artem
wait for execute_complete events to be sure you application execute request was received and processed or use uuid_setvar instead which is instant. On Sat, Oct 31, 2009 at 4:09 PM, Artem Shiyanov <shiyanov@gmail.com> wrote:
Hello!
I've got strange problem: In my app which talks to FreeSwitch via mod_socket there is such logic: <pre conditions: channel1 - newly created, parked channell - with help of 'uuid_create' and 'originate ... &park'; channel2 is talking with channel3> for (channel in {array of channel1, channel2, channel3}) { set value for the channel variable X }
uuid_transfer channel1 extension Y uuid_transfer -both channel2 extension Y
In extension Y there is a logic based on the channel variable X. The problem itself: every second launching falls, the reason - channel variable X hasn't been set for one of channel1..3. Sniffer shows that commands are sent (and confirmated by FreeSwitch) consiquently, FreeSwitch sends OK for each command in time. Temporary sollution that I found is to wait 0.5 sec after 'set' commands have been sent and before transfer any channel to extension Y.
Maybe some already faced with similar problem?
Thanks, Artem
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (2)
-
Anthony Minessale
-
Artem Shiyanov