[Serusers] Module creation

sendman sendman at gmail.com
Tue Sep 13 00:59:12 CEST 2005


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050912/5fe94e22/attachment.htm>


More information about the sr-users mailing list