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

FreeSWITCH SVN gmaruzz at freeswitch.org
Thu Dec 4 21:36:24 PST 2008


Author: gmaruzz
Date: Fri Dec  5 00:36:24 2008
New Revision: 10606

Log:
skypiax: let's try to overcome the lack of timeout on pipe's read on Windows

Modified:
   freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.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	Fri Dec  5 00:36:24 2008
@@ -795,8 +795,14 @@
 
 
 
+    kill_cli_size=320;
+    switch_file_write(p->audiopipe[1], kill_cli_buff, &kill_cli_size);
+    kill_cli_size=320;
+    switch_file_write(p->audioskypepipe[1], kill_cli_buff, &kill_cli_size);
     p->interface_state = SKYPIAX_STATE_DOWN;
     kill_cli_size=320;
+    switch_file_write(p->audiopipe[1], kill_cli_buff, &kill_cli_size);
+    kill_cli_size=320;
     switch_file_write(p->audioskypepipe[1], kill_cli_buff, &kill_cli_size);
 
     DEBUGA_SKYPE("Skype client GONE\n", SKYPIAX_P_LOG);
@@ -2413,7 +2419,7 @@
 
             } else if (!strcasecmp(value, "FINISHED")) {
 				global_session = NULL; //FIXME
-              p->skype_callflow = CALLFLOW_STATUS_FINISHED;
+              //p->skype_callflow = CALLFLOW_STATUS_FINISHED;
               if (option_debug)
                 DEBUGA_SKYPE("skype_call %s now is DOWN\n", SKYPIAX_P_LOG, id);
               p->skype_call_id[0] = '\0';
@@ -2422,7 +2428,7 @@
                 if (option_debug > 100) {
                   DEBUGA_PBX("EXITING FUNC\n", SKYPIAX_P_LOG);
                 }
-                p->interface_state = SKYPIAX_STATE_DOWN;
+                //p->interface_state = SKYPIAX_STATE_DOWN;
                 //FIXME if(p->owner)
                     //FIXME p->owner->hangupcause = SKYPIAX_CAUSE_NORMAL;
                 return CALLFLOW_INCOMING_HANGUP;
@@ -2805,7 +2811,7 @@
 			switch_channel_t *channel;
 
 
-			p->interface_state=SKYPIAX_STATE_DOWN;
+			//p->interface_state=SKYPIAX_STATE_DOWN;
         //if (option_debug)
           DEBUGA_SKYPE("skype call ended\n", SKYPIAX_P_LOG);
 



More information about the Freeswitch-branches mailing list