[Devel] append_branch usage

Simon Morvan garphy at gmail.com
Thu Jul 20 14:19:57 CEST 2006


yes, but after having called this function, shouldn't I have to call a
"t_relay()" ?

2006/7/20, Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
> 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,
> >
>
>



More information about the Devel mailing list