[SR-Users] How to use Geoip Module in Kemi

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 13 10:34:42 CEST 2018


Hello,


can you send all log messages printed by kamailio with debug=3 inside
kamailio.cfg?


Also, if you get a crash with a coredump, then send the backtrace taken
with gdb.


Cheers,
Daniel


On 13.09.18 10:24, Naveed Ur Rehman wrote:
> Hi,
>
> I am trying to use geoip2 module in kemi using LUA, The issue is that
> when  i try to access the $gip2(src=>cc) variable using lua, the
> kamailio instance killed and stops, this is my code snippet, kindly
> advise anyone how this can be sorted
>
> local sourceIP=KSR.pv.get("$si");
>
>
> if KSR.geoip2.match("sourceIP","src") then
>  
>  local x= KSR.pv.get("$gip2(src=>cc)");
>
> end
>
> thanks
>
> Engineer Naveed Ur Rehman
> 0923415652825
> Computer Systems Engineering 
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180913/7d0743ea/attachment.html>


More information about the sr-users mailing list