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

* commit '69ec4aadab36d96a2aee439c33b1d802567f7672':
  FS-11508: [mod_sofia] Make max-registrations-per-extension use extension instead of username
This commit is contained in:
Mike Jerris 2018-11-20 20:23:20 +00:00
commit 965a8402d6
1 changed files with 1 additions and 1 deletions

View File

@ -3075,7 +3075,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
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'",
username, call_id, domain_name);
sip->sip_to->a_url->url_user, call_id, domain_name);
switch_assert(sql != NULL);
sofia_glue_execute_sql_callback(profile, NULL, sql, sofia_reg_regcount_callback, &count);
free(sql);