[asterisk-dev] Application timeouts, Periodic and Scheduled Announcements

Russell Bryant russell at digium.com
Wed Aug 29 15:12:48 CDT 2007


Tilghman Lesher wrote:
> On Wednesday 29 August 2007 14:00:40 Russell Bryant wrote:
>> After thinking about it, I decided it would make more sense to attempt to
>> make a way to use these features for any application, instead of putting
>> this code in a lot of places.  I have a little bit of the code actually
>> written, but I have an idea for how I want all of it to work in my head.
> 
> Hopefully, the S() and L() options aren't going away, since they work in a
> slightly different way:  that is, they start the timer from when the slave
> channel is *answered*, not *immediately* as this new feature works,
> right?

Ooh, good point.  I'll have to think about that one ...

>> ; Limit conference to 5 minutes
>> exten => s,1,Set(TIMEOUT(application)=300)
>> exten => s,n,MeetMe(1234)
>> ; Turn timeout back off
>> exten => s,n,Set(TIMEOUT(application)=0)
> 
> This is inconsistent with how other timeouts currently work.  Other timeouts
> jump to a particular extension in the current context, namely 't' (for
> response) or 'T' (for absolute).

So, do you think it would be better to just redirect the channel to some special
extension reserved for "application timeouts" ?


-- 
Russell Bryant
Software Engineer
Digium, Inc.



More information about the asterisk-dev mailing list