Asterisk multiple bindaddr bounty
Created by: zenon,Last modification on Sun 20 of Jul, 2008 [11:42 UTC]
From: Zenon Panoussis, <oracle AT provocation DOT net>
Bounty: USD min 50, max 100 (contact me first)
Opened: 30 Jan 2008
See problem description at http://bugs.digium.com/view.php?id=11853.
The bounty is for a patch that will allow either (a) multiple occurrences of bindaddr in sip.conf and rtp.conf or, preferably, (b) one occurrence of bindaddr which accepts a comma-delimited list of addresses. The patch must work with the latest stable asterisk release (not SVN, beta, RC etc) at the time when it is submitted and must not break anything else.
Digium's code guidelines do not apply. The patch must be released under GPL2+ (v2 or any later version at downstream's option). The additional problem in comment 0081436 is not part of the assignment and doesn't have to be solved.
Bounty: USD min 50, max 100 (contact me first)
Opened: 30 Jan 2008
See problem description at http://bugs.digium.com/view.php?id=11853.
The bounty is for a patch that will allow either (a) multiple occurrences of bindaddr in sip.conf and rtp.conf or, preferably, (b) one occurrence of bindaddr which accepts a comma-delimited list of addresses. The patch must work with the latest stable asterisk release (not SVN, beta, RC etc) at the time when it is submitted and must not break anything else.
Digium's code guidelines do not apply. The patch must be released under GPL2+ (v2 or any later version at downstream's option). The additional problem in comment 0081436 is not part of the assignment and doesn't have to be solved.

Comments
333use FWMARK
iptables -t mangle -I PREROUTING -i $ExtEth -s yourAsteriskIp p udp --source-port 5060 -j MARK --set-mark 42
ip rule add fwmark 42 nat $WantedPubIP