[asterisk-bugs] [Asterisk 0018820]: Jabber and Gtalk Do Not Load After the Reboot

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Mar 6 18:48:15 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18820 
====================================================================== 
Reported By:                vmikhelson
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18820
Category:                   Channels/chan_gtalk
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.8.2.3 
JIRA:                       SWP-3140 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-02-16 10:47 CST
Last Modified:              2011-03-06 18:48 CST
====================================================================== 
Summary:                    Jabber and Gtalk Do Not Load After the Reboot
Description: 
I have noticed my outgoing calls started to fail after the system reboot.

Workaround: stop and re-start Asterisk.

FreePBX 2.8.1.0
Asterisk 1.8.2.3

Analysis revealed the following messages in the "full" log.

Should we preload libiksemel.so in modules.conf?

====================================================================== 

---------------------------------------------------------------------- 
 (0132675) vmikhelson (reporter) - 2011-03-06 18:48
 https://issues.asterisk.org/view.php?id=18820#c132675 
---------------------------------------------------------------------- 
Verified all LIBIKSEMEL modules were located in /usr/local/lib

[root at pbx lib]# ls -l
total 1200
-rw-r--r-- 1 root root 180666 Jan 15 21:20 libiksemel.a
-rwxr-xr-x 1 root root    813 Jan 15 21:20 libiksemel.la
lrwxrwxrwx 1 root root     19 Jan 15 21:20 libiksemel.so ->
libiksemel.so.3.1.1
lrwxrwxrwx 1 root root     19 Jan 15 21:20 libiksemel.so.3 ->
libiksemel.so.3.1.1
-rwxr-xr-x 1 root root 131866 Jan 15 21:20 libiksemel.so.3.1.1
-rwxr-xr-x 1 root root    955 Feb 12 12:09 libmpg123.la
lrwxrwxrwx 1 root root     19 Feb 12 12:09 libmpg123.so ->
libmpg123.so.0.29.1
lrwxrwxrwx 1 root root     19 Feb 12 12:09 libmpg123.so.0 ->
libmpg123.so.0.29.1
-rwxr-xr-x 1 root root 735581 Feb 12 12:09 libmpg123.so.0.29.1
-rw-r--r-- 1 root root 135496 Feb 27 00:46 libsrtp.a
drwxr-xr-x 2 root root   4096 Feb 12 12:09 mpg123
drwxr-xr-x 2 root root   4096 Feb 12 12:09 pkgconfig
[root at pbx lib]#

Checked the PATH, discovered /usr/local/lib not being in the PATH
[root at pbx lib]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

Modified /etc/profile to include /usr/local/lib in the Path manipulation
as follows:

# Path manipulation
if [ "$EUID" = "0" ]; then
        pathmunge /sbin
        pathmunge /usr/sbin
        pathmunge /usr/local/sbin
        pathmunge /usr/local/lib
fi

Rebooted, observed /usr/local/lib in the path:
[root at pbx lib]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/lib:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

The problem did not go away, still jabber and gtalk were not loaded upon
reboot.

Verified that running "/etc/init.d/asterisk reload" produces the negative
effect whereas running "amportal restart" fixes the issue.

The last observation pretty much confirmed that the problem is rooted in
the /etc/init.d/asterisk script.

Compared the scripts.

AMPORTAL:

AMPASTERISKGROUP=asterisk
AMPVMUMASK=077
......
export LD_LIBRARY_PATH=/usr/local/lib
umask $AMPVMUMASK
/usr/sbin/safe_asterisk -U asterisk -G $AMPASTERISKGROUP


ASTERISK:

AST_SBIN=/usr/sbin

# Full path to asterisk binary
DAEMON=$AST_SBIN/asterisk

# Full path to safe_asterisk script
SAFE_ASTERISK=$AST_SBIN/safe_asterisk

..........
if [ -f $SAFE_ASTERISK ] ; then
        DAEMON=$SAFE_ASTERISK
fi
if [ $AST_CONFIG ]; then
        ASTARGS="$ASTARGS -C $AST_CONFIG/asterisk.conf"
elif [ $ALTCONF ]; then
        ASTARGS="$ASTARGS -C $ALTCONF"
fi
......
daemon $DAEMON $ASTARGS

Tried patching the ASTERISK script with "export
LD_LIBRARY_PATH=/usr/local/lib" That did not yield any positive effect. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-06 18:48 vmikhelson     Note Added: 0132675                          
======================================================================




More information about the asterisk-bugs mailing list