====== bind extension ======
* Function:
setdevice (orgidentity, exten, user, pwdtype, password)
* Description:
Change agent bind number, agent need to check out of agent group before using this API.
* Parameters:
^ Params ^ Type ^ Description ^
|orgidentity|String|team identity string|
|exten|String|extension number|
|user|String|agent No.|
|pwdtype|String|password type: plaintext/md5|
|password|String|password|
* Return Format:
|Retuen|code|Retuen|message
* Type of the Return Value: String
* Return values:
^ Value ^ Description ^
||Retuen|1|Retuen|message||Retuen|succeed|Retuen|message|
||Retuen|2|Retuen|message||Retuen|failed|Retuen|message|