[OpenSIPS-Devel] [OpenSIPS/opensips] 9c6649: dialplan: Fix a rule tie-breaking bug

Liviu Chircu liviu at opensips.org
Thu May 26 12:35:57 CEST 2016


  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 9c664918858c4e6aa14ccfd9a5b151a28eb7f9c2
      https://github.com/OpenSIPS/opensips/commit/9c664918858c4e6aa14ccfd9a5b151a28eb7f9c2
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2016-05-26 (Thu, 26 May 2016)

  Changed paths:
    M modules/dialplan/dp_repl.c

  Log Message:
  -----------
  dialplan: Fix a rule tie-breaking bug

When an input string would match both a "string" rule and a "regex"
rule, the priority based tie-breaking was incorrect (now favouring
the bigger priority instead - opposite to default module behavior).

Thanks to @paolodepa for suggesting this fix
Fixes issue #696

(cherry picked from commit cbdd79ab3f6d772c6ef1fb7afc44990e9cad294e)




More information about the Devel mailing list