merge MODENDP-27, properly handle options and avoid handle leak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5720 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-09-19 18:47:59 +00:00
parent 9d51da6873
commit 901155402b
1 changed files with 3 additions and 0 deletions

View File

@ -304,6 +304,7 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Created agent for %s\n", profile->name);
nua_set_params(profile->nua,
NUTAG_APPL_METHOD("OPTIONS"),
//NUTAG_EARLY_MEDIA(1),
NUTAG_AUTOANSWER(0),
NUTAG_AUTOALERT(0),
@ -328,6 +329,7 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void
NUTAG_URL(node->url), TAG_END()); /* Last tag should always finish the sequence */
nua_set_params(node->nua,
NUTAG_APPL_METHOD("OPTIONS"),
NUTAG_EARLY_MEDIA(1),
NUTAG_AUTOANSWER(0),
NUTAG_AUTOALERT(0),
@ -2054,6 +2056,7 @@ void sofia_handle_sip_i_options(int status,
//SOATAG_AUDIO_AUX("cn telephone-event"),
//NUTAG_INCLUDE_EXTRA_SDP(1),
TAG_END());
nua_handle_destroy(nh);
}