Gmiengine.geturi(), 5 gmiengine.geturi() – Grandstream GXV3140 GMI Guide User Manual
Page 6

Grandstream Networks, Inc.
GMI HTML SDK and API Guide
Page 6 of 43
www.grandstream.com
Last Updated: 09/2010
Value:
acct – Specifies the account used to dial out. (Starting from 0).
number – Specifies the number to call to.
cb_call - Callback function after the call request is sent. The
function prototype is function cb_call(result), the parameter
“result” is the response to the call request
result is a text string in json format. For example,
{"Response":"
Success", ","Message": "Call Originate" } or
{"Response": "ERROR", ","Message": "User can't be null"");
“Response” returns the result. There are two
possibilities- “Success” or “ERROR”, “Message” returns the
specific error message.
Return Value:
None
Additional Description:
None
4.5 GMIEngine.getURI()
Function:
GMIEngine.
getURI (acct, cb_get)
Purpose:
Used to obtain the URI of the specified account
Parameter and Return
Value:
Parameter:
acct – Specifies the account to be used. (Starting from 0)
cb_get—Callback function after the getURI request is sent. The
function prototype is function cb_get(result) , the parameter
“result” is the response to the function call.
result is a text string in json format. For example,
{"Response":"Success",","Message": "[email protected]:48879"}
or
{"Response": "ERROR", ","Message": "Acct can't be null"");
“Response” returns the result. There are two
possibilities- “Success” or “ERROR”, “Message” returns the URI.
When the specified account is configured, the URI returned will
contatin “@”.
Return Value:
None