[OpenSIPS-Devel] [OpenSIPS/opensips] 681abc: Fix socket selection for outbound UDP.

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Sep 20 10:25:55 CEST 2016


  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 681abc3bc88b8f01ed68d3ff9c54cf9c9c97bd3c
      https://github.com/OpenSIPS/opensips/commit/681abc3bc88b8f01ed68d3ff9c54cf9c9c97bd3c
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-09-20 (Tue, 20 Sep 2016)

  Changed paths:
    M forward.c

  Log Message:
  -----------
  Fix socket selection for outbound UDP.

Do not use the bind_address of the process when comes to send an UDP package (bind_address may be different from process to process, so the selection may give different results, depending on the processes sending the UDP).
If you have a sip_msg, try using received interface of the msg (if matches), otherwise use the first UDP interface.

(cherry picked from commit 7596eb99fceb68bd95653b76a388f8bc42fee5c6)




More information about the Devel mailing list