Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
how to make dialplan
Author Message
hansha
Brekeke Newbie


Joined: 11 Apr 2011
Posts: 3

PostPosted: Mon Apr 11, 2011 3:35 am    Post subject: how to make dialplan Reply with quote

1. Brekeke Product Name and version:
2.4.8.6

2. Java version:
1.6.0_03

3. OS type and the version:
windows2003

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

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

6. Your problem:
if registered(To) = false then $target=10.4.22.29
if registered(To) = true then normal call
I do like that:

Matching pattern :
$request=^INVITE
$registered(To) = false

Deploy Patterns
$target = 10.4.22.29

but it not work


thanks!
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Apr 11, 2011 10:21 am    Post subject: Reply with quote

capture packets and check what response from target address
and need to click "Apply rules" button after editting dial plan
Back to top
View user's profile
hansha
Brekeke Newbie


Joined: 11 Apr 2011
Posts: 3

PostPosted: Mon Apr 11, 2011 8:43 pm    Post subject: route all call to 10.4.22.29 Reply with quote

hope wrote:
capture packets and check what response from target address
and need to click "Apply rules" button after editting dial plan



Matching pattern :
$request=^INVITE
$registered(To) = false

Deploy Patterns
$target = 10.4.22.29

I call 2001, $registered(2001) is false, sipserver route to 10.4.22.29, it is ok
I call 3001, $registered(3001) is true, but sipserver route to 10.4.22.29 also.
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Apr 12, 2011 11:41 am    Post subject: Reply with quote

do you mean when callee 3001 is registered at brekeke the call still apply the above rule?
is there any other dial plan rule above this one which the call may apply to?
if you check the details about the problem call in "active sesssions" page, is this rule name shown at "rule" field?
also can check from sv log by http://wiki.brekeke.com/wiki/log-SIP-packets
is user 3001 registered at the time calling to 3001?
Back to top
View user's profile
hansha
Brekeke Newbie


Joined: 11 Apr 2011
Posts: 3

PostPosted: Tue Apr 12, 2011 10:30 pm    Post subject: This should be the reason for the network Reply with quote

hope wrote:
do you mean when callee 3001 is registered at brekeke the call still apply the above rule?
is there any other dial plan rule above this one which the call may apply to?
if you check the details about the problem call in "active sesssions" page, is this rule name shown at "rule" field?
also can check from sv log by http://wiki.brekeke.com/wiki/log-SIP-packets
is user 3001 registered at the time calling to 3001?



I go back to the LAN test and that is good, sipserver route is ok.
This should be the reason for the network

thank you!
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