Skip to content

Commit

Permalink
misc/examples: flags defines stored in a table
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Apr 25, 2017
1 parent 62cf697 commit 5ee474c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
Expand Up @@ -205,9 +205,9 @@ function ksr_route_registrar()
{
if (KSR.pv.get("$rm")!="REGISTER") { return; }
if (KSR.isflagset(FLAGS.FLT_NATS)) {
KSR.setbflag(FLB_NATB);
KSR.setbflag(FLAGS.FLB_NATB);
// do SIP NAT pinging
KSR.setbflag(FLB_NATSIPPING);
KSR.setbflag(FLAGS.FLB_NATSIPPING);
}
if (KSR.registrar.save("location", 0)<0) {
KSR.sl.sl_reply_error();
Expand Down Expand Up @@ -295,11 +295,11 @@ function ksr_route_natmanage()
if (KSR.siputils.is_request()>0) {
if (KSR.siputils.has_totag()>0) {
if (KSR.rr.check_route_param("nat=yes")>0) {
KSR.setbflag(FLB_NATB);
KSR.setbflag(FLAGS.FLB_NATB);
}
}
}
if (! (KSR.isflagset(FLAGS.FLT_NATS) || KSR.isbflagset(FLB_NATB))) {
if (! (KSR.isflagset(FLAGS.FLT_NATS) || KSR.isbflagset(FLAGS.FLB_NATB))) {
return;
}

Expand All @@ -313,7 +313,7 @@ function ksr_route_natmanage()
}
}
if (KSR.siputils.is_reply()>0) {
if (KSR.isbflagset(FLB_NATB)) {
if (KSR.isbflagset(FLAGS.FLB_NATB)) {
KSR.nathelper.set_contact_alias();
}
}
Expand Down

0 comments on commit 5ee474c

Please sign in to comment.