<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Sasmita,<br>
<br>
Of course it fixes only the first contact - afterall the function
is called fix_contact() and not fix_contactS() <br>
<br>
But please ignore me, this was a silly joke :D..<br>
<br>
Yes, it seems that fix_contact() is limited at handling the first
only. But you can use the fix_nated_contact() function from
nathelper module, which handles all contacts.<br>
<br>
Regards<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
<div class="moz-cite-prefix">On 01/31/2018 02:23 PM, Sasmita Panda
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALf-Q45q3rYJmoBsVU6cV-3a4OMZH9XVQWVhZic5m88+_7_RPg@mail.gmail.com">
<div dir="ltr">Hi All ,
<div><br>
</div>
<div> I am using opensips-1.11 and trying to fix contact
in the proxy before saving in DB . This is the bellow code
for contact fix .</div>
<div><br>
</div>
<div>
<div>if (client_nat_test("1")) {</div>
<div> fix_contact();</div>
<div> };</div>
<div><br>
</div>
<div> As for my observation , when I am sending multiple
contact in a single REGISTER message , Its only updating the
first contact and wont update the rest . </div>
<div><br>
</div>
<div> Just wanted to know why this is happening . Every
contact of mine in the REGISTER message have private IP but
one get updated and rest remain same .</div>
<div><br>
</div>
<div>Please do help me . Thanks in advance .</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div class="gmail_signature">
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>