[Freeswitch-users] Correlate SendMsg reply with request in async mode

Anthony Minessale anthony.minessale at gmail.com
Wed May 8 21:16:56 MSD 2013


Yes this is fine as well.



On Wed, May 8, 2013 at 3:55 AM, mbo <mbodbg at gmx.net> wrote:

> ok I see, I'll and update documentation in the wiki. I posted an other
> solution we found. Can you comment it?
>
> ...
>
> We did some more tests an found out that if we add a Event-UUID to the
> sendmsg command like:
>
> sendmsg
> Event-UUID: 5bf340cd-7a7e-4965-9285-95ed365ed242
> call-command: execute
> execute-app-name: speak
> execute-app-arg: flite|slt|One
>
> We will get back this Event-UUID as Application-UUID in the
> CHANNEL_EXECUTE and CHANNEL_EXECUTE_COMPLETE events, so we are able to
> match it. In our tests this works fine, however I'm not sure if this
> approach is reliable and has any side effects. May I ask for your opinion
> of this approach?
>
> ...
>
> Thanks
>
> Markus
>
>
>
> Am 07.05.2013 um 17:35 schrieb Anthony Minessale <
> anthony.minessale at gmail.com>:
>
> This is the first time the event is used.  I changed to code in real time
> for you based on your request so you will be the one doing the
> documentation.  That's how open source works.
>
> The point once you update and compile master, your actual sendmsg event
> that you send will now be sent back to you once it is processed with every
> header you supplied as well as the caller profile data from the channel you
> sent it on.  This was what you asked for.
>
>
>
> On Sun, May 5, 2013 at 1:58 PM, mbo <mbodbg at gmx.net> wrote:
>
>> Thanks for the answers. There is hardly any documentation of the
>> PRIVATE_COMMAND event, can you give me some more details on it. What is it
>> good for, when is it send, etc?
>>
>> If it is just an additional event including the channel data, where is
>> the benefit using this event instead of set a custom variable first and
>> then check this variable in the ChannelExecuteComplete event? Or am I
>> missing something and it is possible to set a custom channel variable
>> during SendMsg?
>>
>> Thanks
>>
>> Markus
>>
>>
>> Am 03.05.2013 um 21:13 schrieb Anthony Minessale <
>> anthony.minessale at gmail.com>:
>>
>> Compromise:
>>
>> Update to latest and sub to the "private_command" event, you should get
>> back you own event with channel data merged in.
>>
>>
>>
>> On Fri, May 3, 2013 at 12:27 PM, Michael Collins <msc at freeswitch.org>wrote:
>>
>>>
>>>
>>> On Fri, May 3, 2013 at 2:19 AM, mbo <mbodbg at gmx.net> wrote:
>>>
>>>> I'm referring to a two years old bug report
>>>> http://jira.freeswitch.org/browse/FS-1309.
>>>>
>>>> Is it in the meantime somehow possible to map reply to SendMsg in asyc
>>>> mode? I'm wondering why this ticket has been closed as "Won't fix", in my
>>>> opinion is an essential feature to handle events properly.
>>>>
>>>> If not, I want to implement the work around described in the ticket, to
>>>> set a channel variable in a round trip before executing the real command.
>>>> Do I need to wait for the ChannelExecuteComplete event for the Set command,
>>>> or can I send my "real" command right away after the Set command?
>>>>
>>> To be safe you should verify that the set app actually ran before you
>>> implement the workaround.
>>> -MC
>>>
>>> --
>>> Michael S Collins
>>> Twitter: @mercutioviz
>>> http://www.FreeSWITCH.org <http://www.freeswitch.org/>
>>> http://www.ClueCon.com <http://www.cluecon.com/>
>>> http://www.OSTAG.org <http://www.ostag.org/>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 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
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130508/4c208ea3/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list