<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>local sourceIP=KSR.pv.get("$si");<br>
</span>
<div><br>
</div>
<div><br>
</div>
<div>if KSR.geoip2.match("sourceIP","src") then<br>
</div>
<div> <br>
</div>
<div> local x= KSR.pv.get("$gip2(src=>cc)");<br>
</div>
<div><br>
</div>
<div>end<br>
</div>
<div><br>
</div>
thanks</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="signature">Engineer Naveed Ur Rehman
<div>0923415652825</div>
<div>Computer Systems Engineering </div>
</div>
</body>
</html>