[Spce-user] R: R: R: International Call, problem with 00 on prefix
Daniel Grotti
dgrotti at sipwise.com
Wed Nov 14 10:23:18 EST 2018
Hi,
I suggest to
*1. ADD in DOMAIN LEVEL rewrite for MOBILE to E164: INBOUND RR for
CALLEE**:*
^(00|\+)([1-9][0-9]+)$ -> \2 -> International to E.164
^0([1-9][0-9]+)$ -> ${caller_cc}0\1 -> National to E.164
***^3([1-9][0-9]+)$ -> 39\1 -> Mobile National to E.164*
*2. in the peer OUTBOUND RR for CALLEE you will LEAVE as is it as the 39
338 1234 should match the first rule, and mobile will go out as 338 1234:*
^39([0-9][0-9]+)$ -> \1 -> E.164 to Italia National
^([1-9][0-9]+)$ -> 00\1 -> E.164 to International
Now, if a local user call 33812345, you'll have:
1. 33812345 -> 3933812345 (matching the 3rd rule in 1)
2. call to PSTN
3. 3933812345 -> 33812345 (matching the 1st rule in 2)
If a local user call +3933812345|003933812345, you will have:
1. +3933812345 -> 3933812345 (matching the 1st rule in 1)
2. call to PSTN
3. 3933812345 -> 33812345 (matching the 1st rule in 2)
Hope it's clear now.
--
Daniel Grotti
Head of Customer Support
Sipwise GmbH, Campus 21/Europaring F15
AT-2345 Brunn am Gebirge
Office: +43(0)130120332
Email: dgrotti at sipwise.com
Website: https://www.sipwise.com
On 11/14/18 3:53 PM, Alessandro Romano wrote:
>
> Hi Daniel, excuse me but i’m very confused
>
> At the moment i have
>
> DOMAIN LEVEL
>
> INBOUND RR FOR CALLER
>
> ^(00|\+)([1-9][0-9]+)$ -> \1 -> International to
> E.164
>
> ^0([1-9][0-9]+)$ -> ${caller_cc}0\1
> -> National to E.164
>
> INBOUND RR FOR CALEE
>
> ^(00|\+)([1-9][0-9]+)$ -> \2 -> International to E.164
>
> ^0([1-9][0-9]+)$ -> ${caller_cc}0\1 -> National to
> E.164
>
> OUTBOUND RR FOR CALLER
>
> ^39([0-9][0-9]+)$ -> \1 -> E.164 to Italia National
>
> ^([1-9][0-9]+)$ -> 00\1 -> E.164 to International
>
> OUTBOUD ROUTE FOR CALLEE
>
> NOTHING
>
> PEER LEVEL
>
> INBOUND RR FROM CALLER
>
> ^(00|\+)([1-9][0-9]+)$ -> \1 -> International to E.164
>
> ^0([1-9][0-9]+)$ -> ${caller_cc}0\1 -> National to
> E.164
>
> INBOUND RR FOR CALEE
>
> ^(00|\+)([1-9][0-9]+)$ -> \2 -> International to E.164
>
> ^0([1-9][0-9]+)$ -> ${caller_cc}0\1 -> National to
> E.164
>
> OUTBOUND ROUTE FOR CALLER
>
> ^39([0-9][0-9]+)$ -> \1 -> E.164 to Italia National
>
> ^([1-9][0-9]+)$ -> 00\1 -> E.164 to International
>
> OUTBOUND RR FOR CALEE
>
> ^39([0-9][0-9]+)$ -> \1 -> E.164 to Italia National
>
> ^([1-9][0-9]+)$ -> 00\1 -> E.164 to International
>
> What i need to do ?
>
> Thnks
>
> *Da:*Spce-user <spce-user-bounces at lists.sipwise.com> *Per conto di
> *Daniel Grotti
> *Inviato:* mercoledì 14 novembre 2018 15.14
> *A:* spce-user at lists.sipwise.com
> *Oggetto:* Re: [Spce-user] R: R: International Call, problem with 00
> on prefix
>
> Yes of course, because mobile number without CC prefix is matching the
> rule:
> ^([1-9][0-9]+)$
>
>
> But this is because you didn't probably rewrite in the INBOUND RR for
> callee the mobile to E164.
>
> so you should
>
> 1. rewrite also MOBILE to E164 in your domain INBOUND RR for CALLEE
> (338 12345 --> 39338 12345 o +39 338 12345 --> 39338 12345 )
> 2. in the peer OUTBOUND RR for call you will then have:
>
>
> ^39([0-9][0-9]+)$
>
> \1
>
> E.164 to Italia National FIXED
>
> ^39(3[1-9][0-9]+)$
>
> \1
>
> E.164 to Italian MOBILE
>
>
> So the call to mobile will go out as 338 12345 ( 39 338 12345 --> 338
> 12345).
> Otherwise you can send out the call to mobile in international format
> and have the OUTBOUND RR for callee as:
>
> ^(393[1-9][0-9]+)$
>
> +\1
>
> E.164 to Italian MOBILE
>
>
>
>
>
>
>
> --
> Daniel Grotti
> Head of Customer Support
> Sipwise GmbH, Campus 21/Europaring F15
> AT-2345 Brunn am Gebirge
> Office: +43(0)130120332
> Email:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
> Website:https://www.sipwise.com
>
> On 11/14/18 2:46 PM, Alessandro Romano wrote:
>
> Hi daniel,
>
> yes the roule is in the first position
>
> and it works for local numbers the problemi s that the mobile
> number start with 3 and if they are called without 0039 sipwise
> add the 00 end it is not correct
>
> when i call a italian fixed number with or without 0039 it works
>
> when i call a italian mobile number with 0039 it works
>
> when i call a italian mobile number wirhout 0039 spce add 00 and
> it not works
>
> when i call an international number it works
>
> BR
>
> *Da:*Spce-user <spce-user-bounces at lists.sipwise.com>
> <mailto:spce-user-bounces at lists.sipwise.com> *Per conto di *Daniel
> Grotti
> *Inviato:* mercoledì 14 novembre 2018 14.34
> *A:* spce-user at lists.sipwise.com <mailto:spce-user at lists.sipwise.com>
> *Oggetto:* Re: [Spce-user] R: International Call, problem with 00
> on prefix
>
> Alessandro,
> be sure that rule
>
> ^39([0-9][0-9]+)$
>
>
> comes FIRST in the list, before rule
>
> ^([1-9][0-9]+)$
>
>
> otherwise 39 will match the ^([1-9][0-9]+)$ and call will be
> prefixed by 00.
>
>
>
>
> --
>
> Daniel Grotti
>
> Head of Customer Support
>
> Sipwise GmbH, Campus 21/Europaring F15
>
> AT-2345 Brunn am Gebirge
>
>
>
> Office: +43(0)130120332
>
> Email:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
>
> Website:https://www.sipwise.com
>
> On 11/14/18 2:14 PM, Alessandro Romano wrote:
>
> Hi Daniel,
>
> i’ve created the rewrite roules for outboud calls for calee
>
> ^39([0-9][0-9]+)$
>
> \1
>
> E.164 to Italia National
>
> yes
>
> ^([1-9][0-9]+)$
>
> 00\1
>
> E.164 to International
>
> Yes
>
> Now i’ve the 00 on the internationall calls, but i’ve a
> problem with italian mobile phones because 00 are added also
> in italian mobile phone numbers
>
> Can you help me to write rewrite roules in correct way
>
> BR
>
> *Da:*Spce-user <spce-user-bounces at lists.sipwise.com>
> <mailto:spce-user-bounces at lists.sipwise.com> *Per conto di
> *Daniel Grotti
> *Inviato:* mercoledì 14 novembre 2018 10.41
> *A:* spce-user at lists.sipwise.com
> <mailto:spce-user at lists.sipwise.com>
> *Oggetto:* Re: [Spce-user] International Call, problem with 00
> on prefix
>
> Hi Alessandro,
> The URI I see in the INVITE is not international format:
> INVITE sip:330183770101 at 185.29.248.37:5060;transport=udp
> <mailto:sip:330183770101 at 185.29.248.37:5060;transport=udp> SIP/2.0
>
> It looks like a E.164 format. The leading 00 or + is missing
> (if you were calling +33xxx number).
>
> BTW, what is exactly the problem. I don't get that. The trace
> is partial, it shows a 183 and some PRACKs.
>
> Cheers,
>
>
>
>
> --
>
> Daniel Grotti
>
> Head of Customer Support
>
> Sipwise GmbH, Campus 21/Europaring F15
>
> AT-2345 Brunn am Gebirge
>
>
>
> Office: +43(0)130120332
>
> Email:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
>
> Website:https://www.sipwise.com
>
> On 11/14/18 10:33 AM, Alessandro Romano wrote:
>
> Dear All
>
> When i make international calls
>
> I retreive:
>
> Nov 14 10:31:49 c5 proxy[1521]: NOTICE: <script>:
> NAT-Reply - S=100 - Connecting M=INVITE
> IP=91.214.72.26:58742 (127.0.0.1:5080)
> ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI UA='<null>'
>
> Nov 14 10:31:50 c5 proxy[1525]: NOTICE: <script>:
> NAT-Reply - S=183 - Session Progress M=INVITE
> IP=91.214.72.26:58742 (127.0.0.1:5080)
> ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI UA='<null>'
>
> Nov 14 10:31:50 c5 proxy[1523]: NOTICE: <script>: New
> request on proxy - M=PRACK R=sip:127.0.0.1:5080;prxroute=1
> F=sip:08118440101 at sip.positivonet.it
> <mailto:F=sip:08118440101 at sip.positivonet.it>
> T=sip:00330183770101 at sip.positivonet.it
> <mailto:T=sip:00330183770101 at sip.positivonet.it>
> IP=91.214.72.26:58742 (127.0.0.1:5060)
> ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI UA='Bria
> iOS release 3.9.7 stamp 38887.38893'
>
> Nov 14 10:31:50 c5 proxy[1529]: NOTICE: <script>:
> NAT-Reply - S=200 - OK M=PRACK IP=91.214.72.26:58742
> (127.0.0.1:5080)
> ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI UA='<null>'
>
> Nov 14 10:31:50 c5 proxy[1520]: NOTICE: <script>:
> NAT-Reply - S=183 - Session Progress M=INVITE
> IP=91.214.72.26:58742 (127.0.0.1:5080)
> ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI UA='<null>'
>
> Nov 14 10:31:50 c5 proxy[1527]: NOTICE: <script>: New
> request on proxy - M=PRACK R=sip:127.0.0.1:5080;prxroute=1
> F=sip:08118440101 at sip.positivonet.it
> <mailto:F=sip:08118440101 at sip.positivonet.it>
> T=sip:00330183770101 at sip.positivonet.it
> <mailto:T=sip:00330183770101 at sip.positivonet.it>
> IP=91.214.72.26:58742 (127.0.0.1:5060)
> ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI UA='Bria
> iOS release 3.9.7 stamp 38887.38893'
>
> Nov 14 10:31:50 c5 proxy[1533]: NOTICE: <script>:
> NAT-Reply - S=200 - OK M=PRACK IP=91.214.72.26:58742
> (127.0.0.1:5080)
> ID=MmMyMmNkN2QxMGRlNTFmMDgxNmM3OGJkNjA4MjRlOGI UA='<null>'
>
> But to my sbc used as peer the call is without 00 to the
> international prefix as you can see in the pcap file,
> captured on sbc
>
> BR
>
>
>
>
>
> _______________________________________________
>
> Spce-user mailing list
>
> Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>
> https://lists.sipwise.com/listinfo/spce-user
>
>
>
>
> _______________________________________________
>
> Spce-user mailing list
>
> Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>
> https://lists.sipwise.com/listinfo/spce-user
>
>
>
> _______________________________________________
>
> Spce-user mailing list
>
> Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>
> https://lists.sipwise.com/listinfo/spce-user
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20181114/04ea78d7/attachment.html>
More information about the Spce-user
mailing list