Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-11508

max-registrations-per-extension has no effect

    Details

    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      1.8.2
    • GIT Master Revision hash::
      102161e14d1ee4e1283c38e5d755adf739d9091a

      Description

      Setting max-registrations-per-extension seems to have no effect.

      I believe there is a bug in src/mod/endpoints/mod_sofia/sofia_reg.c in the following query:

              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);

      The problem is that the SIP username is matched against the SIP extension (the sip_user column). In many installations, these are probably identical, but this is not always the case.

      I have tested this in 1.8.2. I have checked the source code for master to verify that the bug is also present there.

        Attachments

          Activity

            People

            • Assignee:
              mikej Mike Jerris
              Reporter:
              c960657 Christian Schmidt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: