[Freeswitch-svn] [commit] r11025 - freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax

FreeSWITCH SVN gmaruzz at freeswitch.org
Wed Dec 31 09:00:30 PST 2008


Author: gmaruzz
Date: Wed Dec 31 12:00:30 2008
New Revision: 11025

Log:
skypiax: let's switch_channel_mark_answered the channel when it's actually answered, after having been pre_answered

Modified:
   freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c
   freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c

Modified: freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c
==============================================================================
--- freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c	(original)
+++ freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c	Wed Dec 31 12:00:30 2008
@@ -542,6 +542,7 @@
     switch_channel_set_flag(channel, CF_OUTBOUND);
     switch_set_flag_locked(tech_pvt, TFLAG_OUTBOUND);
     switch_channel_set_state(channel, CS_INIT);
+                switch_channel_mark_pre_answered(channel);
     return SWITCH_CAUSE_SUCCESS;
   }
 

Modified: freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c
==============================================================================
--- freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	(original)
+++ freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	Wed Dec 31 12:00:30 2008
@@ -1668,6 +1668,8 @@
                     switch_core_session_destroy(&session);
                   }
                 }
+              WARNINGA("skype_call: %s, answered\n", SKYPIAX_P_LOG, id);
+                switch_channel_mark_answered(channel);
               } else {
                 switch_core_session_t *session = NULL;
                 private_t *tech_pvt = NULL;
@@ -1677,7 +1679,8 @@
                 //session = tech_pvt->session;
                 session = global_session;
                 channel = switch_core_session_get_channel(session);
-                switch_channel_mark_pre_answered(channel);
+              WARNINGA("skype_call: %s, answered\n", SKYPIAX_P_LOG, id);
+                switch_channel_mark_answered(channel);
 
                 //switch_channel_set_state(channel, CS_EXECUTE);
 



More information about the Freeswitch-svn mailing list