<div dir="ltr">Thanks, Bogdan,<br><br>I have just upgraded Opensips from 1.9 to 2.1 and did not notice the new features related to uac_auth. I was looking a way to dynamically match the authentication credentials and I believe the following new parameters will solve the problem. <br><br>auth_realm_avp <br>auth_username_avp<br>auth_password_avp<br><div><br></div><div>Thanks,</div><div>Ping</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 10, 2015 at 2:01 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<tt>Hi Ping,<br>
<br>
You should not manually change the cseq in the messages as you
will break the whole dialog (the sequential requests).<br>
<br>
The 2.1 version does cseq increasing (with dialog consistency)
when performing uac_auth().<br>
<br>
Regards,<br>
</tt><span class="">
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</span><div><div class="h5"><div>On 05.06.2015 09:39, Ping Han wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Bogdan,
<div><br>
</div>
<div>Thanks for your reply. </div>
<div><br>
</div>
<div>I am trying to manipulate the CSeq header. </div>
<div><br>
</div>
<div>I have attached a packet trace. </div>
<div><br>
</div>
<div>In the example 10.216.235.38 sends a SIP Invite to
10.216.235.37 via Opensips. Then 10.216.235.37 challenges
authentication. In the second SIP Invite that contains the
authentication info (frame number 6), I have to increment the
CSeq header otherwise 10.216.235.37 does not like it. The new
CSeq is now set to 2. </div>
<div><br>
</div>
<div>If 10.216.235.37 is not able to accept the call, it returns
something other than "200 OK" (606 in this example). Now it is
the problem. Opensips sends back an ACK (frame number 12) with
CSeq set to 1 (not 2). 10.216.235.37 is expecting an ACK with
a CSeq set to 2. The consequence is that 10.216.235.37 keeps
sending 606 until times out. </div>
<div><br>
</div>
<div>The ACK is internally generated by Opensips and as you said
we can not manipulate it. I am wondering if there is any way
to solve this problem. </div>
<div><br>
</div>
<div>PS: 10.216.235.97 is the internal IP of Opensips server and
10.216.235.74 is the external IP. </div>
<div><br>
</div>
<div>Thanks,</div>
<div>Ping</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jun 4, 2015 at 12:55 AM,
Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Hi Ping,<br>
<br>
There is no access to internally generated ACK and
CANCEL requests.<br>
<br>
What are you trying to do ?<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div>
<div>On 03.06.2015 02:53, Ping Han wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hi,<br>
<br>
With Opensips is there a way to manipulate the SIP
headers of a messages that are generated locally
by Opensips. See the example below.<br>
<br>
--------------------------------------------<br>
ACK <a href="http://sip:0370103204@192.168.100.37:5060" target="_blank">sip:0370103204@192.168.100.37:5060</a>
SIP/2.0<br>
Via: SIP/2.0/UDP
192.168.100.74:5060;branch=z9hG4bK5094.3ee05403.1<br>
From:<<a href="mailto:sip%3A0370103401@xxxvoip.com" target="_blank">sip:0370103401@xxxvoip.com</a>>;tag=1740643510<br>
Call-ID: <a href="mailto:641613075@192.168.100.38" target="_blank">641613075@192.168.100.38</a><br>
To:<<a href="http://sip:0370103204@192.168.100.37:5060" target="_blank">sip:0370103204@192.168.100.37:5060</a>>;tag=1994410995-1432625097305;<br>
CSeq: 1 ACK<br>
Max-Forwards: 70<br>
User-Agent: OpenSIPS (2.1.0 (x86_64/linux))<br>
Content-Length: 0<br>
--------------------------------------------<br>
<br>
Thanks,<br>
Ping Han</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>