[asterisk-users] Setting Periodic-Announce filename in the dialplan

Danny Nicholas danny at debsinc.com
Fri Jan 2 10:18:02 CST 2009


This might do the trick
exten => s,1,Answer()
exten => s,n,Set(PERIODIC_ANNOUNCE=/home/Sounds/queue-announce)
exten => s,n,Set(PERIODIC_ANNOUNCE_FREQUENCY=60)
exten => s,n,Set(JOINEMPTY=1)
exten => s,n,Queue(CSR)

exten => 18001231234,1,Answer()
exten => 18001231234,n,Set(PERIODIC_ANNOUNCE=30)
exten => 18001231234,n,Set(JOINEMPTY=1)
exten => 18001231234,n,Queue(CSR|/home/Sounds/toll-free-queue-announce)
or
exten => 18001231234,n,Queue(CSR|toll-free.agi)

where toll-free.agi just play toll-free-queue-announce over the channel.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Robert Broyles
Sent: Friday, January 02, 2009 9:49 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Setting Periodic-Announce filename in the dialplan

Okay thank you.
This is something that I'm trying to avoid. I want to have one single 
Queue, but based on the incoming DID, have a different periodic-announce 
file played.

It would be awesome to be able to set all of the queue settings from the 
dialplan, if so wished:

examples of what I mean:
exten => s,1,Answer()
exten => s,n,Set(PERIODIC_ANNOUNCE=/home/Sounds/queue-announce)
exten => s,n,Set(PERIODIC_ANNOUNCE_FREQUENCY=60)
exten => s,n,Set(JOINEMPTY=1)
exten => s,n,Queue(CSR)

exten => 18001231234,1,Answer()
exten => 
18001231234,n,Set(PERIODIC_ANNOUNCE=/home/Sounds/toll-free-queue-announce)
exten => 18001231234,n,Set(PERIODIC_ANNOUNCE=30)
exten => 18001231234,n,Set(JOINEMPTY=1)
exten => 18001231234,n,Queue(CSR)


So that I could have all of the calls going to the same Queue, but 
depending on the DID, they are customized. Maybe this is something 
unique to my situation.

Maybe there's an easier way to do this...
Multiple queues, with ring groups, perhaps?



_______________________________________________
-- 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




More information about the asterisk-users mailing list