Replace-Prefix not working as Expected on SIP Server

Hi, guys,

I am trying to get a replace-prefix to work, sand until now I have not had a problem with it, yet, suddenly, now it seems like it is not working anymore. Instead of replacing “A” with “B” it does “BA”. What gives? What am I forgetting?

Here is the original destination number: 1755718009057584441

SIPS:LOGBLOCK:BEGIN:REQUEST:[
+++ CIFace::Request +++
– new invoke
– thisCall by party
Parsed: RequestInitiateTransfer
From: CTISIP_Client[516]/9
Numbers: +<9002> -<1755718009057584441>
Calls: 02A7EAA0:1 none
Parties: 9002.02AC0378-02A7EAA0:1
none
Status: parsed:1 queued:0 sent:0 acked:0 preevent:0 event:0 context:1 transferred:0
-----
– validate
– state check: ok
SIPTS_IFace::QServe()01E8D408

And here is SIP Server is trying to determine its numbering:

sipcs: Number:[1755718009057584441] is not internal
== geo-location: crnt 00000000
1.75.57.18@group2 1755718@group2 Current: 1.75.57.18
sipcs: 09:05:51.328 Service 1755718 for location: group2
sipcs: Dialed number was 1755718009057584441, will replace prefix with 0
sipcs: GetLongestPrefixMatch: selected prefix for number 1755718009057584441 is 17557180, gateway: 1755718
sipcs: +dialog [0:00@02acefb0]

And so…
sipcs: 09:05:51.328 Sending [408,UDP] 767 bytes to 1.75.57.101:7067 >>>>>
INVITE sip:9002@1.75.57.101:7067 SIP/2.0
From: sip:9002@1.75.57.1:5060;tag=5E15EDB7-80B0-4C63-BA16-7F9510890468-4
To: sip:01755718009057584441@1.75.57.1:5060
Call-ID: E9251C4F-5873-472D-9B88-C08C3BC7243C-7@1.75.57.1
CSeq: 1 INVITE

Why is it not replacing 17557180 with 0 and instead adding “0” to the front resulting in 017557180?

What am I forgetting?
[attachimg=1]

Hi Vic,

It looks really strange as SIP Server writes to log that prefix will be replaced with 0 but it isn’t at the end :frowning: Isn’t there any other error message in the log?

Note - replacing prefix with 0 would lead to dialled number starting with two zeros “009057584441”. So such number should be treated as an international number (+ = 00). Is this what you want to achieve?

R.

2 Likes

No, I want to REPLACE one number with another… Used to work…

1 Like

Hi there!

Victor sorry for stupid question but what about version of u SIP server?

WBR Tim