can trixbox still make local calls with network breaddown?

johnny
Posts: 313
Member Since:
2006-08-29

Hi, I noticed that for my pbx server, once the network went down, there is no way for me to make even local calls through the PSTN line although i did not change anything.

any one knows how i can resolve this problem?? or please point me to some links that discuss this.

thanks.

--

------------------------------------------
Johnny,
Pan Tone Communications. (Pte) Ltd.
www.pan-tone.com.sg



reubanks
Posts: 409
Member Since:
2007-05-05
Well, that depends.

That depends on how your system is configured. If the Trixbox is running but the network is down it will work as long as you have a trunk out that doesn't rely on the network. (PRI, Analog, etc. running off of internal cards) If you have a VoIP trunk and/or network based gateways then you need the network to access them. As such they will not be available if your network is down.

Randy

--

Randy Eubanks FtOCC
United Tech Team



anchor85
Posts: 678
Member Since:
2006-06-07
Network breakdown

Can you give more details of your setup. Are you using voip phones or analogue phones?

If you have a PSTN line on a zap channel and an analogue phone on an fxs port you can make and receive calls even if you disconnect the trixbox server from the network, or at least on my system it works. However, any voip phones, using the network to connect to the trixbox pbx will of course fail.

John

--

John
Cat24.net



mvsystems
Posts: 1120
Member Since:
2006-06-05
I'm not sure if this has

I'm not sure if this has been resovled. There have been many people reporting that if the have SIP trunks in their system and the internet connection goes down SIP all goes down. The SIP phones on the network will not re-register when their registration expires. Local calls can no longer be placed becouse the phones won't register. All incoming calls go to the IVR and the extensions voice mail.

Is this the same issue you are having?

--

Tim Booth FtOCC
MaineVoIP Systems
VisionCom
Portland, Maine



dghundt
Posts: 332
Member Since:
2006-08-13
I believe Bubba has

I believe Bubba has addressed this issue. Can't recall the details.



johnny
Posts: 313
Member Since:
2006-08-29
my issue is exactly same as

my issue is exactly same as what mvsystems explained.
I did not try the analong phone with FXS port. as normally all the IP phones will register through LAN network which is fine although the WAN is down.
However I just notice that the IP phone will not register as well and it's a bit troublesome as although I have the Interface card which is available, I also could not make any call out with the IP phone.

can anybody direct me a link referring to this problem?? I remembered someone said something refer to "Local DNS" but I am not sure what it is.

--

------------------------------------------
Johnny,
Pan Tone Communications. (Pte) Ltd.
www.pan-tone.com.sg



pca
Posts: 383
Member Since:
2007-01-17
Here is one of the

pca
Posts: 383
Member Since:
2007-01-17
And it goes back even

And it goes back even farther...

http://www.trixbox.org/forums/trixbox-forums/help/sip-devices-not...

Interesting.



johnny
Posts: 313
Member Since:
2006-08-29
thanks so much pca, i will

thanks so much pca, i will take a look and have a try ;-)

--

------------------------------------------
Johnny,
Pan Tone Communications. (Pte) Ltd.
www.pan-tone.com.sg



pca
Posts: 383
Member Since:
2007-01-17
Glad to help, Johnny. I

Glad to help, Johnny. I don't see any real answer from these threads, but may be missing something. I did find that there is a patch mentioned on the digium forums. If you find a relatively easy solution, please post back here.



w5waf
Posts: 711
Member Since:
2006-06-09
I've been watching this

I've been watching this thread for a couple of days, and am not sure we understand the question. The original post referenced "NETWORK" and "PSTN". I'd really like to see the topology of his phone system. I thing someone asked what type of phones he was using and his connection to the outside world. I may have missed something...

Let's take a step back and maybe we can see what we're up against.

--

Bill Ford - FtOCC
City of Vicksburg
www.vicksburg.org



pca
Posts: 383
Member Since:
2007-01-17
Yes, it is a little

Yes, it is a little confused... I think at the beginning Johnny should have said "lost internet connection" instead of network failing or network down or whatever. I saw this first hand a couple of weeks ago and the bottom line is that when you add in a sip trunk into what was before a purely zap box, and you lose the internet connection... your sip trunk drops (obviously), but you lose any sip phones also... x-lite or hardphones (sip) or whatever- all sip drops registration. You cannot even call between extensions. Then when using a sip phone, you cannot dial out through the pstn because the sip phone is down (unregistered). The answer seems to be related to dns somehow. When the sip trunk comes back up as the internet connection is re-established, it is fine.

An interesting aside would be to find out if it happens on a purely voip system. I only work with pstn installs and have a couple with sip trunks (backup) that both have this problem. When I switch the trunks to IAX, they are fine during an outage. If you hard code the ip into the sip trunk registration, it is also fine during an outage. At least this is what I have found.

Anyway, I will let Johnny confirm my assumption of what his problem is.



crees
Posts: 293
Member Since:
2006-08-09
Related?

It just so happens that I have a site that I just got broadvoice setup on for the long distance calls. Works great and when the trunk is busy the rest of the calls go to the POTS lines (g0).

I decided to disconnect the internet connection and see what the results were. Every long distance call I made (Dialing Rule to use SIP first then ZAP) would hang and nothing would work. However I could dial local calls and extentions just fine. (the phones stayed registered).

Long story short I could not make any calls using the long distance rules plus asterisk was not detecting that the SIP trunk was down causing the calls to use the trunk and cause the call to hang (no tone or dialing sounds)

My work around was to use the "9" dialing first option on another rule that would force th e system to use the pots for all calls including long distance.

Not sure if this has anything to do with it?

But at the same time Is there something to tell asterisk to rollover to the POTS lines if the SIP trunks are down?

crees



mvsystems
Posts: 1120
Member Since:
2006-06-05
Crees when you disconnected

Crees when you disconnected the internet connection you could still make calls but did you leave it disconnected for any length of time? What we experienced at a site was when the internet was down and the system had SIP trunks and copper trunks you could still use the copper trunks while the IP phones were still registered. When the phones registration period expires they would not re-register with the server and you could no longer use the copper lines until the internet connection was restored.

--

Tim Booth FtOCC
MaineVoIP Systems
VisionCom
Portland, Maine



crees
Posts: 293
Member Since:
2006-08-09
The phones were disconnected

The phones were disconnected for about 10-15 Min. I was thinking that the trunk status on the SIP account would somehow go to down state and then force asterisk to use the next best route (the POTS) but even after a 10 minutes of waiting the phone did stay registered and I could still call ext's and other dial-plans that did not use the SIP trunk.

Not sure if this makes a difference but I did put static IP entries in the HOST file to point to the SIP account servers. Preventing any need to use the Internet DNS. I am using Trixbox 2.0 at this location.

How long does it generally take for your phones to unregister when you loose connectivity to your Internet?

Maybe I didn't wait long enough? But I did wait at least 10 min to see If I could get asterisk to fail-over to the POTS for my long distance dial plan.



pca
Posts: 383
Member Since:
2007-01-17
Hi Crees, Thanks for your

Hi Crees,

Thanks for your account of the situation. You have applied one of the workarounds mentioned in a thread I posted earlier... hosts file pointing to sip IP or just setting IP in the reg string. This will work but must be monitored for an IP change. If you take that out you should see the problem with all sip losing registration. 10 minutes would be plenty of time to wait as the connections are lost in less than a minute.



mvsystems
Posts: 1120
Member Since:
2006-06-05
not positive but i think by

not positive but i think by default the registration is 3600 seconds or 1 hour. so to test you could lower the registration time or leave the network unplugged for over an hour.

--

Tim Booth FtOCC
MaineVoIP Systems
VisionCom
Portland, Maine



johnny
Posts: 313
Member Since:
2006-08-29
hi, w5waf, for your

hi, w5waf, for your information, my asterisk server has one TDM400P card connecting to 2 PSTN lines, and it also has several IAX2 and SIP trunks for international IDD calls.
my original question is once the network goes down, not only the IAX2 and sip trunk can not be made, but also the PSTN calls cannot be used as all the sip phone cannot register to the server any more with "sip log on failed".

any simple idea from you?

--

------------------------------------------
Johnny,
Pan Tone Communications. (Pte) Ltd.
www.pan-tone.com.sg



crees
Posts: 293
Member Since:
2006-08-09
Sorry Johnny, I didnt mean

Sorry Johnny, I didnt mean to hijack your thread, Can you put a static entry to your SIP provider in you HOST file to see if you still loose IP phone registrations?

Also clarify your statement "Network Goes Down" are you referring to the internet connection is lost or are you referring the Local network has lost connectivity to your servers?

crees



johnny
Posts: 313
Member Since:
2006-08-29
hi, crees, sorry for any

hi, crees, sorry for any misunderstanding.
The "network goes down" means the ISP network goes down instead of the local LAN.
And I have my own Asterisk server with several IP Phones registered to it. my very original question is : once the Broadband internet goes down, the internal IP phone cannot register to my server which is located in the same LAN as well.

Hope this makes you clear, and i think so far the only possile solution is to build a local DNS.

--

------------------------------------------
Johnny,
Pan Tone Communications. (Pte) Ltd.
www.pan-tone.com.sg



pca
Posts: 383
Member Since:
2007-01-17
Yes, Johnny you are right.

Yes, Johnny you are right. Install Bind and configure it. That is the only final solution that I have found. Not the simplest thing, but it works. Good luck.



johnny
Posts: 313
Member Since:
2006-08-29
hi, pca, i have found Alex's

hi, pca, i have found Alex's solution to it as below, as a share:
1) yum -y install webmin
2) Login to webmin, select Servers -> Bind.
3) You will be prompted to click the link to install the Bind server. Do so.
4) Proceed to the Servers -> Bind screen.
5) Under Forwarding and Transfers, setup your ISP's DNS servers.
6) Save your options.
7) Proceed to Networking -> Network Configuration -> Hostname and DNS Client.
8) Setup the DNS servers in order, with the IP of the Trixbox server being the first server, and the IP(s) of your ISP's servers being secondary (and tertiary).
9) Save your options.
10) Proceed to System -> Bootup and Shutdown.
11) Ensure that NAMED is started, and set to start at boot.
12) Reboot your Trixbox server and do some testing.

I will test it out tomorrow, however, i am curious that if my ISP provier or some of my SIP trunk host ip address are dynamic, will this way work? if I change all the sip trunk and sip devices to IAX2, will it resolve this problem??

johnny

--

------------------------------------------
Johnny,
Pan Tone Communications. (Pte) Ltd.
www.pan-tone.com.sg



pca
Posts: 383
Member Since:
2007-01-17
I looked over those

I looked over those instructions and they may work, but look incomplete to me... Here is some further information on Bind setup (the easiest explanation I could find in a pinch)-

http://rimuhosting.com/support/bindviawebmin.jsp

As far as the dynamic ip, this should not be an issue. It is the internal DNS that you are after. Yes you can shift to IAX for trunks but for a lot of providers the quality is not as good as SIP and they are threatening to stop support for it. Internally for endpoints (phones), this is a solution as the phone should then not be a problem when the SIP trunks are disconnected. So if you have IAX for phones, you can try that first. Then go to configuring Bind. Hope that helps and post back if you have problems.



techman
Posts: 114
Member Since:
2007-02-09
I think it all depends on

I think it all depends on how you set up your local network. I have adsl modem connected to a 4 ports router and when I turned off the ISP modem cutting out the internet, all my local extensions still work and my PSTN connected thru spa3104 still work as always. Never have to bind or tweak any thing. As long as my trixbox server and the router is on, things keep rolling except registrations with sip providers which obviously will not work because there is no internet.

--

http://www.devenlink.com
Advertise your business in Style- Free link exchange
Advertise your website for free now
http://dbd.devenlink.com - Get Listed Now



mvsystems
Posts: 1120
Member Since:
2006-06-05
It works but do the phones

It works but do the phones work after their registration expires and they try to register again. As I said before we had a site lose their ISP and the phones worked for a while then one by one they lost registration when it expired and would not re-register.

--

Tim Booth FtOCC
MaineVoIP Systems
VisionCom
Portland, Maine



johnny
Posts: 313
Member Since:
2006-08-29
hi, techman, could you post

hi, techman, could you post your network configuration here so that I can test?
like /etc/hosts, /etc/resolv.conf /etc/named.conf
/etc/sysconfig/network, /etc/sysconfig/network-scripts/ifcfg-eth0 ??
and do you have a local DNS avaialble ?

I have tested a few and so far i can confirm that with IAX extension there is no problem with registration when network down even using sip trunk.

If keeping using SIP extension, I have tested to modify /etc/hosts with the server local IP here, and /etc/resolv.conf with router ip here.

johnny

--

------------------------------------------
Johnny,
Pan Tone Communications. (Pte) Ltd.
www.pan-tone.com.sg



techman
Posts: 114
Member Since:
2007-02-09
Just so that you know, I

Just so that you know, I lost connection after 45 minutes but I changed the dns server for my trixbox to the trixbox Ip address and in sip config I changed the bind addr to trixbox Ip.
The only issue is that instead of using fqdn in trunk settings I now used ip address. It just works fine. This idea was from another thread. As a matter of fact, I disconnected my internet for a whole day and pstn was working with trixbox fine and all extension work too.
I connect trixbox and all my phones to a switch which is connected to a router. If I turned off my router, all my pstn and extensions work without the router or the internet.

--

http://www.devenlink.com
Advertise your business in Style- Free link exchange
Advertise your website for free now
http://dbd.devenlink.com - Get Listed Now



techman
Posts: 114
Member Since:
2007-02-09
The webmin BIND method

The webmin BIND method didn't work for me. If I deplug the internet cable from my router, all the sip trunks and extensions still didn't work. The only solution that worked for me is the physical changed of the tribox dns. Unless there is another way around it, I think the physical method works great except the disadvantages of using ip instead of FQDN.
FOR THOSE THAT THE WEBMIN BIND PROCESS work for, did you guys did something different other than the steps posted by johnny? If any please post..

--

http://www.devenlink.com
Advertise your business in Style- Free link exchange
Advertise your website for free now
http://dbd.devenlink.com - Get Listed Now



johnny
Posts: 313
Member Since:
2006-08-29
The only solution that

The only solution that worked for me is the physical changed of the tribox dns.

hi, techman, could you explain more detaily what do you mean?

--

------------------------------------------
Johnny,
Pan Tone Communications. (Pte) Ltd.
www.pan-tone.com.sg



techman
Posts: 114
Member Since:
2007-02-09
I mean assigning trixbox IP

I mean assigning trixbox IP address as the (trixbox) dns address. When I put the trixbox dns and isp dns in the resolve.conf solved all my problems. Now, I do not have to use ip address only. I can now use fqdn or ip address without a problem in the trunk settings. It worked like a charm. Turned-off router and pstn and extensions worked.......................................................

--

http://www.devenlink.com
Advertise your business in Style- Free link exchange
Advertise your website for free now
http://dbd.devenlink.com - Get Listed Now



johnny
Posts: 313
Member Since:
2006-08-29
techman, thanks for your

techman, thanks for your share,
I will try once I go back to work tomorrow.

just to confirm with you,
what you mean is just to change /etc/resolv.conf to:
192.168.1.100 #trixbox ip
165.21.83.88 # my ISP DNS1

and nothing else changed?
can you post your /etc/hosts, /etc/sysconfig/network, and /etc/sysconfig/network-scripts/ifcfg-eth0 ?

thanks!!!

--

------------------------------------------
Johnny,
Pan Tone Communications. (Pte) Ltd.
www.pan-tone.com.sg



rlustemberg
Posts: 8
Member Since:
2007-09-18
Here the same problem

Just setting up BIND doesn't help any more than bringing the sip channels down 10 minutes later. The only solution so far is to avoid using fqdn names for the sip trunk registration.
I wonder if putting the fqdn of the sip proxy in the /etc/hosts file could be of help too.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.