Orignate Call

  • Function:

makeCall(targetdn, targettype, agentgroupid, usertype, user, orgidentity, pwdtype,password, modeltype, model_id, userdata, agentexten, callerid, callername, trunkidentity, cidtype)

  • Description:

Orignate a call

  • Parameters:
Params Type Description
targetdnStringAgent No. ( if it’s a internal call, and they must belong to same team) or put phone number if it’s an external call
targettypeStringexter (external call) / inner (internal call)
agentgroupidStringid of the agent group
usertypeStringagent / account
userStringAgent No. or Username
orgidentityStringThe identity string of the team
pwdtypeStringUse plaintext or md5 password for agent or account
passwordStringpassword
modeltypeStringBusinessApp / Campaign / Virtualcustomer / Customerservice
model_idStringid of the model which you want to originate the call for
userdataStringuser 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’
agentextenStringoptional, if you put this, system will bind the exten to agent before dial
calleridStringoptional, callerId number
callernameStringoptional, callerId name
trunkidentityStringoptional, server will use this trunk to dial if you put trunk identity string
cidtypeStringoptional, 0 means use callerId above, 1 means use trunk callerId, 2 means use device callerId
  • Return Format:

|Retuen|code|Retuen|message

  • Type of the Return Value: String
  • Return Values:
Value Description
|Retuen|1|Retuen|message
Succeeded||Messages
|Retuen|2|Retuen|message
Failed||Messages
en/custom_development_guide/apis/webservice/call.txt · Last modified: 2019/01/03 14:01 by donnie
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki