<html><head><base href="x-msg://1816/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">There are all kinds of things you can do, depends on what you want to do. &nbsp;If you want to keep it alive you need to not return from that function. &nbsp;You should be doing something to service the audio on the channel or put it in park.<div><div><br></div><div>Mike</div><div><br><div><div>On Oct 4, 2009, at 5:43 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; "><br>okay, I added an application &lt;action application="playback"&nbsp; .../&gt; to&nbsp;the dialplan&nbsp;and the call is not dropped anymore.<span class="Apple-converted-space">&nbsp;</span><br>&nbsp;<br>But what if I just want the call kept alive by my&nbsp;application mod_skel?<br>&nbsp;<br>Do I have to change the channel status for that?<br><hr id="stopSpelling">From:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:mike@jerris.com">mike@jerris.com</a><br>Date: Sun, 4 Oct 2009 17:13:55 -0400<br>To:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:freeswitch-dev@lists.freeswitch.org">freeswitch-dev@lists.freeswitch.org</a><br>Subject: Re: [Freeswitch-dev] call is dropped after answer<br><br>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="ecxApple-interchange-newline"><blockquote><span class="ecxApple-style-span" style="word-spacing: 0px; font: normal normal normal medium/normal Helvetica; text-transform: none; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; "><div class="ecxhmmessage" 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="ecxApple-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="ecxApple-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="ecxApple-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="ecxApple-converted-space">&nbsp;</span>[CS_DESTROY]<br></div></span></blockquote></div></div></div></div></span></blockquote></div><br></div></div></body></html>