<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Igor,<br>
<br>
If you want to go into the B2B are, OpenSIPS can also do it, by
using the b2b modules - there is built-in support for UAC
authentication.<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>
</pre>
<div class="moz-cite-prefix">On 10/02/2017 10:45 AM, Igor Olhovskiy
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:881cb5fc-be1a-43fc-a4ed-10c55fe745de@Spark">
<title></title>
<div name="messageBodySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;">But
yes, maybe better idea to use SEMS as a intermediate layer</div>
<div name="messageSignatureSection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br>
Regards, Igor</div>
<div name="messageReplySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br>
On Sep 29, 2017, 1:37 PM +0300, Bogdan-Andrei Iancu
<a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a>, wrote:<br>
<blockquote type="cite" style="margin: 5px 5px; padding-left:
10px; border-left: thin solid #1abc9c;"><tt>Hi Igor,<br>
<br>
I do not want ruin your enthusiasm here, but that is not
enough, as there are messages generated by OpenSIPS, like
the ACK (for negative replies) and CANCEL requests - and
they will be build by OpenSIPS internals with the
un-modified cseq value.<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" moz-do-not-send="true">http://www.opensips-solutions.com</a>
</pre>
<div class="moz-cite-prefix">On 09/27/2017 02:49 PM, Igor
Olhovskiy wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5f46c000-97c0-4996-9faf-5fc993a66032@Spark"
style="margin: 5px 5px; padding-left: 10px; border-left:
thin solid #e67e22;">
<div name="messageBodySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont,
sans-serif;">Got it, thanks.
<div><br>
</div>
<div>Done with something alike</div>
<div>
<div><br>
</div>
<div>route[RESTORE_CSEQ] {</div>
<div> if (isflagset(AUTH_DONE) &&
is_avp_set("$avp(original_cseq)")) {</div>
<div> remove_hf("CSeq:");</div>
<div> append_hf("CSeq: $avp(original_cseq) $rm\r\n",
"Call-ID");</div>
<div> xlog("L_INFO", "[RESTORE_CSEQ]: [F=$fu R=$ru
D=$du M=$rm IP=($si:$sp $Ri:$Rp) ID=$ci CSeq:
$avp(original_cseq)"); </div>
<div> }</div>
<div>}</div>
<div><br>
</div>
<div>route[INCREASE_CSEQ] {</div>
<div> if (isflagset(AUTH_DONE) &&
is_avp_set("$avp(original_cseq)")) {</div>
<div> $var(inc_cseq) = $(avp(original_cseq){s.int}) +
1;</div>
<div> remove_hf("CSeq:");</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>
append_hf("CSeq: $var(inc_cseq) $rm\r\n", "Call-ID");</div>
<div> xlog("L_INFO", "[INCREASE_CSEQ]: [F=$fu R=$ru
D=$du M=$rm IP=($si:$sp $Ri:$Rp) ID=$ci CSeq:
$avp(original_cseq) -> $var(inc_cseq)"); </div>
<div> }</div>
<div>}</div>
</div>
<div><br>
</div>
<div>And than - put these routes in necessary places.</div>
</div>
<div name="messageSignatureSection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont,
sans-serif;"><br>
Regards, Igor</div>
<div name="messageReplySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont,
sans-serif;"><br>
On 26 сент. 2017 г., 19:51 +0300, Bogdan-Andrei Iancu <a
class="moz-txt-link-rfc2396E"
href="mailto:bogdan@opensips.org" moz-do-not-send="true"><bogdan@opensips.org></a>,
wrote:<br>
<blockquote type="cite" style="margin: 5px 5px;
padding-left: 10px; border-left: thin solid #3498db;"><tt>Hello
Igor,<br>
<br>
Right now OpenSIPs does not support increasing the
cseq during UAC authentication. At the end this is a
limitation of the a proxy versus a B2B :)<br>
<br>
Best 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" moz-do-not-send="true">http://www.opensips-solutions.com</a>
</pre>
<div class="moz-cite-prefix">On 09/25/2017 04:00 PM,
Igor Olhovskiy wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f47265df-fca8-4674-b14d-764db6e0d9bf@Spark"
style="margin: 5px 5px; padding-left: 10px;
border-left: thin solid #d35400;">
<div name="messageBodySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont,
sans-serif;">Hi!
<div><br>
</div>
<div>I’m trying to implement scenario, when OpenSIPS
would be a proxy for IP auth SIP side and
username/pass auth other side.</div>
<div>So, call scenario would be like</div>
<div><br>
</div>
<div>1. A -> INVITE -> OpenSIPS
B</div>
<div>2. A OpenSIPS ->
INVITE -> B</div>
<div>3. A OpenSIPS <-
401 <- B</div>
<div>4. A OpenSIPS ->
INVITE (auth) -> B</div>
<div>5. A OpenSIPS <-
200 <- B</div>
<div>6. A <- 200 <- OpenSIPS</div>
<div><br>
</div>
<div>But the problem is in CSeq. On step 4, when
sending INVITE with Auth CSeq should be changed
from original (usually incremented), but on step
6, when replying back to A, it should be original.</div>
<div><br>
</div>
<div>I didn’t found better solution, than to
manually manipulate with CSeq with append/remove
headers.</div>
<div>So, maybe there is more OpenSIPS - wise way of
doing this?</div>
</div>
<div name="messageSignatureSection" style="font-size:
14px; font-family: -apple-system,
BlinkMacSystemFont, sans-serif;"><br>
Regards, Igor</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</blockquote>
</div>
</blockquote>
<br>
</blockquote>
</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>