Forums Read-only archive

Trying to Deliver to wrong Inbound Number

4 posts · Brekeke SIP Server Forum

kevinb Original post
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
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
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
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