Redirect a number in the proxy that comes from the gateway

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
shannons
Posts: 4
Joined: Tue Jan 27, 2015 4:01 pm
Location: Muncie, IN

Redirect a number in the proxy that comes from the gateway

Post by shannons »

1. Brekeke Product Name and Version: 3.3.8.1

2. Java version: 6.3

3. OS type and the version: Windows 2008 Server

4. UA (phone), gateway or other hardware/software involved: AudioCodes Mediant Gateway

5. Your problem:
My carrier, Time Warner, is supposed to be sending me 4 digit DNIS numbers to route in our proxy, but instead, they are stating that the original carrier is redirecting the number to a completely different number that doesn't belong to my client.

I need a way to take these numbers and send them to the PBX so that my client's contacts can get to the main auto-attendant for their PBX.

Here is my rule, but even though the To address indicates the phone number, this rule doesn't seem to be working. What am I doing wrong?

Here is what I am being sent from the gateway:

The number they are sending me is 9012911029, I need to send this call to 10.120.22.80 which is the PBX

From: "REVSPRING INC" <sip:2485677300@192.168.111.250>;tag=1c1474908693
To: <sip:9012911029@192.168.0.9;user=phone>;tag=1c579806674 this is the number that they are sending to the gateway instead of Steve’s correct number. We are rejecting it because it doesn’t belong to anything in our system.
Call-ID: 14749076172310201411339@192.168.111.250

Matching pattern:
request=^INVITE
To = sip:19012911029@
$registered = false


Deploy:
To:sip:19013820250@10.120.22.80
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

> The number they are sending me is 9012911029,

but you defined the dialplan as To=sip:19012911029@

do you need to have 1 in the front of the number?

it the carrier will put 1 or not, define To= as the following.

To = sip:1{0,1}9012911029@
shannons
Posts: 4
Joined: Tue Jan 27, 2015 4:01 pm
Location: Muncie, IN

Post by shannons »

Sorry, i should have said in my original post that it doesn't matter if I put a 1 or don't put a 1, when the calls come into my proxy, it is like they don't see this rule at all and don't follow it. Instead it skips down to another rule in the proxy that I have for sending calls to a long distance gateway. I need the calls to follow this rule so that I can send them to my PBX.
shannons
Posts: 4
Joined: Tue Jan 27, 2015 4:01 pm
Location: Muncie, IN

Post by shannons »

After doing a wireshark trace on my proxy, I found that the calls are coming in with the following header: (this name has been changed to protect the person calling)

From: "SHANNON STARK" <sip:7657517362@192.168.111.251>;tag=1c250958016

So, how could I modify my existing rule to take all calls from Shannon Stark at phone number 7657517362 from gateway 192.168.111.251 and send them to my PBX at 10.120.22.80?
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Since your rule intends to match the "To" header, you need to check it with Wireshark.

Or do you want to catch a call with "From" header now?
Post Reply