[asterisk-users] Any way of "flattening out" 2 channels back into one?
Social Boh
social at bohboh.info
Sat Jul 28 17:04:52 CDT 2018
TIMEOUT function:
example
same => n,Set(TIMEOUT(absolute)=600)
after 600 seconds Asterisk Hankup the call
Regards
---
I'm SoCIaL, MayBe
On 7/28/18 16:08, Jonathan H wrote:
> Last question for today, I promise!
>
> The problem: In order to disconnect calls after x minutes, I need to do this:
>
> [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(1,Call to: ${CALLERID(name)} from: ${CALLERID(num)})
> same => n,Set(CHANNEL(hangup_handler_push)=hdlr1,s,1)
>
> etc etc
>
> Works well, but the result is it looks like there are 2 active calls
> in the console. Is there any way of forcing the drop of a call after x
> minutes without doing this "double dialling" business?
>
> Thanks
>
More information about the asterisk-users
mailing list