Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


BigGuy

227 posts

Master Geek


#83345 14-May-2011 13:55
Send private message

Hi All,
I've spent the morning trying to figure out why I can only periodically receive calls.  I'm starting to feel like i'm missing something obvious and cant see the woods for the trees.
This is a newly setup Elastix install, elastix-2.0.0-58.  Previously I had Trixbox - the same condition existed on that host as well.  I've only just got around to sorting the issue out :)
I have also recently rebuilt my firewall (about a month ago).

To clarify, I can call out, call between extensions fine, and even recieve calls -  but only periodically.  I can always receive an inbound call after placing one out.

Disclosure: a lot of the information I have provided had been obfuscated.

The network looks like:
Internet ----- ADSL Modem ----- Firewall ----- Elastix
                                                           |-- Snom M3 phone

The ADSL modem is a Nokia M1122, firewall is pfSense.

For the sake of completeness, I'll also describe the ports I've opened.
I have an entry on the ADSL modem that NAPT's the ports 5060 and 5061, UDP to the Elastix host's IP.  There are also static routes for the network that the Asterisk (Elastix) host sits on.
There are entries on the firewall allowing traffic from 58.28.20.150 (pan.wxnz.net) and 202.180.76.163 (iax.2talk.co.nz) on ports 5060 and 5061 to the Asterisk (Elastix) host.  There is no NAT performed on the pfSense firewall - it's for want of a better term a routing firewall.
In addition I only allow communication from the Asterisk (Elastix) host to 58.28.20.150 (pan.wxnz.net) and 202.180.76.163 through the firewall.

I'm fairly confident that I've got everything sorted on the firewall as I'm not seeing any traffic that I don't expect to see denied.

My peer details for peer 1 is:
username=12345abcdef
type=peer
secret=secret12345
regseconds=180
registertimeout=20
port=5060
nat=yes
maxexpirey=180
insecure=invite,port
host=pan.wxnz.net
fromuser=42345678
fromdomain=pan.wxnz.net
dtmfmode=rfc2833
disallow=all
defaultexpirey=180
context=from-trunk
canreinvite=no
allow=ulaw&alaw

User Context for peer 1:
12345abcdef

Registar String for peer 1:
42345678:secret12345:12345abcdef@pan.wxnz.net/42345678

My peer details for peer 2 is:
username=ghijkl67890
type=peer
secret=secret67890
regseconds=180
registertimeout=20
port=5060
nat=yes
maxexpirey=180
insecure=invite,port
host=pan.wxnz.net
fromuser=49876545
fromdomain=pan.wxnz.net
dtmfmode=rfc2833
disallow=all
defaultexpirey=180
context=from-trunk
canreinvite=no
allow=ulaw&alaw

User Context for peer 1:
ghijkl67890

Registar String for peer 1:
49876545:secret67890:ghijkl67890@pan.wxnz.net/49876545

I'm also confident that my call plans are OK as when the phones do work, routing etc, works perfectly and as expected.

I enabled SIP debugging to try and determine what the issue might be, but I get nothing on the console when I ring in, which suggests that the traffic isn't even getting to the Asterisk host (which is reinforced by the logs on the firewall).

A sip show registry displays:
*CLI> sip show registry
Host                           dnsmgr Username       Refresh State                Reg.Time
pan.wxnz.net:5060              N      49876545           285 Registered           Sat, 14 May 2011 13:22:27
pan.wxnz.net:5060              N      42345678           285 Registered           Sat, 14 May 2011 13:22:27
2 SIP registrations.

Interestingly enough, I can only see the registration for 42345678 at: http://myvfx.xport.co.nz/User/Registrations/

I haven't tested if the same issue exists for the second line as it's just occurred to me that I should have tested that.  I'll make sure I test to see if the second line if affected next time the condition occurs.


Sorry for the long post, hopefully I've given enough information to help you help me :)

Any ideas as to what to check next?

Cheers,
Glen

Create new topic
sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #469065 14-May-2011 14:18
Send private message

Odds are it's definately a firewall issue with the NAT pinhole closing before the SIP registation timeout.


 
 
 

Backblaze Unlimited Backup. World’s easiest cloud backup. Get peace of mind knowing your files are backed up securely in the cloud (affiliate link).
BigGuy

227 posts

Master Geek


  #469067 14-May-2011 14:34
Send private message

That's what I was hoping, I can diagnose that - however, I cant see anything in the firewall logs.
I wonder if it's the M1122 starting to have issues? Undecided

maverick
3594 posts

Uber Geek

Trusted
WorldxChange

  #469069 14-May-2011 14:45
Send private message

I don't know your account details so couldn't check, but intermittent inbound calls is almost exclusively a nat/ firewall / pinhole issue , if I had your details I could check the call records but I will take an educated guess that we will see no response to the invite being sent.

Some Symptoms of Nat / firewall issues are

1. Outbound calls okay
2. Inbound calls fail intermittently
3. Inbound Calls are generally straight after an outbound call.




Yes I am a employee of WxC (My Profile) ... but I do have my own opinions as well Wink

             

https://www.facebook.com/wxccommunications



BigGuy

227 posts

Master Geek


  #469073 14-May-2011 14:56
Send private message

Hmmm...   I wonder if it was when i upgraded from pfSense 1.3 to 2.0 that caused the issue.
Will send you a PM Maverick,

Thanks for your help guys.

BTW: anyone know how to get the filter logs from a Nokia M1122?

And any suggestions for a new modem with a true firewall?  Something that can do NAPT.  I was looking at the SRP527W, but might wait for the VDSL 2 stuff to come out.

I was eye'ing up a Juniper SSG20 with a ADSL2 modem.  But things got expensive quickly :)

insane
3170 posts

Uber Geek

ID Verified
Trusted

  #469181 14-May-2011 23:37
Send private message

Its most certainly an inbound NAT issue as when you establish an outbound connection it's working as the firewalls are state-full.

My advise would be to disable NAT on your modem and run your modem and pfsense firewall in half-bridge mode if you can, which will mean you only have one device doing any NAT.

If you want your current setup to work you'd need to adjust the NAT rules on your pfsense box to pinhole SIP traffic with a source of your your modem and not WxC. Double Nat is nasty.

BigGuy

227 posts

Master Geek


  #469201 15-May-2011 08:29
Send private message

I've been avoiding running the modem in half bridge mode for the only reason that it's another device for someone to get through through if one decided to have a hack around on my DSL link.  Defense in depth and all that Wink

Remember guys, the setup used to work fine for a number of years.

Interestingly enough, I had a play with the M1122 command line and enabled NAPT debug.  Bam - the M1122 did a warm reboot.  I can enable debug on everthing else but for NAPT.  Odd.

I might try another modem.

maverick
3594 posts

Uber Geek

Trusted
WorldxChange

  #469466 16-May-2011 06:56
Send private message

Checked out the details you sent me for the call at 9:11 it timed out when the invite was sent to your IP, it then auto failed over to your cell, so pretty much what I thought, really looks like your nat / firewall has broken somewhere since your not even seeing the SIP message hit your box.




Yes I am a employee of WxC (My Profile) ... but I do have my own opinions as well Wink

             

https://www.facebook.com/wxccommunications



BigGuy

227 posts

Master Geek


  #469562 16-May-2011 11:42
Send private message

Thanks maverick.

BigGuy

227 posts

Master Geek


#481080 14-Jun-2011 16:19
Send private message

I thought I should post a resolution here just in case anyone else has similar issues in the future.  I replaced my DSL modem and things have been great since.

The poor M1122 has been put out to pasture :(


Thanks for your help in diagnosing the issue - much appreciated.

maverick
3594 posts

Uber Geek

Trusted
WorldxChange

  #481084 14-Jun-2011 16:24
Send private message

Thanks for the update




Yes I am a employee of WxC (My Profile) ... but I do have my own opinions as well Wink

             

https://www.facebook.com/wxccommunications

Create new topic





News and reviews »

New Air Traffic Management Platform and Resilient Buildings a Milestone for Airways
Posted 6-Dec-2023 05:00


Logitech G Launches New Flagship Console Wireless Gaming Headset Astro A50 X
Posted 5-Dec-2023 21:00


NordVPN Helps Users Protect Themselves From Vulnerable Apps
Posted 5-Dec-2023 14:27


First-of-its-Kind Flight Trials Integrate Uncrewed Aircraft Into Controlled Airspace
Posted 5-Dec-2023 13:59


Prodigi Technology Services Announces Strategic Acquisition of Conex
Posted 4-Dec-2023 09:33


Samsung Announces Galaxy AI
Posted 28-Nov-2023 14:48


Epson Launches EH-LS650 Ultra Short Throw Smart Streaming Laser Projector
Posted 28-Nov-2023 14:38


Fitbit Charge 6 Review 
Posted 27-Nov-2023 16:21


Cisco Launches New Research Highlighting Gap in Preparedness for AI
Posted 23-Nov-2023 15:50


Seagate Takes Block Storage System to New Heights Reaching 2.5 PB
Posted 23-Nov-2023 15:45


Seagate Nytro 4350 NVMe SSD Delivers Consistent Application Performance and High QoS to Data Centers
Posted 23-Nov-2023 15:38


Amazon Fire TV Stick 4k Max (2nd Generation) Review
Posted 14-Nov-2023 16:17


Over half of New Zealand adults surveyed concerned about AI shopping scams
Posted 3-Nov-2023 10:42


Super Mario Bros. Wonder Launches on Nintendo Switch
Posted 24-Oct-2023 10:56


Google Releases Nest WiFi Pro in New Zealand
Posted 24-Oct-2023 10:18









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.







Backblaze unlimited backup