[Freeswitch-dev] get no callbacks to endpoint_interface

Francisco Scaramanga scaram at hotmail.de
Mon Oct 12 11:11:11 PDT 2009


Now I use the following dialplan:


<action application="bridge" data="MyEndpoint>


Now interface functions from mod_skel_endpoint_interface->io_routines are called, but not

from mod_skel_endpoint_interface->state_handler.


I am wondering why still sofia endpoint_interface functions are called (sofia_on_init and sofia_on_routing)




From: kevin at johnnyvoip.com
Date: Sun, 11 Oct 2009 16:18:50 -0400
To: freeswitch-dev at lists.freeswitch.org
Subject: Re: [Freeswitch-dev] get no callbacks to endpoint_interface

If you are looking to use this as an endpoint then you must treat it as such in your dialplan. You are trying to use it as an application. To use it as an endpoint you treat it like sofia or skype and use the bridge command or something along those lines and then your destination is "<endpoint>/<user/account indentifier>" where endpoint is the name that you give your endpoint.
   Kevin Green

On Sun, Oct 11, 2009 at 2:40 PM, Francisco Scaramanga <scaram at hotmail.de> wrote:

I wrote a new module and defined an endpoint interface in the following way:
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
mod_skel_endpoint_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_ENDPOINT_INTERFACE);
mod_skel_endpoint_interface->interface_name = "mod_skel_interface";
mod_skel_endpoint_interface->io_routines = &mod_skel_io_routines;
mod_skel_endpoint_interface->state_handler = &mod_skel_event_handlers;
Futhermore I implemented the io_routines and state_handler of the interface
The problem is that my call back functions are never called, for instance
static switch_status_t channel_on_init(switch_core_session_t *session)
Is there something more I must do except to define and implement the endpoint interface?
My dialplan is:
<extension name="test">
        <condition field="destination_number" expression="54505">
             <action application="mymod_skel" data=""/>

Schneller, einfacher und noch mehr Fun – mit Windows 7
FreeSWITCH-dev mailing list
FreeSWITCH-dev at lists.freeswitch.org

So gehst du mir nicht vor die Tür! Herbsttrends entdecken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091012/4a0f6802/attachment.html 

More information about the FreeSWITCH-dev mailing list