<p></p>
<h1>Description</h1>
<p>We installed kamailio from the ubuntu package manager along with several of the modules, including <code>kamailio-python3-modules</code>, which gives us the app_python3 module.</p>
<p>We edited the default, provided config to add the lines</p>
<pre><code>loadmodule "app_python3.so"
...
modparam("app_python3", "load", "my_cool_python_file.py")
</code></pre>
<p>Restarted kamailio and found the log messages below.</p>
<h4>Log Messages</h4>
<pre><code>Oct 27 20:05:19 kamailio-stage-1 systemd[1]: Starting Kamailio SIP Server...
Oct 27 20:05:19 kamailio-stage-1 kamailio[2243329]:  0(2243329) ERROR: <core> [core/sr_module.c:512]: load_module(): could not open module </usr/lib/x86_64-linux-gnu/kamailio/modules/app_python3.so>: /usr/lib/x86_64-linux-gnu/kamailio/modules/app_python3.so: undefined symbol: PyExc_SystemExit
Oct 27 20:05:19 kamailio-stage-1 kamailio[2243329]:  0(2243329) CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 266, column 12-27: failed to load module
Oct 27 20:05:19 kamailio-stage-1 kamailio[2243329]:  0(2243329) ERROR: <core> [core/modparam.c:176]: set_mod_param_regex(): No module matching <app_python3> found
Oct 27 20:05:19 kamailio-stage-1 kamailio[2243329]:  0(2243329) CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 496, column 64: Can't set module parameter
</code></pre>
<h3>Additional Information</h3>
<pre><code>version: kamailio 5.3.2 (x86_64/linux) 
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 9.2.1
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<pre><code>Linux kamailio-stage-1 5.4.0-1024-aws #24-Ubuntu SMP Sat Sep 5 06:19:55 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
</code></pre>
<p><code>lsb_release -a</code></p>
<pre><code>No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:        20.04
Codename:       focal
</code></pre>

<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/2534">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZL6FPOZLIO3PMUBUATSM4SN3ANCNFSM4TBKTY6Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJ23NC6DR47G5BXR7DSM4SN3A5CNFSM4TBKTY62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4K4OZ24A.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/2534",
"url": "https://github.com/kamailio/kamailio/issues/2534",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>