[Freeswitch-svn] [commit] r11142 - freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax
FreeSWITCH SVN
gmaruzz at freeswitch.org
Mon Jan 12 09:50:34 PST 2009
Author: gmaruzz
Date: Mon Jan 12 11:50:34 2009
New Revision: 11142
Log:
skypiax: implemented anthm suggested changes, fixed switch_core_session_rwunlock(session), indented again
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 Mon Jan 12 11:50:34 2009
@@ -590,8 +590,10 @@
channel = switch_core_session_get_channel(session);
if (channel) {
switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
+ switch_core_session_rwunlock(session);
} else {
ERRORA("no channel?\n", SKYPIAX_P_LOG);
+ switch_core_session_rwunlock(session);
}
} else {
DEBUGA_SKYPE("no session\n", SKYPIAX_P_LOG);
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 Mon Jan 12 11:50:34 2009
@@ -1364,6 +1364,7 @@
switch_set_flag(tech_pvt, TFLAG_DTMF);
switch_mutex_unlock(tech_pvt->flag_mutex);
}
+ switch_core_session_rwunlock(session);
}
if (!strcasecmp(prop, "FAILUREREASON")) {
@@ -1634,6 +1635,7 @@
ERRORA("No channel???\n", SKYPIAX_P_LOG);
}
+ switch_core_session_rwunlock(session);
}
} else {
More information about the Freeswitch-svn
mailing list