News & Reviews
More How-To's & Tips More News
More Reviews Device Configuration Tools
No account yet? Create one
Forgot your Username or Password?

Welcome to the Voxilla VoIP Forum.

Voxilla has been a trusted source for accurate, up-to-date information on the IP Communications industry since 2002. A dedicated staff of reporters and engineers produce feature articles and product reviews to keep industry watchers abreast of the people, companies, and trends driving a fast moving market.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.





Closed Thread
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old July 10th, 2006, 09:48 PM
ygator ygator is offline
Member
 
Join Date: Feb 2006
Posts: 49
ygator
Default Asterisk inside NAT Pap2 inside a different NAT

I have Asterisk running internally on my home network. I am natted with one public IP address. I have my router set to DMZ my nslu2 which is running Asterisk. On my internal LAN everything works great. I am now trying to get a PAP2 on the outside world to connect to asterisk. The Pap2 is also on a natted network. See configurations below.

I can make and receive calls with this setup, however:
1) I only hear audio from asterisk
2) Asterisk does not know when I hang up

I have an extension that says the time and hangs up.
I can call that extension and hear the time.
If I hang up before the time is done I see the debug output of asterisk showing that I did not hangup and that it is still saying the time and then hangs up.

What am I missing to get this to work totally?

Thanks

The Pap2 is setup as follows:
NAT Mapping Enable = Yes
NAT Keep Alive Enable = Yes
Use Outbound Proxy = Yes
Outbound Proxy = fwdnat2.pulver.com:5060

The entry in SIP.conf in asterisk for the Pap2 is:
type=friend
context=default
host=dynamic
nat=yes
canreinvite=yes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old July 11th, 2006, 06:49 AM
mberlant's Avatar
mberlant mberlant is offline
Senior Member
 
Join Date: Aug 2004
Location: USA or Japan
Posts: 5,013
mberlant is an unknown quantity at this point
Default RE: Asterisk inside NAT Pap2 inside a different NAT

There are several things you mention that are contrary to the recommendations of the Asterisk developers as well as the advice previously rendered here in this forum. You may want to read through this forum before progressing further.

What made you decide to use FWD's Outbound Proxy (which forces all RTP packets through that proxy) to talk between your own PAP2 and your own Asterisk?

What made you set canreinvite=yes when even the comments in sip.conf.sample specify that you must set canreinvite=no when you set nat=yes?

Why is the sip.conf entry for the PAP2 so sparse?

How did you configure your PAP2? Did you use the Voxilla Wizard (for FWD w/STUN, as I have recommended)? How did you configure sip.conf? Did you use the advice mentioned here in this forum from other members who have succeeded?

The one good thing is that, with Asterisk running on NSLU2, you are not constrained by the limitations of AMP.
__________________
Please do not send technical questions via PM.
Please post all questions to the forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old July 11th, 2006, 08:16 PM
ygator ygator is offline
Member
 
Join Date: Feb 2006
Posts: 49
ygator
Default Re: RE: Asterisk inside NAT Pap2 inside a different NAT

Okay I got it working. I had forgot to put my ip address in the externip.
No outbound proxy or stun is being used.

I'll go ahead and send my responses to your reply since I had already answered before I noticed the externip.

Quote:
Originally Posted by mberlant
There are several things you mention that are contrary to the recommendations of the Asterisk developers as well as the advice previously rendered here in this forum. You may want to read through this forum before progressing further.
I've been reading the Asterisk Wiki. I looked through here, but I did not see anything that could help me. I look again.

Quote:
Originally Posted by mberlant
What made you decide to use FWD's Outbound Proxy (which forces all RTP packets through that proxy) to talk between your own PAP2 and your own Asterisk?
The solution by Mervyn Sirju located here
http://www.voip-info.org/wiki/index....+NAT+solutions

I was using FWD, but with the bug in the SPA3000 with CID I was unable to know who was calling from the PSTN. I found that asterisk did not care about the SPA3000 bug so I set off to using it. Internally is working fine. I am now trying to allow outside clients get connected. Also I'd actually like to not rely on anything else if that is possible.

I originally had no outbound proxy, but could not get that to work. I then tried FWD stun server, but had no audio at all. I then did a DMZ to the PAP2 on the other network and I had one way audio. I then saw the outbound proxy thing in the wiki and tried that.

The closest I have come to making it work is one way audio, but asterisk does not know when I hang up.

Quote:
Originally Posted by mberlant
What made you set canreinvite=yes when even the comments in sip.conf.sample specify that you must set canreinvite=no when you set nat=yes?
I forgot to change it to no and have not gotten a chance to see if that is what is still causing my problem.
When the Pap2 was connected internal on my network I was trying to get two sip clients to talk to one another without going through the nslu2. I could not get this to work as I always saw the the network light flash on the nslu2 when the call was taking place.

Quote:
Originally Posted by mberlant
Why is the sip.conf entry for the PAP2 so sparse?
I just showed what I thought was relevant. What is missing? Here is the entire entry:

[ext401]
type=friend
regexten=401
username=user401
secret=password
context=default
callerid="test" <401>
host=dynamic
nat=yes
canreinvite=no
disallow=all
allow=ulaw
allow=gsm
mailbox=401@default

Quote:
Originally Posted by mberlant
How did you configure your PAP2? Did you use the Voxilla Wizard (for FWD w/STUN, as I have recommended)?
The Pap2 was originally working on FWD. I just changed to point to Asterisk.

Quote:
Originally Posted by mberlant
How did you configure sip.conf? Did you use the advice mentioned here in this forum from other members who have succeeded?
I modified the entry that was working internally. I have been using the Asterisk Wiki.

Quote:
Originally Posted by mberlant
The one good thing is that, with Asterisk running on NSLU2, you are not constrained by the limitations of AMP.
I didn't know what AMP was, but I guess you are referrring to Asterisk Management Portal. I just edit the asterisk .conf files to change settings.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:



Similar Threads for: Asterisk inside NAT Pap2 inside a different NAT
Thread Thread Starter Forum Replies Last Post
NAT Problems - Different NAT Types detected campuschill Linksys (Sipura) VoIP Support Forum 14 August 14th, 2006 05:45 AM
iAXY works inside local network but not outside chiptransisto Asterisk Support Forum 3 June 9th, 2006 05:56 AM
Asterisk <--> NAT <-> Internet <-> NAT < syscon Asterisk Support Forum 1 May 8th, 2006 09:47 AM
PAP2 NAT troubles (one way audio) KillaB Linksys (Sipura) VoIP Support Forum 16 January 6th, 2006 04:04 PM
Can't Access Admin / Advanced Page? Help Inside fastv8 Linksys (Sipura) VoIP Support Forum 1 November 9th, 2005 08:53 PM



All times are GMT. The time now is 08:50 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc. Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2007 by Voxilla, Inc.