tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7589 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
daf6d366bf
commit
52760a9ea1
|
@ -1382,6 +1382,8 @@ SWITCH_STANDARD_API(sofia_contact_function)
|
||||||
char *domain = NULL;
|
char *domain = NULL;
|
||||||
char *profile_name = NULL;
|
char *profile_name = NULL;
|
||||||
char *p;
|
char *p;
|
||||||
|
sofia_profile_t *profile = NULL;
|
||||||
|
|
||||||
|
|
||||||
if (!cmd) {
|
if (!cmd) {
|
||||||
stream->write_function(stream, "%s", "");
|
stream->write_function(stream, "%s", "");
|
||||||
|
@ -1409,7 +1411,6 @@ SWITCH_STANDARD_API(sofia_contact_function)
|
||||||
|
|
||||||
if (user && profile_name) {
|
if (user && profile_name) {
|
||||||
char *sql;
|
char *sql;
|
||||||
sofia_profile_t *profile;
|
|
||||||
|
|
||||||
if (!(profile = sofia_glue_find_profile(profile_name))) {
|
if (!(profile = sofia_glue_find_profile(profile_name))) {
|
||||||
profile_name = domain;
|
profile_name = domain;
|
||||||
|
@ -1449,6 +1450,11 @@ SWITCH_STANDARD_API(sofia_contact_function)
|
||||||
|
|
||||||
end:
|
end:
|
||||||
switch_safe_free(data);
|
switch_safe_free(data);
|
||||||
|
|
||||||
|
if (profile) {
|
||||||
|
sofia_glue_release_profile(profile);
|
||||||
|
}
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue