<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, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span class="smartReply">Thanks!</span></div>
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> Daniel-Constantin Mierla <miconda@gmail.com><br>
<b>Envoyé :</b> mercredi 4 mai 2022 14:35<br>
<b>À :</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Patrick Karton <patrickarton@hotmail.com><br>
<b>Objet :</b> Re: [SR-Users] sanity_reply not available from sanity module</font>
<div> </div>
</div>
<div>
<p>Hello,</p>
<p><br>
</p>
<p>indeed there was an error with the exported function name. I pushed a commit for it:</p>
<p><br>
</p>
<p>  * <a class="x_moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/commit/7c52c05b09abdf2cf754cc02f3a1ea0855cdedd0">
https://github.com/kamailio/kamailio/commit/7c52c05b09abdf2cf754cc02f3a1ea0855cdedd0</a></p>
<p><br>
</p>
<p>It will be backported.</p>
<p><br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<p><br>
</p>
<div class="x_moz-cite-prefix">On 04.05.22 15:55, Patrick Karton wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello , </div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
the sanity_reply function from sanity is not available in kamailio script so i get an error when i want to use it.</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
in the module source i see this</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<table class="x_highlight x_tab-size x_js-file-line-container x_js-code-nav-container x_js-tagsearch-file" style="">
<tbody style="box-sizing:border-box">
<tr style="box-sizing:border-box">
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
<span class="x_pl-k" style="box-sizing:border-box">static</span> <span class="x_pl-c1" style="box-sizing:border-box">cmd_export_t</span> cmds[] = {</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
{<span class="x_pl-s" style="box-sizing:border-box"><span class="x_pl-pds" style="box-sizing:border-box">"</span>sanity_check<span class="x_pl-pds" style="box-sizing:border-box">"</span></span>, (cmd_function)w_sanity_check,
<span class="x_pl-c1" style="box-sizing:border-box">0</span>, <span class="x_pl-c1" style="box-sizing:border-box">
0</span>, <span class="x_pl-c1" style="box-sizing:border-box">0</span>,</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
REQUEST_ROUTE|ONREPLY_ROUTE},</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
{<span class="x_pl-s" style="box-sizing:border-box"><span class="x_pl-pds" style="box-sizing:border-box">"</span>sanity_check<span class="x_pl-pds" style="box-sizing:border-box">"</span></span>, (cmd_function)w_sanity_check,
<span class="x_pl-c1" style="box-sizing:border-box">1</span>, fixup_igp_null, <span class="x_pl-c1" style="box-sizing:border-box">
0</span>,</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
REQUEST_ROUTE|ONREPLY_ROUTE},</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
{<span class="x_pl-s" style="box-sizing:border-box"><span class="x_pl-pds" style="box-sizing:border-box">"</span>sanity_check<span class="x_pl-pds" style="box-sizing:border-box">"</span></span>, (cmd_function)w_sanity_check,
<span class="x_pl-c1" style="box-sizing:border-box">2</span>, fixup_igp_igp, <span class="x_pl-c1" style="box-sizing:border-box">
0</span>,</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
REQUEST_ROUTE|ONREPLY_ROUTE},</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
{<span class="x_pl-s" style="box-sizing:border-box"><span class="x_pl-pds" style="box-sizing:border-box">"</span>sanity_check<span class="x_pl-pds" style="box-sizing:border-box">"</span></span>, (cmd_function)w_sanity_reply,
<span class="x_pl-c1" style="box-sizing:border-box">0</span>, <span class="x_pl-c1" style="box-sizing:border-box">
0</span>, <span class="x_pl-c1" style="box-sizing:border-box">0</span>,</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
REQUEST_ROUTE|ONREPLY_ROUTE},</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
{<span class="x_pl-s" style="box-sizing:border-box"><span class="x_pl-pds" style="box-sizing:border-box">"</span>bind_sanity<span class="x_pl-pds" style="box-sizing:border-box">"</span></span>,  (cmd_function)bind_sanity,    <span class="x_pl-c1" style="box-sizing:border-box">0</span>,
<span class="x_pl-c1" style="box-sizing:border-box">0</span>, <span class="x_pl-c1" style="box-sizing:border-box">
0</span>, <span class="x_pl-c1" style="box-sizing:border-box">0</span> },</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
{<span class="x_pl-c1" style="box-sizing:border-box">0</span>, <span class="x_pl-c1" style="box-sizing:border-box">
0</span>, <span class="x_pl-c1" style="box-sizing:border-box">0</span>, <span class="x_pl-c1" style="box-sizing:border-box">
0</span>, <span class="x_pl-c1" style="box-sizing:border-box">0</span>, <span class="x_pl-c1" style="box-sizing:border-box">
0</span>}</td>
</tr>
<tr style="box-sizing:border-box">
<td class="x_blob-num x_js-line-number x_js-code-nav-line-number x_js-blob-rnum" style="box-sizing:border-box; padding:0px
                10px; width:50px; min-width:50px; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; line-height:20px; text-align:right; vertical-align:top">
<br>
</td>
<td class="x_blob-code x_blob-code-inner x_js-file-line" style="box-sizing:border-box; padding:0px
                10px; line-height:20px; vertical-align:top; font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px">
};</td>
</tr>
</tbody>
</table>
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
why is <span style="">sanity_check linked again in <span style="background-color:rgb(255,255,255); display:inline!important">w_sanity_reply ? </span></span></div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(36,41,47); font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; background-color:rgb(255,255,255); display:inline!important"><span style="background-color:rgb(255,255,255); display:inline!important"><br>
</span></span></div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(36,41,47); font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; background-color:rgb(255,255,255); display:inline!important"><span style="background-color:rgb(255,255,255); display:inline!important">is
 this an error ? </span></span></div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(36,41,47); font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; background-color:rgb(255,255,255); display:inline!important"><span style="background-color:rgb(255,255,255); display:inline!important"><br>
</span></span></div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(36,41,47); font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; background-color:rgb(255,255,255); display:inline!important"><span style="background-color:rgb(255,255,255); display:inline!important">i
 want to setup specific responses for some errors and let the default ones from module work as usual.</span></span></div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(36,41,47); font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; background-color:rgb(255,255,255); display:inline!important"><span style="background-color:rgb(255,255,255); display:inline!important"><br>
</span></span></div>
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color:rgb(36,41,47); font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; background-color:rgb(255,255,255); display:inline!important"><span style="background-color:rgb(255,255,255); display:inline!important">Thanks.</span></span></div>
<br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre class="x_moz-quote-pre">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="x_moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="x_moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="x_moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="x_moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="x_moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="x_moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
  * <a class="x_moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</div>
</body>
</html>