Bug#363939: asterisk-classic: SIP not starting on reboot

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Apr 21 04:46:12 UTC 2006


On Thu, Apr 20, 2006 at 02:09:10PM -0400, Jonathan Addleman wrote:
> Package: asterisk-classic
> Version: 1:1.2.4.dfsg-7
> Severity: normal
> 
> Not sure what's happening here, but on one of my two machines, SIP
> doesn't seem to be starting up on a reboot. After booting, 
> 'netstat -plu | grep asterisk' shows this:
> 
> udp        0      0 *:4520           *:* 5538/asterisk       
> udp        0      0 *:iax            *:* 5538/asterisk       
> 
> 
> And then if I do /etc/init.d/asterisk restart, the same command shows:
> 
> udp        0      0 *:4520           *:* 5906/asterisk       
> udp        0      0 *:sip            *:* 5906/asterisk       
> udp        0      0 *:iax            *:* 5906/asterisk       
> 
> /var/log/asterisk/messages shows this line:
> 
> chan_sip.c: Unable to get own IP address, SIP disabled
> 
> So I expect that asterisk is starting before the network is up. I'm
> connecting via pppoe, if that changes anything. Another machine I have
> doesn't experience this problem at all, though it's connecting to
> another ISP - perhaps the problem machine just takes a long time to get
> its IP address from the ISP?

The priority of the Asterisk init.d scripts is "21". Service
dependencies anybody?

> 
> In any case, especially when asterisk is bound to 0.0.0.0, it shouldn't
> matter whether it can get the IP or not, it seems to me.

Asterisk needs to know its IP address for SIP , and at least in the
current version does not work well with more than one IP (or am I
confusing older versions?)

> 
> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.16.5
> Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_CA.UTF-8)
> 
> Versions of packages asterisk-classic depends on:
> ii  adduser       3.86                       Add and remove users and groups
> ii  asterisk-conf 1:1.2.4.dfsg-7             config files for asterisk
> ii  asterisk-soun 1:1.2.4.dfsg-7             sound files for asterisk
> ii  libasound2    1.0.10-2                   ALSA library
> ii  libc6         2.3.6-7                    GNU C Library: Shared libraries
> ii  libcomerr2    1.38+1.39-WIP-2006.04.09-1 common error description library
> ii  libcurl3      7.15.3-1                   Multi-protocol file transfer libra
> ii  libgsm1       1.0.10-13                  Shared libraries for GSM speech co
> ii  libidn11      0.5.18-2                   GNU libidn library, implementation
> ii  libkrb53      1.4.3-6                    MIT Kerberos runtime libraries
> ii  libncurses5   5.5-1.1                    Shared libraries for terminal hand
> ii  libnewt0.52   0.52.2-4                   Not Erik's Windowing Toolkit - tex
> ii  libpopt0      1.7-5                      lib for parsing cmdline parameters
> ii  libpq4        8.1.3-4                    PostgreSQL C client library
> ii  libpri1.2     1.2.2-3                    Primary Rate ISDN specification li
> ii  libspeex1     1.1.12-1                   The Speex Speech Codec
> ii  libsqlite0    2.8.16-1                   SQLite shared library
> ii  libssl0.9.8   0.9.8a-8                   SSL shared libraries
> ii  unixodbc      2.2.11-13                  ODBC tools libraries
> ii  zlib1g        1:1.2.3-11                 compression library - runtime
> 
> asterisk-classic recommends no packages.
> 
> -- no debconf information
> 
> 
> _______________________________________________
> Pkg-voip-maintainers mailing list
> Pkg-voip-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-voip-maintainers
> 

-- 
Tzafrir Cohen      sip:tzafrir at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com




More information about the Pkg-voip-maintainers mailing list