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

FreeSWITCH SVN gmaruzz at freeswitch.org
Tue Dec 30 03:53:20 PST 2008


Author: gmaruzz
Date: Tue Dec 30 06:53:18 2008
New Revision: 11000

Log:
skypiax: now makes outgoing calls and close them almost correctly

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	Tue Dec 30 06:53:18 2008
@@ -511,7 +511,8 @@
     switch_core_session_add_stream(*new_session, NULL);
     if ((tech_pvt =
          (private_t *) switch_core_session_alloc(*new_session, sizeof(private_t))) != 0) {
-      tech_pvt->p = &globals.SKYPIAX_INTERFACES[2]; //FIXME
+      tech_pvt->p = &globals.SKYPIAX_INTERFACES[19]; //FIXME
+      globals.SKYPIAX_INTERFACES[19].tech_pvt = tech_pvt; //FIXME
       channel = switch_core_session_get_channel(*new_session);
       skypiax_tech_init(tech_pvt, *new_session, NULL);
     } else {
@@ -588,8 +589,17 @@
           if (channel) {
             switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
             //DEBUGA_SKYPE("after channel_on_hangup\n", SKYPIAX_P_LOG);
-          }
-        }
+          
+      } else {
+      ERRORA("no channel?\n", SKYPIAX_P_LOG);
+      }
+
+      } else {
+      ERRORA("no session?\n", SKYPIAX_P_LOG);
+      }
+        
+      } else {
+      ERRORA("no tech_pvt?\n", SKYPIAX_P_LOG);
       }
     p->interface_state = SKYPIAX_STATE_DOWN;
     global_session = NULL;    //FIXME



More information about the Freeswitch-branches mailing list