Hi folks!

I'm writing a new module for SER, which wil do routing task; well now I have a little problem.

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...

So is possible do something like:

cmd_function t_on_failure_f;

...

if (!(t_on_failure_f = find_export("t_on_failure",1,0))) {
   LOG(L_NOTICE, "mod_init(): This module requires tm module\n");
   return -5;
}

...

t_on_failure_f(msg,failure);
t_relay_to_udp_f(msg,gw,foo));



Best regards.

-fs