提交 64672889 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix typo and small tweak to dingaling

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5248 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 eec9f345
...@@ -439,7 +439,7 @@ static void pres_event_handler(switch_event_t *event) ...@@ -439,7 +439,7 @@ static void pres_event_handler(switch_event_t *event)
} }
if (f_host && (profile = switch_core_hash_find(globals.profile_hash, f_host))) { if (f_host && (profile = switch_core_hash_find(globals.profile_hash, f_host))) {
if (to && (sql = switch_mprintf("select * from jabber_subscriptions where sub_to='%q'", to))) { if (to && (sql = switch_mprintf("select * from jabber_subscriptions where sub_to='%q' and sub_from='%q'", to, from))) {
mdl_execute_sql_callback(profile, profile->mutex, sql, sin_callback, profile); mdl_execute_sql_callback(profile, profile->mutex, sql, sin_callback, profile);
switch_safe_free(sql); switch_safe_free(sql);
} }
...@@ -1599,7 +1599,7 @@ static const switch_endpoint_interface_t channel_endpoint_interface = { ...@@ -1599,7 +1599,7 @@ static const switch_endpoint_interface_t channel_endpoint_interface = {
static switch_api_interface_t debug_api_interface = { static switch_api_interface_t debug_api_interface = {
/*.interface_name */ "dl_debug", /*.interface_name */ "dl_debug",
/*.desc */ "DingaLing Presence", /*.desc */ "DingaLing Debug",
/*.function */ dl_debug, /*.function */ dl_debug,
/*.syntax */ "dl_debug [true|false]", /*.syntax */ "dl_debug [true|false]",
/*.next */ NULL /*.next */ NULL
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论