<div dir="ltr">I&#39;ve added a proposed patch here, that might solve what you&#39;re after: <a href="http://jira.freeswitch.org/browse/FS-6075">http://jira.freeswitch.org/browse/FS-6075</a>.<div><br></div><div>Please note that my patch has a small error, it sets the same variable twice, read through the comments if you want to test it.</div>
<div><br></div><div>Would this do what you are requesting?</div><div><br></div><div>/Peter</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/20 Dahlberg, David <span dir="ltr">&lt;<a href="mailto:david.dahlberg@fkie.fraunhofer.de" target="_blank">david.dahlberg@fkie.fraunhofer.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Montag, den 13.01.2014, 10:47 +0100 schrieb Karsten Horsmann:<br>
&gt; Hello,<br>
&gt;<br>
&gt; it will ONLY work if you X- prefix your self SIP-Headers. Non-standard SIP<br>
&gt; headers should be preceded with an X-.<br>
<br>
Both sentences are not true. &quot;X-&quot; header prefixes are now depricated by<br>
the IETF (RFC 6648/BCP 178).<br>
<br>
And you indeed CAN set non-X-headers with the FS and mod_sofia. The only<br>
problem seem to be, that<br>
<br>
a) headers set by api calls like hangup() (e.g. &quot;Reason:&quot; with namespace<br>
   &quot;Q.931&quot; etc.) will be overwritten and<br>
b) you cannot access those variables, on incoming calls (i.e. if you<br>
   have not set them on your own).<br>
<br>
The only limitation seems to be in mod_sofia (not in Sofia SIP as the<br>
Wiki claims). I do not have access to the git right now, but if I<br>
remember correctly, Sofia distinguishes between &quot;known headers&quot;,<br>
including &quot;x-headers&quot; and &quot;unknown headers&quot; which are saved in a<br>
different struct. Mod_sofia already contains all the necessary functions<br>
to retrieve &quot;unknown headers&quot; as the module needs some of them itself.<br>
But IIRC the according functions are only ever invoked with constant<br>
strings, so there is definitely no easy way of reading them. Writing is<br>
possible though as I previously mentioned.<br>
<br>
Regards<br>
        David<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
David Dahlberg<br>
<br>
Fraunhofer FKIE, Dept. Communication Systems (KOM) | Tel: +49-228-9435-845<br>
Fraunhoferstr. 20, 53343 Wachtberg, Germany        | Fax: +49-228-856277<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>