Summary:ASTERISK-02811: [patch] Outbound proxy support
Reporter:Olle Johansson (oej)Labels:
Date Opened:2004-11-14 05:30:24.000-0600Date Closed:2011-06-07 14:05:09
Versions:Frequency of
Environment:Attachments:( 0) sipoutboundproxy.txt
Description:This patch
* Adds outbound proxy support to the SIP channel
* Adds a new function: find_host for srv lookups
* Changes name of var "srvlookup" to "global_srvlookup"
* Restructures sip.conf for clarity, combining NAT traversal support into one group


The outbound proxy support can be done in many ways, either by using a crude technique that simply sends all packets with a destination outside of the local network to a SIP-based border session controller or by only sending INVITEs there, then relying on route headers that the rest of the packets go there as well.

This patch only supports the crude way, shipping all packets outside of the localnet= network to the outbound proxy. The outbound proxy is a simple SIP proxy sitting in your firewall cluster, like a Swedish Intertex SIP gateway.

This has been tested by a number of people as part of chan_sip2. However, this code is a tiny bit modified to be a bit quicker if you do not use NAT or outbound proxy.

Please help me with testing and confirm here in the bug tracker.

I will now continue working with outbound proxy support for a specific [peer], in order to support outbound proxies for nat traversal with a specific service provider, like Broadvoice or FWD.
Comments:By: dweber (dweber) 2004-11-21 09:13:16.000-0600

this works great.

By: Olle Johansson (oej) 2004-11-21 11:25:20.000-0600

disclaimer on file. My apologies for forgetting that note.

By: Mark Spencer (markster) 2004-12-03 18:39:59.000-0600

Initial per-peer in there (no docs yet) but not global outbound proxy.

By: twisted (twisted) 2004-12-15 20:53:40.000-0600

woop.  oej - what's goin on here man?  See markster put in the per-peer obp?  is this patch still for per-peer + global, or is it just for global?

By: Olle Johansson (oej) 2004-12-15 23:56:33.000-0600

Yes, I saw Markster do that, since I was sitting in the same room :-)

I am testing his solution, but haven't made up my mind yet about it. Will do soon.

By: twisted (twisted) 2004-12-28 10:59:30.000-0600

oej: your time has come :)

By: Mark Spencer (markster) 2005-01-06 00:35:59.000-0600

Okay, last call for oej to comment further on this before i close it out :)

By: Olle Johansson (oej) 2005-01-08 03:59:24.000-0600

Yeah, yeah. I hear you... Very unsure if Marks way of doing it is the right way going forward.
Mark, in order for me to test this fully, can you provide me with the rest of the fixes you made on my patch if you still have it on your hard disk?

By: Olle Johansson (oej) 2005-01-10 01:25:25.000-0600

Closing this due to lack of time. Will re-open in a few weeks to take another stab at this.

By: Digium Subversion (svnbot) 2008-01-15 15:15:39.000-0600

Repository: asterisk
Revision: 4383

U   trunk/acl.c
U   trunk/channels/chan_sip.c
U   trunk/include/asterisk/acl.h

r4383 | markster | 2008-01-15 15:15:38 -0600 (Tue, 15 Jan 2008) | 2 lines

Add *preliminary* per-peer outbound proxy (bug ASTERISK-2811, new patch though)