Thanks gents, and especially Anthony for that blazingly fast response. I will give both options a try, and probably include references in the IES docs. The concept of scoped variables is hidden fairly effectively. Regards, Ben Langfeld On 3 July 2012 06:34, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
I saw Tony added a new patch for you. However, even before this it was actually possible. For playback specific features, you could use playback local vars that will be sent back on PLAYBACK_START and PLAYBACK_STOP.
More info here; http://wiki.freeswitch.org/wiki/Mod_playback#Example_for_specific_playback_v...
For a more generic approach for CHANNEL_EXECUTE_COMPLETE, it is also possible to use scoped variables, as mentioned here; http://wiki.freeswitch.org/wiki/Channel_Variables#Scoped_Variables
The difference with these approaches is that you (on the ESL client side) can decide a unique value. Tonys patch cretes a UUID for you, and uses that on the CHANNEL_EXECUTE_COMPLETE event.
/Peter
________________________________________ Från: freeswitch-users-bounces@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] för Ben Langfeld [ben@langfeld.co.uk] Skickat: den 2 juli 2012 23:29 Till: FreeSWITCH Users Help Cc: Ben Klang Ämne: [Freeswitch-users] Inbound EventSocket anomoly
Gents,
I was hoping someone would be able to clear up what appears to be an obvious omission from IES.
If I execute the playback application on a channel via IES, I get an immediate response to indicate it was queued, and I then have to wait for either PLAYBACK_STOP or CHANNEL_EXECUTE_COMPLETE. The problem is, the response contains nothing to filter events by. The only link I have are the 'Application' and 'Application-Data' fields on the event, and there is no guarantee those are unique to an individual application execution. I would expect the immediate response to return a UUID which would be present on the related events.
Am I missing something, or is this actually a bug?
Example: https://gist.github.com/40f079ae2a079abe6393
Regards, Ben Langfeld
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
!DSPAM:4ff2113932762747716525!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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