improvement towards stable mod_sofia that can start/stop profiles (see i told ya this kind of thing is a slippery slope)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5074 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2007-05-03 01:55:25 +00:00
1 parent 81801594f5
commit 9c77125eac
6 files changed
+120 -66

No files matched your search

+4 -7
View File
@@ -234,11 +234,9 @@ void sofia_presence_mwi_event_handler(switch_event_t *event)
switch_safe_free(sql);
switch_safe_free(dup_account);
if (profile) {
switch_thread_rwlock_unlock(profile->rwlock);
sofia_glue_release_profile(profile);
}
}
void sofia_presence_event_handler(switch_event_t *event)
@@ -374,7 +372,7 @@ void sofia_presence_event_handler(switch_event_t *event)
profile);
switch_thread_rwlock_unlock(profile->rwlock);
sofia_glue_release_profile(profile);
switch_safe_free(sql);
}
@@ -619,9 +617,8 @@ static int sofia_presence_mwi_callback(void *pArg, int argc, char **argv, char *
switch_safe_free(id);
switch_safe_free(exp);
if (profile) {
switch_thread_rwlock_unlock(profile->rwlock);
}
sofia_glue_release_profile(profile);
return 0;
}