On Jun 21, 2010 at 11:58, Iñaki Baz Castillo <[email protected]> wrote:
> 2010/6/21 Henning Westerholt <[email protected]>:
> >> But take into account that after calling t_newtran() new data being
> >> created in the script is not stored within the transaction information
> >> (flags, AVP's...). It produces really unexpected behavior if you don't
> >> take it into account.
> >
> > Hi Iñaki,
> >
> > yes, this is one of the reasons that it IMHO not that useful in proxy
> > configurations, where one need to rewrite a lot.
>
> I've tryed to use it in some scenarios and finally left it as it's unfeasible.
> IMHO new transaction data created after t_newtran() should be appended
> to the transaction memory when t_relay is invoked.
flags & lumps are appended on t_relay() (ser 2.1, sr 3.*).
You can do things like:
t_newtran();
append_hf("FOO: bar\r\n");
t_relay();
and it will work as expected.
Andrei
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users