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.



23 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
3262 posts

Uber Geek
+1 received by user: 613

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

179 posts

Master Geek
+1 received by user: 9


  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.

179 posts

Master Geek
+1 received by user: 9


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

annoying cell phone! I mean 180 or 360.

18577 posts

Uber Geek
+1 received by user: 738

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.



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



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

18577 posts

Uber Geek
+1 received by user: 738

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?




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

3262 posts

Uber Geek
+1 received by user: 613

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

18577 posts

Uber Geek
+1 received by user: 738

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?



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

18577 posts

Uber Geek
+1 received by user: 738

Moderator
Trusted
Biddle Corp
Subscriber

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

Is DNS configured correctly on the Pi?




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

1610 posts

Uber Geek
+1 received by user: 308

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.

179 posts

Master Geek
+1 received by user: 9


  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 new jobs are posted to our jobs board:



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:

Telecom introduces unlimited broadband data plan
Created by freitasm, last reply by kawaii on 25-Apr-2014 04:42 (100 replies)
Pages... 5 6 7


Stonedine
Created by Lizard1977, last reply by mattwnz on 24-Apr-2014 15:45 (67 replies)
Pages... 3 4 5


Auckland Transport Hop card - look out for errors
Created by robjg63, last reply by sbiddle on 24-Apr-2014 20:48 (21 replies)
Pages... 2


Windows 8 System Mechanics
Created by eme, last reply by eme on 24-Apr-2014 21:10 (20 replies)
Pages... 2


Using my Mac to ring family in the UK
Created by Geektastic, last reply by nakedmolerat on 24-Apr-2014 11:28 (19 replies)
Pages... 2


Telecom has started metering their TiVo customers' broadband usage (WITHOUT PRENOTIFICATION)
Created by Peteriv, last reply by mattwnz on 24-Apr-2014 15:11 (74 replies)
Pages... 3 4 5


Forms of government for New Zealand
Created by charsleysa, last reply by gzt on 24-Apr-2014 21:36 (176 replies)
Pages... 10 11 12


Parallel imported product
Created by Wills1, last reply by joker97 on 23-Apr-2014 21:01 (53 replies)
Pages... 2 3 4



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.