[Spce-user] R: REWRITE ROULES

Daniel Grotti dgrotti at sipwise.com
Mon Mar 11 10:51:55 EDT 2019


Hi,
in the peering's Rewrite Rules for Caller you have wrong rules, as well 
as in the RR for Callee.
As I said you **cannot** use ${caller_*} variable in peering's RR. 
That's a local variable fetching the subscriber's AC, or CC value 
configured in the subscriber's preferences. It does not have any meaning 
for the peer.

In this case, number get rewritten into003351402534 maybe because it is 
matching an old rewrite rule?

The matching one is the 3rd one below, but it is flagged as Enabled=no, 
so it should not match.
Have you try to restart "proxy" process ? Maybe kamailio memory was not 
updated and it is running with old rewrite rules.

In general, you should not rewrite the Caller number from the provider, 
as it is supposed to be in the proper format.

Please try to restar proxy and see if the caller get rewritten with 00 
again. If yes:

1. You didn't paste here the correct RR associated to this peer
2. You can try to enable debug level 2 on proxy, to see what peering's 
rewrite rule is matching




Inbound Rewrite Rules for Caller 
<https://sip.positivonet.it:1443/rewrite/3/rules?back=https%3A%2F%2Fsip.positivonet.it%3A1443%2Frewrite#collapse_icaller> 



	

*Match Pattern*

	

*Replacement Pattern*

	

*Description*

	

*Enabled*

	

	

^(00|\+)([1-9][0-9]+)$

	

\1

	

International to E.164

	

yes

	

	

^0([1-9][0-9]+)$

	

${caller_cc}0\1

	

National to E.164

	

yes

	

	

^([1-9][0-9]+)$

	

${caller_cc}${caller_ac}\1

	

Local to E.164

	

no





--
Daniel Grotti

Head of Customer Support                               Sipwise GmbH
e: dgrotti at sipwise.com                               Europaring F15
t: +43(0)130120332                          A-2345 Brunn Am Gebirge
w: www.sipwise.com          FN: 305595f      FG: LG Wiener Neustadt

On 3/11/19 3:34 PM, Alessandro Romano wrote:
>
> Hi is a call from pstn
>
> Here the ful log
>
> I’ve some problems understanding rewrite roules
>
> BR
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: New request on proxy 
> - M=INVITE R=sip:0899948210 at sip.positivonet.it;user=phone 
> F=sip:3351402534 at telecomitalia.it;user=phone 
> T=sip:0899948210 at sip.positivonet.it;user=phone IP=185.29.248.37:5060 
> (127.0.0.1:5060) 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Call from PSTN - 
> R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Inbound peering 
> group '1' matched, looking up peer host - 
> R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Selected peering 
> host id '1' as inbound peer - 
> R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Dialog managed, 
> lua_dlg_callid:[f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1] 
> - R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: User-Provided CLI 
> '3351402534' taken from From-User - 
> R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Network-Provided CLI 
> '3351402534' taken from From-User - 
> R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Setting 
> '3351402534 at telecomitalia.it' as initiating user-provided CLI - 
> R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Setting 
> '3351402534 at telecomitalia.it' as initiating network-provided CLI - 
> R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Rewriting called 
> party '0899948210' to '390899948210' - 
> R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Callee was aliased 
> with base '390899948210' - 
> R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Callee is local, 
> uuid='e17ad708-a7cb-4056-bb56-5824dde89e77' - 
> R=sip:0899948210 at sip.positivonet.it;user=phone 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Rewriting acc caller 
> party '3351402534' to '003351402534' - 
> R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Setting acc 
> source-leg for uuid '0': 
> '0|3351402534|185.29.248.37|3351402534|||0|||0|call|185.29.248.37|1552314807.625995||||||||||||003351402534||' 
> - R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Setting acc 
> destination-leg for uuid 'e17ad708-a7cb-4056-bb56-5824dde89e77': 
> '0|||37|0899948210|e17ad708-a7cb-4056-bb56-5824dde89e77|0899948210|sip.positivonet.it|390899948210|sip.positivonet.it|0||||||||||||0899948210||' 
> - R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Rewriting first 
> user-provided CLI '3351402534' to '003351402534' - 
> R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Rewriting first 
> network-provided CLI '3351402534' to '003351402534' - 
> R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Setting 
> caller_cli_userprov/caller_domain_userprov 
> '003351402534 at sip.positivonet.it' for upn - 
> R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Setting From to 
> '<sip:003351402534 at sip.positivonet.it>' - 
> R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Setting 
> caller_cli_netprov/caller_domain_netprov 
> '003351402534 at sip.positivonet.it' for npn - 
> R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Setting PAI to 
> '<sip:003351402534 at sip.positivonet.it>' - 
> R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Setting 
> P-Called-Party-ID '<sip:0899948210 at sip.positivonet.it>' - 
> R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Appending P-D-URI 
> 'sip:lb at 127.0.0.1;lr;socket=sip:31.7.144.145:5060' - 
> R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Forcing request via 
> B2BUA 'sip:127.0.0.1:5080' - R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> Mar 11 15:33:27 c5 proxy[1556]: NOTICE: <script>: Request leaving 
> server, D-URI='sip:127.0.0.1:5080' - 
> R=sip:0899948210 at 91.214.72.26:5060 
> ID=f515e00016f5-5c8671b7-3bdb3feb-10d956d8-1005 at 127.0.0.1 UA='TELES-SBC'
>
> *Da:*Spce-user <spce-user-bounces at lists.sipwise.com> *Per conto di 
> *Daniel Grotti
> *Inviato:* lunedì 11 marzo 2019 11.55
> *A:* spce-user at lists.sipwise.com
> *Oggetto:* Re: [Spce-user] REWRITE ROULES
>
> Hi,
> what call is that?
> Call FROM PSTN ? Call TO PSTN ?
> It would be better to paste the full proxy log, and not only a section.
>
> Also, please notice you *cannot* use ${caller_cc} and the other 
> variables in the Rewrite Rules for a PEER!
> Please check documentation for that.*
>
>
>
>
> *
>
> --
> Daniel Grotti
> Head of Customer Support                               Sipwise GmbH
> e:dgrotti at sipwise.com  <mailto:dgrotti at sipwise.com>                                Europaring F15
> t: +43(0)130120332                          A-2345 Brunn Am Gebirge
> w:www.sipwise.com  <http://www.sipwise.com>           FN: 305595f      FG: LG Wiener Neustadt
>
> On 3/11/19 11:48 AM, Alessandro Romano wrote:
>
>     Dear All,
>
>     i’m very confused on revrite roules
>
>     i’ve this situation
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Setting acc
>     destination-leg for uuid 'd4e8bc38-c34a-4c99-839a-b73c88093c24':
>     '0|||8|0899358191|d4e8bc38-c34a-4c99-839a-b73c88093c24|0899358191|sip.positivonet.it|390899358191|sip.positivonet.it|0||||||||||||0899358191||'
>     - R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Rewriting first
>     user-provided CLI '3351402534' to '003351402534' -
>     R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Rewriting first
>     network-provided CLI '3351402534' to '003351402534' -
>     R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Setting
>     caller_cli_userprov/caller_domain_userprov
>     '003351402534 at sip.positivonet.it
>     <mailto:003351402534 at sip.positivonet.it>' for upn -
>     R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Setting From to
>     '<sip:003351402534 at sip.positivonet.it>
>     <mailto:sip:003351402534 at sip.positivonet.it>' -
>     R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Setting
>     caller_cli_netprov/caller_domain_netprov
>     '003351402534 at sip.positivonet.it
>     <mailto:003351402534 at sip.positivonet.it>' for npn -
>     R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Setting PAI to
>     '<sip:003351402534 at sip.positivonet.it>
>     <mailto:sip:003351402534 at sip.positivonet.it>' -
>     R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Setting
>     P-Called-Party-ID '<sip:0899358191 at sip.positivonet.it>
>     <mailto:sip:0899358191 at sip.positivonet.it>' -
>     R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Appending
>     P-D-URI 'sip:lb at 127.0.0.1;lr;socket=sip:31.7.144.145:5060
>     <mailto:sip:lb at 127.0.0.1;lr;socket=sip:31.7.144.145:5060>' -
>     R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Forcing request
>     via B2BUA 'sip:127.0.0.1:5080' -
>     R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:55:54 c5 proxy[1561]: NOTICE: <script>: Request leaving
>     server, D-URI='sip:127.0.0.1:5080' -
>     R=sip:0899358191 at 91.214.72.26:5060
>     <mailto:R=sip:0899358191 at 91.214.72.26:5060>
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='TELES-SBC'
>
>     Mar 11 10:56:14 c5 proxy[1561]: NOTICE: <script>: New request on
>     proxy - M=ACK R=sip:127.0.0.1:5080;prxroute=1
>     F=sip:3351402534 at telecomitalia.it;user=phone
>     <mailto:F=sip:3351402534 at telecomitalia.it;user=phone>
>     T=sip:0899358191 at sip.positivonet.it;user=phone
>     <mailto:T=sip:0899358191 at sip.positivonet.it;user=phone>
>     IP=185.29.248.37:5060 (127.0.0.1:5060)
>     ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1
>     <mailto:ID=f515e00016f5-5c8630a9-bb6f630-2c2e8048-f7b at 127.0.0.1>
>     UA='<null>'
>
>     The from field is 003351402534 , must be 00393351402534
>
>     Current config
>
>     Rewrite roule on peering
>
>     Inbound Rewrite Rules for Caller
>     <https://sip.positivonet.it:1443/rewrite/3/rules?back=https%3A%2F%2Fsip.positivonet.it%3A1443%2Frewrite#collapse_icaller>
>
>
>
>     	
>
>     *Match Pattern*
>
>     	
>
>     *Replacement Pattern*
>
>     	
>
>     *Description*
>
>     	
>
>     *Enabled*
>
>     	
>
>     	
>
>     ^(00|\+)([1-9][0-9]+)$
>
>     	
>
>     \1
>
>     	
>
>     International to E.164
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^0([1-9][0-9]+)$
>
>     	
>
>     ${caller_cc}0\1
>
>     	
>
>     National to E.164
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^([1-9][0-9]+)$
>
>     	
>
>     ${caller_cc}${caller_ac}\1
>
>     	
>
>     Local to E.164
>
>     	
>
>     no
>
>     	
>
>     Inbound Rewrite Rules for Callee
>     <https://sip.positivonet.it:1443/rewrite/3/rules?back=https%3A%2F%2Fsip.positivonet.it%3A1443%2Frewrite#collapse_icallee>
>
>
>
>     	
>
>     *Match Pattern*
>
>     	
>
>     *Replacement Pattern*
>
>     	
>
>     *Description*
>
>     	
>
>     *Enabled*
>
>     	
>
>     	
>
>     ^(00|\+)([1-9][0-9]+)$
>
>     	
>
>     \2
>
>     	
>
>     International to E.164
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^0([1-9][0-9]+)$
>
>     	
>
>     ${caller_cc}390\1
>
>     	
>
>     National to E.164
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^([1-9][0-9]+)$
>
>     	
>
>     ${caller_cc}${caller_ac}\1
>
>     	
>
>     Local to E.164
>
>     	
>
>     no
>
>     	
>
>     	
>
>     	
>
>     	
>
>     	
>
>     	
>
>     Outbound Rewrite Rules for Caller
>     <https://sip.positivonet.it:1443/rewrite/3/rules?back=https%3A%2F%2Fsip.positivonet.it%3A1443%2Frewrite#collapse_ocaller>
>
>
>
>     	
>
>     *Match Pattern*
>
>     	
>
>     *Replacement Pattern*
>
>     	
>
>     *Description*
>
>     	
>
>     *Enabled*
>
>     	
>
>     	
>
>     ^39([0-9][0-9]+)$
>
>     	
>
>     \1
>
>     	
>
>     E.164 to Italia National
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^([1-9][0-9]+)$
>
>     	
>
>     00\1
>
>     	
>
>     E.164 to International
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     	
>
>     	
>
>     	
>
>     	
>
>     Outbound Rewrite Rules for Callee
>     <https://sip.positivonet.it:1443/rewrite/3/rules?back=https%3A%2F%2Fsip.positivonet.it%3A1443%2Frewrite#collapse_ocallee>
>
>
>
>     	
>
>     *Match Pattern*
>
>     	
>
>     *Replacement Pattern*
>
>     	
>
>     *Description*
>
>     	
>
>     *Enabled*
>
>     	
>
>     	
>
>     ^39([0-9][0-9]+)$
>
>     	
>
>     \1
>
>     	
>
>     E.164 to Italia National
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^39(3[1-9][0-9]+)$
>
>     	
>
>     \1
>
>     	
>
>     E.164 to Italian MOBILE
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^([1-9][0-9]+)$
>
>     	
>
>     00\1
>
>     	
>
>     E.164 to International
>
>     	
>
>     yes
>
>     	
>
>     Rewrite roule for domain
>
>     Inbound Rewrite Rules for Caller
>     <https://sip.positivonet.it:1443/rewrite/1/rules?back=https%3A%2F%2Fsip.positivonet.it%3A1443%2Frewrite#collapse_icaller>
>
>
>
>     	
>
>     *Match Pattern*
>
>     	
>
>     *Replacement Pattern*
>
>     	
>
>     *Description*
>
>     	
>
>     *Enabled*
>
>     	
>
>     	
>
>     ^(00|\+)([1-9][0-9]+)$
>
>     	
>
>     \1
>
>     	
>
>     International to E.164
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^0([1-9][0-9]+)$
>
>     	
>
>     ${caller_cc}0\1
>
>     	
>
>     National to E.164
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^([1-9][0-9]+)$
>
>     	
>
>     ${caller_cc}${caller_ac}\1
>
>     	
>
>     Local to E.164
>
>     	
>
>     no
>
>     	
>
>
>     	
>
>     *Match Pattern*
>
>     	
>
>     *Replacement Pattern*
>
>     	
>
>     *Description*
>
>     	
>
>     *Enabled*
>
>     	
>
>     	
>
>     ^(00|\+)([1-9][0-9]+)$
>
>     	
>
>     \2
>
>     	
>
>     International to E.164
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^0([1-9][0-9]+)$
>
>     	
>
>     ${caller_cc}0\1
>
>     	
>
>     National to E.164
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^3([1-9][0-9]+)$
>
>     	
>
>     ${caller_cc}3\1
>
>     	
>
>     National Mobile to E.164
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^([1-9][0-9]+)$
>
>     	
>
>     ${caller_cc}${caller_ac}\1
>
>     	
>
>     Local to E.164
>
>     	
>
>     no
>
>     	
>
>     Outbound Rewrite Rules for Caller
>     <https://sip.positivonet.it:1443/rewrite/1/rules?back=https%3A%2F%2Fsip.positivonet.it%3A1443%2Frewrite#collapse_ocaller>
>
>
>
>     	
>
>     *Match Pattern*
>
>     	
>
>     *Replacement Pattern*
>
>     	
>
>     *Description*
>
>     	
>
>     *Enabled*
>
>     	
>
>     	
>
>     ^39([0-9][0-9]+)$
>
>     	
>
>     \1
>
>     	
>
>     E.164 to Italia National
>
>     	
>
>     yes
>
>     	
>
>     	
>
>     ^([1-9][0-9]+)$
>
>     	
>
>     00\1
>
>     	
>
>     E.164 to International
>
>     	
>
>     yes
>
>     	
>
>
>
>     _______________________________________________
>
>     Spce-user mailing list
>
>     Spce-user at lists.sipwise.com  <mailto: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/pipermail/spce-user_lists.sipwise.com/attachments/20190311/d4d25057/attachment-0001.html>


More information about the Spce-user mailing list