mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
sigh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12821 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
677b161647
commit
fa9621b99b
@ -1375,7 +1375,7 @@ void sofia_reg_handle_sip_r_challenge(int status,
|
||||
const char *sip_auth_username = NULL;
|
||||
const char *sip_auth_password = NULL;
|
||||
|
||||
if ((channel = switch_core_session_get_channel(session))) {
|
||||
if (session && (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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user