提交 965a8402 authored 作者: Mike Jerris's avatar Mike Jerris

Merge pull request #1622 in FS/freeswitch from…

Merge pull request #1622 in FS/freeswitch from ~C960657/freeswitch:bugfix/FS-11508-max-registrations-per-extension to master

* commit '69ec4aad':
  FS-11508: [mod_sofia] Make max-registrations-per-extension use extension instead of username
...@@ -3075,7 +3075,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, ...@@ -3075,7 +3075,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
switch_assert(call_id); switch_assert(call_id);
sql = switch_mprintf("select count(sip_user) from sip_registrations where sip_user='%q' AND call_id <> '%q' AND sip_host='%q'", sql = switch_mprintf("select count(sip_user) from sip_registrations where sip_user='%q' AND call_id <> '%q' AND sip_host='%q'",
username, call_id, domain_name); sip->sip_to->a_url->url_user, call_id, domain_name);
switch_assert(sql != NULL); switch_assert(sql != NULL);
sofia_glue_execute_sql_callback(profile, NULL, sql, sofia_reg_regcount_callback, &count); sofia_glue_execute_sql_callback(profile, NULL, sql, sofia_reg_regcount_callback, &count);
free(sql); free(sql);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论