I have set up a twilio number. When a call comes in, the caller is welcomed with a welcome message, and then the call is forwarded to my cell phone. If the call is not answered, the call goes to a voice mail message, telling the caller to leave a message, and the the call goes to the voice mail. All that works just fine. But if the call is answered, and I hang up, the flow will not stop. It goes on to the voice mail message. Now my question is:
How do I stop the flow, when the call ends?
This is my code:
<?php
header('content-type: text/xml');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
?>
<Response>
<Play>http://example.com/telephone/sounds/welcome-message.mp3</Play>
<Dial record="true" timeout="25">
<Number url="http://example.com/telephone/wisper.php">
+4581732211
</Number>
</Dial>
<Play>http://example.com/telephone/sounds/no-answer.mp3</Play>
<Record transcribe="true" transcribeCallback="http://twimlets.com/voicemail?Email=mail@mydomain.com"/>
</Response>