Grandstream GXP2200 GMI Web Service Guide User Manual
Page 37

GXP2200 GMI WEB SERVICE GUIDE V1.0
Page 36 of 38
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"}