| Asterisk Support Forum Technical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX. |  | | 
April 20th, 2008, 10:36 AM
| | Junior Member | | Join Date: Apr 2008
Posts: 11
| | problem receiving calls from outside lan... after setting up asterisk, and forwarding proper ports, I'm able to make calls to the outside, but not receiving calls, I have forwarded ports 5060-5082 tcp and 8000-20000 udp....I've also enter the settings for nat in the sip.conf file:
port = 5060
bindaddr = 0.0.0.0
context = others
allowguest = yes
srvlookup=yes
nat=yes
externip = mydnsname.org
localnet = 10.200.50.0/24
fromdomain = mydnsname.org
qualify=yes
canreinvite=no
yet I'm not able to receive calls.... any help appreciated
thanks http://www.pcteckonline.org | 
April 20th, 2008, 12:23 PM
| | Senior Member | | Join Date: Jul 2004
Posts: 1,121
| | Re: problem receiving calls from outside lan... I've got the following in my sip_nat.conf
port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
externhost = my.dyndnsaddress
externrefresh = 5
localnet=192.168.1.1/255.255.255.0
nat=yes
defaultexpirey=500
The Externrefresh line is important if you have a dynamic IP referenced by dynamic dns and I guess you'll need to modify the localnet setting to suit your network. I've forwarded the following ports:
10000-10100 (defined rtpstat and end in rtp.conf as 10000 and 10100)
5060-5065
and 4569
Both UDP and RTP as I'm not really sure whether they're supposed to be UDP or RTP!!!.. works fine for me.
__________________ nerdvittles.com
Last edited by rizsher; April 20th, 2008 at 12:28 PM.
| 
April 20th, 2008, 06:42 PM
| | Junior Member | | Join Date: Apr 2008
Posts: 11
| | Re: problem receiving calls from outside lan... I've modify my sip_nat.conf file as you specified, and also forwarded tcp and udp ports just to be sure, and still can't receive calls from outside.....more over when I make a call the internal ip of my computers is showing in the receiving end, is this normal?
any help appreciated
thanks http://www.pcteckonline.org | 
April 20th, 2008, 06:46 PM
| | Senior Member | | Join Date: Jul 2004
Posts: 1,121
| | Re: problem receiving calls from outside lan... You need to give more information... whats ur setup...wot version of */FreePBX, what do u actually mean by "cant' receive incoming calls"... do anything show up in Asterisk cLI when u get a call.. .is the trunk you're expecting to receive the call on shoing in CLI as registered (sip show registry), have you got a catch all AnyDID/AnyCID inbound route setup?.
__________________ nerdvittles.com | 
April 20th, 2008, 08:15 PM
| | Junior Member | | Join Date: Apr 2008
Posts: 11
| | Re: problem receiving calls from outside lan... Quote:
Originally Posted by rizsher You need to give more information... whats ur setup...wot version of */FreePBX, what do u actually mean by "cant' receive incoming calls"... do anything show up in Asterisk cLI when u get a call.. .is the trunk you're expecting to receive the call on shoing in CLI as registered (sip show registry), have you got a catch all AnyDID/AnyCID inbound route setup?. | Thanks for your help... well let me start by saying that I'm relatively new to asterisk although I have a good grasp on networking/computers. My setup is really simple I have an asterisk version 1.4.10 running on ubuntu 7.10, installed through synaptic, and here's how I'm testing my asterisk setup. I'm behind an ipcop firewall forwarding lots of ports now lol 5060-5080 (tcp/udp), 8000-10000(tcp/udp) and 4569 (tcp/udp), what I do, I use my laptop and login to the internet with dialup and use my ekiga account to make and receive calls from my network, I've been able to make calls from my network to my ekiga account (laptop outside network), but when I call from my ekiga account(outside network) to the inside of my network, nothing happens on asterisk.... right now I'm using no-ip.com to do my dns mapping, my dns A host record is pcteck.no-ip.org....when I dial into my network I use the extension 2000 + pcteck.no-ip.org like this 2000@pcteck.no-ip.org, but like I said before nothing happens, when I register into my network from the outside using my own extension, in that case I'm able to receive and make calls from outside, but what fun is that I want to make and receive calls from other ppl in other network, as far as what you mean by AnyDID/AnyCID ... don't know what that is maybe I'm missing a setting or something in my asterisk setup...and regarding a trunk to receive a call ... I thought that I should be able to call anyone even when they are not registered in my pbx...
hope I made a good explanation of my setup
thanks http://www.pcteckonline.org | 
April 20th, 2008, 10:11 PM
| | Senior Member | | Join Date: Jul 2004
Posts: 1,121
| | Re: problem receiving calls from outside lan... I operate at a fairly low level when it comes to Asterisk... seems like you've gone for a command line approach to setting up Asterisk - not the easiest things.
Suggest you have alook at www.nerdvittles.com and their PBXinAFlash ISo, which installs everything you need for a working * setup on one CD, downside, it does need a dedicated PC to run on, and will wipe off EVERYTHING on every hard disk in that machine during installation - but once done, its a really simple thing to configure.
If that is not an option for you, then see if you can install FreePBX ( www.freepbx.org) on your computer. This will give you a web-based GUI to do ALL your configuration.
I really don't know enough about Asterisk to help you without FreePBX.
However, I understand to receive incoming calls, you NEED to have an "inbound Route" setup which decides how an incoming call is handled (sent to an Extension, or a Voicemail box, or an IVR etc etc) - again, odn't know how this is done thru the command line, but FreePBX will make it a matter of 2 clicks.
__________________ nerdvittles.com | 
April 21st, 2008, 06:33 AM
| | Junior Member | | Join Date: Apr 2008
Posts: 11
| | Re: problem receiving calls from outside lan... well I've decided to see what was going on at the packet level at my eth0 interface on my pbx and I think the asterisk server is having problem translating the 2000@pcteck.no-ip.org to the private ip, it seems to me is a nat issue, I could be wrong....here's the capture
[IMG]http://www.pcteckonline.org/*_bad.png[/IMG]
if anyone is interested in taking a look at the capture file can be downloaded from here http://www.pcteckonline.org/*_bad
any help appreciated thanks | 
April 22nd, 2008, 12:37 AM
| | Junior Member | | Join Date: Apr 2008
Posts: 11
| | Re: problem receiving calls from outside lan... Quote:
Originally Posted by rizsher I've got the following in my sip_nat.conf
port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
externhost = my.dyndnsaddress
externrefresh = 5
localnet=192.168.1.1/255.255.255.0
nat=yes
defaultexpirey=500
The Externrefresh line is important if you have a dynamic IP referenced by dynamic dns and I guess you'll need to modify the localnet setting to suit your network. I've forwarded the following ports:
10000-10100 (defined rtpstat and end in rtp.conf as 10000 and 10100)
5060-5065
and 4569
Both UDP and RTP as I'm not really sure whether they're supposed to be UDP or RTP!!!.. works fine for me. |
what do you mean by opening RTP ports?... with firewall you can only open either TCP or UDP ports
thanks http://www.pcteckonline.org | 
April 22nd, 2008, 07:41 AM
| | Senior Member | | Join Date: Jul 2004
Posts: 1,121
| | Re: problem receiving calls from outside lan... That could be a "feature" of IPCop... I tried PfSense, m0n0wall and IPCop on a spare PC moons ago, never had any success with getting my Asterisk server to work... on a standard router, atleast ones with DD-WRT or Tomato firware, in port forwarding, there are 3 options, TCP, UDP and BOTH.
__________________ nerdvittles.com | 
April 22nd, 2008, 09:04 PM
| | Junior Member | | Join Date: Apr 2008
Posts: 11
| | Re: problem receiving calls from outside lan... Quote:
Originally Posted by rizsher That could be a "feature" of IPCop... I tried PfSense, m0n0wall and IPCop on a spare PC moons ago, never had any success with getting my Asterisk server to work... on a standard router, atleast ones with DD-WRT or Tomato firware, in port forwarding, there are 3 options, TCP, UDP and BOTH. | I suspected of my ipcop firewall might be blocking outbound connection and connected my asterisk box directly to my dsl modem, with the same results...still not able to receive any calls...
thanks http://www.pcteckonline.org |  | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |