Can dialplan limit call duration to an extension

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
bonifatio
Posts: 14
Joined: Fri Feb 19, 2010 2:45 pm
Location: EUROPE

Can dialplan limit call duration to an extension

Post by bonifatio »

1. Brekeke Product Name and version:
Brekeke SIP Server , Version 2.4.3.0
2. Java version:
6.11
3. OS type and the version:
windows server 2008
4. UA (phone), gateway or other hardware/software involved:

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :5

6. Your problem:
I have a self test phone programmed to automatically answer incoming calls. I would like the connection to disconnect within 60 seconds, if the caller forgets to hang up. Can this be programmed in a dialplan? If so which code to use?
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

there is Talking Timeout (ms) at sip server /configuration/sip/
you can set it shorter, then sip server will send bye to both caller and callee when the timeout is reached.
bonifatio
Posts: 14
Joined: Fri Feb 19, 2010 2:45 pm
Location: EUROPE

Post by bonifatio »

hi hope, thank you for your reply.

So if I understand you correctly it would mean it would be possible to apply this setting into a dialplan to specify this setting to apply only for a call setup to this one extension number.

I would not like to limit the call duration for all extensions, only the testphone.
voipwell.com
Posts: 528
Joined: Tue Sep 20, 2005 9:10 am
Location: Tannersville, Pennsylvania

Post by voipwell.com »

Hello,

You need use the sip server dial plan to limit the talking length for just a selected user. In the software, Brekeke uses the phrase "talking timeout". These are global vaiables that affect all calls. If you want to limit just a single users or group of users you need to use the sip server dial plan. Below is an example of how to limit calls to 60 seconds for example user 1004. You would need to put this at the top of the dial plan to make sure it gets used. Let's say you wanted to do it for all users that started with 100 you could use 100. for example.



<Matching Patterns>

$request=^INVITE
To=sip:1004@

<Deploy Patterns>

&net.sip.timeout.talking=60000
$continue=true
Last edited by voipwell.com on Sun Feb 21, 2010 1:19 pm, edited 1 time in total.
bonifatio
Posts: 14
Joined: Fri Feb 19, 2010 2:45 pm
Location: EUROPE

Post by bonifatio »

Thanks, it works great. :D
Post Reply