Forums Read-only archive

calling URL from Dial Plan timeout

3 posts · Brekeke SIP Server Forum

Izzyg Original post
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?usernam ... &number=%2")=(.+)


Deploy Pattern:
From="%3" <%1>
$replaceuri=true
$continue=true
ambrosio
Which version of Brekeke SIP Server are you using?
james
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?usernam ... =%2","(.+)", 500,500)=(.+)


DialPlan will give up quickly and kick the next rule.