Module: kamailio
Branch: master
Commit: 856d2e03ea54cab6756dc61c3175df3638af9ce3
URL:
https://github.com/kamailio/kamailio/commit/856d2e03ea54cab6756dc61c3175df3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-06T10:53:22+01:00
misc/examples/kemi/kamailio-basic-kemi-jsdt.js: match from uri myself with function
---
Modified: misc/examples/kemi/kamailio-basic-kemi-jsdt.js
---
Diff:
https://github.com/kamailio/kamailio/commit/856d2e03ea54cab6756dc61c3175df3…
Patch:
https://github.com/kamailio/kamailio/commit/856d2e03ea54cab6756dc61c3175df3…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
b/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
index d7d55e465d..ea45b5a746 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
+++ b/misc/examples/kemi/kamailio-basic-kemi-jsdt.js
@@ -247,7 +247,7 @@ function ksr_route_auth()
}
}
- if (KSR.is_REGISTER() || KSR.is_myself(KSR.pv.get("$fu"))) {
+ if (KSR.is_REGISTER() || KSR.is_myself_furi()) {
// authenticate requests
if (KSR.auth_db.auth_check(KSR.pv.get("$fd"), "subscriber",
1)<0) {
KSR.auth.auth_challenge(KSR.pv.get("$fd"), 0);