Author |
Message |
skb007 Brekeke Guru
Joined: 05 Oct 2015 Posts: 152
Location: USA
|
Posted: Fri Mar 09, 2018 6:49 pm Post subject: Call Distribution To Multiple IPs |
|
|
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? |
|
Back to top |
|
Tata Brekeke Master Guru
Joined: 27 Jan 2008 Posts: 223
|
|
Back to top |
|
skb007 Brekeke Guru
Joined: 05 Oct 2015 Posts: 152
Location: USA
|
Posted: Sat Mar 10, 2018 2:35 pm Post subject: |
|
|
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 - - - -
|
|
|
Back to top |
|
Tata Brekeke Master Guru
Joined: 27 Jan 2008 Posts: 223
|
Posted: Mon Mar 12, 2018 10:22 am Post subject: |
|
|
Your DialPlan rule seems no problem.
Have you set the following under [Configuration] -> [Advanced] page?
Code: |
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. |
|
Back to top |
|
|