<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>If you don't want the +, then comment that part of config and see
how it goes. Overall, I do not use those configs to comment from
my experience with them and what exactly that prefix operation is
supposed to help with.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 11.06.19 12:51, Woscek, Martin W.
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BYAPR09MB28085ED4F1AE6383A32CCF68A2ED0@BYAPR09MB2808.namprd09.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:Cambria;
panose-1:2 4 5 3 5 4 6 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle23
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">Daniel,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Actually,
the HSS is not returning the uri with the +. There are no
users int the HSS database with a public ID with a + so the
HSS returns the USER_UNKNOWN.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Looking at
the PCAP, the I-CSCF sends a diameter msg to the HSS asking
for the verification the public ID of:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Public-Identity:
<a href="sip:+alice@ims522.irisims.org"
moz-do-not-send="true">
sip:+alice@ims522.irisims.org</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">The diameter
msg from HSS is returning :<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">AVP:
Experimental-Result-Code(298) l=12 f=-M-
val=DIAMETER_ERROR_USER_UNKNOWN (5001)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Why do we
want the I-CSCF to add a + to all URI’s don’t start with a
+?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">The I-CSCF
is the module that is adding the +, assuming that we should
be able to included Kamailio.cfg for respective modules, is
there a directive or variable that I need to set?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Or do I
simply comment out that code?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Cambria",serif;color:windowtext">Martin
Woscek<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Cambria",serif;color:windowtext">The
MITRE Corp.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Cambria",serif;color:windowtext"><a
href="mailto:mwoscek@mitre.org" moz-do-not-send="true"><span
style="color:windowtext">mwoscek@mitre.org</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Cambria",serif;color:windowtext">Phone:
703-983-2650<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Cambria",serif;color:windowtext">FAX:
703-983-7142<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> Daniel-Constantin Mierla
<a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a>
<br>
<b>Sent:</b> Tuesday, June 11, 2019 6:22 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a>; Woscek, Martin W.
<a class="moz-txt-link-rfc2396E" href="mailto:mwoscek@mitre.org"><mwoscek@mitre.org></a><br>
<b>Subject:</b> [EXT] Re: [SR-Users] Kamailio 5.2.2
ICSCF changing sip to tel<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hello,<o:p></o:p></p>
<p>that prefix operation is done only if the r-uri username does
not have +. So if you HSS is returning the r-uri with +, then
all is ok, no other + is added.<o:p></o:p></p>
<p>On the other hand, I am not sure what is the error or the
issue you try to sort out. The error message is because of the
xlog(...) in the config.<o:p></o:p></p>
<p>Cheers,<br>
Daniel<o:p></o:p></p>
<div>
<p class="MsoNormal">On 10.06.19 16:17, Woscek, Martin W.
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello all,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The HSS is responding with 604 errors
when the I-CSCF checks the public identity of the caller.
PCAP attached.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">It looks like our I-CSCF is modifying the
sip uri’s to tel uri’s (e.164-like), referenced attached
PCAP:<o:p></o:p></p>
<p class="MsoNormal">in_uri=<a
href="sip:alice@ims522.irisims.org" moz-do-not-send="true">sip:alice@ims522.irisims.org</a>
<o:p></o:p></p>
<p class="MsoNormal">out_uri=sip:<span
style="background:yellow;mso-highlight:yellow">+</span><a
href="mailto:alice@ims522.irisims.org"
moz-do-not-send="true">alice@ims522.irisims.org</a><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">syslog output:<o:p></o:p></p>
<p class="MsoNormal">Jun 6 16:50:06 imskamailio
/usr/local/sbin/kamailio[14066]: ERROR: <script>: $ru
=>
<span style="background:yellow;mso-highlight:yellow"><a
href="sip:+alice@irisims.org" moz-do-not-send="true">sip:+alice@irisims.org</a></span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Looking at the default (out of the box)
Kamailio.cfg for I-CSCF the following script snipet is where
the modification to our sip URI is happening:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"># ------------------------- request
routing logic -------------------<o:p></o:p></p>
<p class="MsoNormal"># main routing logic<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">route{<o:p></o:p></p>
<p class="MsoNormal">#!ifdef WITH_DEBUG<o:p></o:p></p>
<p class="MsoNormal"> xlog("I-CSCF
>>>>>>>>>>>>>>>>>>>>
$rm $ru ($fu => $tu ($si:$sp) to $tu, $ci)\n");<o:p></o:p></p>
<p class="MsoNormal">#!endif<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><b> <span
style="background:yellow;mso-highlight:yellow">
if !($rU =~ "\+.*") {</span></b><o:p></o:p></p>
<p class="MsoNormal"><b><span
style="background:yellow;mso-highlight:yellow">
prefix("+");</span></b><o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Is there a I-CSCF setting directive we
missed?<o:p></o:p></p>
<p class="MsoNormal">Or should we simply comment the above?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Any advice is appreciated.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Martin Woscek<o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Kamailio (SER) - Users Mailing List<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a><o:p></o:p></pre>
<pre><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla -- <a href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
<pre><a href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
</body>
</html>