| Author/Date | Account Ticket #1395574: conference calls Owned by: itelecom |  |
|
|---|
 | |
itelecom
Posted on: 3/30/2011 3:01 PM (EDT)
| Here is what I am trying to do:
Have one person call a tropo number (application).
When they do this, it will call another real person's phone number.
After the other person picks up, I want the application to then call another person and put all 3 people into a conference call together.
I kind of understand how to have people call into a conference call, but how is it possible to have something like an outbound conference call if that makes sense.
So that when one person calls a number it will call two other people and put all 3 people into a conference call.
Does anyone have some example code or maybe could explain how I might go about this?
I think it would involve using signals. I think I would initiate a call, then interrupt it using a signal and when the tropo hits my script, i would then give it the transfer json code. I'm not completely sure though.
Also, I am somewhat confused about how to end a conference call. I would assume that it would end when all parties hang up, but I'm not sure. I don't want any "ghost" calls hanging around with noone in them. :)
Thanks. |
VoxeoAndy
Posted on: 3/30/2011 6:38 PM (EDT)
| Hi Chris:
Let me provide you with some links to our Quick Starts and Tutorials that might help you accomplish this task:
Here is a link to the Event Queuing docs that reference our REST API - where you can interrupt an event or sequence another event, etc.
Here is a link that covers Transferring Calls and another that goes over Creating a Conference Call.
It sounds to me like you're trying to engage those three elements together.
Please review the links and let us know if you have any questions. If we can be of any further assistance in the meantime, please don't hesitate to let us know.
Best regards,
Andrew Hague
Voxeo Customer Support Engineer
|
itelecom
Posted on: 4/6/2011 5:24 PM (EDT)
| Ok. I have it all working correctly now. I can put people into conference calls on the fly. That's cool.
One problem.
I can't seem to figure out how to end a conference call.
I want it to where if one person hangs up, it hangs it up for everyone else.
Here is some example code I've been trying:
$tropo->say("Sending you to the conference.");
$tropo->conference("",
array(
"id" => "343434",
"name" => "343434",
"playTones"=>true,
"allowSignals"=>array("exit")
)
);
$tropo->on(array("event" => "exit", "next" => "hangup.json"));
and hangup.json gives this:
{
"tropo": [
{
"hangup": null
}
]
}
This does not work.
If I go to the url to send a signal to a session https://api.tropo.com/1.0/sessions/the_session_id/signals?action=signal&value=exit
I get:
<signal><status>QUEUED</status></signal>
Which makes me think it worked, but it does not.
What is the correct way to signal a conference call to end and to hang up on all participants? Even if I have to signal each participant's session individually thats fine, I just need to know how to do it.
Thanks. |
JustinDupree
Posted on: 4/7/2011 12:16 PM (EDT)
| You won't be able to tie the conference to one particular person, so when they disconnect the conference disconnects completely. Each person would need to either hangup on their end, or each of their sessions would need to be interrupted using the Event API. There is a caveat on the Events API for transfer and conference (which needs updating on the docs) - they both require a terminator to be defined in order for the signaling to work. So your code would need to be:
$tropo->conference("",
array(
"id" => "343434",
"name" => "343434",
"playTones"=>true,
"terminator"=>"#",
"allowSignals"=>array("exit")
)
);
Then the signal should work. You'll still have to use the multiple signals to disconnect everyone, though.
Hope that helps!
Justin Dupree
Voxeo Labs |
itelecom
Posted on: 4/7/2011 3:55 PM (EDT)
| It seems like that does the trick. Thank you very much! :) |
 | |
 |
|---|