<div dir="auto">Hi Nigel,</div><div dir="auto"><br></div><div dir="auto">You need to set this param: <div><a href="http://www.kamailio.org/wiki/cookbooks/5.5.x/core#kemionsend_route_callback">http://www.kamailio.org/wiki/cookbooks/5.5.x/core#kemionsend_route_callback</a></div><div dir="auto">Can also be set to “” (empty string)</div><div dir="auto"><br></div><div dir="auto">Not sure why this is required. Maybe someone else can explain.</div><div dir="auto"><br></div><div dir="auto">Hope this helps</div></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 16 Jul 2022 at 14:45 Nigel Daniels <<a href="mailto:nigel.daniels@gmail.com">nigel.daniels@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">```<div><pre style="font-family:"JetBrains Mono",monospace;font-size:9.8pt;background-color:rgb(43,43,43);color:rgb(169,183,198)"><span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">def </span><span style="font-family:"JetBrains Mono",monospace;color:rgb(255,198,109)">ksr_route_relay</span>(<span style="font-family:"JetBrains Mono",monospace;color:rgb(148,85,141)">self</span><span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">, </span>msg):<br> <span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">if </span>KSR.is_method_in(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"IBSU"</span>):<br> <span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">if </span>KSR.tm.t_is_set(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"branch_route"</span>) < <span style="font-family:"JetBrains Mono",monospace;color:rgb(104,151,187)">0</span>:<br> KSR.tm.t_on_branch(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"ksr_branch_manage"</span>)<br><br> <span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">if </span>KSR.is_method_in(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"ISU"</span>):<br> <span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">if </span>KSR.tm.t_is_set(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"onreply_route"</span>) < <span style="font-family:"JetBrains Mono",monospace;color:rgb(104,151,187)">0</span>:<br> KSR.tm.t_on_reply(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"ksr_onreply_manage"</span>)<br><br> <span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">if </span>KSR.is_INVITE():<br> KSR.info(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"try and relay the traffic</span><span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">\n</span><span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"</span>)<br> <span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">if </span>KSR.tm.t_is_set(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"ksr_failure_route"</span>) < <span style="font-family:"JetBrains Mono",monospace;color:rgb(104,151,187)">0</span>:<br> KSR.tm.t_on_failure(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"ksr_failure_manage"</span>)<br><br> t_relay_result = KSR.tm.t_relay([<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"10.0.0.6"</span><span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">, </span><span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"5060"</span>])<br><br> KSR.info(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">f't_relay: </span><span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">{</span>t_relay_result<span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">}\n</span><span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">'</span>)<br> KSR.info(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">f'MSG: </span><span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">{</span>msg<span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">}</span><span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">'</span>)<br> <span style="font-family:"JetBrains Mono",monospace;color:rgb(204,120,50)">if </span>KSR.tm.t_is_set(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"ksr_failure_route_one"</span>):<br> KSR.tm.t_on_reply(<span style="font-family:"JetBrains Mono",monospace;color:rgb(106,135,89)">"ksr_on_reply_route_one"</span>)</pre><div>```</div><div>ERROR: app_python3 [python_exec.c:91]: apy_exec(): ksr_request_route not found or is not callable<br></div><div><br></div><div>Again this only happens after t_replay is called. Any help understanding why this happens would be appreciated.</div></div></div><div dir="ltr"><div><div><br></div>-- <br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr">- Nigel </div></div></div></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>