<p>Sorry for the delay response. I still have the same issue. I have kamailio.cfg file for configuration and Lua files for processing messages. What I observed is PHONUM module is not initialized during startup. And when using phonenum module it fails. I am invoking phonenum module in lua with "KSR.phonenum.match". Below are the logs</p>
<p>Aug 29 08:33:27 ip-10-130-74-105 /usr/local/sbin/kamailio[2157]: DEBUG: app_lua [app_lua_sr.c:1655]: sr_kemi_lua_exec_func_ex(): param[0] for: isflagset is int: 1<br>
Aug 29 08:33:27 ip-10-130-74-105 /usr/local/sbin/kamailio[2157]: DEBUG: app_lua [app_lua_sr.c:1651]: sr_kemi_lua_exec_func_ex(): param[0] for: match is str: +919876543210<br>
Aug 29 08:33:27 ip-10-130-74-105 /usr/local/sbin/kamailio[2157]: DEBUG: app_lua [app_lua_sr.c:1651]: sr_kemi_lua_exec_func_ex(): param[1] for: match is str: src<br>
Aug 29 08:33:27 ip-10-130-74-105 /usr/local/sbin/kamailio[2157]: DEBUG: phonenum [phonenum_pv.c:312]: phonenum_update_pv(): <strong>container not found</strong>: +919876543210<br>
Aug 29 08:33:27 ip-10-130-74-105 /usr/local/sbin/kamailio[2157]: DEBUG: app_lua [app_lua_sr.c:934]: lua_sr_pv_get_val(): pv get: $rc<br>
Aug 29 08:33:27 ip-10-130-74-105 /usr/local/sbin/kamailio[2157]: DEBUG:  [core/pvapi.c:371]: pv_cache_add(): pvar [$rc] added in cache<br>
Aug 29 08:33:27 ip-10-130-74-105 /usr/local/sbin/kamailio[2157]: DEBUG: app_lua [app_lua_sr.c:934]: lua_sr_pv_get_val(): pv get: $phn(src=>valid)<br>
Aug 29 08:33:27 ip-10-130-74-105 /usr/local/sbin/kamailio[2157]: DEBUG: phonenum [phonenum_pv.c:162]: pv_parse_phonenum_name(): phonenum [src] - key [valid]</p>
<p>In kamailio.cfg if I add some dummy route(as below) then Phonenum module is initialized and it is working as expected.<br>
route[PHONENUM] {<br>
if($phn(src=>valid)==1) {<br>
xlog("dummy route\n");<br>
}<br>
}</p>
<p>Please check this and let me know any further logs required.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1883?email_source=notifications&email_token=ABO7UZIPCL7EXWMJBHRPCCLQG6EWTA5CNFSM4G4MKRL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5NYFVQ#issuecomment-526090966">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKBEKEJDUU5TQMLJQDQG6EWTANCNFSM4G4MKRLQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZPDLDP5RJNXIEVBJ43QG6EWTA5CNFSM4G4MKRL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5NYFVQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1883?email_source=notifications\u0026email_token=ABO7UZIPCL7EXWMJBHRPCCLQG6EWTA5CNFSM4G4MKRL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5NYFVQ#issuecomment-526090966",
"url": "https://github.com/kamailio/kamailio/issues/1883?email_source=notifications\u0026email_token=ABO7UZIPCL7EXWMJBHRPCCLQG6EWTA5CNFSM4G4MKRL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5NYFVQ#issuecomment-526090966",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>