Hello,<br><br><div>This is Luis Martin. I am developing a new module for Kamailio. This module will include some functions which will allow Kamailio to connect to another servers and retrieve information. I'm thinking on creating a couple of child from my main function, each child will execute a query to an specific server. I read this file "doc/modules_init.txt", but I'm having some troubles and I would appreciate if you could please help me with this.<br>
<br><div>This is the how the the first draft of the forking code looks like:<br><a href="http://pastebin.com/MLXDN9p9" target="_blank">http://pastebin.com/MLXDN9p9</a></div><div>I call the "mod_child" function from my function like this:<br>
int myFunction () {<br> (...)<br> mod_child(randomNUMBER);<br> (...)<br>}<br><br>But nothing happens, neither during the compilation process, nor the execution. Nothing is printed on the logs. Can you please point me out any suggestion or example?<br>
- How I am supposed to call the "mod_child()" function?<br>- Which should be the rank_number: PROC_MAIN?<br>- How I am supposed to cal the "mod_init()" function?<br>- Again, could you please provide my any example?<br>
<br></div><div>Thanks a lot.</div><div><br>Best,<br>Luis Martin</div></div>