[Freeswitch-users] Channel/session variables availability on execute_on_sip_reinvite

Florent Krieg flokrrr at gmail.com
Fri Jun 10 12:40:22 MSD 2016


Hello everybody,

My use case is pretty simple: I would like to react on SIP Re-INVITE
without sdp (empty body/content-length 0) so I have put an
execute_on_sip_reinvite instruction in my bridge string.

I have tried both to call the 'info' app and to call a custom shell system
script, passing the ${uuid} var and calling fs_cli uuid_dump $uuid, but
unfortunately it seems that when the SIP message reaches the application it
has been processed by the Sofia stack and I can't detect if there is an SDP
or not (using sdp variables, or any other actually).
Sometimes it gives me 0.0.0.0 as the remote_media_ip, sometimes it just
builds an SDP based on the previous one.
I have also tried to modify the re-INVITE by adding custom headers or
putting information in any
mandatory SIP header (like, say, Via), but these updates doesn't seem to be
available via any channel variable.

Is there any FS configuration parameter I could change to be able to access
this information?
Is there any other way I could do what I want?


Thanks in advance if you have any clue :)

Florent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160610/6aa2ef68/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list