Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Trying to Deliver to wrong Inbound Number
Author Message
kevinb
Brekeke Junior Member


Joined: 15 Feb 2012
Posts: 9
Location: United Kingdom

PostPosted: Sat Feb 25, 2012 4:15 am    Post subject: Trying to Deliver to wrong Inbound Number Reply with quote

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/networkpatterns.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 Patterns
$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
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Feb 27, 2012 11:28 am    Post subject: Reply with quote

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 Patterns
$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
Back to top
View user's profile
kevinb
Brekeke Junior Member


Joined: 15 Feb 2012
Posts: 9
Location: United Kingdom

PostPosted: Thu Mar 01, 2012 3:32 am    Post subject: Reply with quote

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


Joined: 15 Jan 2008
Posts: 862

PostPosted: Thu Mar 01, 2012 11:07 am    Post subject: Reply with quote

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
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