[Freeswitch-svn] [commit] r11700 - freeswitch/branches/gmaruzz/mod_skypiax

FreeSWITCH SVN gmaruzz at freeswitch.org
Mon Feb 9 04:55:18 PST 2009


Author: gmaruzz
Date: Mon Feb  9 06:55:17 2009
New Revision: 11700

Log:
skypiax: cleaning skypiax_protocol.c

Modified:
   freeswitch/branches/gmaruzz/mod_skypiax/skypiax_protocol.c

Modified: freeswitch/branches/gmaruzz/mod_skypiax/skypiax_protocol.c
==============================================================================
--- freeswitch/branches/gmaruzz/mod_skypiax/skypiax_protocol.c	(original)
+++ freeswitch/branches/gmaruzz/mod_skypiax/skypiax_protocol.c	Mon Feb  9 06:55:17 2009
@@ -1495,35 +1495,22 @@
                 tech_pvt->skype_callflow = CALLFLOW_STATUS_INPROGRESS;
                 strncpy(tech_pvt->skype_call_id, id, sizeof(tech_pvt->skype_call_id) - 1);
                 tech_pvt->interface_state = SKYPIAX_STATE_UP;
-                if (option_debug > 1)
                   DEBUGA_SKYPE("skype_call: %s is now active\n", SKYPIAX_P_LOG, id);
-
-                if (option_debug > 1)
-                  DEBUGA_SKYPE("skype_call: %s SKYPIAX_CONTROL_ANSWER sent\n",
-                               SKYPIAX_P_LOG, id);
-
+                sprintf(msg_to_skype, "ALTER CALL %s SET_INPUT PORT=\"%d\"", id,
+                        tech_pvt->tcp_cli_port);
+                skypiax_skype_write(tech_pvt, msg_to_skype);
                 start_audio_threads(tech_pvt);
-
                 sprintf(msg_to_skype, "ALTER CALL %s SET_OUTPUT PORT=\"%d\"", id,
                         tech_pvt->tcp_srv_port);
                 skypiax_skype_write(tech_pvt, msg_to_skype);
-                skypiax_sleep(100000);
-                sprintf(msg_to_skype, "ALTER CALL %s SET_INPUT PORT=\"%d\"", id,
-                        tech_pvt->tcp_cli_port);
-                skypiax_skype_write(tech_pvt, msg_to_skype);
-                skypiax_sleep(100000);
 
                 tech_pvt->skype_callflow = SKYPIAX_STATE_UP;
 
                 if (!strlen(tech_pvt->session_uuid_str)) {
-
                   DEBUGA_SKYPE("New Inbound Channel!\n", SKYPIAX_P_LOG);
-
                   new_inbound_channel(tech_pvt);
                 } else {
-
                   DEBUGA_SKYPE("Outbound Channel Answered!\n", SKYPIAX_P_LOG);
-
                   outbound_channel_answered(tech_pvt);
                 }
 



More information about the Freeswitch-svn mailing list