<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Lucida Console'; font-size:9pt; font-weight:400; font-style:normal;">On Dienstag, 6. Oktober 2009, liran tal wrote:<br>
&gt; I've written a very simple module, just exporting one function I need which<br>
&gt; does something simple<br>
&gt; like checking a file and returns -1 or 1 if the file exist or not.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Hello Liran,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>ok, understand. Please allow me first two remarks: First of all you could use the "exec" module to call an external bash script that does the check for you, its not necessary to write a module for this, it should be also available in your version. And then you should perhaps consider updating to a newer version of kamailio (e.g. 1.5.2), 1.0.x is not supported anymore.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>&gt; The problem I'm facing is as follows: During call flow (extension1 calling<br>
&gt; extension2), it seems that the logic<br>
&gt; of the call flow is passed via that module and hangs the entire call<br>
&gt; process. And this happens without<br>
&gt; even calling that single exported function, but rather just by including<br>
&gt; the module itself via loadmodule.<br>
&gt;<br>
&gt; Log from the call flow:<br>
&gt; ...<br>
&gt; [..]<br>
&gt;  8(3827) After parse_msg...<br>
&gt; *                  8(3827) forward_reply: found module exec_custom, passing<br>
&gt; reply to it<br>
&gt; * 8(3827) DEBUG:destroy_avp_list: destroying list (nil)<br>
&gt;  8(3827) receive_msg: cleaning up<br>
&gt; ...<br>
&gt;<br>
&gt; that forward_reply thing has the module involved there for whatever reason,<br>
&gt; I've no idea.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Do you've registered the module functions as reply callback? Then this could happens as they get called during internal reply processing. And what is the error code you return from the module function? On some return codes the server will also stops the execution of the config script and drops the message. This is explained in chapter "16.9.1. Return Values" in the devel guide at: http://www.kamailio.org/docs/openser-devel-guide/<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Regards,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Henning</p></body></html>