This is an old revision of the document!
Go to Advanced/Announcements page , and click “ADD” button to add a main ivr flow.
Go to Advanced/IVR page , and click “ADD” button to add a main ivr flow.
go to Advanced/Inbound routes page, and click the “Add” button select the special DID, and choose the main ivr from transfer.
checkcustomer.php and checkcustomer.wsdl webservice_sample_php.zip
function checkcustomerid($callerid,$customerid)
{
#$dbCon = $this->dbConnect();
if(empty($customerid)){# customerid is empty
return 'Failure|'.$customerid."|TESTSTR";
}
#$sql = "SELECT * FROM customers WHERE id = '$customerid'";
#$ref = mysql_query($sql) or die('-9');
#$res = mysql_fetch_array($ref);
if($customerid == '123456'){ # found the customer by customerid
return "Enterprise|".$customerid."|TESTSTR";
}elseif($customerid == '789'){
return "SMB|".$customerid."|TESTSTR"; # cant found the customer by customerid
}else{
return "Other|".$customerid."|TESTSTR";
}
}