]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
change hangup method
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 12 Mar 2007 20:16:44 +0000 (20:16 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 12 Mar 2007 20:16:44 +0000 (20:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4574 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_portaudio/mod_portaudio.c

index 73b8c56d6190196d0cec2405aaa99f08e4de01ff..bc1a8115048351366af788c1bf15aff7542cfd90 100644 (file)
@@ -1477,7 +1477,8 @@ static switch_status_t hangup_call(char **argv, int argc, switch_stream_handle_t
     }
 
        if (tech_pvt) {
-        switch_set_flag_locked(tech_pvt, TFLAG_HUP);
+               switch_channel_hangup(switch_core_session_get_channel(tech_pvt->session), SWITCH_CAUSE_NORMAL_CLEARING);
+        //switch_set_flag_locked(tech_pvt, TFLAG_HUP);
                stream->write_function(stream, "OK\n");
        } else {
                stream->write_function(stream, "NO SUCH CALL\n");