Endcall – Grandstream GXV3275 GMI Web Service Guide User Manual
Page 42
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 41 of 44
the return data is as follows:
jsoncallback(S)
where jsoncallback is the callback function name
2. Otherwise, the line status value will be returned.
• -1: Retrieve line status failed
• 0: CALL_IDLE. The line is in idle and users can make calls
• 1: CALL_DIALING. Dialing
• 2: CALL_RINGING. Ringing
• 3: CALL_CALLING. Calling
• 4: CALL_CONNECTED. Connected
• 5: CALL_ONHOLD. Call on hold
• 6: CALL_TRANSFERED. Call is already transferred
• 7: CALL_ENDING. Call is being ended
• 8: CALL_FAILED. Call cannot be established
• 9: CALL_TRANSFER. Call is being transferred
• 10: CALL_CONFERENCE. In conference
• 11: CALL_PAGING
• 12: CALL_RINGBACK. Ringback
• 13: CALL_IPCALL. Direct IP Call
3. Other return data
• "line" cannot be empty
{"res": "error", "msg": "line can't be null"}
• "line" value is not valid
{"res": "error", "msg": "line invalid"}
• Cannot get line status
{"res": "error", "msg": "can't get line status"}
EndCall
Description
Stop current call (GMI 8 and later)
Parameters
N/A
Http Request
• URL: "http://" + ip +"/manager?"
• Action: "endcall"
• jsoncallback: "?" (This is the HTTP request for the call back function,
usually used in AJAX and JQuery)
• For example:
http://192.168.121.230/manager?action=endcall
Return
Get via json with jsoncallback, the results should be:
jsoncallback(S), jsoncallback are callback Function names.