<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I wrote my own new FreeSwitch module "mod_skel" and successfully created an application interface with:<BR>
&nbsp;<BR>
&nbsp; SWITCH_ADD_APP(app_interface, "my_mod_skel", "Modul skel", "test", mod_skel_function, "no Syntax", SAF_NONE);<BR>&nbsp;<BR>
The dialplan is <BR>
&nbsp;<BR>
&nbsp;&lt;extension name="sip_test"&gt;<BR>&nbsp;&nbsp;&lt;condition field="destination_number" expression="^54322$"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="my_mod_skel" data=""/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/condition&gt;<BR>&nbsp;&lt;/extension&gt;<BR>
<BR>In the function mod_skel_function I do the following to answer the call.<BR>
&nbsp;<BR>
SWITCH_STANDARD_APP(mod_skel_function)<BR>{<BR>&nbsp;switch_channel_t *channel = switch_core_session_get_channel(session);<BR>&nbsp;switch_channel_clear_flag(channel, CF_PROXY_MEDIA);<BR>&nbsp;switch_channel_clear_flag(channel, CF_PROXY_MODE);<BR>&nbsp;switch_channel_answer(channel);<BR>}<BR>
&nbsp;<BR>
The problem is that sofia hungs up immediatley (see logfile below).<BR>
&nbsp;<BR>
How can I keep the call alive? <BR>How can I pick up a new incoming call and start a conference?<BR>
&nbsp;<BR>
&nbsp;<BR>
2009-10-04 21:13:01.827000 [NOTICE] mod_sofia.c:1503 Pre-Answer sofia/internal/1<BR><A href="mailto:002@192.168.1.33">002@192.168.1.33</A>!<BR>2009-10-04 21:13:06.795000 [NOTICE] mod_skel.c:121 Channel [sofia/internal/1002@<BR>192.168.1.33] has been answered<BR>2009-10-04 21:13:06.803000 [NOTICE] switch_core_state_machine.c:179 Hangup sofia<BR><A>/internal/1002@192.168.1.33</A> [CS_EXECUTE] [NORMAL_CLEARING]<BR>2009-10-04 21:13:08.229000 [NOTICE] switch_core_session.c:1087 Session 1 (sofia/<BR><A href="mailto:internal/1002@192.168.1.33">internal/1002@192.168.1.33</A>) Ended<BR>2009-10-04 21:13:08.229000 [NOTICE] switch_core_session.c:1089 Close Channel sof<BR><A href="mailto:ia/internal/1002@192.168.1.33">ia/internal/1002@192.168.1.33</A> [CS_DESTROY]<BR>
&nbsp;<BR>
<BR>&nbsp;<BR>                                               <br /><hr />Neu, Besser, Hotmail! <a href='http://redirect.gimas.net/?n=M0910Hotmail' target='_new'>Die neuen Features sind da.</a></body>
</html>