[Freeswitch-dev] get no callbacks to endpoint_interface

Kevin Green kevin at johnnyvoip.com
Sun Oct 11 13:18:50 PDT 2009


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.

Regards,
   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=""/>
>         </condition>
> </extension>
>
> ------------------------------
> Schneller, einfacher und noch mehr Fun – mit Windows 7<http://redirect.gimas.net/?n=M0910Win7>
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20091011/6a7a5c7f/attachment.html 


More information about the FreeSWITCH-dev mailing list