Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#126 drouting wildcard '%' dr_groups username support

1.6.x
open-postponed
modules (179)
3
2010-03-09
2010-01-19
Jarrod Baumann
No

When routing traffic for numerous gateways, the username field may sometimes be various values or omitted altogether. Also, without domain support, a wildcard/catchall username may be used for a "default" route. This *ugly* patch makes this possible by using '%' for the username in dr_groups.

The patch moves the matching pattern off of sql and into drouting.c which should not impact the speed.

# patch -p1 opensips-1.6.1-tls/modules/drouting/drouting.c < drouting.patch

Discussion

    • priority: 5 --> 7
    • assigned_to: nobody --> bogdan_iancu
     
  • Jarrod, please upload the patch as an unified diff.

    Thanks and regards,
    Bogdan

     
  • Jarrod Baumann
    Jarrod Baumann
    2010-02-09

    unified drouting.patch as requested...

     
    Attachments
  • Jarrod Baumann
    Jarrod Baumann
    2010-02-09

    Ok, I uploaded the patch as a unified diff

     
  • Jarrod Baumann
    Jarrod Baumann
    2010-02-09

    wildcard patch that works with the source ip patch I also submitted later

     
  • postponed until find a better implementation.

     
    • priority: 7 --> 3
    • status: open --> open-postponed