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.



35 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
3651 posts

Uber Geek
+1 received by user: 918

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

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

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

19526 posts

Uber Geek
+1 received by user: 1357

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.



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



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

19526 posts

Uber Geek
+1 received by user: 1357

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?




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

3651 posts

Uber Geek
+1 received by user: 918

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

19526 posts

Uber Geek
+1 received by user: 1357

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?



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

19526 posts

Uber Geek
+1 received by user: 1357

Moderator
Trusted
Biddle Corp
Subscriber

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

Is DNS configured correctly on the Pi?




35 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
1833 posts

Uber Geek
+1 received by user: 404

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.

202 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:

Moment of Truth?
Created by BarTender, last reply by joker97 on 20-Sep-2014 11:54 (405 replies)
Pages... 25 26 27


Festival of Democracy
Created by gzt, last reply by sdav on 21-Sep-2014 08:38 (116 replies)
Pages... 6 7 8


Mr. Key to extradite Kim Dotcom?
Created by TimA, last reply by SaltyNZ on 18-Sep-2014 09:20 (126 replies)
Pages... 7 8 9


Predict E(l)ection 2014 & win
Created by nakedmolerat, last reply by KiwiNZ on 21-Sep-2014 15:00 (63 replies)
Pages... 3 4 5


New On Account mobile plans - Red+
Created by NikT, last reply by kawaii on 20-Sep-2014 20:55 (45 replies)
Pages... 2 3


IOS8 - Network Load
Created by FireEngine, last reply by raytaylor on 20-Sep-2014 16:55 (45 replies)
Pages... 2 3


Computer Lounge's Zen Radical
Created by JayADee, last reply by JayADee on 19-Sep-2014 14:51 (15 replies)

Maybe some politicians should go back to school?
Created by jarledb, last reply by DarthKermit on 18-Sep-2014 18:27 (31 replies)
Pages... 2 3



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.