This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Hangup ====== *Function: <code>hangupCJI(uniqueid, pwdtype, password, usertype, user, orgidentity, callbackFuc)</code> *Description: <code>Hangup one call party or a list of parties</code> *Parameters: ^Params ^Type ^Description ^ |uniqueid|String|the uniqueid of the calls you want to hangup, end with a comma| |targetagent|String|If 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.| |target|String|hangup target:(channel,agent,caller,consult,all),uniqueId is required if you want to hangup a channel| |pwdtype |String|Use plaintext or md5 password for agent or account| |password|String|password| |usertype|String|agent / account| |user|String|Agent No. or Username| |orgidentity|String|The identity string of the team| |callbackFuc|String|callback function| *uniqueid example: *Hangup one party: uniqueid, *Hnagup: uniqueid1, uniqueid2,…uniqueidN, *Return Format: <code>{code:code,message:message}</code> *Type of the Return Value:JSON *Return Values: ^Value ^Description ^ |<code>|Return|1|Return|message</code>|<code>{code:succeed,message:message} When uniqueid is not empty, message gives result for each uniqueid, ex: {code:1,message: 4781:success,4782:failed }</code>| |<code>|Return|2|Return|message</code>|<code>Failed||Messages</code>|

en/custom_development_guide/apis/javascript/hangup.1473254911.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