<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<BR>okay, I added an application <action application="playback" .../> to the dialplan and the call is not dropped anymore. <BR>
<BR>
But what if I just want the call kept alive by my application mod_skel?<BR>
<BR>
Do I have to change the channel status for that?<BR>
<HR id=stopSpelling>
From: mike@jerris.com<BR>Date: Sun, 4 Oct 2009 17:13:55 -0400<BR>To: freeswitch-dev@lists.freeswitch.org<BR>Subject: Re: [Freeswitch-dev] call is dropped after answer<BR><BR><BASE>It is hanging up because it has nothing left to do in the dialplan. 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: medium 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> <BR> SWITCH_ADD_APP(app_interface, "my_mod_skel", "Modul skel", "test", mod_skel_function, "no Syntax", SAF_NONE);<BR> <BR>The dialplan is<SPAN class=ecxApple-converted-space> </SPAN><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?<SPAN class=ecxApple-converted-space> </SPAN><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><SPAN class=ecxApple-converted-space> </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> </SPAN>[CS_DESTROY]<BR> <BR><BR> <BR><BR>
<HR>
Neu, Besser, Hotmail!<SPAN class=ecxApple-converted-space> </SPAN><A href="http://redirect.gimas.net/?n=M0910Hotmail">Die neuen Features sind da.</A><SPAN class=ecxApple-converted-space> </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>                                            <br /><hr />So gehst du mir nicht vor die Tür! <a href='http://redirect.gimas.net/?n=M0910Herbstmode' target='_new'>Herbsttrends entdecken</a></body>
</html>