" /> Replace-Prefix not working as Expected on SIP Server - Genesys CTI User Forum

Author Topic: Replace-Prefix not working as Expected on SIP Server  (Read 3779 times)

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 18
Replace-Prefix not working as Expected on SIP Server
« on: July 22, 2009, 05:07:50 AM »
Advertisement
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

[size=8pt][color=green]SIPS:LOGBLOCK:BEGIN:REQUEST:[
 +++ CIFace::Request +++
    -- new invoke
    -- thisCall by party
   Parsed: RequestInitiateTransfer
   From: CTISIP_Client[516]/9
   Numbers: +<9002> -<[color=red]1755718009057584441[/color]>
   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
[/color][/size]

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

[color=green][size=8pt]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: [color=red]GetLongestPrefixMatch: selected prefix for number 1755718009057584441 is 17557180, gateway: 1755718[/color]
sipcs: +dialog [0:00@02acefb0]
[/size]
[/color]

And so...
[color=green]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:[color=red]01755718009057584441[/color]@1.75.57.1:5060>
Call-ID: E9251C4F-5873-472D-9B88-C08C3BC7243C-7@1.75.57.1
CSeq: 1 INVITE
[/color]

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

What am I forgetting?
[attachimg=1]
« Last Edit: July 22, 2009, 05:15:48 AM by victor »

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Replace-Prefix not working as Expected on SIP Server
« Reply #1 on: July 22, 2009, 11:30:40 AM »
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 :( 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.

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 18
Re: Replace-Prefix not working as Expected on SIP Server
« Reply #2 on: August 04, 2009, 07:00:49 AM »
No, I want to REPLACE one number with another... Used to work...

Offline Timur Karimov

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: Replace-Prefix not working as Expected on SIP Server
« Reply #3 on: August 04, 2009, 02:21:51 PM »
Hi there!

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

WBR Tim