mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
<param name="challenge-realm" value="auto_from|auto_to|<hardcoded_val>"/>
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9617 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -734,7 +734,14 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Requesting Registration from: [%s@%s]\n", to_user, to_host);
|
||||
}
|
||||
} else {
|
||||
sofia_reg_auth_challenge(nua, profile, nh, regtype, from_host, stale);
|
||||
const char *realm = profile->challenge_realm;
|
||||
|
||||
if (switch_strlen_zero(realm) || !strcasecmp(realm, "auto_to")) {
|
||||
realm = to_host;
|
||||
} else if (!strcasecmp(realm, "auto_from")) {
|
||||
realm = from_host;
|
||||
}
|
||||
sofia_reg_auth_challenge(nua, profile, nh, regtype, realm, stale);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user