<p></p>

<h3>Description</h3>
<p>Hello, I didn't find force_send_socket function in kemi, so, I've tried to execute it like this:<br>
KSR.x.modf("force_send_socket", "udp:10.199.240.166:5099")<br>
and it doesn't work for me and I'm getting this error in output:</p>
<h4>Log Messages</h4>
<pre><code> 2(23767) ERROR: {1 21 INVITE mPXgy6eqY2} app_python [python_support.c:154]: python_handle_exception(): apy_exec: ksr_branch_manage((null)): Unhandled exception in the Python code:
RuntimeError: self is NULL
 2(23767) ERROR: {1 21 INVITE MwD6tWSuw6} app_python [python_support.c:154]: python_handle_exception(): apy_exec: ksr_branch_manage((null)): Unhandled exception in the Python code:
</code></pre>
<h3>Possible Solutions</h3>
<p>When I comment this code - I don't have this error.</p>
<h3>Additional Information</h3>
<pre><code>version: kamailio 5.4.5 (x86_64/linux) c46342
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: c46342
compiled on 12:05:00 Jul 23 2021 with gcc 7.5.0
</code></pre>
<p>Is there any way how to use force_send_socket mechanism in kemi?</p>
<p>Thank you!</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/2829">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIT2SRYMAXQAADV5KTT5PGS5ANCNFSM5CMJND2A">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABO7UZLJKWYSCXONJIL3WQ3T5PGS5A5CNFSM5CMJND2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OQLCAAA.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/2829",
"url": "https://github.com/kamailio/kamailio/issues/2829",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>