<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Your number is to long</p>
<p>E.164 is + [1-9] and {1-14} digits for total of 15 digits NOT
starting with 0<br>
</p>
<div class="moz-cite-prefix">On 9/6/2023 7:16 AM, Mickael Hubert
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+fRVSU2PhdLiz0wYqvuODmtci5Bx0O_u4AJqyf9SSG5Ux3eHQ@mail.gmail.com">
<div dir="ltr">Hi all,<br>
<div>I have an issue, when I verify a call with no E164 format
(dest: +3310200123456789)</div>
<div><br>
</div>
<div><u><b>logs:</b></u></div>
<div>Sep 6 13:39:48 am-scr-001
/usr/local/sbin/opensips[622409]:
ERROR:stir_shaken:check_passport_phonenum: number is not in
E.164 format: 3310200123456789<br>
Sep 6 13:39:48 am-scr-001 /usr/local/sbin/opensips[622409]:
ERROR:stir_shaken:w_stir_verify: failed to validate
Destination number (3310200123456789)<br>
</div>
<div><br>
</div>
<div><u><b>My configuration:</b></u></div>
<div># ----------------- module stir_shaken ---------------<br>
loadmodule "stir_shaken.so"<br>
#----------- stir_shaken params -----------------<br>
modparam("stir_shaken", "ca_list",
"/usr/local/etc/opensips/man_ca.pem")<br>
modparam("stir_shaken", "require_date_hdr", 0)<br>
modparam("stir_shaken", "verify_date_freshness", 60)<br>
</div>
<div><br>
</div>
<div>According to the doc <span>e164_strict_mode is disabled by
default, so I don't know why it doesn't work.</span></div>
<div><span><br>
</span></div>
<div><span><u><b>source of code: </b></u></span></div>
<div> if (_is_e164(num, e164_strict_mode) == -1) {<br>
LM_GEN(log_lev, "number is not in E.164
format: %.*s\n", num->len, num->s);<br>
return -1;<br>
}<span><br>
</span></div>
<div><br>
</div>
<div><br>
</div>
<div>Do you have any help for me please ? I have to validate
this format of dest number.</div>
<div><br>
</div>
<div>Thanks in advance</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-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>
<pre class="moz-signature" cols="72">--
Best Regards:
Marcin Groszek
Business Phone Service
<a class="moz-txt-link-freetext" href="https://www.voipplus.net">https://www.voipplus.net</a></pre>
</body>
</html>