On Monday 21 June 2010, Iñaki Baz Castillo wrote:
The
t_newtran() just creates a new transaction. If you then process the
msg locally without forwarding you should release it. I think one reason
for providing this as dedicated function (after all t_relay does it as
well) is that you could use it before some time consuming operations, in
order to be able to absorb retransmissions. Another reason is that you
can then take care of the error condition that the server can't create
new transactions any more, and send a stateless error reply. (Even this
probably happens today rarely, with the increases in available memory.)
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.
Cheers,
Henning