This is an old revision of the document!
====== Call Consult ====== *Function: <code>consultCJI(targetdn, agentgroupid, consulttype, agentuniqueid, calleruniqueid, pwdtype, password, usertype, user, orgidentity, callbackFuc)</code> *Description: <code>When agent in a call or in a conference, make a call to a new party, when it’s answered, agent will talk to new party, the old party will be held(MOH) or stay in conference</code> *Parameters: ^Params ^Type ^Description ^ |targetdn|String|Agent No. (internal consult) or phone number (external consult)| |agentgroupid|String|agent group id when it’s a internal consult, put 0 if it’s a external consult| |consulttype|String|internal / external| |agentuniqueid|String|agent uniqueid of the agent| |calleruniqueid|String|uniqueid of the caller| |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| *Return Format: <code>{code:code,message:message} Type of the Return Value:JSON</code> *Return Values: ^Value ^Description ^ |<code>{code:1,message:message}</code>|<code>{code:Succeed,message:Messages}</code>| |<code>{code:2,message:message}</code>|<code>{code:Failed,message:Messages}</code>|