Trying to Deliver to wrong Inbound Number

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
kevinb
Posts: 9
Joined: Wed Feb 15, 2012 2:10 am
Location: United Kingdom

Trying to Deliver to wrong Inbound Number

Post by kevinb »

1. Brekeke Product Name and version:
Brekeke SIP Server 2.4.7.3/286.1

2. Java version:
1.6.0_22

3. OS type and the version:
Linux 2.6.18-194.el5

4. UA (phone), gateway or other hardware/software involved:
Lync Mediation Server to Brekeke TCP on Port 5060

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :
Pattern 9

6. Your problem:
I have added a dial plan so that calls to a particular range are sent to one IP and all others follow the standard route, however when I make the call the dial plan is delivering it to the correct IP, but it is trying to deliver it to the number that dialled in effectively back to itself.

From sip:+44758447xxxx@1.1.1.1
To sip:+44758447xxxx@1.1.1.2

it should be
From sip:+44758447xxxx@1.1.1.1
To sip:+44203123xxxx@1.1.1.2

Any ideas as this is confusing me


Matching Pattern

$request=^INVITE
$addr=1.1.1.1
To=sip:+44203123[0-9]{4}@
From=sip:(.+)@

Deployment Pattern

To=sip:%1@1.1.1.2
From=sip:%2@1.1.1.1
$transport=TCP
$auth=false
&net.sip.transport.follow.request=true

Thanks
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

the %1 and %2 are not set properly, check the wiki page below about %1 and %2 in dial plan rule
http://wiki.brekeke.com/wiki/buffer-in-the-dial-plan


Matching Pattern

$request=^INVITE
$addr=1.1.1.1
To=sip:\+(44203123[0-9]{4})@
From=sip:(.+)@

Deployment Pattern

To=sip:+%1@1.1.1.2
From=sip:%2@1.1.1.1
$transport=TCP
$auth=false
&net.sip.transport.follow.request=true
kevinb
Posts: 9
Joined: Wed Feb 15, 2012 2:10 am
Location: United Kingdom

Post by kevinb »

Thanks hope,

Unfortunately that is not working either, it fails as it is still trying to send it to the wrong IP address, if I add the dial plan as a single number though as below it does work.

$request=^INVITE
$addr=1.1.1.1
To=sip:+(442033123xxxx)@
From=sip:(.+)@

To=sip:+%1@1.1.1.2
From=sip:%2@1.1.1.1
$transport=TCP
$auth=false
&net.sip.transport.follow.request=true
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

when check call detail from active session, is the rule field showing the rule name?
did you click on "apply rules" button after change the dial plan rule?

how about add the following line in the "Deploy Patterns"
$target = 1.1.1.2
and click "apply rules" button after change the dial plan rule
Post Reply