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 <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> > 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 <
> > > > [EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >> try escaping the $ with /$
> > > >>
> > > >>
> > > >> On Thu, Apr 10, 2008 at 2:21 PM, Tamas Cseke <
> > > [EMAIL PROTECTED]>
> > > >> 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > <[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > >
> > > >>>> GTALK/JABBER/PAYPAL:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > <[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > >
> > > >>>> IRC: irc.freenode.net #freeswitch
> > > >>>>
> > > >>>> FreeSWITCH Developer Conference
> > > >>>> sip:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > <[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > >
> > > >>>> iax:[EMAIL PROTECTED]/888
> > > >>>> googletalk:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > <[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > >
> > > >>>> pstn:213-799-1400
> > > >>>> _______________________________________________
> > > >>>> Freeswitch-users mailing list
> > > >>>> [email protected]
> > > >>>> 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
> > > >>> [email protected]
> > > >>> 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:[EMAIL PROTECTED]<[EMAIL PROTECTED]><
> > > [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > >
> > > >> GTALK/JABBER/PAYPAL:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > <[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > >
> > > >> IRC: irc.freenode.net #freeswitch
> > > >>
> > > >> FreeSWITCH Developer Conference
> > > >> sip:[EMAIL PROTECTED]<[EMAIL PROTECTED]><
> > > [EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > >
> > > >> iax:[EMAIL PROTECTED]/888
> > > >> googletalk:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > <[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > >
> > > >> pstn:213-799-1400
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > ------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > Freeswitch-users mailing list
> > > > [email protected]
> > > > 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
> > > [email protected]
> > > 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:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
> > GTALK/JABBER/PAYPAL:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >  IRC: irc.freenode.net #freeswitch
> >
> > FreeSWITCH Developer Conference
> > sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
> > iax:[EMAIL PROTECTED]/888
> > googletalk:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > pstn:213-799-1400
> > _______________________________________________
> > Freeswitch-users mailing list
> > [email protected]
> > 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
> [email protected]
> 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:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
GTALK/JABBER/PAYPAL:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
iax:[EMAIL PROTECTED]/888
googletalk:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
pstn:213-799-1400
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to