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.



32 posts

Geek


Topic # 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
3519 posts

Uber Geek
+1 received by user: 815

Trusted
Subscriber

  Reply # 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 ADSL broadband network faster. Why not spend a couple of hundred to make sure you are getting the most out of your connection?
Geekzone special price: $150* for master splitter install, normally $200+ through your ISP. Auckland and Waikato areas.
*Travel charges may apply. Additional costs may apply for complex installs.
I install - Naked DSL, DSL Master Splitters, VoIP, RBI Rural Broadband. Also a dealer for WorldxChange.
Need help in Auckland or Waikato? Click my email button, or email me direct: [my user name] at geekzonemail dot com

201 posts

Master Geek
+1 received by user: 13


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

201 posts

Master Geek
+1 received by user: 13


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

annoying cell phone! I mean 180 or 360.

19285 posts

Uber Geek
+1 received by user: 1155

Moderator
Trusted
Biddle Corp
Subscriber

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



32 posts

Geek


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



32 posts

Geek


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

19285 posts

Uber Geek
+1 received by user: 1155

Moderator
Trusted
Biddle Corp
Subscriber

  Reply # 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?




32 posts

Geek


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

3519 posts

Uber Geek
+1 received by user: 815

Trusted
Subscriber

  Reply # 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 ADSL broadband network faster. Why not spend a couple of hundred to make sure you are getting the most out of your connection?
Geekzone special price: $150* for master splitter install, normally $200+ through your ISP. Auckland and Waikato areas.
*Travel charges may apply. Additional costs may apply for complex installs.
I install - Naked DSL, DSL Master Splitters, VoIP, RBI Rural Broadband. Also a dealer for WorldxChange.
Need help in Auckland or Waikato? Click my email button, or email me direct: [my user name] at geekzonemail dot com

19285 posts

Uber Geek
+1 received by user: 1155

Moderator
Trusted
Biddle Corp
Subscriber

  Reply # 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?



32 posts

Geek


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

19285 posts

Uber Geek
+1 received by user: 1155

Moderator
Trusted
Biddle Corp
Subscriber

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

Is DNS configured correctly on the Pi?




32 posts

Geek


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

Voice Engineer @ Orcon
1778 posts

Uber Geek
+1 received by user: 380

Trusted
Orcon
Subscriber

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

201 posts

Master Geek
+1 received by user: 13


  Reply # 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 »
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 »

Trending now »
Hot discussions in our forums right now:

Lightbox press event release
Created by freitasm, last reply by steve98 on 2-Aug-2014 10:25 (136 replies)
Pages... 8 9 10


New Mobile plans coming?
Created by nunasdream, last reply by Quibbler on 1-Aug-2014 19:57 (108 replies)
Pages... 6 7 8


Are IT staff supposed to know everything
Created by BTR, last reply by Dingbatt on 2-Aug-2014 08:42 (41 replies)
Pages... 2 3


2010 Honda Jazz, Suzuki Swift - which has higher maintenance cost?
Created by joker97, last reply by jonathan18 on 31-Jul-2014 10:47 (76 replies)
Pages... 4 5 6


Hierarchy of a mistake: Gerry Brownlee
Created by joker97, last reply by DonGould on 29-Jul-2014 21:57 (93 replies)
Pages... 5 6 7


Does acupuncture work?
Created by timmmay, last reply by timmmay on 1-Aug-2014 19:22 (52 replies)
Pages... 2 3 4


"keyless" keys - questions
Created by joker97, last reply by MadEngineer on 30-Jul-2014 22:02 (35 replies)
Pages... 2 3


Dick Smith in Continual Sale Mode
Created by Dynamic, last reply by mattwnz on 1-Aug-2014 21:31 (95 replies)
Pages... 5 6 7



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.

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