[Freeswitch-svn] [commit] r4078 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Mon Jan 29 10:51:38 EST 2007


Author: anthm
Date: Mon Jan 29 10:51:38 2007
New Revision: 4078

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
few sofia cleanups complements of CtRiX (thanks for pointing them out)

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Mon Jan 29 10:51:38 2007
@@ -543,12 +543,8 @@
 	}
 
  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);
@@ -5073,6 +5069,14 @@
 					}
 				}
 
+                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;



More information about the Freeswitch-svn mailing list