Module: kamailio
Branch: master
Commit: 5ee474cae20b5a8f73fece3bc393f6fcd91d3821
URL:
https://github.com/kamailio/kamailio/commit/5ee474cae20b5a8f73fece3bc393f6f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-25T11:22:29+02:00
misc/examples: flags defines stored in a table
---
Modified: misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
---
Diff:
https://github.com/kamailio/kamailio/commit/5ee474cae20b5a8f73fece3bc393f6f…
Patch:
https://github.com/kamailio/kamailio/commit/5ee474cae20b5a8f73fece3bc393f6f…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
b/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
index d39c348..e3c82f9 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
+++ b/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
@@ -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();
@@ -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;
}
@@ -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();
}
}