[asterisk-users] Any way of limiting incoming caller connection time without making 2 active calls for each incoming call?
Jonathan H
lardconcepts at gmail.com
Sun Apr 16 15:49:12 CDT 2017
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.
More information about the asterisk-users
mailing list