Has anyone created like a broadcast dialplan, if so care to
share it. What I'd like to do is create an extension so when
someone calls that extension they can leave a voicemail. Right
after it is recorded, I need that voicemail to played on all
phones on that system... E.g.:
1) Administrator --> Dial special number
2) Record emergency message (e.g. Snow day don't come in)
3) Hang up
4) System dials all extensions and plays emergency message.
Please re-read before you fire off
Dial(SIP/100&SIP/101&SIP/102)
There are about 500 extensions so I guess either a
System(/path/to/perhaps/perlscript.pl) or something?
Scenario, school in a mountainous region with constant
horrible weather needs their admins to have a number
they can call and record a message. That message is
to be distributed to about 500 extensions.
--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
J. Oquendo
SGFA #579 (FW+VPN v4.1)
SGFE #574 (FW+VPN v4.1)
echo c2lsQGluZmlsdHJhdGVkLm5ldAo=|\
python -c "import sys; print
sys.stdin.read().decode('base64')"
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF684C42E
On Mon, 26 Nov 2007, J. Oquendo wrote:> Has anyone created like a broadcast dialplan, if so care to > share it. What I'd like to do is create an extension so when > someone calls that extension they can leave a voicemail. Right > after it is recorded, I need that voicemail to played on all > phones on that system... E.g.: > > 1) Administrator --> Dial special number > 2) Record emergency message (e.g. Snow day don't come in) > 3) Hang up > 4) System dials all extensions and plays emergency message. > > Please re-read before you fire off > > Dial(SIP/100&SIP/101&SIP/102) > > There are about 500 extensions so I guess either a > System(/path/to/perhaps/perlscript.pl) or something?How about an AGI that reads the list from a database and creates call files? An AGI() is better than a system() because the AGI has access to the channel and its variables. They both create a separate process so they "cost" about the same in system resources. The AGI could tell the caller how many call files were created. Or it could set a channel variable which you could use in your dialplan. If you go this route, remember to create the call files in a temporary directory (/tmp/) and "mv" it to Asterisk's spool directory (/var/spool/asterisk/outgoing/). Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
.call files will do that.
So something like:
exten => 123,1,Record({FILENAME})
exten => 123,n,System({FILENAME that copies all .call files in spool
directory})
exten => 123,n,Hangup()
[broadcast]
exten => s,1,Playback(({FILENAME})
exten => s,n,Hangup()
in the .call file make sure to have context broadcast, exten s and priority 1
Hope this helps. I have actually done this for a local compaign to 6000 numbers.
On Nov 26, 2007 3:08 PM, J. Oquendo <sil at infiltrated.net>
wrote:>
> Has anyone created like a broadcast dialplan, if so care to
> share it. What I'd like to do is create an extension so when
> someone calls that extension they can leave a voicemail. Right
> after it is recorded, I need that voicemail to played on all
> phones on that system... E.g.:
>
> 1) Administrator --> Dial special number
> 2) Record emergency message (e.g. Snow day don't come in)
> 3) Hang up
> 4) System dials all extensions and plays emergency message.
>
> Please re-read before you fire off
>
> Dial(SIP/100&SIP/101&SIP/102)
>
> There are about 500 extensions so I guess either a
> System(/path/to/perhaps/perlscript.pl) or something?
>
> Scenario, school in a mountainous region with constant
> horrible weather needs their admins to have a number
> they can call and record a message. That message is
> to be distributed to about 500 extensions.
>
> --
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
> J. Oquendo
> SGFA #579 (FW+VPN v4.1)
> SGFE #574 (FW+VPN v4.1)
>
> echo c2lsQGluZmlsdHJhdGVkLm5ldAo=|\
> python -c "import sys; print
sys.stdin.read().decode('base64')"
>
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF684C42E
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>