[asterisk-users] Call files with a timer?

Fred Posner fred at teamforrest.com
Fri Jul 25 11:08:03 CDT 2008


On Jul 25, 2008, at 11:18 AM, SIP wrote:

> Is there a way to set a call timer on calls created with call files?  
> I'm
> looking specifically at having Asterisk hang up the call after a  
> certain
> period of connection.
>
> Obviously, when I try passing an |S(time)  on the channel line, I  
> get an
> invalid call file... so I'm wondering if there's another way to do it.
>
>
> N.

You could always to something like...

exten => _NXXNXXXXXX,1,Set(OutboundNumber=${EXTEN})
exten => _NXXNXXXXXX,n,goto(s,1)
exten => s,1,Dial(SIP/${OutboundNumber}@to-wherever|60| 
L(10800000:60000:30000))

may not be pretty, but is quick & dirty ;)


Fred Posner
fred at teamforrest.com
www.teamforrest.com



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2162 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080725/11d87515/attachment.bin 


More information about the asterisk-users mailing list