]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
better error message/don't print null when no sip-ip is specified.
authorMichael Jerris <mike@jerris.com>
Mon, 15 Jan 2007 19:00:47 +0000 (19:00 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 15 Jan 2007 19:00:47 +0000 (19:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3967 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index eb9f209a68701846847ccf2f68d0c6ffa9f67322..20b0fa12085ecd00b0fc9db1103af257344e4584 100644 (file)
@@ -5056,8 +5056,12 @@ static switch_status_t config_sofia(int reload)
                                        }
                                }
 
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Started Profile %s [%s]\n", profile->name, url);
-                               launch_profile_thread(profile);
+                               if (profile->sipip) {
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Started Profile %s [%s]\n", profile->name, url);
+                                       launch_profile_thread(profile);
+                               } else {
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Unable to start Profile %s due to no configured sip-ip\n", profile->name);
+                               }
                                profile = NULL;
                        }
                }