Giter VIP home page Giter VIP logo

switchx's Introduction

CI

SwitchX

FreeSWITCH Event Socket Protocol client implementation with Elixir

Documentation can be found at https://hexdocs.pm/switchx.

Installation

def deps do
  [
    {:switchx, "~> 0.1.1"}
  ]
end

switchx's People

Contributors

evangilo avatar kalmik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

switchx's Issues

Examples.InboundSocket.Listen.handle_info raises an error when receive a FreeSWITCH event

Interactive Elixir (1.6.6) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Examples.InboundSocket.Listen.start_link()

20:33:11.556 [info] Connected
{:ok, #PID<0.678.0>}
iex(2)>
20:33:23.291 [error] GenServer #PID<0.678.0> terminating
** (FunctionClauseError) no function clause matching in Examples.InboundSocket.Listen.handle_info/2
(switchx) examples/listen_heartbeat_event.ex:18: Examples.InboundSocket.Listen.handle_info({:switchx_event, %SwitchX.Event{body: "", headers: %{"Content-Length" => "922", "Content-Type" => "text/event-plain", "Core-UUID" => "2b0ee67e-84f0-11ea-9d5e-07bdb26258d0", "Event-Calling-File" => "switch_core.c", "Event-Calling-Function" => "send_heartbeat", "Event-Calling-Line-Number" => "81", "Event-Date-GMT" => "Wed, 22 Apr 2020 23:33:23 GMT", "Event-Date-Local" => "2020-04-22 23:33:23", "Event-Date-Timestamp" => "1587598403270676", "Event-Info" => "System Ready", "Event-Name" => "HEARTBEAT", "Event-Sequence" => "742", "FreeSWITCH-Hostname" => "evangilo-edev", "FreeSWITCH-IPv4" => "10.0.2.15", "FreeSWITCH-IPv6" => "::1", "FreeSWITCH-Switchname" => "evangilo-edev", "FreeSWITCH-Version" => "1.10.2-release+git20200130T192407Z9f1878ce5264bit", "Idle-CPU" => "97.600000", "Max-Sessions" => "1000", "Session-Count" => "0", "Session-Peak-FiveMin" => "0", "Session-Peak-Max" => "0", "Session-Per-Sec" => "30", "Session-Per-Sec-FiveMin" => "0", "Session-Per-Sec-Last" => "0", "Session-Per-Sec-Max" => "0", "Session-Since-Startup" => "0", "Up-Time" => "0 years, 0 days, 0 hours, 10 minutes, 39 seconds, 510 milliseconds, 606 microseconds", "Uptime-msec" => "639510"}}}, %{conn: #PID<0.679.0>})
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: {:switchx_event, %SwitchX.Event{body: "", headers: %{"Content-Length" => "922", "Content-Type" => "text/event-plain", "Core-UUID" => "2b0ee67e-84f0-11ea-9d5e-07bdb26258d0", "Event-Calling-File" => "switch_core.c", "Event-Calling-Function" => "send_heartbeat", "Event-Calling-Line-Number" => "81", "Event-Date-GMT" => "Wed, 22 Apr 2020 23:33:23 GMT", "Event-Date-Local" => "2020-04-22 23:33:23", "Event-Date-Timestamp" => "1587598403270676", "Event-Info" => "System Ready", "Event-Name" => "HEARTBEAT", "Event-Sequence" => "742", "FreeSWITCH-Hostname" => "evangilo-edev", "FreeSWITCH-IPv4" => "10.0.2.15", "FreeSWITCH-IPv6" => "::1", "FreeSWITCH-Switchname" => "evangilo-edev", "FreeSWITCH-Version" => "1.10.2-release+git
20200130T192407Z9f1878ce5264bit", "Idle-CPU" => "97.600000", "Max-Sessions" => "1000", "Session-Count" => "0", "Session-Peak-FiveMin" => "0", "Session-Peak-Max" => "0", "Session-Per-Sec" => "30", "Session-Per-Sec-FiveMin" => "0", "Session-Per-Sec-Last" => "0", "Session-Per-Sec-Max" => "0", "Session-Since-Startup" => "0", "Up-Time" => "0 years, 0 days, 0 hours, 10 minutes, 39 seconds, 510 milliseconds, 606 microseconds", "Uptime-msec" => "639510"}}}
State: %{conn: #PID<0.679.0>}
** (EXIT from #PID<0.676.0>) shell process exited with reason: an exception was raised:
** (FunctionClauseError) no function clause matching in Examples.InboundSocket.Listen.handle_info/2
(switchx) examples/listen_heartbeat_event.ex:18: Examples.InboundSocket.Listen.handle_info({:switchx_event, %SwitchX.Event{body: "", headers: %{"Content-Length" => "922", "Content-Type" => "text/event-plain", "Core-UUID" => "2b0ee67e-84f0-11ea-9d5e-07bdb26258d0", "Event-Calling-File" => "switch_core.c", "Event-Calling-Function" => "send_heartbeat", "Event-Calling-Line-Number" => "81", "Event-Date-GMT" => "Wed, 22 Apr 2020 23:33:23 GMT", "Event-Date-Local" => "2020-04-22 23:33:23", "Event-Date-Timestamp" => "1587598403270676", "Event-Info" => "System Ready", "Event-Name" => "HEARTBEAT", "Event-Sequence" => "742", "FreeSWITCH-Hostname" => "evangilo-edev", "FreeSWITCH-IPv4" => "10.0.2.15", "FreeSWITCH-IPv6" => "::1", "FreeSWITCH-Switchname" => "evangilo-edev", "FreeSWITCH-Version" => "1.10.2-release+git20200130T192407Z9f1878ce52~64bit", "Idle-CPU" => "97.600000", "Max-Sessions" => "1000", "Session-Count" => "0", "Session-Peak-FiveMin" => "0", "Session-Peak-Max" => "0", "Session-Per-Sec" => "30", "Session-Per-Sec-FiveMin" => "0", "Session-Per-Sec-Last" => "0", "Session-Per-Sec-Max" => "0", "Session-Since-Startup" => "0", "Up-Time" => "0 years, 0 days, 0 hours, 10 minutes, 39 seconds, 510 milliseconds, 606 microseconds", "Uptime-msec" => "639510"}}}, %{conn: #PID<0.679.0>})
(stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:711: :gen_server.handle_msg/6
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.