-
-
Notifications
You must be signed in to change notification settings - Fork 244
Using Homer API
Lorenzo Mangani edited this page Dec 9, 2021
·
8 revisions
The HOMER 7 API is documented using swagger and available directly within the ADMIN UI
For full documentation, please install and consult the dedicated APIDOC available on the API repository. A Few basic illustrative examples are available on the main repository
In order for requests to be accepted and processed by the API, a Client session ID needs to be authorized with the API Backend. Requests without an authorized or expired Cookie will always be rejected forcing Client re-authentication.
http://localhost/api/v1/session
Example usage:
curl -v --cookie "HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/" -X POST -H "Content-Type: application/json" \
-d '{"username":"admin","password":"test123"}' \
http://localhost/api/v1/session
Field | Type | Description |
---|---|---|
HOMERSESSID | String | cookie session id |
Parameter
Field | Type | Description |
---|---|---|
username | String | Login for session creation |
password | String | Password for session creation |
The returned session UUID should be used in cookie request for subsequent API calls:
HTTP/1.1 200 OK
{
"status": 200,
"sid": "tcuass65ejl2lifoopuuurpmq7",
"auth": "true",
"message": "ok",
"data": {
"uid": "3",
"username": "admin",
"gid": "10",
"grp": "users,admins",
"firstname": "Alexandr",
"lastname": "Dubovikov",
"email": "[email protected]",
"lastvisit": "2015-06-18 08:25:55"
}
HTTP/1.1 200 OK
Set-Cookie: HOMERSESSID=tcuass65ejl2lifoopuuurpmq7; path=/
Content-Type: application/json; charset=UTF-8
{
"sid":"tcuass65ejl2lifoopuuurpmq7"
"auth":"false",
"status":"wrong-session"
}
(C) 2008-2023 QXIP BV
HEP/EEP Agent Examples:
- CaptAgent
- HEPlify
- Kamailio
- OpenSIPS
- FreeSwitch
- Asterisk
- sipgrep
- sngrep
- RTPEngine
- RTPProxy
- Oracle ACME SBC
- Sonus SBC
- Avaya SM
- Sansay SBC
HEP/EEP Agent Examples (LOGS):
HEP/EEP Proxy:
Extra Examples:
- Custom JSON Stats
- RTCP-XR Stats
- GEO IP Maps
- Janus/Meetecho-WebRTC
- Cloudshark Export
- Encrypted HEP Tunneling
- SNMP Monitoring
- FreeSWITCH ESL Monitoring
- Kazoo Monitoring
- Speech-to-Text-to-HEP
Extra Resources: