Skip to content

Executing commands on the outbound session #21

@rakesh-voiger

Description

@rakesh-voiger

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions