calling URL from Dial Plan timeout

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

calling URL from Dial Plan timeout

Post by Izzyg »

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
Posts: 215
Joined: Thu Mar 27, 2008 12:20 pm

Post by ambrosio »

Which version of Brekeke SIP Server are you using?
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by 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.
Post Reply