{"action":"closed","issue":{"url":"https://api.github.com/repos/englercj/node-esl/issues/55","repository_url":"https://api.github.com/repos/englercj/node-esl","labels_url":"https://api.github.com/repos/englercj/node-esl/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/englercj/node-esl/issues/55/comments","events_url":"https://api.github.com/repos/englercj/node-esl/issues/55/events","html_url":"https://github.com/englercj/node-esl/issues/55","id":161551756,"number":55,"title":"How to send messages using node-els","user":{"login":"karapetyan","id":1526786,"avatar_url":"https://avatars.githubusercontent.com/u/1526786?v=3","gravatar_id":"","url":"https://api.github.com/users/karapetyan","html_url":"https://github.com/karapetyan","followers_url":"https://api.github.com/users/karapetyan/followers","following_url":"https://api.github.com/users/karapetyan/following{/other_user}","gists_url":"https://api.github.com/users/karapetyan/gists{/gist_id}","starred_url":"https://api.github.com/users/karapetyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karapetyan/subscriptions","organizations_url":"https://api.github.com/users/karapetyan/orgs","repos_url":"https://api.github.com/users/karapetyan/repos","events_url":"https://api.github.com/users/karapetyan/events{/privacy}","received_events_url":"https://api.github.com/users/karapetyan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-21T22:11:37Z","updated_at":"2016-06-27T16:52:06Z","closed_at":"2016-06-27T16:52:06Z","body":"here is some simplified example on lua:\r\n\r\nfreeswitch.consoleLog(\"info\", \"chat console\\n\")\r\nlocal event = freeswitch.Event(\"CUSTOM\", \"SMS::SEND_MESSAGE\");\r\nevent:addHeader(\"proto\",\"ws\");\r\nevent:addHeader(\"dest_proto\", \"sip\");\r\nevent:addHeader(\"from\",\"2183@internal\");\r\nevent:addHeader(\"to\",\"internal/2183@3waytalk.com\");\r\nevent:addHeader(\"type\",\"text/html\");\r\nevent:addBody(\"ping\");\r\nfreeswitch.consoleLog(\"info\", event:serialize());\r\nevent:fire();\r\n\r\n\r\nhow to make same on node-esl ?"}}
{"actor":{"display_login":"englercj"}}