This is an old revision of the document!


Hangup

  • Function:

hangupCJI(uniqueid, pwdtype, password, usertype, user, orgidentity, callbackFuc)

  • Description:

Hangup one call party or a list of parties

  • Parameters:
Params Type Description
uniqueidStringthe uniqueid of the calls you want to hangup, end with a comma
targetagentString目标坐席工号,要操作哪个坐席的通话。uniqueid为空时,此项必填。uniqueid不为空时,此项可为空。如果挂断监听,强插,密语中的坐席组长(target=groupadmin),此处需要填写被监听,强插,密语的坐席工号。如2227组长监听1986,欲挂断2227,此处需要填写1986。
targetString挂机对象(channel,agent,caller,consult,all),channel必须传uniqueid,挂断相应uniqueid的通话,agent挂断目标坐席通话,caller挂断客户,consult如果传了uniqueid 则只挂uniqueid 相应的咨询方,如果没传,就按从旧到新的顺序挂断所有咨询方的通话,all挂断目标坐席相关所有通话,如果被监听,强插,同时挂断组长通话,groupadmin当目标坐席被监听,强插,密语时,用于挂断组长的通话,即结束组长的监听,强插,密语状态。
pwdtype StringUse plaintext or md5 password for agent or account
passwordStringpassword
usertypeStringagent / account
userStringAgent No. or Username
orgidentityStringThe identity string of the team
callbackFucStringcallback function
  • uniqueid example:
  • Hangup one party: uniqueid,
  • Hnagup: uniqueid1, uniqueid2,…uniqueidN,
  • Return Format:

{code:code,message:message}

  • Type of the Return Value:JSON
  • Return Values:
Value Description
|Return|1|Return|message
{code:成功,message:信息描述}
当uniqueid不为空时,message为每个uniqueid执行挂断的结果,举例
{code:1,message: 4781:success,4782:failed }
success代表挂断成功
failed代表挂断失败
|Return|2|Return|message
Failed||Messages
en/custom_development_guide/apis/javascript/hangup.1473231499.txt.gz · Last modified: 2017/12/12 03:11 (external edit)
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki