Hi folks!<br>
<br>
I'm writing a new module for SER, which wil do routing task; well now I have a little problem.<br>
<br>
The module is do routing very well, using t_relay_to_udp function, but
I don't now how to setup t_on_failure route directly inside the
module...<br>
<br>
So is possible do something like:<br>
<br>
cmd_function t_on_failure_f;<br>
<br>
...<br>
<br>
if (!(t_on_failure_f = find_export(&quot;t_on_failure&quot;,1,0))) {<br>
&nbsp;&nbsp; LOG(L_NOTICE, &quot;mod_init(): This module requires tm module\n&quot;);<br>
&nbsp;&nbsp; return -5;<br>
}<br>
<br>
...<br>
<br>
t_on_failure_f(msg,failure);<br>
t_relay_to_udp_f(msg,gw,foo));<br>
<br>
<br>
<br>
Best regards.<br>
<br>
-fs<br>