[Freeswitch-svn] [commit] r5054 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: anthm Date: Tue May 1 14:47:28 2007 New Revision: 5054 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Log: add bind error case to sofia Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Tue May 1 14:47:28 2007 @@ -267,6 +267,12 @@ 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,
participants (1)
-
Freeswitch SVN