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

FreeSWITCH SVN gmaruzz at freeswitch.org
Sat Jan 10 01:55:23 PST 2009


Author: gmaruzz
Date: Sat Jan 10 03:55:23 2009
New Revision: 11109

Log:
skypiax: handle the case when Skype client is asking for the user authorization to be connected by Skypiax (it was removed, don't know why)

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

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	Sat Jan 10 03:55:23 2009
@@ -1280,6 +1280,15 @@
           DEBUGA_SKYPE("read_skype: howmany=%d, i=%d, a=%d, |||%s||| \n", SKYPIAX_P_LOG,
                        howmany, i, a, messaggio);
 
+          if (!strcasecmp(messaggio, "ERROR 68")) {   /* not yet protocol specified,
+                                                         just authorized */
+            DEBUGA_SKYPE ("If I don't connect immediately, please give the Skype client authorization to be connected by Skypiax (and to not ask you again)\n", SKYPIAX_P_LOG);
+            switch_sleep(1000000);
+            skypiax_skype_write(p, "PROTOCOL 6");
+            switch_sleep(10000);
+            return 0;
+          }
+  
           if (!strncasecmp(messaggio, "ERROR 92 CALL", 12)) {
             ERRORA("Skype got ERROR: |||%s|||, the number we called was not recognized\n",
                    SKYPIAX_P_LOG, messaggio);



More information about the Freeswitch-branches mailing list