Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
calling URL from Dial Plan timeout
Author Message
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Mon Apr 28, 2014 3:42 pm    Post subject: calling URL from Dial Plan timeout Reply with quote

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
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Mon Apr 28, 2014 9:17 pm    Post subject: Reply with quote

Which version of Brekeke SIP Server are you using?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 501

PostPosted: Wed Apr 30, 2014 11:30 am    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1