This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:use_case:call_webservice_in_ivr [2014/01/29 18:01] – donnie | en:use_case:call_webservice_in_ivr [2014/02/07 03:38] (current) – [get customer enter form astercc event] donnie | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Go to Advanced/ | Go to Advanced/ | ||
| - | {{: | + | {{: |
| - | + | ||
| - | {{: | + | {{: |
| - | + | ||
| - | {{: | + | {{: |
| * create IVR | * create IVR | ||
| Go to Advanced/ | Go to Advanced/ | ||
| - | | + | add a main flow, max loop times set to 3. |
| + | |||
| + | {{: | ||
| + | |||
| + | first action need to answer the call. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | second, add a readdata action(play a announcment and receive customer enter) | ||
| + | |||
| + | {{: | ||
| + | |||
| + | set the transfer condition, if caller have no customerid , the annoucement tell him enter the '#', | ||
| + | so if ivr reiceived '#', | ||
| + | let customer confirm them entered customer id. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | add sub flow for replay and confirm customer id | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | add sub flow for call the webservice | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| ===== Add the DID number===== | ===== Add the DID number===== | ||
| * add a special incoming DID number | * add a special incoming DID number | ||
| - | | + | Go to PBX/DID page , and click " |
| + | |||
| + | {{: | ||
| + | |||
| + | ===== Create inbound route ===== | ||
| + | go to Advanced/ | ||
| + | select the special DID, and choose the main ivr from transfer. | ||
| + | |||
| + | {{: | ||
| + | ===== php webservice sample ===== | ||
| + | checkcustomer.php and checkcustomer.wsdl | ||
| + | {{: | ||
| + | |||
| + | <WRAP center round box 90%> | ||
| + | function checkcustomerid($callerid, | ||
| + | { | ||
| + | #$dbCon = $this-> | ||
| + | if(empty($customerid)){# | ||
| + | return ' | ||
| + | } | ||
| + | #$sql = " | ||
| + | #$ref = mysql_query($sql) or die(' | ||
| + | #$res = mysql_fetch_array($ref); | ||
| + | if($customerid == ' | ||
| + | return " | ||
| + | }elseif($customerid == ' | ||
| + | return " | ||
| + | }else{ | ||
| + | return " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| - | ===== 配置呼入路由 ===== | ||
| - | * 坐席有独立的主叫号码 | ||
| - | {{: | + | ===== get customer enter form astercc event===== |
| - | <note tip> | + | {{: |
| - | ===== php webservice 程序实例 ===== | + | |
| - | * 每个项目有独立的主叫号码 | + | |
| - | {{:zh:用途和案例:campaign_cid.png? | + | if your custom page is using our framework, you can read [[en:custom_development_guide:how_to_integrate_custom_page_in_astercc|Embed System under Same Domain]] |
| + | if not , you can get from http push event [[en: | ||