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.


aw



273 posts

Ultimate Geek


# 77444 16-Feb-2011 16:09
Send private message

I need a little help here with something I've stuffed up.

I had an Asterisk box running on a home server and it's time to migrate machines (old to new) and distros (openSUSE to CentOS).

I compiled a fresh Asterisk+FreePBX install on the new box, copied over the config from the old box (I'd moved MySQL and other services earlier).

I've solved all issues migrating bar one.

I can't receive incoming calls. My personal line goes straight to voicemail and my home office line is being forwarded to my cellphone (as they both should when the * box is down).

Thing is, it's up.

Outgoing calls are 100% fine.
SIP from my mobile over VoIP and over 3G also remains fine when I make calls between extensions, local and remote.

Wireshark seems to show successful SIP registrations with WxC (coming back with 200 OK), but when I place a call from py PSTN line, with Wireshark's filter set to "net 58.28.0.0/16 and udp", no activity is shown at all relating to the incoming call.

It seems that my * box is registering, but not quite properly, and I can't quite figure out what I've screwed up.

The only change I know I've made is changing all references to as.wxcnz.net to pan.wxnz.net. I tried changing these back on one of the lines and re-added the appropriate entry in /etc/hosts but when I did that registration packets seemed to go unanswered. I've changed it back again to pan.wxnz.net.

Port forwarding on the Dynalink router is on for TCP 5060 and UDP 5060, 8000-8500 and 20000-20500. SIP ALG is OFF. Previous experimentation showed that it works both ON and OFF as the * box is the only thing that talks SIP between my home net and the internet, all other SIP traffic is local.
rtp.conf has the RTP port range set at 20000-20500 for remote extensions (my cellphone).

sip_general_custom.conf has nat=yes, externip=(my static IP) and localnet=(my local IP range).

Anything obvious I'm missing?

View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
3594 posts

Uber Geek

Trusted
WorldxChange

  # 440323 16-Feb-2011 16:27
Send private message

Your sending us a 410 Gone message ..... Invite is going to you and your responding with a 410




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

             

https://www.facebook.com/wxccommunications

aw



273 posts

Ultimate Geek


  # 440331 16-Feb-2011 16:43
Send private message

Thanks Maverick for the fast reply!

Bizarre. If I comment out the NAT settings in rtp.conf it all comes right. That's the opposite of the behaviour I'd expect.

Of course I need that on for my remote extensions.

I've now added localnet=58.28.20.150/255.255.255.255 into my rtp.conf. A couple of test calls shows it seems to be working like that, but by my understanding that should have broken it, not fixed it!

Any SIP gurus know why that'd be?

 
 
 
 


aw



273 posts

Ultimate Geek


  # 440394 16-Feb-2011 18:54
Send private message

Spoke too soon, that didn't fix it. Now no matter what I try, one line always works (the WxC native one), and the other always fails (the ported Woosh 940 number, not that that's relevant, it'll just help Maverick tell which numbers I'm talking about).

I'll keep at it this evening unless it drives me too crazy. I've disabled the working line so I can focus on the not-working one.

28423 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  # 440400 16-Feb-2011 19:00
Send private message

aw: Thanks Maverick for the fast reply!

Bizarre. If I comment out the NAT settings in rtp.conf it all comes right. That's the opposite of the behaviour I'd expect.

Of course I need that on for my remote extensions.

I've now added localnet=58.28.20.150/255.255.255.255 into my rtp.conf. A couple of test calls shows it seems to be working like that, but by my understanding that should have broken it, not fixed it!

Any SIP gurus know why that'd be?


You mean SIP.conf?


aw



273 posts

Ultimate Geek


  # 440402 16-Feb-2011 19:08
Send private message

Yeah, sip.conf - specifically sip_general_custom.conf as this is a FreePBX install. I have no idea why I said rtp.conf.

aw



273 posts

Ultimate Geek


  # 440405 16-Feb-2011 19:17
Send private message

I wonder if the whole thing is being mucked up by a corrupt registration or something with all the restarts I've been doing? I've gone through profile settings for both lines, and besides the number and auth info, they're both configured exactly alike. I'm starting to think that if it were at my end, both, or neither of my lines should be working now, not just one.

Even tried routing it through my backup connection (2D USB modem on a gateway), same result.

28423 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  # 440407 16-Feb-2011 19:23
Send private message

It's always a good idea to register with as.wxnz.net and load this in your hosts file anyway. This can minimise the effects of the well known Asterisk DNS failing where internal calls are not possible if the internet goes down.

 
 
 
 


aw



273 posts

Ultimate Geek


  # 440408 16-Feb-2011 19:23
Send private message

Maverick, you still at work? I just spotted that test call :)

3594 posts

Uber Geek

Trusted
WorldxChange

  # 440409 16-Feb-2011 19:24
Send private message

:)




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

             

https://www.facebook.com/wxccommunications

aw



273 posts

Ultimate Geek


  # 440410 16-Feb-2011 19:26
Send private message

Haha I almost answered that second one in time too. I guess that means it's working - cheers :)

3594 posts

Uber Geek

Trusted
WorldxChange

  # 440411 16-Feb-2011 19:28
Send private message

Your all good now, a corrupted cached registration was the issue




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

             

https://www.facebook.com/wxccommunications

aw



273 posts

Ultimate Geek


  # 440414 16-Feb-2011 19:30
Send private message

Yeah all those changes and restarts I did earlier in the day probably mucked it up. Thanks so much for the fix!

28423 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  # 440447 16-Feb-2011 20:27
Send private message

aw: Maverick, you still at work? I just spotted that test call :)


That man never sleeps! Smile

3889 posts

Uber Geek


  # 440459 16-Feb-2011 20:57
Send private message

maverick: Your all good now, a corrupted cached registration was the issue


This might be a dumb question... but is that something the user end can detect and fix?





Promote New Zealand - Get yourself a .kiwi.nz domain name!!!

Check out mine - i.am.a.can.do.kiwi.nz - don@i.am.a.can.do.kiwi.nz


aw



273 posts

Ultimate Geek


  # 440467 16-Feb-2011 21:28
Send private message

It wasa combination of reading this thread, the fact that one line was working while the other wasn't, and the knowledge that I'd restarted Asterisk dozens of times troubleshooting the original issue that alerted me to the possibility that it might be a bad reg.

I guess a dodgy internet connection could also set something like that off, but the average end user wouldn't be migrating an Asterisk PBX then restarting it every minute for most of the day!!

(I also had issues with the NZ voice recordings, permissions and all sorts of other stuff that had me restarting it dozens of times, followed by the (I think) NAT issue that started this thread, before then hitting this problem with just one of the two trunk lines, so that's a lot of restarts)

But I guess that fault should self-correct when the bad registration expires. By the way Phil, just curious, how long would that have been if it had not been manually reset?

 1 | 2
View this topic in a long page with up to 500 replies per page Create new topic



Switch your broadband provider now - compare prices


Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Samsung Galaxy Fold now available in New Zealand
Posted 6-Dec-2019 00:01


NZ company oDocs awarded US$ 100,000 Dubai World Expo grant
Posted 5-Dec-2019 16:00


New Zealand Rugby Selects AWS-Powered Analytics for Deeper Game Insights
Posted 5-Dec-2019 11:33


IMAGR and Farro bring checkout-less supermarket shopping to New Zealand
Posted 5-Dec-2019 09:07


Wellington Airport becomes first 5G connected airport in the country
Posted 3-Dec-2019 08:42


MetService secures Al Jazeera as a new weather client
Posted 28-Nov-2019 09:40


NZ a top 10 connected nation with stage one of ultra-fast broadband roll-out completed
Posted 24-Nov-2019 14:15


Microsoft Translator understands te reo Māori
Posted 22-Nov-2019 08:46


Chorus to launch Hyperfibre service
Posted 18-Nov-2019 15:00


Microsoft launches first Experience Center worldwide for Asia Pacific in Singapore
Posted 13-Nov-2019 13:08


Disney+ comes to LG Smart TVs
Posted 13-Nov-2019 12:55


Spark launches new wireless broadband "Unplan Metro"
Posted 11-Nov-2019 08:19


Malwarebytes overhauls flagship product with new UI, faster engine and lighter footprint
Posted 6-Nov-2019 11:48


CarbonClick launches into Digital Marketplaces
Posted 6-Nov-2019 11:42


Kordia offers Microsoft Azure Peering Service
Posted 6-Nov-2019 11:41



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.