<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<FONT color=#008000 size=2><FONT color=#008000 size=2>
<BR>
I wrote a new module and defined an endpoint interface in the following way:<BR>
<BR>
<BR></FONT></FONT><FONT size=2>
*module_interface = switch_loadable_module_create_module_interface(pool, modname);<BR>
</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2> <BR></FONT></FONT><FONT size=2>
mod_skel_endpoint_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_ENDPOINT_INTERFACE);<BR>
mod_skel_endpoint_interface->interface_name = </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"mod_skel_interface"</FONT></FONT><FONT size=2>;<BR>
mod_skel_endpoint_interface->io_routines = &mod_skel_io_routines;<BR>
mod_skel_endpoint_interface->state_handler = &mod_skel_event_handlers;<BR>
<BR>
Futhermore I implemented the io_routines and state_handler of the interface<BR>
<BR>
The problem is that my call back functions are never called, for instance<BR>
<BR><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
static</FONT></FONT><FONT size=2> switch_status_t channel_on_init(switch_core_session_t *session)<BR>
{<BR>
...<BR>
}<BR>
<BR>
Is there something more I must do except to define and implement the endpoint interface?<BR>
<BR>
My dialplan is:<BR>
<BR>
<extension name="test"><BR> <condition field="destination_number" expression="54505"><BR> <action application="mymod_skel" data=""/><BR> </condition><BR></extension><BR></FONT></FONT>                                            <br /><hr />Schneller, einfacher und noch mehr Fun – <a href='http://redirect.gimas.net/?n=M0910Win7' target='_new'>mit Windows 7</a></body>
</html>