<div dir="ltr"><div>In the scenario that I do, I have to use transparent mode, because the authentication is done on Asterisk servers.</div><div>And for this issue, (using the same CSeq) the authentication process is not successful.</div><div>So, I have to manage the value of CSeq by Kamailio or have some update in Sems so that at least could relay the Cseq without changing.</div><div>What do you think?<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 19, 2021 at 5:09 PM Juha Heinanen <<a href="mailto:jh@tutpro.com">jh@tutpro.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Mojtaba writes:<br>
<br>
> Yes, I agree with you, This is an exception related to 401(Unauthorized)<br>
> and 407 (Proxy Authentication Required) responses.<br>
> In these situations, The CSeq header field value should be<br>
> incremented.<br>
<br>
SEMS SBC does support SIP authentication, but looks like not in<br>
transparent mode.  From Readme.sbc.txt:<br>
<br>
SIP authentication<br>
------------------<br>
The SBC can perform SIP digest authentication. To use SIP authentication, the<br>
uac_auth module needs to be loaded.<br>
<br>
SIP authentication is enabled by the following parameters, separately for both<br>
call legs:<br>
<br>
# Authentication for B leg (second/callee leg):<br>
   enable_auth       "yes" or "no"<br>
   auth_user         authentication user<br>
   auth_pwd          authentication password<br>
# Authentication for A leg (first/caller leg):<br>
   enable_aleg_auth  "yes" or "no"<br>
   auth_aleg_user    authentication user<br>
   auth_aleg_pwd     authentication password<br>
<br>
<br>
Note: The 'A' leg is always the first leg, the one from the caller. 'B' leg is<br>
the one to callee:<br>
 caller <--- A (first) leg ---> SEMS <--- B (second) leg ---> callee<br>
<br>
Example:<br>
  enable_auth=yes<br>
  auth_user=$H(P-Auth-B-User)<br>
  auth_pwd=$H(P-Auth-B-Pwd)<br>
  enable_aleg_auth=yes<br>
  auth_aleg_user=$H(P-Auth-A-User)<br>
  auth_aleg_pwd=$H(P-Auth-A-Pwd)<br>
<br>
Perhaps yeti-switch/sems-yeti can do it also in transparent mode.<br>
<br>
-- Juha<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">--Mojtaba Esfandiari.S</div>