Module: kamailio
Branch: master
Commit: 62cf697022b30f53c36e11c9e9ea9def3bf9fbb6
URL:
https://github.com/kamailio/kamailio/commit/62cf697022b30f53c36e11c9e9ea9de…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-25T11:17:21+02:00
misc/examples: fixed flags names for sqlang example
---
Modified: misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
---
Diff:
https://github.com/kamailio/kamailio/commit/62cf697022b30f53c36e11c9e9ea9de…
Patch:
https://github.com/kamailio/kamailio/commit/62cf697022b30f53c36e11c9e9ea9de…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
b/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
index 3b0c4d3..d39c348 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
+++ b/misc/examples/kemi/kamailio-basic-kemi-sqlang.sq
@@ -60,7 +60,7 @@ function ksr_request_route()
// account only INVITEs
if (METHOD=="INVITE") {
- KSR.setflag(FLAGS.FLT__ACC); // do accounting
+ KSR.setflag(FLAGS.FLT_ACC); // do accounting
}
// dispatch requests to foreign domains
@@ -172,8 +172,8 @@ function ksr_route_withindlg()
if (KSR.rr.loose_route()>0) {
ksr_route_dlguri();
if (METHOD=="BYE") {
- KSR.setflag(FLAGS.FLT__ACC); // do accounting ...
- KSR.setflag(FLAGS.FLT__ACCFAILED); // ... even if the transaction fails
+ KSR.setflag(FLAGS.FLT_ACC); // do accounting ...
+ KSR.setflag(FLAGS.FLT_ACCFAILED); // ... even if the transaction fails
} else if (METHOD=="ACK") {
// ACK is forwarded statelessy
ksr_route_natmanage();
@@ -204,7 +204,7 @@ function ksr_route_withindlg()
function ksr_route_registrar()
{
if (KSR.pv.get("$rm")!="REGISTER") { return; }
- if (KSR.isflagset(FLAGS.FLT__NATS)) {
+ if (KSR.isflagset(FLAGS.FLT_NATS)) {
KSR.setbflag(FLB_NATB);
// do SIP NAT pinging
KSR.setbflag(FLB_NATSIPPING);
@@ -232,7 +232,7 @@ function ksr_route_location()
// when routing via usrloc, log the missed calls also
if (KSR.pv.get("$rm")=="INVITE") {
- KSR.setflag(FLAGS.FLT__ACCMISSED);
+ KSR.setflag(FLAGS.FLT_ACCMISSED);
}
ksr_route_relay();
@@ -284,7 +284,7 @@ function ksr_route_natdetect()
} else if (KSR.siputils.is_first_hop()>0) {
KSR.nathelper.set_contact_alias();
}
- KSR.setflag(FLAGS.FLT__NATS);
+ KSR.setflag(FLAGS.FLT_NATS);
}
return;
}
@@ -299,7 +299,7 @@ function ksr_route_natmanage()
}
}
}
- if (! (KSR.isflagset(FLAGS.FLT__NATS) || KSR.isbflagset(FLB_NATB))) {
+ if (! (KSR.isflagset(FLAGS.FLT_NATS) || KSR.isbflagset(FLB_NATB))) {
return;
}