Make sure you set sock_hdr_name,<div><br></div><div><a href="http://www.opensips.org/html/docs/modules/devel/registrar.html#id250401">http://www.opensips.org/html/docs/modules/devel/registrar.html#id250401</a></div><div><br>

</div><div>Thank you.</div><div><br><br><div class="gmail_quote">On Mon, Feb 18, 2013 at 1:34 PM, microx <span dir="ltr">&lt;<a href="mailto:acmicrox@gmail.com" target="_blank">acmicrox@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
>From registrar module, I find that the save function with &quot;s&quot; flag is able<br>
to store the socket specified in the REGISTER<br>
request. I use insert_hf(&quot;Sock: udp:<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>&quot;) and<br>
insert_hf(&quot;udp:<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>&quot;) in the header<br>
of REGISTER requests. When a SIP server receives such REGISTER requests, it<br>
invokes the save(&quot;location&quot;, &quot;s&quot;)<br>
function. However, the SIP server still stores the received socket into the<br>
location table rather than &quot;udp:127.0.0.1&quot;.<br>
How can I let the SIP server store &quot;udp:127.0.0.1&quot; when receiving a REGISTER<br>
request?<br>
Please help me resolve this issue. Thanks so much in advance.<br>
<br>
Best wishes,<br>
Chen-Che<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Save-function-with-s-flag-tp7584789.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Save-function-with-s-flag-tp7584789.html</a><br>


Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Muhammad Shahzad</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">------------------------------</span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-----</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Rich Media Communication Specialist (CRMCS)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Certified Network Associate (CCNA)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Cell: +49 176 99 83 10 85</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">MSN: </span><a href="mailto:shari_786pk@hotmail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shari_786pk@hotmail.com</a><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Email: </span><a href="mailto:shaheryarkh@googlemail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shaheryarkh@googlemail.com</a>
</div>