Hey there,
I have a setup of two PJSIP phones and one “server,” all three running Asterisk instances. It is easily possible to call from one phone to another (e.g., calling 001) or to use dial on the server side to call one of the phones.
Now I want to have a little “game” implemented on the server but cannot make it work.
This is what I am trying to achieve:
- If any phone calls 1000, the server shall answer the call and play back an instruction sound. →
- The caller shall be placed in some kind of “wait” or “bridgewait” or whatever and hear waiting music.
- While the caller (who originated call 1000 to the server) is waiting, the server dials phone 2 (002) and does the same procedure (playback).
- After the playback for the second user is over, bridge the two channels.
- Now play some sounds (game instructions) for a while with a break in between the sounds.
I am struggling with the “wait” “hold” or however to achieve this. I was trying to use ConfBridge
but as I found out, it’s blocking further processing of the dialplan.
Any suggestions?
Thanks in advance.