| Next revision | Previous revision |
| en:custom_development_guide:apis:http:call [2016/09/06 07:16] – created liuxl | en:custom_development_guide:apis:http:call [2018/12/29 08:14] (current) – donnie |
|---|
| |
| *Reques String: | *Reques String: |
| <code>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 | <code>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&agentexten=agentexten&callerid=callerid&callername=callername&trunkidentity=trunkidentity&cidtype=cidtype</code> |
| |
| *Description: | *Description: |
| |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: |
| *Return Values: | *Return Values: |
| |
| ^Value | ^Value ^Description ^ |
| ^Description | |
| |<code>|Return|1|Return|message</code>|<code>Succeeded||Messages</code>| | |<code>|Return|1|Return|message</code>|<code>Succeeded||Messages</code>| |
| |<code>|Return|2|Return|message</code>|<code>Failed||Messages</code>| | |<code>|Return|2|Return|message</code>|<code>Failed||Messages</code>| |