Check the current SIP registration status of an agent in OpenSIPS
| Field | Type | Description |
|---|---|---|
state | string | OpenSIPS registration state name (see table below) |
stateCode | integer | Numeric state code (0-9) |
enabled | string | Whether the registration is enabled ("yes" or "no") |
expires | integer | Registration expiration timestamp |
lastRegisterSent | string | Timestamp of the last REGISTER request sent |
registrationTimeout | string | Registration timeout value in seconds |
isRegistered | boolean | true if the agent is currently registered and receiving calls |
errorMessage | string | Human-readable description of the current state |
| State | Code | Description |
|---|---|---|
NOT_REGISTERED_STATE | 0 | No REGISTER has been sent yet |
REGISTERING_STATE | 1 | Waiting for reply (no auth) |
AUTHENTICATING_STATE | 2 | Waiting for reply (with auth) |
REGISTERED_STATE | 3 | Successfully registered |
REGISTER_TIMEOUT_STATE | 4 | No reply received (timeout) |
INTERNAL_ERROR_STATE | 5 | Error during processing |
WRONG_CREDENTIALS_STATE | 6 | Credentials rejected |
REGISTRAR_ERROR_STATE | 7 | Error reply from registrar |
NOT_FOUND | 0 | Registration not found in OpenSIPS |
state of REGISTERED_STATE (code 3) means the agent is successfully registered and ready to receive calls. Any other state indicates an issue that may need attention.| State | Likely Cause | Solution |
|---|---|---|
WRONG_CREDENTIALS_STATE | Invalid username or password | Verify SIP credentials with your provider |
REGISTER_TIMEOUT_STATE | Network or firewall issue | Check that the proxy/domain is reachable, try a different transport |
NOT_FOUND | Registration not yet synced | Wait a few seconds for the sync service to process |
INTERNAL_ERROR_STATE | Server-side error | Check SIP domain and proxy configuration |