This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
en:custom_development_guide:apis:webservice:call [2016/09/05 06:49] liuxl created |
en:custom_development_guide:apis:webservice:call [2019/01/03 06:01] (current) donnie |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| *Function: | *Function: | ||
| - | <code>makeCall(targetdn, targettype, agentgroupid, usertype, user, orgidentity, pwdtype,password, modeltype, model_id, userdata)</code> | + | <code>makeCall(targetdn, targettype, agentgroupid, usertype, user, orgidentity, pwdtype,password, modeltype, model_id, userdata, agentexten, callerid, callername, trunkidentity, cidtype)</code> |
| *Description: | *Description: | ||
| Line 9: | Line 9: | ||
| *Parameters: | *Parameters: | ||
| - | ^ Params ^ Type ^ Description | + | ^ Params ^ Type ^ Description ^ |
| |targetdn|String|Agent No. ( if it’s a internal call, and they must belong to same team) or put phone number if it’s an external call| | |targetdn|String|Agent No. ( if it’s a internal call, and they must belong to same team) or put phone number if it’s an external call| | ||
| |targettype|String|exter (external call) / inner (internal call)| | |targettype|String|exter (external call) / inner (internal call)| | ||
| Line 21: | Line 21: | ||
| |model_id|String|id of the model which you want to originate the call for| | |model_id|String|id of the model which you want to originate the call for| | ||
| |userdata|String|user data, only valid when modeltype= Campaign, say you put “customer_id=109&pwd=asdfg” here, when you receive the call events, you will get userdata=’ customer_id=109&pwd=asdfg’| | |userdata|String|user data, only valid when modeltype= Campaign, say you put “customer_id=109&pwd=asdfg” here, when you receive the call events, you will get userdata=’ customer_id=109&pwd=asdfg’| | ||
| + | |agentexten|String|optional, if you put this, system will bind the exten to agent before dial| | ||
| + | |callerid|String|optional, callerId number| | ||
| + | |callername|String|optional, callerId name| | ||
| + | |trunkidentity|String|optional, server will use this trunk to dial if you put trunk identity string| | ||
| + | |cidtype|String|optional, 0 means use callerId above, 1 means use trunk callerId, 2 means use device callerId| | ||
| *Return Format: | *Return Format: | ||
| - | <code>|Return|code|Return|message</code> | + | <code>|Retuen|code|Retuen|message</code> |
| *Type of the Return Value: String | *Type of the Return Value: String | ||
| Line 29: | Line 34: | ||
| ^ Value ^ Description ^ | ^ Value ^ Description ^ | ||
| - | |<code>|Return|1|Return|message</code>|<code>Succeeded||Messages</code>| | + | |<code>|Retuen|1|Retuen|message</code>|<code>Succeeded||Messages</code>| |
| - | |<code>|Return|2|Return|message</code>|<code>Failed||Messages</code>| | + | |<code>|Retuen|2|Retuen|message</code>|<code>Failed||Messages</code>| |