[OpenSIPS-Devel] [OpenSIPS/opensips] 0196aa: Fix reusage of proxy_l structures.
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed May 7 13:11:30 CEST 2014
Branch: refs/heads/1.11
Home: https://github.com/OpenSIPS/opensips
Commit: 0196aa8d05fe96f01d50ad57bca4940327645632
https://github.com/OpenSIPS/opensips/commit/0196aa8d05fe96f01d50ad57bca4940327645632
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2014-05-07 (Wed, 07 May 2014)
Changed paths:
M action.c
M modules/tm/tm.c
M proxy.c
M proxy.h
M route.c
Log Message:
-----------
Fix reusage of proxy_l structures.
As proxy_l structures contain information about the DNS-based failover (iteration in he struct, which SRV or NAPTR records were used or not), such structure cannot be used more then once for sending a message out.
Fixes:
- do not use the same proxy_l for multiple functions in script (remove the add_proxy() and find_proxy() )
- avoid using the same proxy_l structure for all the calls of same function (when proxy_l is a function parameter)
Fixes #224
Many thanks for Chris Maciejewski ( @l7s ) for support on troublehsooting this.
(cherry picked from commit f7f2cb41d6f562d0c3d6748a827d55e12cb05174)
More information about the Devel
mailing list