VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
shiyanov at gmail.com Guest
|
Posted: Sat Oct 31, 2009 4:17 pm Post subject: [Freeswitch-users] [mod_socket] Can't set channel variable S |
|
|
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 |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Sat Oct 31, 2009 4:38 pm Post subject: [Freeswitch-users] [mod_socket] Can't set channel variable S |
|
|
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 (shiyanov@gmail.com)> wrote:
Quote: | 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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|