[Home]

Summary:ASTERISK-00356: [request] Add outbound SIP Proxy
Reporter:Olle Johansson (oej)Labels:
Date Opened:2003-10-05 15:12:21Date Closed:2011-06-07 14:05:01
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description: To start from a different angle:
Xten and my Cisco ATA is able to use an "outbound SIP proxy" for all outgoing SIP requests. Like a WEB proxy, the SIP client when configured to use a proxy, sends all requests to the proxy, regardless of domain and anything - it's up to the proxy. A proper term would be a SIP proxy proxy.. :-)

I would like to be able to configure an default outbound SIP proxy for ALL outbound SIP connections or one per SIP peer. For Free World Dialup I use fwdnat.pulver.com:5082 where a I believe Jasomi proxy keeps the NAT session open by regurlarly sending SIP Option requests to the client. This is my guess of
how FWD handles a client inside the NAT.

To summarize:
* Add an option for a default "outbound SIP proxy"
* Or, if the default proxy isn't configured in [general], an option for the client/peer configuration so that we can configure this for Free World Dialup when we're using Asterisk as our SIP client to FWD.

****** ADDITIONAL INFORMATION ******

(Moved from http://bugs.digium.com/bug_view_page.php?bug_id=0000104 )
Comments:By: Olle Johansson (oej) 2003-11-05 03:52:06.000-0600

Trying to read and understand the chan_sip.c source, I find two SIP xmit functions. Is this the only place where SIP messages are transmitted in the source? If so, adding redirection to an outbound SIP proxy would be fairly easy.

By: John Todd (jtodd) 2003-12-21 09:28:41.000-0600

I prefer to see things made a bit more flexible than what usually find it's way into the [general] section, so I'd vote for a "default" proxy in [general] but then the ability to put a per-peer proxy if desired, since some transactions will go in different directions than others, depending on what is intended.  Default condition would be to not use a proxy.

[genera]
proxy=123.123.123.123:5060

[mypeer]
<stuff goes here>
proxy=123.123.123.123:5061

By: Olle Johansson (oej) 2003-12-21 12:25:53.000-0600

JT, That follows my suggestion on the top of this page. I prefer using 'outboundproxy' as that is the general term used in many SIP UA's and it will be understood. I think this is a simple patch after spending lots of time looking at the source code...

[general]
outboundproxy=123.123.123.123:5060

[mypeer]
<stuff goes here>
outboundproxy=123.123.123.123:5061

By: Olle Johansson (oej) 2004-03-21 11:17:41.000-0600

This is now being developed within chan_sip2. Please test it. Need feedback.

By: Brian West (bkw918) 2004-03-21 11:18:30.000-0600

added to chan_sip2.c

By: rmarchev (rmarchev) 2004-06-09 15:51:55

Reminder sent to bkw918

What happened with code related to oubound proxy. Is it available?

Thanks