Salvete! How can I dial a number and have Asterisk originate a call from extension sipX to sipY?
Both sipX and sipY appear in extensions.conf of my dialplan.
The trick is that I want to dial 337 on my phone, and then my phone goes out of the picture, then sipX calls sipY.
Say I want to be able to push 337 on the phone, and have a sound played over the speakerphone of another phone, say, as an alarm.
Another way to consider it is, how can I do this:
- Push 337 on my phone
- complete my call, that is, hang up the original caller
- run a macro even though there is no call in queue
- call sipY
- play a sound on sipY
When running the #2 action (completing the caller's session) and letting the rest of the process complete afterward, can we use something like the pre-dial handlers in Asterisk 11?