[asterisk-dev] Application timeouts, Periodic and Scheduled Announcements
Dmitry Andrianov
dimas at dataart.com
Wed Aug 29 14:54:28 CDT 2007
Actually, as I understand Russel's idea, the announce will be *mixed*
with what you already have on the channel. Which means commercials mixed
with MOH. Sounds cool :) For these purposes probably there is a need for
option specifying that announce should "take over" the channel, not mix.
Btw, just curious why names for this announce stuff needs to be
uppercase (function style) instead of camel case (application style).
Anything beginning with "Start" does not look like a function, IMHO it
looks more like dialplan application. For this reason,
StartAnnounce(...) looks a bit better.
Regards,
Dmitry Andrianov
-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Steven
Critchfield
Sent: Wednesday, August 29, 2007 11:29 PM
To: Asterisk Developers Mailing List
Subject: Re: [asterisk-dev] Application timeouts,Periodic and Scheduled
Announcements
On Wed, 2007-08-29 at 14:00 -0500, Russell Bryant wrote:
> 2) Periodic announcements
>
> This just uses an additional argument to START_ANNOUNCE, to set a
repeat interval.
>
> ; Set a periodic announement to play a beep every 10 seconds
> exten => s,1,Set(ANNOUNCE_ID=${START_ANNOUNCE(beep,0,10)})
> ; Call someone and have a beep in your ear every 10 seconds.
> exten => s,n,Dial(IAX2/123)
> ; Stop the announcement
> exten => s,n,NoOp(Announcement ran for
${STOP_ANNOUNCE(${ANNOUNCE_ID})} seconds)
Not exactly a suggestion, but a cool idea comment. The above section
would be cool for setting up periodic commercials during MOH.
So maybe with that idea, a way for you to either periodically toss to a
macro/extension such that the dialplan could decide what message to play
at the time. For instance, the calling card people might want to toss to
a macro that not only informed the user of time passage, but of time
remaining.
Some really cool thoughts come to mind with the ability to reenter the
dialplan at predetermined intervals.
--
Steven Critchfield <critch at basesys.com>
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list