[Freeswitch-users] execute_on_ring executing on answer

Anthony Minessale anthony.minessale at gmail.com
Wed Feb 2 20:21:02 MSK 2011


app::arg is passed as-is into the function where it is automatically
parsed and queued async

so to equate to unix

"app arg" is like running it in the foreground
"app::arg" is like running in the background.

Either way the args will be parsed right.


On Wed, Feb 2, 2011 at 10:33 AM, François Delawarde
<fdelawarde at wirelessmundi.com> wrote:
> Thanks. It does not work, but just a bit of tweaking is necessary.
>
> For what I could read, when using the new "::", app and arg are not
> parsed from the variable before calling the
> switch_core_session_execute_application_async.
>
> François.
>
>
>
> On Tue, 2011-02-01 at 12:08 -0800, Michael Collins wrote:
>> I believe I have a new item to document on the wiki. :)
>> Francois, let us know if the latest git works for you.
>> Thanks,
>> MC
>>
>> On Tue, Feb 1, 2011 at 11:51 AM, Anthony Minessale
>> <anthony.minessale at gmail.com> wrote:
>>         I think I see why.
>>         The app is queued at the right time but not executed until
>>         media is active.
>>
>>         I have changed the code so now when you supply ::<arg> at the
>>         end of
>>         the app name it will be async and when you don't it will be
>>         executed
>>         immediately.
>>
>>
>>         On Tue, Feb 1, 2011 at 11:49 AM, François Delawarde
>>         <fdelawarde at wirelessmundi.com> wrote:
>>         > Since apparently noone reproduces this, it must be a
>>         configuration error
>>         > from my part.
>>         >
>>         > Any hints of where I could start looking to resolve this
>>         issue?
>>         >
>>         > Thanks,
>>         > François.
>>         >
>>         >
>>         > On Sat, 2011-01-29 at 14:10 +0100, François Delawarde wrote:
>>         >> Nice to know, but in that case the destination actually
>>         rings (180).
>>         >>
>>         >> See commented log:
>>         >> http://pastebin.freeswitch.org/15168
>>         >>
>>         >> François.
>>         >>
>>         >> On Fri, 2011-01-28 at 12:34 -0600, Anthony Minessale wrote:
>>         >> > if it never rings, answer will still trigger it.
>>         >> >
>>         >> >
>>         >> > On Fri, Jan 28, 2011 at 11:24 AM, Madovsky
>>         <infos at madovsky.org> wrote:
>>         >> > > ah ok, maybe a wiki update would be useful.
>>         >> > >
>>         >> > >
>>         >> > >
>>         >> > > ----- Original Message -----
>>         >> > > From: "François Delawarde"
>>         <fdelawarde at wirelessmundi.com>
>>         >> > > To: "FreeSWITCH Users Help"
>>         <freeswitch-users at lists.freeswitch.org>
>>         >> > > Sent: Friday, January 28, 2011 12:18 PM
>>         >> > > Subject: Re: [Freeswitch-users] execute_on_ring
>>         executing on answer
>>         >> > >
>>         >> > >
>>         >> > >> It's some cool feature made by Anthony that allows me
>>         to specify the
>>         >> > >> separator.
>>         >> > >>
>>         >> > >> in ^^:PCMA:G722
>>         >> > >> ^^: means the separator is now : instead of ,
>>         >> > >>
>>         >> > >> Useful in the [] or {} case because the coma is
>>         already used to separate
>>         >> > >> variables.
>>         >> > >>
>>         >> > >> François.
>>         >> > >>
>>         >> > >> On Fri, 2011-01-28 at 12:12 -0500, Madovsky wrote:
>>         >> > >>> what means the ^^ in your codec string ?
>>         >> > >>>
>>         >> > >>> ----- Original Message -----
>>         >> > >>> From: "François Delawarde"
>>         <fdelawarde at wirelessmundi.com>
>>         >> > >>> To: "FreeSWITCH Users Help"
>>         <freeswitch-users at lists.freeswitch.org>
>>         >> > >>> Sent: Friday, January 28, 2011 6:47 AM
>>         >> > >>> Subject: [Freeswitch-users] execute_on_ring executing
>>         on answer
>>         >> > >>>
>>         >> > >>>
>>         >> > >>> > Hi,
>>         >> > >>> >
>>         >> > >>> > Doing some testing with this morning's git (Fri Jan
>>         28) I just found
>>         >> > >>> > out
>>         >> > >>> > that the execute_on_ring application runs when the
>>         destination answers
>>         >> > >>> > instead of when it rings.
>>         >> > >>> >
>>         >> > >>> > So far, I can't seem to find out the reason. Could
>>         it be some
>>         >> > >>> > configuration issue?
>>         >> > >>> >
>>         >> > >>> >
>>         >> > >>> > Here a call log showing the phenomenon with a
>>         simple bridge:
>>         >> > >>> >
>>         >> > >>> > <action application="bridge"
>>         >> > >>> >
>>         data="[execute_on_ring=info,absolute_codec_string=^^:PCMA:G722]sofia/192.168.10.1/sip:2103 at 192.168.10.22:5060"/>
>>         >> > >>> >
>>         >> > >>> > http://pastebin.freeswitch.org/15168
>>         >> > >>> >
>>         >> > >>> >
>>         >> > >>> > Thanks,
>>         >> > >>> > François.
>>         >> > >>> >
>>         >> > >>> >
>>         >> > >>> > _______________________________________________
>>         >> > >>> > 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
>>         >> > >>
>>         >> > >>
>>         >> > >> _______________________________________________
>>         >> > >> 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
>>         >> > >
>>         >> >
>>         >> >
>>         >> >
>>         >>
>>         >>
>>         >> _______________________________________________
>>         >> 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/
>>         Twitter: http://twitter.com/FreeSWITCH_wire
>>
>>         AIM: anthm
>>         MSN:anthony_minessale at hotmail.com
>>         GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>         IRC: irc.freenode.net #freeswitch
>>
>>         FreeSWITCH Developer Conference
>>         sip:888 at conference.freeswitch.org
>>         googletalk:conf+888 at conference.freeswitch.org
>>         pstn:+19193869900
>>
>>
>>         _______________________________________________
>>         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
>
>
> _______________________________________________
> 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
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



More information about the FreeSWITCH-users mailing list