Skip to main content

Play audio recording while ringing a sequential group of extensions

Posted by scecconello on Mon, 06/28/2010

Hello

I'm trying to accomplish this kind of setup.

Incoming Call -> audio File played to the caller "hello this is bla bla bla bla" -> while the audio is playing -> ring ext #1 -wait 10 sec-> ring ext. #2 -wait 10 sec-> ring ext. #3

Until someone pickup the call.

I need to play an audio file while the pbx forward the call to a sequentially defined list of extension.

I've tried with hunt group \ queues \ followme, but i always get the audio played and then the extension starts to ring.

Sincerely, i dont know what asterisk command can fullfill this.

Best Regards

Stefano


Submitted by eeman on Mon, 06/28/2010 Permalink

CMD Dial()

Options:
A(x) - Play an announcement to the called party, using 'x' as the file.
m([class]) - Provide hold music to the calling party until a requested
channel answers. A specific MusicOnHold class can be
specified.

this is sorta like the verizon music instead of ring tones. Every new instance of Dial will start the file over again.. it does not continue between instances of Dial()

what you probably want is to create a Queue where you use sequential strategy and use the periodic message inside the queue or replace the music on hold class for that queue with your recording.

Submitted by scecconello on Mon, 06/28/2010 Permalink

Hi

I've tried using a queue, but i dont see any sequential strategy i have:

- ringall
- random
- roundrobin
- rrmemory
- leastrecent
- fewestcalls

The version of thidlane is MTE - 6.0.1.81

Submitted by eeman on Mon, 06/28/2010 Permalink

linear is only available at asterisk version 1.6.2. You're going to have to either decide that round-robin is good enough or do a ringall. This is really you're only option. This is a limitation of asterisk, not a gui.

Submitted by scecconello on Tue, 06/29/2010 Permalink

Hi eeman,
i've modified the sequential script and added some options.

Ring group - Sequential:
exten => s,1,Set(i=1)
exten => s,n,Goto(tryone,1)

instead of the original one:
exten => s,1,Set(i=1)
exten => s,n,Playback(tl/pls-hold-while-try)
exten => s,n,Goto(tryone,1)

so it doesnt play the "please hold while i try to connect ... " and then passing this option to the script:

m(Moh-playlist-Tenant)

plays a custom message on hold playlist

thanks

Stefano