This is an old revision of the document!
====== Hangup ====== *Function: <code>hangup(uniqueid,targetagent,target,pwdtype,password,usertype,user,orgidentity)</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| *uniqueid example: *Hangup one party: uniqueid, *Hnagup: uniqueid1, uniqueid2,…uniqueidN, *Return Format: <code>|Retuen|code|Retuen|message</code> *Type of the Return Value: String *Return Values: ^Value ^Description ^ |<code>|Retuen|1|Retuen|message</code>|<code><code>|Retuen|succeed|Retuen|message When uniqueid is not empty, message gives result for each uniqueid, ex: |Retuen|1|Retuen|4781:success,4782:failed </code>| |<code>|Retuen|2|Retuen|message</code>|<code>Failed||Messages</code>|