[OpenSIPS-Devel] [OpenSIPS/opensips] b38399: Fix reusage of proxy_l structures.

Bogdan-Andrei Iancu bogdan at opensips.org
Wed May 7 13:23:25 CEST 2014


  Branch: refs/heads/1.8
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b383994ba353aa510f98366b0e3e261df09bb546
      https://github.com/OpenSIPS/opensips/commit/b383994ba353aa510f98366b0e3e261df09bb546
  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)

Conflicts:
	action.c
	proxy.c




More information about the Devel mailing list