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.


breakaway

105 posts

Master Geek


#139048 25-Jan-2014 22:53
Send private message

I'm having a bit of a play with my Raspberry Pi model B and the incredible PBX (link). It's working pretty well. Normally I run my PBX in a VMWare VM which has been working fine but thought I'd have a play with this.

 

It appears I've come across a strange issue. Asterisk stops accepting inbound calls after a period of inactivity (like 15-20 minutes). asterisk -r on verbose shows absolutely NO activity when attempting a call from my cell. I get a message saying "The party you are trying to reach is unavailable" on my cell.

When this fault is 'active', if I make an outbound call from an extension registered to my PBX, it works fine. Then, for a  short period I can accept some calls. Also if I restart the system or simply restart the asterisk service using "restart amportal" over SSH, it seems to accept incoming calls for a short period.

It's almost as if asterisk isn't even listening for calls at all, and restarting/making an outbound call wakes it up for a short period.

Any ideas on what this might be?

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

Uber Geek

Trusted
Lifetime subscriber

  #974408 25-Jan-2014 23:39
Send private message

Firewall / router 99% will be the issue




Rural IT and Broadband support.

 

Broadband troubleshooting and master filter installs.
Starlink installer
Wi-Fi and networking
Cel-Fi supply and installer - boost your mobile phone coverage legally
Rural Broadband RBI installer for Ultimate Broadband and Full Flavour

 

Need help in Auckland, Waikato or BoP? Click my email button, or email me direct: [my user name] at geekzonemail dot com


Affiliate link
 
 
 

Affiliate link: Norton Secure VPN helps secure private information using bank-grade encryption when using public Wi-Fi on your PC, Mac, or mobile device.
kornflake
409 posts

Ultimate Geek


  #974460 26-Jan-2014 07:57
Send private message

maybe your registration timers are out, change them to 1800,or 3600 depending on what the system will allow.

kornflake
409 posts

Ultimate Geek


  #974462 26-Jan-2014 07:59
Send private message

annoying cell phone! I mean 180 or 360.



sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #974466 26-Jan-2014 08:12
Send private message

If making a call fixes it the problem is almost certainly your registrations timing out which is either your registration times or your firewall.

breakaway

105 posts

Master Geek


  #974631 26-Jan-2014 14:45
Send private message

I don't think it's the firewall since it works fine using PiaF which I previously ran as VMWare VM. Also my register settings are already at 180.

Here's my PEER registration settings (I copied them out of my PIAF box): port=5060

port=5060
dtmfmode=rfc2833
disallow=all
allow=ulaw&alaw&g722
registertimeout=20
regseconds=180
type=peer
fromuser=<REDACTED>; this is your VFX Number without the leading 0 i.e. 9950XXXX
host=pan.wxnz.net
insecure=invite,port
canreinvite=no
nat=yes
secret=<REDACTED>
username=<REDACTED>



Here's what the PBX shows when the fault is 'active':

incrediblepbx*CLI> sip show registry Host                                    dnsmgr Username       Refresh State                Reg.Time
pan.wxnz.net:5060                       N      <REDACTED> 285 Registered           Sun, 26 Jan 2014 14:44:52
1 SIP registrations.

The "reg time" it shows is always <5 minutes from the current time, but it's still not going. Will try reducing it further and report back.

breakaway

105 posts

Master Geek


  #974650 26-Jan-2014 15:40
Send private message

Ok that didn't work. But it appears to be a SIP trunk registration issue. When I run "sip reload" it starts working again.

sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #974655 26-Jan-2014 15:54
Send private message

I'm assuming your box is firewalled off and port 5060 isn't exposed to the internet?




breakaway

105 posts

Master Geek


  #974657 26-Jan-2014 16:03
Send private message

port 5060 is NATed from my external IP to my PBX's internal IP, with incoming connections only allowed from pan.wxnz.net.

coffeebaron
5934 posts

Uber Geek

Trusted
Lifetime subscriber

  #974674 26-Jan-2014 16:43
Send private message

Change that firewall rule to the actual IP address 58.28.20.150




Rural IT and Broadband support.

 

Broadband troubleshooting and master filter installs.
Starlink installer
Wi-Fi and networking
Cel-Fi supply and installer - boost your mobile phone coverage legally
Rural Broadband RBI installer for Ultimate Broadband and Full Flavour

 

Need help in Auckland, Waikato or BoP? Click my email button, or email me direct: [my user name] at geekzonemail dot com


sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #974676 26-Jan-2014 16:44
Send private message

DOes Asterisk still show registered when the issue happens?

And are you running pure Asterisk or a distro?

breakaway

105 posts

Master Geek


  #974705 26-Jan-2014 17:15
Send private message

coffeebaron -- am explicitly using the IP

sbiddle -- I'm running Incredible PBX 3.11.8 (followed this guide here -- http://nerdvittles.com/?p=8178)

I've also made sure Asterisk framework & all add-ons are up to date using the module manager.

sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #974707 26-Jan-2014 17:19
Send private message

Is DNS configured correctly on the Pi?


breakaway

105 posts

Master Geek


  #974737 26-Jan-2014 18:46
Send private message

Yes it is -- it's configured via DHCP and I've checked that resolv.conf contains my DNS server.

ubergeeknz
3344 posts

Uber Geek

Trusted
Vocus

  #974786 26-Jan-2014 19:54
Send private message

Does your router have any SIP capability?  I would suggest using a port other than 5060 on both asterisk and on the outside - maybe 25060 or something, and see what happens.

kornflake
409 posts

Ultimate Geek


  #974821 26-Jan-2014 21:03
Send private message

try changing the host to the IP address

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





News and reviews »

Belkin Screenforce Tempered Glass Screen Protector and Bumper - Apple Watch
Posted 15-Aug-2022 17:20


Samsung Introducing Galaxy Z Flip4 and Galaxy Z Fold4
Posted 11-Aug-2022 01:00


Samsung Unveils Health Innovations with Galaxy Watch5 and Galaxy Watch5 Pro
Posted 11-Aug-2022 01:00


Google Bringing First Cloud Region to Aotearoa New Zealand
Posted 10-Aug-2022 08:51


ANZ To Move to FIS Modern Banking Platform
Posted 10-Aug-2022 08:28


GoPro Hero10 Black Review
Posted 8-Aug-2022 17:41


Amazon to Acquire iRobot
Posted 6-Aug-2022 11:41


Samsung x LIFE Picture Collection Brings Iconic Moments in History to The Frame
Posted 4-Aug-2022 17:04


Norton Consumer Cyber Safety Pulse Report: Phishing for New Bait on Social Media
Posted 4-Aug-2022 16:50


Microsoft Announces New Solutions for Threat Intelligence and Attack Surface Management
Posted 3-Aug-2022 21:54


Seagate Addresses Hyperscale Workloads with Enterprise-Class Nytro SSDs
Posted 3-Aug-2022 21:50


Visa Launching Eco-friendly Payment Solutions in New Zealand
Posted 3-Aug-2022 21:48


NCR Delivers Services to Run Bank of New Zealand ATM Network
Posted 30-Jul-2022 11:06


New HP Portfolio Supports New Era of Hybrid Work
Posted 28-Jul-2022 17:14


Harman Kardon Launches Citation MultiBeam 1100 Soundbar
Posted 28-Jul-2022 17:10









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.







GoodSync is the easiest file sync and backup for Windows and Mac