Re: [asterisk-users] Any way of limiting incoming caller connection time without making 2 active calls for each incoming call?

2017-04-21 Thread D Tucny
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"  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@root/n,3,L(354:6))
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
-- 
_
-- 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

[asterisk-users] Any way of limiting incoming caller connection time without making 2 active calls for each incoming call?

2017-04-16 Thread Jonathan H
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@root/n,3,L(354:6))
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