Re: [asterisk-users] NAT and externip problem or bug

2006-07-23 Thread Julian J. M.

Why don't you use the syntax that I mentioned in my first reply?

According to http://www.voip-info.org/wiki/index.php?page=Asterisk+SIP+localnet

The correct syntax is:

localnet=192.168.0.0/255.255.255.0

Keyword localmask is deprecated in asterisk 1.2... And btw, you should
have seen it in the logs. According to chan_sip.c, around line 12508:

   } else if (!strcasecmp(v-name, localmask)) {
   ast_log(LOG_WARNING, Use of localmask is no
long supported -- use localnet with mask syntax\n);
   }


Julian J. M.

On 7/22/06, Robert Jenkins [EMAIL PROTECTED] wrote:

The simple thing is that if I have 'externip' set, I can see on a soft phone
(running on a PC on the same local subnet as asterisk) that it's seeing a
call from another local device as coming from [EMAIL PROTECTED] - which is
the external IP and as everything is inside the firewall there is no audio
from the soft phone when the call answered.

If I comment out the 'externip' line  restart asterisk, the soft phone then
correctly sees the local call as being from [EMAIL PROTECTED] and I get
two-way speech.

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] NAT and externip problem or bug

2006-07-22 Thread Julian J. M.

Have you made sure you are also setting localnet in sip.conf?

externip=1.2.3.4
localnet=192.168.0.0/255.255.255.255

Asterisk won't use externip for devices on your local network.

Julian.

On 7/22/06, Robert Jenkins [EMAIL PROTECTED] wrote:

Hi,

I've recently got asterisk running on it's own pc inside my firwewall.
Mostly it's working fine, but there is one silly problem I can't figure out.
(For reference, Asterisk is the latest stable version as of last weekend
14th July. All connectivity is SIP or IAX).

I initially had 'externip' set to my public IP. I have the appropriate 5000
range ports forwarded to the asterisk PC and external calls seem OK.

The 'local' phones are a mixture of Sipura boxes and softphones.

Problem:
No or one-way audio in internal calls.

Reason: Asterisk appears to be using the 'externip' address for all SIP
devices, regardless of their NAT setting.
Once a call starts, some softphones change the address they are responding
to  use the external IP rather than the asterisk PCs local IP on the same
subnet...

I have tried all NAT options and spent quite a while reading everything I
can find about sip.conf, but I can't so far find any way of changing this
behaviour.

All the internal phones work fine if I comment out the externip line, but
then the connections outside the firewall are likely to have problems.

Is there any way of configuring externip on a per-device basis, or should it
only have effect on NATed devices?

Thanks,
Robert Jenkins.

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [asterisk-users] NAT and externip problem or bug

2006-07-22 Thread Guido Hecken
posting the relevant parts of your config (sip.conf, extensions.conf) could
help to solve your problem. 

Guido 
 
 I've recently got asterisk running on it's own pc inside my firwewall.
 Mostly it's working fine, but there is one silly problem I can't figure
out.
 (For reference, Asterisk is the latest stable version as of last weekend
 14th July. All connectivity is SIP or IAX).
 
 I initially had 'externip' set to my public IP. I have the appropriate
5000
 range ports forwarded to the asterisk PC and external calls seem OK.
 
 The 'local' phones are a mixture of Sipura boxes and softphones.
 
 Problem:
 No or one-way audio in internal calls.
 
 Reason: Asterisk appears to be using the 'externip' address for all SIP
 devices, regardless of their NAT setting.
 Once a call starts, some softphones change the address they are responding
 to  use the external IP rather than the asterisk PCs local IP on the same
 subnet...
 
 I have tried all NAT options and spent quite a while reading everything I
 can find about sip.conf, but I can't so far find any way of changing this
 behaviour.
 
 All the internal phones work fine if I comment out the externip line, but
 then the connections outside the firewall are likely to have problems.
 
 Is there any way of configuring externip on a per-device basis, or should
it
 only have effect on NATed devices?
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [asterisk-users] NAT and externip problem or bug

2006-07-22 Thread Robert Jenkins

That sounds to be what I'm missing!

Many thanks, Robert.


 From: Julian J. M. 
 Sent: 22 July 2006 10:19
 Subject: Re: [asterisk-users] NAT and externip problem or bug
 
 Have you made sure you are also setting localnet in sip.conf?
 
 externip=1.2.3.4
 localnet=192.168.0.0/255.255.255.255
 
 Asterisk won't use externip for devices on your local network.
 
 Julian.
 
 On 7/22/06, Robert Jenkins [EMAIL PROTECTED] wrote:
  Hi,
 
  I've recently got asterisk running on it's own pc inside my 
 firwewall.
  Mostly it's working fine, but there is one silly problem I 
 can't figure out.
  (For reference, Asterisk is the latest stable version as of last 
  weekend 14th July. All connectivity is SIP or IAX).
 
  I initially had 'externip' set to my public IP. I have the 
 appropriate 
  5000 range ports forwarded to the asterisk PC and external 
 calls seem OK.
 
  The 'local' phones are a mixture of Sipura boxes and softphones.
 
  Problem:
  No or one-way audio in internal calls.
 
  Reason: Asterisk appears to be using the 'externip' address for all 
  SIP devices, regardless of their NAT setting.
  Once a call starts, some softphones change the address they are 
  responding to  use the external IP rather than the 
 asterisk PCs local 
  IP on the same subnet...
 
  I have tried all NAT options and spent quite a while reading 
  everything I can find about sip.conf, but I can't so far 
 find any way 
  of changing this behaviour.
 
  All the internal phones work fine if I comment out the 
 externip line, 
  but then the connections outside the firewall are likely to 
 have problems.
 
  Is there any way of configuring externip on a per-device basis, or 
  should it only have effect on NATed devices?
 
  Thanks,
  Robert Jenkins.
 
  ___
  --Bandwidth and Colocation provided by Easynews.com --
 
  asterisk-users mailing list
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users
 
 

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [asterisk-users] NAT and externip problem or bug

2006-07-22 Thread Robert Jenkins
Oh well..

I already had localnet set:

localnet = 192.168.0.0  ; Internal NETWORK address
localmask = 255.255.255.0   ; Internal netmask 

All the involved PCs  Sipura boxes are using 192.168.0.x addresses.

The Sipura boxes work, but the fact that asterisk is sending the external IP
to any device on the local network seems to me to be a bug..

Robert Jenkins.

 Subject: RE: [asterisk-users] NAT and externip problem or bug
 
 That sounds to be what I'm missing!
 Many thanks, Robert.
 
  From: Julian J. M. 
  Sent: 22 July 2006 10:19
  Subject: Re: [asterisk-users] NAT and externip problem or bug
  
  Have you made sure you are also setting localnet in sip.conf?
  
  externip=1.2.3.4
  localnet=192.168.0.0/255.255.255.255
  
  Asterisk won't use externip for devices on your local network.
  
  Julian.
  
  On 7/22/06, Robert Jenkins [EMAIL PROTECTED] wrote:
   Hi,
  
   I've recently got asterisk running on it's own pc inside my
  firwewall.
   Mostly it's working fine, but there is one silly problem I
  can't figure out.
   (For reference, Asterisk is the latest stable version as of last 
   weekend 14th July. All connectivity is SIP or IAX).
  
   I initially had 'externip' set to my public IP. I have the
  appropriate
   5000 range ports forwarded to the asterisk PC and external
  calls seem OK.
  
   The 'local' phones are a mixture of Sipura boxes and softphones.
  
   Problem:
   No or one-way audio in internal calls.
  
   Reason: Asterisk appears to be using the 'externip' 
 address for all 
   SIP devices, regardless of their NAT setting.
   Once a call starts, some softphones change the address they are 
   responding to  use the external IP rather than the
  asterisk PCs local
   IP on the same subnet...
  
   I have tried all NAT options and spent quite a while reading 
   everything I can find about sip.conf, but I can't so far
  find any way
   of changing this behaviour.
  
   All the internal phones work fine if I comment out the
  externip line,
   but then the connections outside the firewall are likely to
  have problems.
  
   Is there any way of configuring externip on a per-device 
 basis, or 
   should it only have effect on NATed devices?
  
   Thanks,
   Robert Jenkins.

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] NAT and externip problem or bug

2006-07-22 Thread Martin Joseph


On Jul 22, 2006, at 11:13 AM, Robert Jenkins wrote:


Oh well..

I already had localnet set:

localnet = 192.168.0.0  ; Internal NETWORK address
localmask = 255.255.255.0   ; Internal netmask

All the involved PCs  Sipura boxes are using 192.168.0.x addresses.

The Sipura boxes work, but the fact that asterisk is sending the  
external IP

to any device on the local network seems to me to be a bug..



You didn't mention whether you were also forwarding ports 1-2  
to the SIP Proxy (ie asterisk).  Thats where the actual RTP (voice  
data) is passing.  Also you need to be sure that there aren't  
multiple clients on your lan all trying to use the same ports for  
signaling (ie 5060), as this will fail.


Hope this helps.
Marty

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] NAT and externip problem or bug

2006-07-22 Thread brandon kruz


specially if you only have 5060 but not the sip pass through ports as he 
mentioned
(1-2) then you can establish a call but no voice data is sent(or so 
that is in theory)


so make sure you get this right with your asterisk box and everything should 
work



From: Martin Joseph [EMAIL PROTECTED]
Reply-To: Asterisk Users Mailing List - Non-Commercial 
Discussionasterisk-users@lists.digium.com
To: Asterisk Users Mailing List - Non-Commercial 
Discussionasterisk-users@lists.digium.com

Subject: Re: [asterisk-users] NAT and externip problem or bug
Date: Sat, 22 Jul 2006 11:21:08 -0700
MIME-Version: 1.0 (Apple Message framework v752.2)
Received: from lists.digium.com ([69.16.138.164]) by 
bay0-mc3-f3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Sat, 22 
Jul 2006 11:25:02 -0700
Received: from digium-69-16-138-164.phx1.puregig.net (localhost 
[127.0.0.1])by lists.digium.com (Postfix) with ESMTP id A215F2FC8CF;Sat, 22 
Jul 2006 11:21:17 -0700 (MST)
Received: from psmtp.com (exprod8mx14.postini.com [64.18.3.114])by 
lists.digium.com (Postfix) with SMTP id 2D1862FC8A1for 
asterisk-users@lists.digium.com;Sat, 22 Jul 2006 11:21:07 -0700 (MST)
Received: from source ([216.231.36.246]) by 
exprod8mx14.postini.com([64.18.7.10]) with SMTP; Sat, 22 Jul 2006 11:21:07 
PDT
Received: from [10.0.1.87] 
(dsl231-036-163.sea1.dsl.speakeasy.net[216.231.36.163])by 
mail.stillnewt.org (Postfix) with ESMTP id 5F7432B8258for 
asterisk-users@lists.digium.com;Sat, 22 Jul 2006 11:21:07 -0700 (PDT)

X-Message-Info: LsUYwwHHNt2O3UvzBIdIiorH4WKvX/oX4qpvPasAygs=
X-Original-To: asterisk-users@lists.digium.com
Delivered-To: asterisk-users@lists.digium.com
References: [EMAIL PROTECTED]
X-Mailer: Apple Mail (2.752.2)
X-pstn-levels: (S:99.9/99.9 FC:95.5390 LC:95.5390 R:95.9108 
P:95.9108M:96.8350 C:98.4741 )
X-pstn-settings: 3 (1.:1.) s fc lc gt3 gt2 gt1 r p m c 
X-pstn-addresses: from [EMAIL PROTECTED] [db-null] X-BeenThere: 
asterisk-users@lists.digium.com

X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Asterisk Users Mailing List - Non-Commercial 
Discussionasterisk-users.lists.digium.com
List-Unsubscribe: 
http://lists.digium.com/mailman/listinfo/asterisk-users,mailto:[EMAIL PROTECTED]

List-Archive: http://lists.digium.com/pipermail/asterisk-users
List-Post: mailto:asterisk-users@lists.digium.com
List-Help: mailto:[EMAIL PROTECTED]
List-Subscribe: 
http://lists.digium.com/mailman/listinfo/asterisk-users,mailto:[EMAIL PROTECTED]

Errors-To: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 22 Jul 2006 18:25:03.0419 (UTC) 
FILETIME=[264598B0:01C6ADBC]



On Jul 22, 2006, at 11:13 AM, Robert Jenkins wrote:


Oh well..

I already had localnet set:

localnet = 192.168.0.0  ; Internal NETWORK address
localmask = 255.255.255.0   ; Internal netmask

All the involved PCs  Sipura boxes are using 192.168.0.x addresses.

The Sipura boxes work, but the fact that asterisk is sending the  external 
IP

to any device on the local network seems to me to be a bug..



You didn't mention whether you were also forwarding ports 1-2  to 
the SIP Proxy (ie asterisk).  Thats where the actual RTP (voice  data) is 
passing.  Also you need to be sure that there aren't  multiple clients on 
your lan all trying to use the same ports for  signaling (ie 5060), as this 
will fail.


Hope this helps.
Marty

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [asterisk-users] NAT and externip problem or bug

2006-07-22 Thread Robert Jenkins
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Martin Joseph
 Sent: 22 July 2006 19:21
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [asterisk-users] NAT and externip problem or bug
 
 
 On Jul 22, 2006, at 11:13 AM, Robert Jenkins wrote:
 
  Oh well..
 
  I already had localnet set:
 
  localnet = 192.168.0.0  ; Internal NETWORK address
  localmask = 255.255.255.0   ; Internal netmask
 
  All the involved PCs  Sipura boxes are using 192.168.0.x addresses.
 
  The Sipura boxes work, but the fact that asterisk is sending the 
  external IP to any device on the local network seems to me to be a 
  bug..
 
 
 You didn't mention whether you were also forwarding ports 
 1-2 to the SIP Proxy (ie asterisk).  Thats where the 
 actual RTP (voice
 data) is passing.  Also you need to be sure that there aren't 
 multiple clients on your lan all trying to use the same ports 
 for signaling (ie 5060), as this will fail.
 
 Hope this helps.
 Marty
 

The simple thing is that if I have 'externip' set, I can see on a soft phone
(running on a PC on the same local subnet as asterisk) that it's seeing a
call from another local device as coming from [EMAIL PROTECTED] - which is
the external IP and as everything is inside the firewall there is no audio
from the soft phone when the call answered.

If I comment out the 'externip' line  restart asterisk, the soft phone then
correctly sees the local call as being from [EMAIL PROTECTED] and I get
two-way speech.


Re. multiple clients using port 5060, I have seen comments both ways..
This is how I have it at present and it works (without externip, which
appears to be down to asterisk sending the wrong info  nothing to do with
ports).
As has been said elsewhere, if online VoIP services with thousands of
connections work with a single port, why should there be a problem smaller
numbers of clients?

Robert Jenkins.

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users