]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
go in consume media right away
authorMathieu Rene <mrene@avgs.ca>
Thu, 26 Jul 2012 00:50:18 +0000 (20:50 -0400)
committerMathieu Rene <mrene@avgs.ca>
Thu, 26 Jul 2012 00:50:18 +0000 (20:50 -0400)
libs/freetdm/mod_freetdm/tdm.c

index a01ac153b2874e128bc7878be5ba7440ff4951a9..6076c193fe09ca200124a2130dfe98a61ce1e338 100644 (file)
@@ -256,6 +256,9 @@ fail:
 
 static switch_status_t channel_on_init(switch_core_session_t *session)
 {
+    switch_channel_t *channel = switch_core_session_get_channel(session);
+    
+    switch_channel_set_state(channel, CS_CONSUME_MEDIA);   
     return SWITCH_STATUS_SUCCESS;   
 }