]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add bind error case to sofia
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 1 May 2007 18:47:28 +0000 (18:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 1 May 2007 18:47:28 +0000 (18:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5054 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 90ed89433ea3ecbd8c7b6302e1098bbeb1710f34..fc6d68087aa9c1fd83893020af97f2e4b15d09dc 100644 (file)
@@ -267,6 +267,12 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void
                                                          profile,      /* Additional data to pass to callback */
                                                          NUTAG_URL(profile->bindurl), NTATAG_UDP_MTU(65536), TAG_END());       /* Last tag should always finish the sequence */
 
+       if (!profile->nua) {
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Creating SIP UA for profile: %s\n", profile->name);
+               goto end;
+       }
+
+
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Created agent for %s\n", profile->name);
 
        nua_set_params(profile->nua,