{"id":22535718,"url":"https://github.com/ik5/esl","last_synced_at":"2025-06-24T10:11:34.716Z","repository":{"id":57577191,"uuid":"252755772","full_name":"ik5/esl","owner":"ik5","description":"[WIP] Freeswitch ESL implementation in Golang","archived":false,"fork":false,"pushed_at":"2020-08-21T09:19:55.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T06:22:31.167Z","etag":null,"topics":["client","esl","freeswitch","freeswitch-event-socket","go","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ik5.png","metadata":{"files":{"readme":"readme.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-03T14:27:50.000Z","updated_at":"2020-09-01T01:53:43.000Z","dependencies_parsed_at":"2022-09-11T23:40:52.650Z","dependency_job_id":null,"html_url":"https://github.com/ik5/esl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ik5/esl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ik5%2Fesl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ik5%2Fesl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ik5%2Fesl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ik5%2Fesl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ik5","download_url":"https://codeload.github.com/ik5/esl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ik5%2Fesl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261649857,"owners_count":23189756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","esl","freeswitch","freeswitch-event-socket","go","golang"],"created_at":"2024-12-07T10:08:22.162Z","updated_at":"2025-06-24T10:11:34.661Z","avatar_url":"https://github.com/ik5.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESL\n\nThe following package create support for [Freeswitch](https://www.freeswitch.org) [ESL](https://freeswitch.org/confluence/display/FREESWITCH/Event+Socket+Library) in Go Language.\n\n## Why ?\n\nThere already good implementation for ESL, but on some cases it didn't work well for me.\n\nThe way I need a support for ESL:\n\n  * I need to separate events and actions.\n  * Ability to connect using backoff to find the best way to connect if it fails.\n  * Easy to debug, log agnostic way.\n  * Raw vs Parsed support.\n  * Minimal dependencies as possible.\n  * [mod_commands](https://freeswitch.org/confluence/display/FREESWITCH/mod_commands) (and ESL interface) support.\n  * Support for [dptools](https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools) using API's [\"execute\"](https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket#mod_event_socket-3.9.1.1execute) command.\n  * Test driven development (most of the time) for all my commands.\n  * Testing over my [Freeswitch's docker](https://github.com/ik5/freeswitch-docker) repo.\n\n## Work in progress\n\nAt the moment the package is work in progress that will add more support, when I\nneed it for my projects.\n\n# How it works?\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/ik5/esl\"\n)\n\nconst (\n\tmaxRetries uint64        = 24\n\ttimeout    time.Duration = 45 * time.Second\n)\n\nfunc main() {\n\thost := os.Getenv(\"ESLHOST\")\n\tpassword := os.Getenv(\"ESLPASSWORD\")\n\n\t// Connect and login\n\tsocket, err := esl.Connect(host, password, maxRetries, timeout)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tdefer socket.Close()\n\n\tmsg, err := socket.API(\"echo\", \"Hello World\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n  // Should print:\n  //   Answer: Headers: Content-Type=api/response | Content-Length=11 ; Body: Hello World\n\tfmt.Printf(\"Answer: %s\\n\", msg)\n}\n```\n\n# TODO:\n\n - [ ] Add debug support using callbacks.\n - [ ] Finish interface support.\n - [ ] Work on supporting events (Dual connection commands and for events).\n - [ ] Parse events\n - [ ] Work on supporting callbacks for registered events.\n - [ ] Examples\n - [ ] Better documentation\n\n# License\n\nThe following project release under Apache license Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fik5%2Fesl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fik5%2Fesl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fik5%2Fesl/lists"}