I have a working Dialplan where:
- A Call Comes In
- Another call is made using Dial() and the M() (macro) parameter
- They answer and can press 1 to accept the call or press 2 (or nothing) and the call is “declined” and the Incoming Call is sent to Voicemail.
I now want to do the same but call two or more people at the same time with the same result.
- A Call Comes In
- Two+ calls are made using Dial()
- If Outbound Call A never answers, cool, keep trying Call B
- If Call A answers but declines, cool, keep trying Call B
- If Call B eventually answers OR does not after X seconds, finally send the call to Voicemail
Currently I’m attempting a Dial(123@channel&456@channel) and when Call A answers, but has not pressed 1 or 2 or timed out, the call is already 100% reliant on that Call, and the Call to B is hung up on.
This does not do what I want, as Call A might reject, and I want Call B to have an opportunity to answer and accept.
This is an issue because Call A might have just been a mobile user out of range and the call went straight to their Voicemail, while Call B would have reached a human if given a few more seconds to answer.
Any ideas?