git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4078
d0543943-73ff-0310-b7d9-
9358b9ac24b2
}
end:
- if (input) {
- switch_safe_free(input);
- }
- if (input2) {
- switch_safe_free(input2);
- }
+ switch_safe_free(input);
+ switch_safe_free(input2);
switch_safe_free(nonce);
switch_safe_free(uri);
switch_safe_free(qop);
}
}
+ if (!profile->sipip) {
+ profile->sipip = switch_core_strdup(profile->pool, globals.guess_ip);
+ }
+
+ if (!profile->rtpip) {
+ profile->rtpip = switch_core_strdup(profile->pool, globals.guess_ip);
+ }
+
if (profile->nonce_ttl < 60) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Setting nonce TTL to 60 seconds\n");
profile->nonce_ttl = 60;