Hi everybody.
I have a kamailio 4.0 running with rtpproxy and debian 7.8, and I need limit calls by IP.
My kamailio.cfg:
# ----------------------------------------- #------------------------------------------
loadmodule "dialog.so" modparam("dialog", "dlg_flag", 4) modparam("dialog", "enable_stats",1) modparam("dialog", "hash_size", 4096) modparam("dialog", "profiles_with_value","callquota") modparam("dialog", "default_timeout", 300) modparam("dialog", "dlg_match_mode", 2) modparam("dialog", "detect_spirals", 1) modparam("dialog", "db_mode", 0)
In my route outside, I have:
get_profile_size("callquota", "$avp(s:tag)", "$var(SIZE)"); xlog ("L_INFO", ".... $avp(s:tag) ..... CALLQUOTA .... $var(SIZE)..... \n ");
On $avp(s:tag) is the client code-peer/ip.
When I view the logs... the result:
Oct 18 22:18:03 sipproxy /usr/local/sbin/kamailio[19724]: INFO: <script>: .... 4012 ..... CALLQUOTA .... 0.....
Always, the result is '0'.
Is correct my configuration ?
thanks
-------------------------------- Ángel Elena Medina _o) craem@craem.net / \ http://blog.craem.net _(___V @craem_ --------------------------------
Hello; with dialog module using dont forget set dlg_manage or setting flags. or you can do it with pike limit for only INVITE methods.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/call-limit-peer-tp142403p142407.html Sent from the Users mailing list archive at Nabble.com.