Reputation: 1117
If I use simultaneous dialing with Twilio as so:
<Response>
<Dial>
<Client>Jenny</Client>
<Client>Tom</Client>
</Dial>
</Response>
And Jenny picks up, how do I programatically identify it is Jenny that picked up?
Upvotes: 1
Views: 80
Reputation: 6110
Give a answer url to each client as below
<Response>
<Dial>
<Client url="answer_url.php?client_name=jenny">Jenny</Client>
<Client url="answer_url.php?client_name=tom">Tom</Client>
</Dial>
</Response>
answer_url.php
<Response>
<Say voice="woman">
<?php echo $_REQUEST["client_name"]." has answered call"; ?>
</Say>
</Response>
answer_url.php will be executed before connecting to client when call has been answered.
Upvotes: 3