Please submit it to jira so we can document it and add it to tree.


On Sat, Apr 12, 2008 at 7:37 AM, Tamas Cseke <cstomi.levlist@gmail.com> wrote:
Hello,

Race condition still happens with db function. bridge_uuid is undefined.
I made a hack, added execute_on_bridge variable, and execute it on bridge.
This way it works for me. I am sure this is not the best solution.
Please take a look, maybe improve it.
Or could you suggest any other solution for this?

Thanks,
Tamas

On 4/11/08, Anthony Minessale <anthony.minessale@gmail.com> wrote:
I found a bug where some code to optimize for escaped strings not needing expansion skipped the expansion which is not ok cos we need to strip the \ in the result

Update to 8087 or newer and try my original suggestion.

By the way, this is probably a race condition waiting to happen because you are using a global var here.
You may want to consider using the db function instead.

 <action application="db" data="insert/track_uuid/${caller_id_number}/${bridge_uuid}"/>

<action application="set" data="my_id=1234"/>
<action application="set" data="execute_on_answer="db insert/track_uuid/\${my_id}/\${bridge_uuid}"/>

then later you can make an extension that expands
${db(select/track_uuid/1234)}

and it would be the bridge_uuid as inserted by the above execute_on answer and unique to the callers id





On Fri, Apr 11, 2008 at 11:21 AM, Tamas Cseke <cstomi.levlist@gmail.com> wrote:
Hello,

Thanks your help!

I have problems with it.
when i try

<action application="set" data="execute_on_answer=set_global
spy_uuid=\${bridge_uuid}"/>

expand doesn't change its input, so the value of spy_uuid will be
'\$bridge_uuid'.

I can figure this out with

<action application="set" data="execute_on_answer=set_global
spy_uuid=\${bridge_uuid}${foobar}"/>

In this case it is expanded to spy_uuid=${bridge_uuid}
But on answer brigde_uuid is undefined.
Is it any other solution for setting a global variable with the value of
the bridge_uuid on answer?

Thanks any help,
Tamas





> oops i meant \$
>
> On Thu, Apr 10, 2008 at 4:24 PM, Anthony Minessale <
> anthony.minessale@gmail.com> wrote:
>
>
>> try escaping the $ with /$
>>
>>
>> On Thu, Apr 10, 2008 at 2:21 PM, Tamas Cseke <cstomi.levlist@gmail.com>
>> wrote:
>>
>>
>>> Hello,
>>>
>>> I would like to mark the uuid of the called channel for further process.
>>> (Spying this channel with eavesdrop for other call)
>>>
>>> i tried with the execute_on_answer variable but it doesn't suit for me.
>>> I think the value of the var is evaluated immediately, when bridged_uuid
>>> isn't set yet.
>>> Could you advise a solution for this please, if there is?
>>>
>>> Something like:
>>> <action application="bridge" data="portaudio"/>
>>> <action application="set" data="execute_on_answer=set_global
>>> spy_uuid=${bridged_uuid}"/>
>>>
>>> Thanks,
>>> Tamas
>>>
>>>
>>> On 4/2/08, Anthony Minessale <anthony.minessale@gmail.com> wrote:
>>>
>>>> I added support in the latest trunk to set the variable
>>>> execute_on_answer to an application of your choice
>>>>
>>>> <action application="set" data="execute_on_answer=sched_hangup +20
>>>> alloted_timeout"/>
>>>>
>>>> --
>>>> Anthony Minessale II
>>>>
>>>> FreeSWITCH http://www.freeswitch.org/
>>>> ClueCon http://www.cluecon.com/
>>>>
>>>> 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>
>>>> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org>
>>>> pstn:213-799-1400
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> 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/
>>
>> 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>
>> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org>
>> pstn:213-799-1400
>>
>>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>


_______________________________________________
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/

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400
_______________________________________________
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



_______________________________________________
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/

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400