<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">If there is not &quot;official&quot; way in the existing source base, I&#39;d have a small patch for mod_commands.c that implements what I need. See attachment.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Markus</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-06 15:31 GMT+02:00 Markus von Arx <span dir="ltr">&lt;<a href="mailto:mkvonarx@gmail.com" target="_blank">mkvonarx@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">Hi</span><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">Can someone explain to me how I can pass the desired Content-Type to the API command uuid_send_info?</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><br></span></div><div class="gmail_default"><font face="arial, sans-serif"><span style="white-space:nowrap">I looked into the source code and found that</span></font></div><div class="gmail_default"><font face="arial, sans-serif"><span style="white-space:nowrap">- the command parser in mod_commands.c does only copy the content itself into the argument msg.string_array_arg[2],</span></font></div><div class="gmail_default"><font face="arial, sans-serif"><span style="white-space:nowrap">- but the code in mod_sofia.c looks into msg-&gt;string_array_arg[0] &amp; msg-&gt;string_array_arg[1] for the Content-Type and always uses &quot;freeswitch/data&quot; because those two fields are always NULL.</span></font></div><div class="gmail_default"><font face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div class="gmail_default"><font face="arial, sans-serif"><span style="white-space:nowrap">Any idea how to fill in msg-&gt;string_array_arg[1] &amp; [2] ?</span></font></div><div class="gmail_default"><font face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div class="gmail_default"><font face="arial, sans-serif"><span style="white-space:nowrap">Btw: the inline documentation for uuid_send_info is incomplete: it&#39;s missing the content payload argument and should say &quot;&lt;uuid&gt; &lt;message&gt;&quot; like uuid_send_message does.</span></font></div><div class="gmail_default"><font face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div class="gmail_default"><font face="arial, sans-serif"><span style="white-space:nowrap">Thanks, Markus</span></font></div><div class="gmail_default"><font face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap"><br></span></div></div>
</blockquote></div><br></div>