Gmiengine. udp (), Gmiengine.transfer(), 16 gmiengine. udp () – Grandstream GXV3140 GMI Guide User Manual
Page 14: 17 gmiengine.transfer()

Grandstream Networks, Inc.
GMI HTML SDK and API Guide
Page 14 of 43
www.grandstream.com
Last Updated: 09/2010
prototype is function cb_play(result), the parameter “result” is the
response to the GMIEngine.play request.
result is a text string in json format. For example, {"Response":"
Success", ","Message": " Play Originate" }; “Response” returns the
result. There are two possibilities- “Success” or “ERROR”,
“Message” returns the response message.
Return Value:
None
Additional Description:
None
4.16 GMIEngine. udp ()
Function:
GMIEngine.udp (host, port, data, timeout, cb_udp)
Purpose:
Send packets to the specified UDP port of the host/server
Parameter and Return
Value:
Parameter:
host -- Destination server URL or IP address
port -- Destination UDP port
data -- Data to be sent (String)
timeout – The timeout time for waiting for the reponse from the
server. The unit is in seconds.
cb_udp – Callback function for the UDP function. The function
prototype is function cb_udp(result), the parameter “result” is the
response to the send UDP request.
result is a text string in json format. For example, {"Response":"
Success", "," Message": "
Light Off"}; “Response” returns the result.
There are two possibilities- “Success” or “ERROR”, “Message”
returns the response message returned by the destination server.
Return Value:
None
Additional Description:
None
4.17 GMIEngine.transfer()
Function:
GMIEngine.transfer
()