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.




98 posts

Master Geek
+1 received by user: 3


# 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
5442 posts

Uber Geek
+1 received by user: 2516

Trusted
Lifetime subscriber

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

Firewall / router 99% will be the issue




Chorus has spent $1.4 billion on making their xDSL broadband network faster and even more now as they are upgrading their rural Conklins. If your still stuck on ADSL or VDSL, why not spend $195 on a master filter install to make sure you are getting the most out of your connection?
I install - Naked DSL, DSL Master Splitters, VoIP, data cabling and general computer support for home and small business.
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


394 posts

Ultimate Geek
+1 received by user: 51


  # 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.

 
 
 
 


394 posts

Ultimate Geek
+1 received by user: 51


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

annoying cell phone! I mean 180 or 360.

27887 posts

Uber Geek
+1 received by user: 7374

Moderator
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.



98 posts

Master Geek
+1 received by user: 3


  # 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.



98 posts

Master Geek
+1 received by user: 3


  # 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.

27887 posts

Uber Geek
+1 received by user: 7374

Moderator
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?


 
 
 
 




98 posts

Master Geek
+1 received by user: 3


  # 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.

5442 posts

Uber Geek
+1 received by user: 2516

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




Chorus has spent $1.4 billion on making their xDSL broadband network faster and even more now as they are upgrading their rural Conklins. If your still stuck on ADSL or VDSL, why not spend $195 on a master filter install to make sure you are getting the most out of your connection?
I install - Naked DSL, DSL Master Splitters, VoIP, data cabling and general computer support for home and small business.
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


27887 posts

Uber Geek
+1 received by user: 7374

Moderator
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?



98 posts

Master Geek
+1 received by user: 3


  # 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.

27887 posts

Uber Geek
+1 received by user: 7374

Moderator
Trusted
Biddle Corp
Lifetime subscriber

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

Is DNS configured correctly on the Pi?




98 posts

Master Geek
+1 received by user: 3


  # 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.

3344 posts

Uber Geek
+1 received by user: 1089

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.

394 posts

Ultimate Geek
+1 received by user: 51


  # 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



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 »

New Zealand PC Market declines on the back of high channel inventory, IDC reports
Posted 18-Jun-2019 17:35


Air New Zealand uses drones to inspect aircraft
Posted 17-Jun-2019 15:39


TCL Electronics launches its first-ever 8K TV
Posted 17-Jun-2019 15:18


E-scooter share scheme launches in Wellington
Posted 17-Jun-2019 12:34


Anyone can broadcast with Kordia Pop Up TV
Posted 13-Jun-2019 10:51


Volvo and Uber present production vehicle ready for self-driving
Posted 13-Jun-2019 10:47


100,000 customers connected to fibre broadband network through Enable
Posted 13-Jun-2019 10:35


5G uptake even faster than expected
Posted 12-Jun-2019 10:01


Xbox showcases 60 anticipated games
Posted 10-Jun-2019 20:24


Trend Micro Turns Public Hotspots into Secure Networks with WiFi Protection for Mobile Devices
Posted 5-Jun-2019 13:24


Bold UK spinoff for beauty software company Flossie
Posted 2-Jun-2019 14:10


Amazon Introduces Echo Show 5
Posted 1-Jun-2019 15:32


Epson launches new 4K Pro-UHD projector technology
Posted 1-Jun-2019 15:26


Lenovo and Qualcomm unveil first 5G PC called Project Limitless
Posted 28-May-2019 20:23


Intel introduces new 10th Gen Intel Core Processors and Project Athena
Posted 28-May-2019 19:28



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.