git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12701
d0543943-73ff-0310-b7d9-
9358b9ac24b2
int locked = 0;
int check_destroy = 1;
+ if (nh && sofia_private == &mod_sofia_globals.keep_private) {
+ if (status >= 300) {
+ nua_handle_bind(nh, NULL);
+ nua_handle_destroy(nh);
+ return;
+ }
+ }
+
if (sofia_private && sofia_private != &mod_sofia_globals.destroy_private && sofia_private != &mod_sofia_globals.keep_private) {
if ((gateway = sofia_private->gateway)) {
if (switch_thread_rwlock_tryrdlock(gateway->profile->rwlock) != SWITCH_STATUS_SUCCESS) {
}
nh = nua_handle(profile->nua, NULL, NUTAG_URL(contact), SIPTAG_FROM_STR(id), SIPTAG_TO_STR(id), SIPTAG_CONTACT_STR(h->profile->url), TAG_END());
+ nua_handle_bind(nh, &mod_sofia_globals.destroy_private);
nua_notify(nh,
NUTAG_NEWSUB(1),