No Extensions will register after yum update

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#1
I have resubmitted all extension and erased one extension and recreated it, but no extension will register or get dial tone.

I need any suggestions on how to restore this system. It is not urgent as this is not in production except for my two homes. I have one extension working but trunks will not ring it.

Is yum update that bad?:woohoo:
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#2
From what version did you did the update? What version did you got? When you do:
asterisk -rx "sip show peers" what do you get?
What do you get when you do:
ll /var/lib/asterisk/
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#3
sip show peers returns all my registered extensions with a status of unknown except for two extensions.
here is an example
440 (unspecified) D N 0 UNKNOWN

I am a nubie so I cannot figure what to enter for II/var/lib/asterisk/
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#4
Just copy and paste the commands:
ll /var/lib/asterisk/
/var/lib/asterisk/bin/retrieve_conf

Paste the output for both commands, just copy/paste them
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#5
You must have a keyboard that is not American English. I do not have a key that matches your two vertical lines. || /var/lib/asterisk/ returns no such command.
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#6
ll <> ||


alias |grep ll

try that old copy and paste thing.


p.s.
|| (two "pipe" characters means OR in bash)

/var/lib/asterisk/bin/retrieve_conf ;readthescreen , 2> /dev/null || ll /var/lib/asterisk/

just for capricious (and one-line) reuse of jgutierrez' work with essentially the same result.
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#7
thanks for the linux tip

here is my output
total 34812
drwxrwxr-x 3 asterisk asterisk 4096 Aug 4 14:41 agi-bin
-rw-rw-r-- 1 asterisk asterisk 24576 Aug 4 22:10 astdb
drwxrwxr-x 2 asterisk asterisk 4096 Aug 4 14:41 bin
drwxrwxr-x 3 asterisk asterisk 4096 Jun 14 06:51 firmware
drwxrwxr-x 2 asterisk asterisk 4096 Aug 4 14:39 images
drwxrwxr-x 2 asterisk asterisk 4096 Aug 4 14:39 keys
drwxrwxr-x 2 asterisk asterisk 4096 Aug 4 14:39 moh
drwxrwxr-x 3 asterisk asterisk 4096 May 25 17:36 mohmp3
drwxrwxr-x 16 asterisk asterisk 69632 Aug 4 14:41 sounds
-rw-rw-r-- 1 asterisk asterisk 35362085 Jul 18 15:47 sounds-amer-fem-1.0-sln.tgz
drwxrwxr-x 16 asterisk asterisk 69632 Jul 17 22:00 sounds.old
drwxrwxr-x 2 asterisk asterisk 4096 Aug 4 14:39 static-http
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#8
Now the important bit:

/var/lib/asterisk/bin/retrieve_conf

or for completeness

ll /var/lib/asterisk&&/var/lib/asterisk/bin/retrieve_conf

(but leave out the last line if it has any "sensitive" info in it)
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#9
From the output, I can see that there is the astdb, with the appropiate owner, so there isn't the problem, execute the following commands and paste the output (just copy and execute them):

1. /var/lib/asterisk/bin/retrieve_conf
2. ll /etc/asterisk/sip*
3. rpm -qa | grep elastix
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#10
Also the extensions will register if I start rebooting them. The trunks will not register at all. I have stopped iptables from running
and re-registered the trunks.

Still no trunks

Here is the other file output
#!/usr/bin/php -q

<?php

if (! function_exists("_")) {
function _($str) {
return $str;
}
}

ini_set('error_reporting', E_ALL & ~E_NOTICE);

define("AMP_CONF", "/etc/amportal.conf");
$amportalconf = AMP_CONF;

//define("ASTERISK_CONF", "/etc/asterisk/asterisk.conf");
define("WARNING_BANNER", _(";--------------------------------------------------------------------------------;\n; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;\n; this file must be done via the web gui. There are alternative files to make ;\n; custom modifications, details at: http://freepbx.org/configuration_files ;\n;--------------------------------------------------------------------------------;\n;\n\n"));

"/var/lib/asterisk/bin/retrieve_conf" 816L, 27393C
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#11
-rwxrwxr-x 1 asterisk asterisk 27393 Aug 4 14:40 /var/lib/asterisk/bin/retrieve_conf
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#12
rnrover,
Don't show me the content of /var/lib/asterisk/bin/retrieve_conf, just execute it from the shell, in order to do that, just type:
/var/lib/asterisk/bin/retrieve_conf
Doing that is the same as clicking on the apply change banner, with the difference, that we will be able to check any error.

As I said, only type:
/var/lib/asterisk/bin/retrieve_conf
and then press the "enter" key, you should not use any command, just type it as it is
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#13
-rwxrwxr-x 1 asterisk asterisk 27393 Aug 4 14:40 /var/lib/asterisk/bin/retrieve_conf
[root@voysbox ~]# ls -l /etc/asterisk/sip*
-rw-rw-r-- 1 asterisk asterisk 3799 Aug 4 21:43 /etc/asterisk/sip_additional.conf
lrwxrwxrwx 1 asterisk asterisk 45 Aug 4 14:41 /etc/asterisk/sip.conf -> /var/www/html/admin/modules/core/etc/sip.conf
-rw-rw-r-- 1 asterisk asterisk 40608 Mar 12 2015 /etc/asterisk/sip.conf.old_freePBX-2.5.1-11rc
lrwxrwxrwx 1 asterisk asterisk 45 Jul 17 19:31 /etc/asterisk/sip.conf.old_freePBX-2.5.1-12rc -> /var/www/html/admin/modules/core/etc/sip.conf
-rw-rw-r-- 1 asterisk asterisk 40811 Jun 14 06:51 /etc/asterisk/sip.conf.rpmnew
-rw-rw-r-- 1 asterisk asterisk 15 Aug 3 00:20 /etc/asterisk/sip_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Jul 17 22:00 /etc/asterisk/sip_custom_post.conf
-rw-rw-r-- 1 asterisk asterisk 598 Aug 4 21:43 /etc/asterisk/sip_general_additional.conf
-rw-rw-r-- 1 asterisk asterisk 0 Jul 17 22:00 /etc/asterisk/sip_general_custom.conf
-rw-rw-r-- 1 asterisk asterisk 0 Jul 17 22:00 /etc/asterisk/sip_nat.conf
-rw-rw-r-- 1 asterisk asterisk 317 Jun 14 06:51 /etc/asterisk/sip_notify.conf
-rw-rw-r-- 1 asterisk asterisk 516 Aug 4 21:43 /etc/asterisk/sip_registrations.conf
-rw-rw-r-- 1 asterisk asterisk 0 Jul 17 22:00 /etc/asterisk/sip_registrations_custom.conf

elastix-1.5.2-2.3
elastix-a2billing-1.3.0-3
elastix-mysqldbdata-1.0-3
elastix-asterisk-sounds-1.2.2-2
elastix-additionals-1.5-3
elastix-vtigercrm-5.0.3-6
elastix-sugarcrm-4.5.0d-3
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#14
Sorry guys I am trying

Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking for /etc/amportal.conf ..OK
Bootstrapping /etc/amportal.conf ..OK
Parsing /etc/amportal.conf ..OK
Parsing /etc/asterisk/asterisk.conf ..OK
Connecting to database..OK
Connecting to Asterisk manager interface..OK
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = elastix456
Please update your modules and reload Asterisk by browsing to your server.
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#15
That was te output that I was waiting for, it seems to me that it is correct, I see no error...

Have you already tried to erase and create again your extensions and trunks?

If that doesn't work, I may take a look into your server, if you want, you may contact me at:
jgutierrez@palosanto.com
providing me remote access through ssh (ip & root password)
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#16
muchas gracias no comprende

Por cierto, ya intentaste borrar y crear nuevamente tus extensiones y troncales?
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#17
Also
no comprende

Con la información presentada veo que no tienes problemas con los links simbólicos de asterisk, aún estás confundido acerca del retrieve_conf, te voy a anexar una pantalla para despejarte las dudas
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#18
Lol... I'm sorry, on the original post I wrote on spanish :)
I have edited previous post, take a look at it
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#19
Thanks, I will re-create trunks and try again
 

rnrover

Joined
Aug 2, 2009
Messages
73
Likes
0
Points
6
#20
OK Thanks for the linux lesson.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,915
Messages
130,920
Members
17,594
Latest member
knethardsolutions
Top