Author |
Message |
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Mon Apr 28, 2014 3:42 pm Post subject: calling URL from Dial Plan timeout |
|
|
1. Brekeke Product Name and Version: Brekeke SIP Server
2. Java version: 1.7.0_25
3. OS type and the version: Windows Server 2008 R2
4. UA (phone), gateway or other hardware/software involved:
5. Your problem:
i have a Dial Plan that calls an API to modify the CNAM Caller ID when a call is processed thru the brekeke
i want to change that if it doesnt receive a response, or if the CNAM server is down, it should continue and not get hung up on calling that URL
what can i add in the dial plan that will make it not get hung up ?
Matching Patterns | $request = ^INVITE $geturi( From ) = (.+) "%1" = sip:(.+)@ $webget("http://10.0.0.01:8989/cnam3.php?username = username&password=password&number=%2")=(.+)
|
Deploy Patterns | From = "%3" <%1> $replaceuri = true $continue = true
|
|
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Mon Apr 28, 2014 9:17 pm Post subject: |
|
|
Which version of Brekeke SIP Server are you using? |
|
Back to top |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Wed Apr 30, 2014 11:30 am Post subject: |
|
|
Specify a timeout with a shorter value.
http://wiki.brekeke.com/wiki/DialPlan-Matching-webGet
For example...
$webget("http://10.0.0.01:8989/cnam3.php?username=username&password=password&number=%2","(.+)", 500,500)=(.+)
DialPlan will give up quickly and kick the next rule. |
|
Back to top |
|
|