Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Redirect a number in the proxy that comes from the gateway
Author Message
shannons
Brekeke Newbie


Joined: 27 Jan 2015
Posts: 4
Location: Muncie, IN

PostPosted: Tue Jan 27, 2015 7:23 pm    Post subject: Redirect a number in the proxy that comes from the gateway Reply with quote

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 Patterns
request = ^INVITE
To = sip:19012911029@
$registered = false


Deploy:
To:sip:19013820250@10.120.22.80
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 243

PostPosted: Tue Jan 27, 2015 9:19 pm    Post subject: Reply with quote

> 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@
Back to top
View user's profile
shannons
Brekeke Newbie


Joined: 27 Jan 2015
Posts: 4
Location: Muncie, IN

PostPosted: Wed Jan 28, 2015 6:38 am    Post subject: Reply with quote

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.
Back to top
View user's profile
shannons
Brekeke Newbie


Joined: 27 Jan 2015
Posts: 4
Location: Muncie, IN

PostPosted: Wed Jan 28, 2015 9:24 am    Post subject: Reply with quote

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?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Wed Jan 28, 2015 11:18 am    Post subject: Reply with quote

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?
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1