提交 52760a9e authored 作者: Anthony Minessale's avatar Anthony Minessale

tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7589 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 daf6d366
......@@ -1382,6 +1382,8 @@ SWITCH_STANDARD_API(sofia_contact_function)
char *domain = NULL;
char *profile_name = NULL;
char *p;
sofia_profile_t *profile = NULL;
if (!cmd) {
stream->write_function(stream, "%s", "");
......@@ -1409,7 +1411,6 @@ SWITCH_STANDARD_API(sofia_contact_function)
if (user && profile_name) {
char *sql;
sofia_profile_t *profile;
if (!(profile = sofia_glue_find_profile(profile_name))) {
profile_name = domain;
......@@ -1449,6 +1450,11 @@ SWITCH_STANDARD_API(sofia_contact_function)
end:
switch_safe_free(data);
if (profile) {
sofia_glue_release_profile(profile);
}
return SWITCH_STATUS_SUCCESS;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论