Hangup

  • Function:

hangupCJI(uniqueid, targetagent, target, 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
targetagentStringIf you don't have uniqueId, you need to put agent number. If you want to hangup group admin who is in spy, barge-in or whisper, put agent number, such as, group admin 2227 is spying agent 1986, put 1986 here if you need to hangup 2227.
targetStringhangup target:(channel,agent,caller,consult,all),uniqueId is required if you want to hangup a channel
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
{code:1,message:message}
{code:succeed,message:message}
When uniqueid is not empty, message gives result for each uniqueid, ex:
{code:1,message: 4781:success,4782:failed }
{code:2,message:message}
{code:failed,message:message}
en/custom_development_guide/apis/javascript/hangup.txt · Last modified: 2018/12/29 02:43 by donnie
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki