[OpenSIPS-Users] stir_shaken_auth is not in E.164 format
Răzvan Crainea
razvan at opensips.org
Mon Jul 24 14:08:47 UTC 2023
Hi, Alain!
If I count correctly, your number is 16 digits long, whereas E.164 is
limited to 15 digits.
Best regards,
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
On 7/24/23 13:08, Alain Bieuzent wrote:
> Hi All,
>
> i'm facing a case where stir_shaken_auth module return -3 because called
> number would not be in E164 format.
>
> SIP INVITE looks like :
>
> INVITE sip:+331016024033XXYY at 10.101.180.124;user=phone
> <sip:+331016024033XXYY at 10.101.180.124;user=phone> SIP/2.0
>
> Via: SIP/2.0/UDP 10.101.180.177:5060;branch=z9hG4bK5e169d58
>
> Max-Forwards: 70
>
> From: "+33187644101" sip:+33187649999 at 10.101.180.177
> <sip:+33187649999 at 10.101.180.177>;tag=as7d1c5a30
>
> To: sip:+331016024033XXYY at 10.101.180.124;user=phone
> <sip:+331016024033XXYY at 10.101.180.124;user=phone>
>
> Contact: sip:+33187649999 at 10.101.180.177:5060
> <sip:+33187649999 at 10.101.180.177:5060>
>
> Opensips logs :
>
> Jul 24 11:49:34 lbsip-rtpe-test opensips[11670]:
> NOTICE:stir_shaken:check_passport_phonenum: number is not in E.164
> format: 331016024033XXYY
>
> Jul 24 11:49:34 lbsip-rtpe-test opensips[11670]:
> NOTICE:stir_shaken:w_stir_auth: failed to validate Destination number
> (331016024033XXYY)
>
> Jul 24 11:49:34 lbsip-rtpe-test opensips[11670]:
> DBG:core:comp_scriptvar: int 26: -3 / 0
>
> Jul 24 11:49:34 lbsip-rtpe-test opensips[11670]:
> DBG:core:comp_scriptvar: int 20: -3 / -1
>
> Jul 24 11:49:34 lbsip-rtpe-test opensips[11670]:
> 5c20b66446f77cfe0f475a1a43717552 at 10.101.180.177:5060|STIR_SHAKEN|FAILED
> <mailto:5c20b66446f77cfe0f475a1a43717552 at 10.101.180.177:5060|STIR_SHAKEN|FAILED>stir_shaken_auth() failed (rc=-3) call Reject
>
> the requested number contains the portability prefix and breaks down as
> follows:
>
> Country Code : +33
>
> Portability prefix : 10160
>
> Called number : 24033XXYY
>
> It tried with e164_strict_mode =0 and e164_strict_mode =1, with no effect.
>
> any help would be welcome.
>
> Thanks
>
> Alain
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list