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

mod_lcr limit feature doesn't work with DB backend

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: mod_lcr
    • Labels:
      None
    • CPU Architecture:
      x86
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      FreeSWITCH Version 1.3.0+git~20121024T003803Z~1a43405bed (git 1a43405 2012-10-24 00:38:03Z)
    • GIT Master Revision hash::
      it's recent

      Description

      Default limit_type for using limit is "sql"
      And if you do <param name="limit_type" value="db"/> it also uses "sql".

      But "sql" doesn't exist:

      EXECUTE sofia/internal/SomeSource@SomeIP limit_execute(sql carriers carrier1 1 bridge [lcr_carrier=carrier1,nibble_account=121,nibble_rate=0.002,lowbal_amt=0,nobal_amt=0]sofia/external/SomeNumber@SomeIP:5060)
      2012-10-24 12:31:38.321821 [DEBUG] switch_limit.c:43 Unable to locate limit backend: sql
      2012-10-24 12:31:38.321821 [ERR] switch_limit.c:122 Limit subsystem sql not found!


      The sql backend is called "db". Setting that in the conf produces the same error. It looks like the code cleans the limit type and limits it to db and sql, incorrectly.

        Attachments

          Activity

            People

            • Assignee:
              rupa Rupa Schomaker
              Reporter:
              avimarcus avimarcus
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: