<html><head><base href="x-msg://1587/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">It is hanging up because it has nothing left to do in the dialplan. &nbsp;Add more applications after it or do more in your function.<div><br></div><div><div><br></div><div>Mike</div><div><br><div><div>On Oct 4, 2009, at 3:18 PM, Francisco Scaramanga wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">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<span class="Apple-converted-space">&nbsp;</span><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?<span class="Apple-converted-space">&nbsp;</span><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><span class="Apple-converted-space">&nbsp;</span>[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><span class="Apple-converted-space">&nbsp;</span>[CS_DESTROY]<br>&nbsp;<br><br>&nbsp;<br><br><hr>Neu, Besser, Hotmail!<span class="Apple-converted-space">&nbsp;</span><a href="http://redirect.gimas.net/?n=M0910Hotmail" target="_new">Die neuen Features sind da.</a><span class="Apple-converted-space">&nbsp;</span>_______________________________________________<br>FreeSWITCH-dev mailing list<br><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev<br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></span></blockquote></div><br></div></div></body></html>