[sr-dev] git:master: tm: support for changing the reply status in the script
Miklos Tirpak
miklos at iptel.org
Thu May 27 09:29:07 CEST 2010
Hi,
On 05/26/2010 11:46 PM, Iñaki Baz Castillo wrote:
> 2010/5/26 Miklos Tirpak <miklos at iptel.org>:
>>> How can the reply status be changed?
>> there should be some other function added, what tm module does is only
>> checking for the change. If you need it then I can add the function to
>> modules_s/textops for instance.
>
> Exotic question: what would occur if I change a 180 response to 486 in
> onreply_route? Transaction client must end in this case, would it
> happen?
to keep the feature simple, I disallowed this case. 1xx can be changed
only to 1xx, 2xx to 2xx, and [3456]xx to [3456]xx.
As far as I know Andrei added support for sending replies from
onreply_route. You can call t_reply(486, "...") when the 180 is received
if you wish, I think tm will cancel the pending branch properly. Hence,
I did not care about this case, and just disallowed it.
Miklos
>
> Thanks.
>
More information about the sr-dev
mailing list