This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:custom_development_guide:apis:webservice:hangup [2016/09/07 07:46] liuxl |
en:custom_development_guide:apis:webservice:hangup [2019/01/03 06:59] (current) donnie |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| *Function: | *Function: | ||
| - | <code>hangup(uniqueid, pwdtype, password, usertype, user, orgidentity)</code> | + | <code>hangup(uniqueid,targetagent,target,pwdtype,password,usertype,user,orgidentity)</code> |
| *Description: | *Description: | ||
| Line 11: | Line 11: | ||
| ^Params ^Type ^Description ^ | ^Params ^Type ^Description ^ | ||
| |uniqueid|String|the uniqueid of the calls you want to hangup, end with a comma| | |uniqueid|String|the uniqueid of the calls you want to hangup, end with a comma| | ||
| - | |targetagent|String|目标坐席工号,要操作哪个坐席的通话。uniqueid为空时,此项必填。uniqueid不为空时,此项可为空。如果挂断监听,强插,密语中的坐席组长(target=groupadmin),此处需要填写被监听,强插,密语的坐席工号。如2227组长监听1986,欲挂断2227,此处需要填写1986。| | + | |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|挂机对象(channel,agent,caller,consult,all),channel必须传uniqueid,挂断相应uniqueid的通话,agent挂断目标坐席通话,caller挂断客户,consult如果传了uniqueid 则只挂uniqueid 相应的咨询方,如果没传,就按从旧到新的顺序挂断所有咨询方的通话,all挂断目标坐席相关所有通话,如果被监听,强插,同时挂断组长通话,groupadmin当目标坐席被监听,强插,密语时,用于挂断组长的通话,即结束组长的监听,强插,密语状态。| | + | |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| | |pwdtype|String|Use plaintext or md5 password for agent or account| | ||
| |password|String|password| | |password|String|password| | ||
| Line 24: | Line 24: | ||
| *Return Format: | *Return Format: | ||
| - | <code>|Return|code|Return|message</code> | + | <code>|Retuen|code|Retuen|message</code> |
| *Type of the Return Value: String | *Type of the Return Value: String | ||
| Line 30: | Line 30: | ||
| ^Value ^Description ^ | ^Value ^Description ^ | ||
| - | |<code>|Return|1|Return|message</code>|<code><code>|Retuen|成功|Retuen|信息描述 | + | |<code>|Retuen|1|Retuen|message</code>|<code>|Retuen|succeed|Retuen|message |
| - | 当uniqueid不为空时,message为每个uniqueid执行挂断的结果,举例 | + | When uniqueid is not empty, message gives result for each uniqueid, ex: |
| |Retuen|1|Retuen|4781:success,4782:failed | |Retuen|1|Retuen|4781:success,4782:failed | ||
| - | success代表挂断成功 | ||
| - | failed代表挂断失败 | ||
| </code>| | </code>| | ||
| - | |<code>|Return|2|Return|message</code>|<code>Failed||Messages</code>| | + | |<code>|Retuen|2|Retuen|message</code>|<code>Failed||Messages</code>| |