Re: [asterisk-users] sip.conf outboundproxy
John Todd wrote: Would it be so difficult to have perhaps two different proxies? One would be for any SIP messages destined for IP addresses that were not in any of the localnet= lines, and one would be for any SIP messages destined for IP addresses that were destined for IP addresses that were NOT in the localnet= lines. Of course, leaving them blank would mean that a proxy would not be used for one group or the other. This would allow creation of the concept of outside and inside at an administrative level using previously-described network definitions in sip.conf. Plus, it would dis-entangle a lot of the logic that one might otherwise have to install on the proxy to reflect certain messages back into NATted zones or otherwise complex internal structures. I don't think this is the right distinction; really, you have a list of 'known' hosts that you don't need to go through the proxy to reach, and you go through the proxy to reach the 'unknown' hosts. And, in Asterisk 1.6.x, you can already set the outboundproxy setting at the general level and on a per-peer basis. So, for all your phones/internal servers/etc., just set them to not use the proxy. In fact, this is even better when one of your 'internal' phones happens to be registered from a non-'localnet' IP address. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpflem...@digium.com Check us out at www.digium.com www.asterisk.org ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] sip.conf outboundproxy
So, does anyone ever used outboundproxy in sip.conf with success? Does it only send OUTBOUND calls via the proxy and not also internal extension calls via that proxy? Best Regards, Ricardo. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] sip.conf outboundproxy
Ricardo Carvalho wrote: Does it only send OUTBOUND calls via the proxy and not also internal extension calls via that proxy? As has already been posted in your other threads about this subject, Asterisk has no concept of an 'outbound' call at all. In that sense, the name of this option in sip.conf is incorrect, it should just be 'proxy'. If you tell Asterisk to use a SIP proxy for sending out SIP requests, it will send all requests to that proxy, regardless of whether that request might be involved in a call that you classify as 'internal'. To Asterisk, a SIP call is a SIP call; there is no 'internal', 'external', 'outbound', 'inbound', at least not in the sense of 'inside my PBX' or 'outside my PBX'. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpflem...@digium.com Check us out at www.digium.com www.asterisk.org ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] sip.conf outboundproxy
Thanks Kevin. Although it doesn't fit my needs, thanks for the explanation. I guess I'll really have to combine Asterisk with OpenSer to do what I want. Ricardo. On Thu, Mar 26, 2009 at 1:07 PM, Kevin P. Fleming kpflem...@digium.comwrote: Ricardo Carvalho wrote: Does it only send OUTBOUND calls via the proxy and not also internal extension calls via that proxy? As has already been posted in your other threads about this subject, Asterisk has no concept of an 'outbound' call at all. In that sense, the name of this option in sip.conf is incorrect, it should just be 'proxy'. If you tell Asterisk to use a SIP proxy for sending out SIP requests, it will send all requests to that proxy, regardless of whether that request might be involved in a call that you classify as 'internal'. To Asterisk, a SIP call is a SIP call; there is no 'internal', 'external', 'outbound', 'inbound', at least not in the sense of 'inside my PBX' or 'outside my PBX'. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpflem...@digium.com Check us out at www.digium.com www.asterisk.org ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] sip.conf outboundproxy
On Mar 26, 2009, at 6:07 AM, Kevin P. Fleming wrote: Ricardo Carvalho wrote: Does it only send OUTBOUND calls via the proxy and not also internal extension calls via that proxy? As has already been posted in your other threads about this subject, Asterisk has no concept of an 'outbound' call at all. In that sense, the name of this option in sip.conf is incorrect, it should just be 'proxy'. If you tell Asterisk to use a SIP proxy for sending out SIP requests, it will send all requests to that proxy, regardless of whether that request might be involved in a call that you classify as 'internal'. To Asterisk, a SIP call is a SIP call; there is no 'internal', 'external', 'outbound', 'inbound', at least not in the sense of 'inside my PBX' or 'outside my PBX'. I agree. But... (isn't there always a caveat?) Would it be so difficult to have perhaps two different proxies? One would be for any SIP messages destined for IP addresses that were not in any of the localnet= lines, and one would be for any SIP messages destined for IP addresses that were destined for IP addresses that were NOT in the localnet= lines. Of course, leaving them blank would mean that a proxy would not be used for one group or the other. This would allow creation of the concept of outside and inside at an administrative level using previously-described network definitions in sip.conf. Plus, it would dis-entangle a lot of the logic that one might otherwise have to install on the proxy to reflect certain messages back into NATted zones or otherwise complex internal structures. I have imagined several more complex situations where I'd want to have multiple proxies, each with their own network ACL trigger masks, but I'll stick with the simple case for now. :-) JT --- John Todd email:jt...@digium.com Digium, Inc. | Asterisk Open Source Community Director 445 Jan Davis Drive NW - Huntsville AL 35806 - USA direct: +1-256-428-6083 http://www.digium.com/ ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] sip.conf outboundproxy
The problem is that I cannot put the outboundproxy statement to the applicable sip extension context, due to the fact that I want to force every ENUM call to go via the proxy; and ENUM calls don't use any context to leave asterisk. Even so, putting outboundproxy statement is in the global section of sip.conf, for internal calls destined to phones registered in the same asterisk server, I think asterisk should see those are internal calls and don't ship the signaling through the proxy, right? Ricardo. On Tue, Mar 24, 2009 at 7:08 PM, Danny Nicholas da...@debsinc.com wrote: Just a guess, but your outboundproxy statement is in the global section of sip.conf, which is making it apply to all sip traffic. If you move that line to the applicable sip extension (ie. prox...@sipprov.com), this will probably fix the behavior, even if it doesn't resolve the problem. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steve Howes Sent: Tuesday, March 24, 2009 1:49 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] sip.conf outboundproxy On 24 Mar 2009, at 17:51, Ricardo Carvalho wrote: Hi, I'm trying to enable sip.conf outboundproxy support in version 1.4.20.1 of Asterisk, but for the tests I made, every calls, even internal SIP calls between extensions are sent over the proxy that I have specified with the outboundproxy=xxx.xxx.xxx.xxx in sip.conf. I think this isn't the expected behaviour, right? Only OUTBOUND calls should go through the proxy, right? Never used it before, but in the mind of Asterisk, how is your sip handset any different to a provider? Its outbound from asterisk.. I may be wrong.. Steve ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] sip.conf outboundproxy
Hi, I'm trying to enable sip.conf outboundproxy support in version 1.4.20.1 of Asterisk, but for the tests I made, every calls, even internal SIP calls between extensions are sent over the proxy that I have specified with the outboundproxy=xxx.xxx.xxx.xxx in sip.conf. I think this isn't the expected behaviour, right? Only OUTBOUND calls should go through the proxy, right? Am I doing something wrong or is this the real behaviour of the outboundproxy variable in sip.conf? Best Regards, Ricardo Carvalho. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] sip.conf outboundproxy
On 24 Mar 2009, at 17:51, Ricardo Carvalho wrote: Hi, I'm trying to enable sip.conf outboundproxy support in version 1.4.20.1 of Asterisk, but for the tests I made, every calls, even internal SIP calls between extensions are sent over the proxy that I have specified with the outboundproxy=xxx.xxx.xxx.xxx in sip.conf. I think this isn't the expected behaviour, right? Only OUTBOUND calls should go through the proxy, right? Never used it before, but in the mind of Asterisk, how is your sip handset any different to a provider? Its outbound from asterisk.. I may be wrong.. Steve ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] sip.conf outboundproxy
Just a guess, but your outboundproxy statement is in the global section of sip.conf, which is making it apply to all sip traffic. If you move that line to the applicable sip extension (ie. prox...@sipprov.com), this will probably fix the behavior, even if it doesn't resolve the problem. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steve Howes Sent: Tuesday, March 24, 2009 1:49 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] sip.conf outboundproxy On 24 Mar 2009, at 17:51, Ricardo Carvalho wrote: Hi, I'm trying to enable sip.conf outboundproxy support in version 1.4.20.1 of Asterisk, but for the tests I made, every calls, even internal SIP calls between extensions are sent over the proxy that I have specified with the outboundproxy=xxx.xxx.xxx.xxx in sip.conf. I think this isn't the expected behaviour, right? Only OUTBOUND calls should go through the proxy, right? Never used it before, but in the mind of Asterisk, how is your sip handset any different to a provider? Its outbound from asterisk.. I may be wrong.. Steve ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users