Call Distribution To Multiple IPs

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
skb007
Posts: 152
Joined: Mon Oct 05, 2015 10:22 pm
Location: USA

Call Distribution To Multiple IPs

Post by skb007 »

1. Brekeke Product Name and Version:

2. Java version:

3. OS type and the version:

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

5. Your problem:

Is there any way that dial plan can do a database query to find the destination IP address and terminate the call to destination IP?
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

skb007
Posts: 152
Joined: Mon Oct 05, 2015 10:22 pm
Location: USA

Post by skb007 »

Appreciate your response. Do you think something like following will work?

Matching Patterns
$addr = 10\.1\.1\.1
From = sip:(.+)@
$request = sip:123(.+)@
$db.query( "mydb", "select IP from table where DID = '%2' " ) = (.+)

Deploy Patterns
From = sip:%1@10.2.2.2
To = sip:%2@%3
$b2bua = true
$rtp = false
$session = sdp
&sdp.audio.a.1 = ptime:20
&sdp.audio.a.2 = silenceSupp:off - - - -
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

Your DialPlan rule seems no problem.

Have you set the following under [Configuration] -> [Advanced] page?

Code: Select all

mydb.driver = <jdbc_driver>
mydb.url = <database_url>
mydb.user = <user_name>
mydb.password = <password>
If you are using Brekeke SIP Server version 3.7.5.0 or older, I recommend that you upgrade it to the latest version because the DB access function is improved in recent versions.
Post Reply