Robert Broyles
2009-Jan-02 13:21 UTC
[asterisk-users] Setting Periodic-Announce filename in the dialplan
I'm wondering if there's a way to set which periodic-announce file is played from my dialplan, much like setting the monitor-filename. Something like this: exten => s,n, Set(PERIODIC_ANNOUNCE=foo) This would be a great feature if it doesn't already exist. Or perhaps there's a better way to do this. Thanks for your time. -- Regards, Robert Broyles
Danny Nicholas
2009-Jan-02 14:10 UTC
[asterisk-users] Setting Periodic-Announce filename in the dialplan
This is how you would do it in 1.4 Exten => s,n,Set(GLOBAL(PERIODIC_ANNOUNCE)=/var/lib/asterisk/sounds/foo) -----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 7:22 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Setting Periodic-Announce filename in the dialplan I'm wondering if there's a way to set which periodic-announce file is played from my dialplan, much like setting the monitor-filename. Something like this: exten => s,n, Set(PERIODIC_ANNOUNCE=foo) This would be a great feature if it doesn't already exist. Or perhaps there's a better way to do this. Thanks for your time. -- Regards, Robert Broyles _______________________________________________ -- 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
Robert Broyles
2009-Jan-02 14:12 UTC
[asterisk-users] Setting Periodic-Announce filename in the dialplan
Would this set the periodic-announce filename just for this call? Thanks! -- Regards, Robert Broyles
Danny Nicholas
2009-Jan-02 14:20 UTC
[asterisk-users] Setting Periodic-Announce filename in the dialplan
No. This would be an "until changed" modification (either via asterisk restart or another similar command). If you took the GLOBAL off of the set, it would probably be a 1 call deal. -----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 8:12 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Setting Periodic-Announce filename in the dialplan Would this set the periodic-announce filename just for this call? Thanks! -- Regards, Robert Broyles _______________________________________________ -- 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
Danny Nicholas
2009-Jan-02 15:37 UTC
[asterisk-users] Setting Periodic-Announce filename in the dialplan
Going on the assumption that CSR is in queues.conf and that queue-periodic-announce is in /var/lib/asterisk/sounds, you could create a CSR2 in queues.conf, a queue-periodic-announce2 in /v/l/a/s and make the dialplan call CSR2 instead of CSR. -----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:28 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Setting Periodic-Announce filename in the dialplan Thanks. The thread points to an issue with the periodic-announce not playing if the queue is set to ring, instead of musiconhold. I have musiconhold with my queue. My sample queue for testing purposes: [CSR] musiconhold = classic retry = 1 strategy = ringall joinempty = yes periodic-announce-frequency = 15 periodic-announce = queue-periodic-announce _______________________________________________ -- 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