ya sure. I will put what i have tried. Actually documentation at
was not clear. So, i will put my code as an example.
'timeout' parameter did not work as which it was expected. 'actionURL' was called twice instead of once.
--------------------------------------------------------------------------------------
afterCallEnds.php
if($_REQUEST['DialBLegUUID']=='')
{
/*user2 rejected the call OR did not answer the call*/
$r->addSpeak("Could not connect to user2. Please try after some time.");
$r->addRedirect($server_path."/url1.php");
}
else
{ //talk between user1 and user2 was successfully ended.
$r->addRedirect($server_path."/url2.php");
}
----------------------------------------------------------------------------------------
User2PickUp.php :
1. If User2 picks up the phone, this page is called twice
i. when user2 Picks up the phone
ii. when user1 Or User2 hangs up the phone
2. If User2 does not receive the call at all, this page will not be callled.
if(strcasecmp($_REQUEST['DialBLegStatus'],"hangup")!=0)
{ //pick up
mysql_query($insertQuery);
}
else
{ //hangup
mysql_query($update_query);
}
Hope this helps...