[OpenSIPS-Users] Stir ans Shaken - number is not in E.164 format

Marcin Groszek marcin at voipplus.net
Wed Sep 6 12:21:48 UTC 2023


Your number is to long

E.164 is + [1-9]  and  {1-14} digits for total of 15 digits NOT starting 
with 0

On 9/6/2023 7:16 AM, Mickael Hubert wrote:
> Hi all,
> I have an issue, when I verify a call with no E164 format (dest: 
> +3310200123456789)
>
> _*logs:*_
> 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
> 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)
>
> _*My configuration:*_
> # ----------------- module  stir_shaken ---------------
> loadmodule "stir_shaken.so"
> #----------- stir_shaken params -----------------
> modparam("stir_shaken", "ca_list", "/usr/local/etc/opensips/man_ca.pem")
> modparam("stir_shaken", "require_date_hdr", 0)
> modparam("stir_shaken", "verify_date_freshness", 60)
>
> According to the doc e164_strict_mode is disabled by default, so I 
> don't know why it doesn't work.
>
> _*source of code: *_
>         if (_is_e164(num, e164_strict_mode) == -1) {
>                 LM_GEN(log_lev, "number is not in E.164 format: 
> %.*s\n", num->len, num->s);
>                 return -1;
>         }
>
>
> Do you have any help for me please ? I have to validate this format of 
> dest number.
>
> Thanks in advance
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-- 
Best Regards:
Marcin Groszek
Business Phone Service
https://www.voipplus.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230906/2456ffce/attachment.html>


More information about the Users mailing list