[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


Have you tried:
same => n,Set(TIMEOUT(absolute)=3540)

You could override later if required.



On 17 Apr 2017 04:49, "Jonathan H" <lardconcepts at gmail.com> wrote:

The following setup prevents callers from going over 59 minutes:


exten => setup,1,Answer()
    same => n,Set(LIMIT_PLAYAUDIO_CALLER=yes)
    same => n,Set(LIMIT_WARNING_FILE=/var/lib/asterisk/sounds/en_GB_TNS/
    same => n,Dial(Local/s at root/n,3,L(3540000:60000))
    same => n,Hangup()


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

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?


-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.

New to Asterisk? Start here:

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
-------------- 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