From craem@craem.net Sun Oct 18 22:48:26 2015 From: Angel Elena To: sr-users@lists.kamailio.org Subject: [SR-Users] call-limit peer Date: Sun, 18 Oct 2015 22:48:21 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1176265039==" --===============1176265039== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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: