This is an old revision of the document!
EVENT=MAKECALL&targetdn=targetdn&targettype=targettype&agentgroupid=agentgroupid&usertype=usertype&user=user&orgidentity=orgidentity&pwdtype=pwdtype&password=password&modeltype=modeltype&model_id=model_id&userdata=userdata.
Orignate a call
| Params | Type | Description |
|---|---|---|
| EVENT | String | MAKECALL |
| 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) |
| agentgroupid | String | id of the agent group |
| usertype | String | agent / account |
| user | String | Agent No. or Username |
| orgidentity | String | The identity string of the team |
| pwdtype | String | Use plaintext or md5 password for agent or account |
| password | String | password |
| modeltype | String | BusinessApp / Campaign / Virtualcustomer / Customerservice |
| 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’ |
| agentexten | String | 不是必填项,此参数可以在拨号前修改坐席当前使用的分机。 |
| callerid | String | 不是必填项,主叫显示号码,送显号码,透传号码。 |
| callername | String | 不是必填项,主叫显示名称,送显名称,透传名称。 |
| trunkidentity | String | 不是必填项,中继标识,选择此中继线路进行呼出。 |
| cidtype | String | 不是必填项(0/1/2),0使用api传来的callerid;1使用中继的callerid;2使用分机设置的callerid; |
|Return|code|Return|message
| Value | Description |
|---|---|
|Return|1|Return|message | Succeeded||Messages |
|Return|2|Return|message | Failed||Messages |