[Devel] append_branch usage

samuel samu60 at gmail.com
Thu Jul 20 16:13:53 CEST 2006


I'm afraid you can not directly call the t_relay function inside your
module.

take a look at the file uac.c from the module tm,
concretely to the function t_uac and you'll find out how to send a
request with the dialog structure.


Samuel.

2006/7/20, Simon Morvan <garphy at gmail.com>:
>
> 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,
> > >
> >
> >
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openser.org/pipermail/devel/attachments/20060720/142336e7/attachment.html


More information about the Devel mailing list