[Freeswitch-users] [mod_socket] Can't set channel variable SOMETIMES

Anthony Minessale anthony.minessale at gmail.com
Sat Oct 31 14:31:55 PDT 2009


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 at 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 at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091031/13fba1df/attachment-0002.html 


More information about the FreeSWITCH-users mailing list