[Freeswitch-trunk] [commit] r12819 - freeswitch/trunk/src/mod/endpoints/mod_sofia
FreeSWITCH SVN
mrene at freeswitch.org
Fri Mar 27 19:16:34 PDT 2009
Author: mrene
Date: Fri Mar 27 21:16:34 2009
New Revision: 12819
Log:
doh
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c Fri Mar 27 21:16:34 2009
@@ -1371,9 +1371,14 @@
int ss_state;
sofia_gateway_t *var_gateway = NULL;
const char *gw_name = NULL;
- switch_channel_t *channel = switch_core_session_get_channel(session);
- const char *sip_auth_username = switch_channel_get_variable(channel, "sip_auth_username");
- const char *sip_auth_password = switch_channel_get_variable(channel, "sip_auth_password");
+ switch_channel_t *channel = NULL;
+ const char *sip_auth_username = NULL;
+ const char *sip_auth_password = NULL;
+
+ if ((channel = switch_core_session_get_channel(session)) {
+ sip_auth_username = switch_channel_get_variable(channel, "sip_auth_username");
+ sip_auth_password = switch_channel_get_variable(channel, "sip_auth_password");
+ }
if (sofia_private && *sofia_private->auth_gateway_name) {
gw_name = sofia_private->auth_gateway_name;
More information about the Freeswitch-trunk
mailing list