This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Call webservice in IVR====== <note important>Use result return by webservice for IVR transfer</note> We will instruct a business members service IVR flows, and will call a webserivce for checking the card number which customer enter from IVR. ===== Create the IVR flows ===== * upload the announcement voices Go to Advanced/Announcements page , and click "ADD" button to add a main ivr flow. {{:en:use_case:add_announce_1.png?600|}} {{:en:use_case:add_announce_2.png?600|}} {{:en:use_case:add_announce_3.png?600|}} * create IVR Go to Advanced/IVR page , and click "ADD" button to add a main ivr flow. {{:en:use_case:ivr_1.png?600|}} {{:en:use_case:main_aciton_1.png?600|}} {{:en:use_case:main_action2.png?600|}} {{:en:use_case:main_transfer.png?600|}} {{:en:use_case:p_ivr_1.png?600|}} {{:en:use_case:p_action_1.png?600|}} {{:en:use_case:p_action_2.png?600|}} {{:en:use_case:p_action_3.png?600|}} {{:en:use_case:p_ivr_transfer.png?600|}} {{:en:use_case:c_ivr_1.png?600|}} {{:en:use_case:c_action_1.png?600|}} {{:en:use_case:c_ivr_transfer.png?600|}} ===== Add the DID number===== * add a special incoming DID number Go to PBX/DID page , and click "ADD" button {{:en:use_case:add_did.png?600|}} ===== Create inbound route ===== go to Advanced/Inbound routes page, and click the "Add" button select the special DID, and choose the main ivr from transfer. {{:en:use_case:add_iroute.png?600|}} ===== php webservice sample ===== checkcustomer.php and checkcustomer.wsdl {{:en:use_case:webservice_sample_php.zip|}} <WRAP center round box 90%> 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"; } } </WRAP> ===== get customer enter form astercc event===== {{:en:use_case:vartoagent.png?600|}}

en/use_case/call_webservice_in_ivr.1391058973.txt.gz · Last modified: 2017/12/12 03:11 (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki