[Freeswitch-users] Scheduled Hangup Issue

Anthony Minessale anthony.minessale at gmail.com
Fri Apr 11 09:01:33 PDT 2008


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 at 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 at gmail.com> wrote:
> >
> >
> >> try escaping the $ with /$
> >>
> >>
> >> On Thu, Apr 10, 2008 at 2:21 PM, Tamas Cseke <cstomi.levlist at 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 at 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 at hotmail.com<MSN%3Aanthony_minessale at hotmail.com>
> <MSN%3Aanthony_minessale at hotmail.com<MSN%253Aanthony_minessale at hotmail.com>
> >
> >>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> <PAYPAL%3Aanthony.minessale at gmail.com<PAYPAL%253Aanthony.minessale at gmail.com>
> >
> >>>> IRC: irc.freenode.net #freeswitch
> >>>>
> >>>> FreeSWITCH Developer Conference
> >>>> sip:888 at conference.freeswitch.org<sip%3A888 at conference.freeswitch.org>
> <sip%3A888 at conference.freeswitch.org<sip%253A888 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>
> <googletalk%3Aconf%2B888 at conference.freeswitch.org<googletalk%253Aconf%252B888 at conference.freeswitch.org>
> >
> >>>> pstn:213-799-1400
> >>>> _______________________________________________
> >>>> 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
> >>>>
> >>>>
> >>>>
> >>> _______________________________________________
> >>> 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/
> >>
> >> AIM: anthm
> >> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com><
> MSN%3Aanthony_minessale at hotmail.com<MSN%253Aanthony_minessale at hotmail.com>
> >
> >> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> <PAYPAL%3Aanthony.minessale at gmail.com<PAYPAL%253Aanthony.minessale at gmail.com>
> >
> >> IRC: irc.freenode.net #freeswitch
> >>
> >> FreeSWITCH Developer Conference
> >> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org><
> sip%3A888 at conference.freeswitch.org<sip%253A888 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>
> <googletalk%3Aconf%2B888 at conference.freeswitch.org<googletalk%253Aconf%252B888 at conference.freeswitch.org>
> >
> >> pstn:213-799-1400
> >>
> >>
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > 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
> >
>
>
> _______________________________________________
> 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/

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/20080411/dccfbcac/attachment-0002.html 


More information about the FreeSWITCH-users mailing list