Gmiengine.exit(), 10 gmiengine.exit() – Grandstream GXV3140 GMI Guide User Manual
Page 11

Grandstream Networks, Inc.
GMI HTML SDK and API Guide
Page 11 of 43
www.grandstream.com
Last Updated: 09/2010
Purpose:
Send message to a specified number from a specified account.
Parameter and Return
Value:
Parameter:
acct- Specifies the account used to send the message. (Starting
from 0).
user- Specifies the number to send the message to.
msg- Message Body
cb_message - Callback function for the send message request.
The function prototype is function cb_message(result), the
parameter “result” is the response to the message request
result is a text string in json format. For example,
{"Response":"
Success", ","Message": “Message Send"} or
{"Response": "ERROR", ","Message": "
MSG 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.10 GMIEngine.exit()
Function:
GMIEngine.exit()
Purpose:
Exit the GMI. Calling this function will exit the customized
application remodeled on the phone by the GMI and will release the
resources.
Parameter and Return
Value:
Parameter:
None
Return Value:
None
Additional Description:
This API function can be used to implement the “Exit” softkey for
the application implemented using GMI.