This is an old revision of the document!


Orignate Call

  • Function:

makeCallCJI(targetdn, targettype, agentgroupid, usertype, user, orgidentity, pwdtype, password, modeltype, model_id, userdata, callbackFuc)

  • 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
targettypeString exter (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’
callbackFucStringcallback function
agentextenString不是必填项,此参数可以在拨号前修改坐席当前使用的分机。
calleridString不是必填项,主叫显示号码,送显号码,透传号码。
callernameString不是必填项,主叫显示名称,送显名称,透传名称。
trunkidentityString不是必填项,中继标识,选择此中继线路进行呼出。
cidtypeString不是必填项(0/1/2),0使用api传来的callerid;1使用中继的callerid;2使用分机设置的callerid;
  • Return Format:

{code:code,message:message}

  • Return Type:JSON
  • Return Values:
Value Description
{code:1,message:message}
{code:Succeed,message:Messages}
{code:2,message:message}
{code:Failed,message:Messages}
en/custom_development_guide/apis/javascript/call.1473230782.txt.gz · Last modified: (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki