This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:custom_development_guide:apis:javascript:call [2016/09/07 06:45] liuxl |
en:custom_development_guide:apis:javascript:call [2018/12/27 06:39] (current) donnie |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| *Function: | *Function: | ||
| - | <code>makeCallCJI(targetdn, targettype, agentgroupid, usertype, user, orgidentity, pwdtype, password, modeltype, model_id, userdata, callbackFuc)</code> | + | <code>makeCallCJI(targetdn, targettype, agentgroupid, usertype, user, orgidentity, pwdtype, password, modeltype, model_id, userdata, callbackFuc, agentexten, callerid, callername, trunkidentity, cidtype)</code> |
| *Description: | *Description: | ||
| Line 22: | Line 22: | ||
| |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’| | ||
| |callbackFuc|String|callback function| | |callbackFuc|String|callback function| | ||
| - | |agentexten|String|不是必填项,此参数可以在拨号前修改坐席当前使用的分机。| | + | |agentexten|String|optional, if you put this, system will bind the exten to agent before dial| |
| - | |callerid|String|不是必填项,主叫显示号码,送显号码,透传号码。| | + | |callerid|String|optional, callerId number| |
| - | |callername|String|不是必填项,主叫显示名称,送显名称,透传名称。| | + | |callername|String|optional, callerId name| |
| - | |trunkidentity|String|不是必填项,中继标识,选择此中继线路进行呼出。| | + | |trunkidentity|String|optional, server will use this trunk to dial if you put trunk identity string| |
| - | |cidtype|String|不是必填项(0/1/2),0使用api传来的callerid;1使用中继的callerid;2使用分机设置的callerid;| | + | |cidtype|String|optional, 0 means use callerId above, 1 means use trunk callerId, 2 means use device callerId| |
| *Return Format: | *Return Format: | ||
| - | <code>{code:code,message:message} | + | <code>{code:code,message:message}</code> |
| - | Return Type:JSON</code> | + | |
| + | *Return Type:JSON | ||
| *Return Values: | *Return Values: | ||