Hi Simon,

your module has to use the TM api to call this function. As you already register a callback, probably you figured out how to load the TM api. See modules/tm/tm_load.h, the t_relay api function. IMPORTANT: note that the parameter types are not the same as from script. The function expects:
    (struct sip_msg  *p_msg , char *proxy, char *foo)
where proxy is a struct proxy_l * ; foo is not used.

regards,
bogdan

Simon Morvan wrote:

Hello there,

I used to redirect a failed call from the config script by doing
append_branch()
and then, t_relay(). I want to do the same thing programmatically from a
module (TCMB_ON_FAILURE event of TM module. I managed to use
the append_branch function from the module but I can't figure out how to
to a simple "t_relay()" equivalent from within the module.

Thanks,



_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to