]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
yep
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 8 Jun 2006 15:20:46 +0000 (15:20 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 8 Jun 2006 15:20:46 +0000 (15:20 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1571 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_portaudio/mod_portaudio.c

index f1dd1e62067196781e4d258a9a11fa1bd65018de..2545e495dba4faa6fa5482ddb61055e890d2b425 100644 (file)
@@ -409,6 +409,29 @@ static switch_status_t channel_answer_channel(switch_core_session_t *session)
        return SWITCH_STATUS_SUCCESS;
 }
 
+static switch_status_t channel_receive_message(switch_core_session_t *session, switch_core_session_message_t *msg)
+{
+       switch_channel_t *channel;
+       struct private_object *tech_pvt;
+                       
+       channel = switch_core_session_get_channel(session);
+       assert(channel != NULL);
+                       
+       tech_pvt = switch_core_session_get_private(session);
+       assert(tech_pvt != NULL);
+
+
+       switch (msg->message_id) {
+       case SWITCH_MESSAGE_INDICATE_PROGRESS: 
+               {
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Engage Early Media\n");
+                       switch_set_flag(tech_pvt, TFLAG_IO);
+               }
+       default:
+               break;
+       }
+}
+
 
 static switch_api_interface_t send_dtmf_interface = {
        /*.interface_name */ "padtmf",