<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>
<BR>
SWITCH_ADD_APP(app_interface, "my_mod_skel", "Modul skel", "test", mod_skel_function, "no Syntax", SAF_NONE);<BR> <BR>
The dialplan is <BR>
<BR>
<extension name="sip_test"><BR> <condition field="destination_number" expression="^54322$"><BR> <action application="my_mod_skel" data=""/><BR> </condition><BR> </extension><BR>
<BR>In the function mod_skel_function I do the following to answer the call.<BR>
<BR>
SWITCH_STANDARD_APP(mod_skel_function)<BR>{<BR> switch_channel_t *channel = switch_core_session_get_channel(session);<BR> switch_channel_clear_flag(channel, CF_PROXY_MEDIA);<BR> switch_channel_clear_flag(channel, CF_PROXY_MODE);<BR> switch_channel_answer(channel);<BR>}<BR>
<BR>
The problem is that sofia hungs up immediatley (see logfile below).<BR>
<BR>
How can I keep the call alive? <BR>How can I pick up a new incoming call and start a conference?<BR>
<BR>
<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>
<BR>
<BR> <BR>                                            <br /><hr />Neu, Besser, Hotmail! <a href='http://redirect.gimas.net/?n=M0910Hotmail' target='_new'>Die neuen Features sind da.</a></body>
</html>