There is an ongoing call between 2 numbers (Twilio to Twilio, or Twilio to any PTSN number). It is not a conference call, just a normal 1-to-1 call using Twilio Voice.
How can I add another person to that call?
This is my current scenario. I first create a normal call (that has a ‘timeout’ and then redirects to voicemail via the ‘action’ verb). This is working, so a call now exists between 2 parties.
Then if the call initiator wants to add a 2nd number (ie create a conference call), I need to move both the call initiator and the 1st called number into a named conference.
However, I don’t know the Sid of the 1st called number’s leg of the call (I only know the Sid of the parent call), so how can this be done?
Assuming I did manage to create a conference call with the 2 initial numbers, how can I add further numbers to the conference, and automatically terminate the conference when there is only 1 party left?