cache auth_gateway_name in sofia for challenged bye

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10222 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West committed 2008-11-03 17:39:09 +00:00
1 parent 3766601b5a
commit e3753e99ef
3 files changed
+18 -6

No files matched your search

+5 -1
View File
@@ -1097,7 +1097,7 @@ void sofia_reg_handle_sip_r_register(int status,
void sofia_reg_handle_sip_r_challenge(int status,
char const *phrase,
nua_t *nua, sofia_profile_t *profile, nua_handle_t *nh,
nua_t *nua, sofia_profile_t *profile, nua_handle_t *nh, sofia_private_t *sofia_private,
switch_core_session_t *session, sofia_gateway_t *gateway, sip_t const *sip, tagi_t tags[])
{
sip_www_authenticate_t const *authenticate = NULL;
@@ -1110,6 +1110,10 @@ void sofia_reg_handle_sip_r_challenge(int status,
sofia_gateway_t *var_gateway = NULL;
const char *gw_name = NULL;
if (sofia_private && *sofia_private->auth_gateway_name) {
gw_name = sofia_private->auth_gateway_name;
}
if (session) {
private_object_t *tech_pvt;
switch_channel_t *channel = switch_core_session_get_channel(session);