Sure; OK well this explains the overall goal most clearly, which is:
First person that dials in triggers an outgoing call which connects to a web-based ZOOM conference.
First person and Zoom conference are bridged.
Subsequent callers go straight to the conference.
Last caller to hang up their call to Asterisk (meaning 1 channel (the zoom conference) is left in the conference) causes the outgoing call to terminate.
So I asked this question:
Along the way I encountered this issue with incorrect documentation
I then tried phrasing it a different way
After trying every single possible combination of options, it seems that “DIAL” followed by confbridge ended any possible further interaction on that channel.
In fact, the solution became clear from this answer:
As soon as I used Originate rather than DIAL, everything fell into place. Except one thing - DIAL sets:
DIALEDPEERNAME
- The name of the outbound channel that answered the call.
but Originate doesn’t have an equivalent. But I know I can get a list of CHANNELS
- all I need to know is, reliably, which is the channel created by Originate.
If there’s a better way of doing it, I’m very much open to it, but I’ve spent over 40 hours since Aug 3rd, along with help from a former Asterisk dev via email as a second pair of eyes, and no-one over the course of 4 threads and three months has come up with anything closer than “Originate”.
So I’m very definitely receptive to new ideas here! But like I said, the only missing piece for me at this point is getting the correct channel that was Originated.
Thanks