Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:custom_development_guide:apis:http:callback [2017/12/12 11:05]
127.0.0.1 external edit
en:custom_development_guide:apis:http:callback [2018/12/29 15:05] (current)
donnie
Line 2: Line 2:
  
   * Reques String:   * Reques String:
-<​code> ​backCallCJI(orgidentityextentargetdncalleriduserpasswordpwdtypeuserdata,​callbackFuc)</​code>​+<​code> ​EVENT=BackCall&​orgidentity=orgidentity&​exten=exten&targetdn=targetdn&​callerid=callerid&​user=user&password=password&​pwdtype=pwdtype&​userdata=userdata</​code>​
   * Description:​   * Description:​
 Call caller first, if answered, system call callee Call caller first, if answered, system call callee
Line 8: Line 8:
  
 ^ Params ​     ^ Type       ^ Description ​         ^ ^ Params ​     ^ Type       ^ Description ​         ^
 +|EVENT|String|BackCall|
 |orgidentity|String|team identity string| |orgidentity|String|team identity string|
-|user|String|username| 
-|pwdtype|String|password type: plaintext/​md5| 
-|password|String|password| 
 |exten|String|caller number| |exten|String|caller number|
 |targetdn|String|callee number| |targetdn|String|callee number|
 |callerid|String|callerId number, trunk callerId will be used if not set| |callerid|String|callerId number, trunk callerId will be used if not set|
 +|user|String|username|
 +|password|String|password|
 +|pwdtype|String|password type: plaintext/​md5|
 |userdata|String|userdata in CDR| |userdata|String|userdata in CDR|
-|callbackFuc|String|callback function| 
- 
  
   * Return Format:   * Return Format:
  
 <​code>​ <​code>​
-{code:​code,​message:​message}+|Retuen|code|Retuen|message
 </​code>​ </​code>​
  
-  * Type of the Return Value: ​JSON+  * Type of the Return Value: ​String
   * Return values:   * Return values:
  
 ^ Value     ^ Description ​      ^ ^ Value     ^ Description ​      ^
-|<​code>​{code:1,message:message}</​code>​|<​code>​{code:succeed,message:message}</​code>​| +|<​code>​|Retuen|1|Retuen|message</​code>​|<​code>​|Retuen|succeed|Retuen|message</​code>​| 
-|<​code>​{code:2,message:message}</​code>​|<​code>​{code:failed,message:message}</​code>​|+|<​code>​|Retuen|2|Retuen|message</​code>​|<​code>​|Retuen|failed|Retuen|message</​code>​|
en/custom_development_guide/apis/http/callback.txt · Last modified: 2018/12/29 15:05 by donnie
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki