[Freeswitch-users] Set SIP INFO Content-Type with uuid_send_info API command
Michael Jerris
mike at jerris.com
Mon Oct 6 18:27:12 MSD 2014
https://stash.freeswitch.org/projects/FS/repos/freeswitch/browse/docs/SubmittingPatches
On Oct 6, 2014, at 10:14 AM, Markus von Arx <mkvonarx at gmail.com> wrote:
> If there is not "official" way in the existing source base, I'd have a small patch for mod_commands.c that implements what I need. See attachment.
> Markus
>
> 2014-10-06 15:31 GMT+02:00 Markus von Arx <mkvonarx at gmail.com>:
> Hi
>
> Can someone explain to me how I can pass the desired Content-Type to the API command uuid_send_info?
>
> I looked into the source code and found that
> - the command parser in mod_commands.c does only copy the content itself into the argument msg.string_array_arg[2],
> - but the code in mod_sofia.c looks into msg->string_array_arg[0] & msg->string_array_arg[1] for the Content-Type and always uses "freeswitch/data" because those two fields are always NULL.
>
> Any idea how to fill in msg->string_array_arg[1] & [2] ?
>
> Btw: the inline documentation for uuid_send_info is incomplete: it's missing the content payload argument and should say "<uuid> <message>" like uuid_send_message does.
>
> Thanks, Markus
>
>
>
> <uuid_send_info_mime_type_patch.patch>_________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141006/296bb8c3/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list