Unable to connect to remote asterisk

Today I have been moving things around in our rack to allow for a new UPS. On firing up the server I can log in but I cannot connect to the Asterisk console in the usual manner: ‘asterisk -r’. Upon looking round, the phones have no service too.

If I connect instead using ‘asterisk -c’ I can see a list of errors thus:

WARNING[4253] : chan_zap.c:923 zt_open: unable to specify channel 1: no such device or address
here = 0, tmp->channel = 1, channel = 1
ERROR[4253] : chan_zap.c:10288 setup_zap: unable to register channel '1’
WARNING[4253] : loader.c:414__load_resource : chan_zap.so : load-m module failed, returning -1
WARNING[4253] : loader.c:554 load_modules: loading module chan_zap.so failed

What have I done?
Linux Noob here too!

First of all, when you moved the Asterisk-server I assume you powered down the server and restarted it in its new location ?

You were not able to connect to Asterisk remotely (asterisk -r) because the Asterisk proces was not started.
Make sure that the proces always starts at startup with chkconfig (if CentOS). !!

Second : if you ask me, the ZAP-errors are due to the zaptel drivers that are also not loaded at startup. Make sure the zapata drivers also start up together with the rest of the system !

You might need to add a scripts to /etc/init.d/

Yes I did shut the server down before I moved it.

Yes it is running CentOS.

If I try: chkconfig --list asterisk
I get: asterisk 0:off 1:off 2:on 3:on 4:on 5:on 6:off

If I try: chkconfig --list zaptel
I get: zaptel 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Whether that is useful or indeed what it all that means is beyond me.

I have been fiddling with some of the asterisk configuration files recently, using psftp from a remote PC. It is possible, but very unlikely, that I have overwritten some other configuration file. I have been 'reload’ing the configuration quite happily before today. The server was rebooted quite happily perhaps a week ago.

what is in /var/log/asterisk/messages

?

May 15 08:04:09 WARNING[27497] file.c: Unexpected control subclass '20' May 15 08:14:18 WARNING[27572] chan_oss.c: oss_request ty <console> data 0x0x103d110 <dsp> May 15 08:20:52 WARNING[27629] file.c: Unexpected control subclass '20' May 15 08:50:04 WARNING[27783] file.c: Unexpected control subclass '20' May 15 09:22:56 WARNING[27974] file.c: Unexpected control subclass '20' May 15 09:30:50 WARNING[28029] chan_oss.c: oss_request ty <console> data 0x0x5769110 <dsp> May 15 09:35:07 WARNING[28068] file.c: Unexpected control subclass '20' May 15 09:35:30 WARNING[28081] file.c: Unexpected control subclass '20' May 15 09:35:54 WARNING[28081] file.c: Unexpected control subclass '20' May 15 09:35:54 WARNING[28081] file.c: Unexpected control subclass '20' May 15 09:42:52 WARNING[28149] file.c: Unexpected control subclass '20' May 15 09:54:11 WARNING[28213] file.c: Unexpected control subclass '20' May 15 10:02:43 WARNING[28265] file.c: Unexpected control subclass '20' May 15 10:06:28 WARNING[28301] file.c: Unexpected control subclass '20' May 15 10:12:40 WARNING[28349] file.c: Unexpected control subclass '20' May 15 10:36:01 WARNING[28476] file.c: Unexpected control subclass '20' May 15 10:42:40 WARNING[28525] file.c: Unexpected control subclass '20' May 15 10:55:35 WARNING[28634] file.c: Unexpected control subclass '20' May 15 10:56:25 WARNING[28651] chan_oss.c: oss_request ty <console> data 0x0x936110 <dsp> May 15 11:03:08 WARNING[28707] file.c: Unexpected control subclass '20' May 15 11:04:18 WARNING[28725] file.c: Unexpected control subclass '20' May 15 11:10:26 WARNING[28768] chan_oss.c: oss_request ty <console> data 0x0x339110 <dsp> May 15 11:15:47 WARNING[28812] file.c: Unexpected control subclass '20' May 15 11:17:14 WARNING[28830] chan_oss.c: oss_request ty <console> data 0x0x9da110 <dsp> May 15 11:20:26 WARNING[28858] file.c: Unexpected control subclass '20' May 15 11:44:12 WARNING[28997] file.c: Unexpected control subclass '20' May 15 11:47:08 WARNING[29024] chan_oss.c: oss_request ty <console> data 0x0x9da110 <dsp> May 15 12:04:01 WARNING[29115] file.c: Unexpected control subclass '20' May 15 12:36:19 WARNING[29280] file.c: Unexpected control subclass '20' May 15 12:57:11 WARNING[29373] interface.c: Junk at the beginning of frame 00000000 May 15 15:03:36 WARNING[30206] file.c: Unexpected control subclass '20' May 15 15:03:36 WARNING[14250] chan_iax2.c: Received mini frame before first full voice frame May 15 15:03:38 WARNING[30206] chan_sip.c: No such host: 16 May 15 15:03:38 NOTICE[30206] app_dial.c: Unable to create channel of type 'SIP' (cause 3 - No route to destination) May 15 15:03:43 WARNING[30206] app_voicemail.c: No entry in voicemail config file for ' 16' May 15 15:12:41 WARNING[30268] file.c: Unexpected control subclass '20' May 15 15:21:15 NOTICE[14255] cdr.c: CDR simple logging enabled. May 15 15:21:15 NOTICE[14255] indications.c: Removed default indication country 'uk' May 15 15:21:15 WARNING[14255] chan_zap.c: Ignoring signalling May 15 15:22:01 WARNING[30348] file.c: Unexpected control subclass '20' May 15 15:22:01 WARNING[30348] file.c: Unexpected control subclass '20' May 15 15:22:01 WARNING[14250] chan_iax2.c: Received mini frame before first full voice frame May 15 15:36:29 WARNING[30426] file.c: Unexpected control subclass '20' May 15 15:36:59 WARNING[30442] file.c: Unexpected control subclass '20' May 15 15:36:59 WARNING[30442] file.c: Unexpected control subclass '20' May 15 15:37:26 WARNING[30442] file.c: Unexpected control subclass '20' May 15 15:49:19 NOTICE[14255] cdr.c: CDR simple logging enabled. May 15 15:49:19 NOTICE[14255] indications.c: Removed default indication country 'uk' May 15 15:49:19 WARNING[14255] chan_zap.c: Ignoring signalling May 15 15:51:03 ERROR[30549] app.c: Unable to create lock file '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 15:51:03 ERROR[30549] app.c: Could not unlock path '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 15:51:03 ERROR[30549] app.c: Unable to create lock file '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 15:51:03 ERROR[30549] app.c: Could not unlock path '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 15:51:51 WARNING[30561] file.c: Unexpected control subclass '20' May 15 15:51:51 WARNING[30561] file.c: Unexpected control subclass '20' May 15 15:51:51 WARNING[14250] chan_iax2.c: Received mini frame before first full voice frame May 15 15:58:05 NOTICE[14255] cdr.c: CDR simple logging enabled. May 15 15:58:05 NOTICE[14255] indications.c: Removed default indication country 'uk' May 15 15:58:05 WARNING[14255] chan_zap.c: Ignoring signalling May 15 15:59:40 WARNING[30607] file.c: Unexpected control subclass '20' May 15 16:00:09 WARNING[30615] file.c: Unexpected control subclass '20' May 15 16:00:44 WARNING[30626] file.c: Unexpected control subclass '20' May 15 16:01:07 WARNING[30626] file.c: Unexpected control subclass '20' May 15 16:01:07 WARNING[30626] file.c: Unexpected control subclass '20' May 15 16:01:45 ERROR[30637] app.c: Unable to create lock file '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 16:01:45 ERROR[30637] app.c: Could not unlock path '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 16:01:45 ERROR[30637] app.c: Unable to create lock file '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 16:01:45 ERROR[30637] app.c: Could not unlock path '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 18:39:41 ERROR[32192] app.c: Unable to create lock file '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 18:39:41 ERROR[32192] app.c: Could not unlock path '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 18:39:41 ERROR[32192] app.c: Unable to create lock file '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 15 18:39:41 ERROR[32192] app.c: Could not unlock path '/var/spool/asterisk/voicemail/default/16/Old': No such file or directory May 16 15:23:59 NOTICE[3261] cdr.c: CDR simple logging enabled. May 16 15:24:00 WARNING[3261] chan_zap.c: Unable to specify channel 1: No such device or address May 16 15:24:00 ERROR[3261] chan_zap.c: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 May 16 15:24:00 ERROR[3261] chan_zap.c: Unable to register channel '1' May 16 15:24:00 WARNING[3261] loader.c: chan_zap.so: load_module failed, returning -1 May 16 15:24:00 WARNING[3261] loader.c: Loading module chan_zap.so failed! May 16 15:29:28 NOTICE[3282] cdr.c: CDR simple logging enabled. May 16 15:29:29 WARNING[3282] chan_zap.c: Unable to specify channel 1: No such device or address May 16 15:29:29 ERROR[3282] chan_zap.c: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 May 16 15:29:29 ERROR[3282] chan_zap.c: Unable to register channel '1' May 16 15:29:29 WARNING[3282] loader.c: chan_zap.so: load_module failed, returning -1 May 16 15:29:29 WARNING[3282] loader.c: Loading module chan_zap.so failed! May 16 15:39:15 NOTICE[4334] cdr.c: CDR simple logging enabled. May 16 15:39:15 WARNING[4334] chan_zap.c: Unable to specify channel 1: No such device or address May 16 15:39:15 ERROR[4334] chan_zap.c: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 May 16 15:39:15 ERROR[4334] chan_zap.c: Unable to register channel '1' May 16 15:39:15 WARNING[4334] loader.c: chan_zap.so: load_module failed, returning -1 May 16 15:39:15 WARNING[4334] loader.c: Loading module chan_zap.so failed! May 16 15:51:48 NOTICE[3283] cdr.c: CDR simple logging enabled. May 16 15:51:49 WARNING[3283] chan_zap.c: Unable to specify channel 1: No such device or address May 16 15:51:49 ERROR[3283] chan_zap.c: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 May 16 15:51:49 ERROR[3283] chan_zap.c: Unable to register channel '1' May 16 15:51:49 WARNING[3283] loader.c: chan_zap.so: load_module failed, returning -1 May 16 15:51:49 WARNING[3283] loader.c: Loading module chan_zap.so failed! May 16 16:05:23 NOTICE[4253] cdr.c: CDR simple logging enabled. May 16 16:05:23 WARNING[4253] chan_zap.c: Unable to specify channel 1: No such device or address May 16 16:05:23 ERROR[4253] chan_zap.c: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 May 16 16:05:23 ERROR[4253] chan_zap.c: Unable to register channel '1' May 16 16:05:23 WARNING[4253] loader.c: chan_zap.so: load_module failed, returning -1 May 16 16:05:23 WARNING[4253] loader.c: Loading module chan_zap.so failed! May 16 19:01:11 NOTICE[3282] cdr.c: CDR simple logging enabled. May 16 19:01:12 WARNING[3282] chan_zap.c: Unable to specify channel 1: No such device or address May 16 19:01:12 ERROR[3282] chan_zap.c: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 May 16 19:01:12 ERROR[3282] chan_zap.c: Unable to register channel '1' May 16 19:01:12 WARNING[3282] loader.c: chan_zap.so: load_module failed, returning -1 May 16 19:01:12 WARNING[3282] loader.c: Loading module chan_zap.so failed! May 16 19:11:13 NOTICE[4233] cdr.c: CDR simple logging enabled. May 16 19:11:13 WARNING[4233] chan_zap.c: Unable to specify channel 1: No such device or address May 16 19:11:13 ERROR[4233] chan_zap.c: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 May 16 19:11:13 ERROR[4233] chan_zap.c: Unable to register channel '1' May 16 19:11:13 WARNING[4233] loader.c: chan_zap.so: load_module failed, returning -1 May 16 19:11:13 WARNING[4233] loader.c: Loading module chan_zap.so failed!

Sorted!

I shut the thing down, opened the case, took out all the cards, ran the vacuum cleaner round inside, put everything back and - bingo - we’re working again.

Phew! What a relief!

I have a cheapo Motorola 62802 based X100 card that connects to an analogue line when all else fails. I think this was upset so that zaptel didn’t load cleanly.

Perhaps this will encourage me to build a second server and have that ready and waiting.