Music On Hold while trying calling 3 numbers

Hi All experts,

I was wondering if the following is possible:

I am trying to call at first to X number, after 15 sec i would like to call Y number and after another 15 sec to Z number.

This part will be done by DIALSTATUS command.

My question is if it is possible to play to caller MOH without starting the file all over again when calling to Y number and Z number.
I am intrested to play the file in sequence.

The below will play the MOH while calling X,Y,Z but will start the file all over again.

Will appreciate your feedback:

exten => _X.,n,Dial(SIP/CELLACT_GB_1/XXXX,15,m(MusicOnHold_2398))
exten => _X.,n,GotoIf(["{DIALSTATUS}" = “NOANSWER”]?lbl_2398_5:)
exten => _X.,n,GotoIf(["{DIALSTATUS}" = “BUSY”]?lbl_2398_5:)
exten => _X.,n,Hangup()
exten => _X.,n(lbl_2398_5),Dial(SIP/YYYY,15,m(MusicOnHold_2398))
exten => _X.,n,GotoIf(["{DIALSTATUS}" = “NOANSWER”]?lbl_2398_6:)
exten => _X.,n,GotoIf(["{DIALSTATUS}" = “BUSY”]?lbl_2398_6:)
exten => _X.,n,Hangup()
exten => _X.,n(lbl_2398_6),Dial(SIP/ZZZZ,15,m(MusicOnHold_2398))
exten => _X.,n,Hangup()

You might be able to do this by using a local channel and playing the MoH on that.

You could simply use a queue for that.

Set the following:
ringstategy=linear ; Or rrmemory/rrordered
timeout=15

Thanks all for your response.
eventually we did it with Q.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.