mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-26 19:57:42 +00:00
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:
parent
9d51da6873
commit
901155402b
@ -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);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Created agent for %s\n", profile->name);
|
||||||
|
|
||||||
nua_set_params(profile->nua,
|
nua_set_params(profile->nua,
|
||||||
|
NUTAG_APPL_METHOD("OPTIONS"),
|
||||||
//NUTAG_EARLY_MEDIA(1),
|
//NUTAG_EARLY_MEDIA(1),
|
||||||
NUTAG_AUTOANSWER(0),
|
NUTAG_AUTOANSWER(0),
|
||||||
NUTAG_AUTOALERT(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 */
|
NUTAG_URL(node->url), TAG_END()); /* Last tag should always finish the sequence */
|
||||||
|
|
||||||
nua_set_params(node->nua,
|
nua_set_params(node->nua,
|
||||||
|
NUTAG_APPL_METHOD("OPTIONS"),
|
||||||
NUTAG_EARLY_MEDIA(1),
|
NUTAG_EARLY_MEDIA(1),
|
||||||
NUTAG_AUTOANSWER(0),
|
NUTAG_AUTOANSWER(0),
|
||||||
NUTAG_AUTOALERT(0),
|
NUTAG_AUTOALERT(0),
|
||||||
@ -2054,6 +2056,7 @@ void sofia_handle_sip_i_options(int status,
|
|||||||
//SOATAG_AUDIO_AUX("cn telephone-event"),
|
//SOATAG_AUDIO_AUX("cn telephone-event"),
|
||||||
//NUTAG_INCLUDE_EXTRA_SDP(1),
|
//NUTAG_INCLUDE_EXTRA_SDP(1),
|
||||||
TAG_END());
|
TAG_END());
|
||||||
|
nua_handle_destroy(nh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user