[asterisk-users] Any way of limiting incoming caller connection time without making 2 active calls for each incoming call?
D Tucny
d at tucny.com
Fri Apr 21 12:06:32 CDT 2017
Jonathan,
Have you tried:
same => n,Set(TIMEOUT(absolute)=3540)
You could override later if required.
Thanks,
Dan
On 17 Apr 2017 04:49, "Jonathan H" <lardconcepts at gmail.com> wrote:
The following setup prevents callers from going over 59 minutes:
--------------------------------------
[setup]
exten => setup,1,Answer()
same => n,Set(LIMIT_PLAYAUDIO_CALLER=yes)
same => n,Set(LIMIT_WARNING_FILE=/var/lib/asterisk/sounds/en_GB_TNS/
time_limit_reached)
same => n,Dial(Local/s at root/n,3,L(3540000:60000))
same => n,Hangup()
[root]
exten => s,1,Verbose(Call to: ${CALLERID(name)} from: ${CALLERID(num)})
same => n,etc etc
--------------------------------------
Thing is, each call shows as 2 calls in the console. Not a big
problem, but also now I want to offer a way of overriding that time
limit.
Is there a different or better way of doing this while still hanging
up after 59 minutes, even when the original incoming call has been
transferred elsewhere?
Thanks.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.
org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170422/183c7139/attachment.html>
More information about the asterisk-users
mailing list