As per the example here https://github.com/kalmik/switchx/blob/master/examples/outbound.ex, i have implemented the outbound socket. From freeswitch, I can call this socket and a new Examples.OutboundSession gets initialized. The init and callback_mode gets called but control never comes to waiting_data or ready methods. I want to answer the call or run some commands on it, but I don't understand where exactly to do them. I tried from init (SwitchX.api(conn, "answer")) but nothing happens, it is just stuck there (I don't think init is the right place to do it though).
As per the example here https://github.com/kalmik/switchx/blob/master/examples/outbound.ex, i have implemented the outbound socket. From freeswitch, I can call this socket and a new Examples.OutboundSession gets initialized. The
initandcallback_modegets called but control never comes towaiting_dataorreadymethods. I want to answer the call or run some commands on it, but I don't understand where exactly to do them. I tried frominit(SwitchX.api(conn, "answer")) but nothing happens, it is just stuck there (I don't think init is the right place to do it though).