<div dir="ltr">Hello,<div><br></div><div>I don't think this is relevant to the Kamailio implementation.</div><div><br></div><div>The Kamailio implementation doesn't do anything with headers like Cookie: at all.  If an implementer of a Kamailio solution wants to do anything with the Cookie: header (or any other), they can do whatever they want using the Kamailio configuration file "programming language".</div>
<div><br></div><div>You can make use of all of the standard Kamailio header/parameter selects and transformations to help you do whatever you want with these headers.</div><div><br></div><div>Regards,</div><div><br></div>
<div>Peter</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 4 February 2014 06:55, Daniel Pocock <span dir="ltr"><<a href="mailto:daniel@pocock.com.au" target="_blank">daniel@pocock.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
<br>
Here is a full overview of the way we did this in reSIProcate / repro:<br>
<br>
  <a href="http://www.resiprocate.org/SIP_Over_WebSocket_Cookies" target="_blank">http://www.resiprocate.org/SIP_Over_WebSocket_Cookies</a><br>
<br>
Here is a PHP test script which sets the cookies:<br>
<br>
<a href="http://svn.resiprocate.org/viewsvn/resiprocate/main/repro/test/web/websocket-cookie-test.php?format=markup" target="_blank">http://svn.resiprocate.org/viewsvn/resiprocate/main/repro/test/web/websocket-cookie-test.php?format=markup</a><br>

<br>
JSCommunicator can set the extension header for passing supplementary<br>
data in config.js:<br>
<br>
<a href="https://github.com/opentelecoms-org/jscommunicator/blob/master/config-sample.js#L62" target="_blank">https://github.com/opentelecoms-org/jscommunicator/blob/master/config-sample.js#L62</a><br>
(look for extra_headers)<br>
<br>
To build a complete solution, you can simply combine the phone.shtml<br>
code from JSCommunicator and the PHP test code into a simple script.<br>
<br>
Notice we put a version number in the cookie.  If the Kamailio<br>
implementation of this evolves and adds extra fields, please increment<br>
the version number or use different cookie names to distinguish it from<br>
the reSIProcate cookie scheme.<br>
<br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><font face="courier new, monospace">Peter Dunkley</font></div><div><font face="courier new, monospace">Technical Director</font></div><div>
<font face="courier new, monospace">Crocodile RCS Ltd</font></div></div>
</div>