[asterisk-bugs] [Asterisk 0010202]: idle console disconnects

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Dec 24 11:40:51 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10202 
====================================================================== 
Reported By:                bferell
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10202
Category:                   Core-General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.7.1  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:              
====================================================================== 
Date Submitted:             07-13-2007 16:27 CDT
Last Modified:              12-24-2007 11:40 CST
====================================================================== 
Summary:                    idle console disconnects
Description: 
Asterisk 1.4.7.1  on Mac OSX 10.4

No other entries in the logs
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0010881 Asterisk 1.4 console repeatedly showing...
====================================================================== 

---------------------------------------------------------------------- 
 tfitch - 12-24-07 11:40  
---------------------------------------------------------------------- 
Per request to more fully describe my environment:

(For completeness) G4 PPC MacMini OS X 10.4.11 desktop (not server)
edition with current security patches. I am running an internal DNS server
on this same machine as well as Apache, MySQL and Postfix. MySQL is my
addition and Postfix has been added to to support more anti-spam but
basically the binaries are as provided by Apple. Other than loading down
the machine from time to time, I don't think the web and mail services
should affect Asterisk.

Asterisk: Pure SIP environment (SIP3000, Linksys PAP2T and Teliax for
ITSP). When first installing 1.2 did a "make install" and "make samples". I
have customized the following configuration files:

extensions.conf
sip.conf
asterisk.conf
voicemail.conf

All other configuration files are as originally installed using "make
samples" for Asterisk v1.2

I do have two versions of extensions.conf to cover the differences between
1.2 and 1.4 for ENUMLOOKUP().

The only change in asterisk.conf was:

astrundir => /var/local/run

because I had problems with OSX system updates removing my
/var/run/asterisk and write protecting /var/run against non-root writes. 
If needed I can supply all my asterisk conf files. . .

I am starting an running Asterisk through Apple's launchctl with the
following file in /Library/LaunchDaemons/asterisk.plist (my creation,
permission freely granted to use/modify):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Disabled</key>
    <false/>
    <key>Label</key>
    <string>org.asterisk.asterisk</string>
    <key>ProgramArguments</key>
    <array>
            <string>/usr/sbin/asterisk</string>
            <string>-f</string>
    </array>
    <key>UserName</key>
    <string>asterisk</string>
    <key>GroupName</key>
    <string>asterisk</string>
    <key>OnDemand</key>
    <false/>
    <key>ServiceDescription</key>
    <string>Asterisk PBX</string>
</dict>
</plist>

The use of the -f option is because Apple's launch control setup will
automatically monitor and restart Asterisk if it does not detach and become
a daemon. With that file in place the following will start asterisk:

# launchctl load /Library/LaunchDaemons/asterisk.plist 

and 

launchctl unload /Library/LaunchDaemons/asterisk.plist 

will stop asterisk.

As far as modules actually loaded and running:

mini:~ asterisk$ asterisk -rvvvvvvv
Asterisk SVN-branch-1.4-r93000M, Copyright (C) 1999 - 2007 Digium, Inc.
and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
details.
This is free software, with components licensed under the GNU General
Public
License version 2 and other licenses; you are welcome to redistribute it
under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
Connected to Asterisk SVN-branch-1.4-r93000M currently running on mini
(pid = 2316)
Verbosity was 0 and is now 7
mini*CLI> show modules
Module                         Description                             
Use Count 
res_adsi.so                    ADSI Resource                            0 
       
res_agi.so                     Asterisk Gateway Interface (AGI)         0 
       
res_crypto.so                  Cryptographic Digital Signatures         0 
       
res_features.so                Call Features Resource                   0 
       
res_indications.so             Indications Resource                     0 
       
res_monitor.so                 Call Monitoring Resource                 0 
       
res_musiconhold.so             Music On Hold Resource                   0 
       
res_smdi.so                    Simplified Message Desk Interface (SMDI) 0 
       
res_snmp.so                    SNMP [Sub]Agent for Asterisk             0 
       
res_speech.so                  Generic Speech Recognition API           0 
       
app_adsiprog.so                Asterisk ADSI Programming Application    0 
       
app_amd.so                     Answering Machine Detection Application  0 
       
app_authenticate.so            Authentication Application               0 
       
app_cdr.so                     Tell Asterisk to not maintain a CDR for  0 
       
app_chanisavail.so             Check channel availability               0 
       
app_channelredirect.so         Channel Redirect                         0 
       
app_chanspy.so                 Listen to the audio of an active channel 0 
       
app_controlplayback.so         Control Playback Application             0 
       
app_db.so                      Database Access Functions                0 
       
app_dial.so                    Dialing Application                      0 
       
app_dictate.so                 Virtual Dictation Machine                0 
       
app_directed_pickup.so         Directed Call Pickup Application         0 
       
app_directory.so               Extension Directory                      0 
       
app_disa.so                    DISA (Direct Inward System Access) Appli 0 
       
app_dumpchan.so                Dump Info About The Calling Channel      0 
       
app_echo.so                    Simple Echo Application                  0 
       
app_exec.so                    Executes dialplan applications           0 
       
app_externalivr.so             External IVR Interface Application       0 
       
app_festival.so                Simple Festival Interface                0 
       
app_followme.so                Find-Me/Follow-Me Application            0 
       
app_forkcdr.so                 Fork The CDR into 2 separate entities    0 
       
app_getcpeid.so                Get ADSI CPE ID                          0 
       
app_hasnewvoicemail.so         Indicator for whether a voice mailbox ha 0 
       
app_image.so                   Image Transmission Application           0 
       
app_lookupblacklist.so         Look up Caller*ID name/number from black 0 
       
app_lookupcidname.so           Look up CallerID Name from local databas 0 
       
app_macro.so                   Extension Macros                         0 
       
app_milliwatt.so               Digital Milliwatt (mu-law) Test Applicat 0 
       
app_mixmonitor.so              Mixed Audio Monitoring Application       0 
       
app_morsecode.so               Morse code                               0 
       
app_mp3.so                     Silly MP3 Application                    0 
       
app_parkandannounce.so         Call Parking and Announce Application    0 
       
app_playback.so                Sound File Playback Application          0 
       
app_privacy.so                 Require phone number to be entered, if n 0 
       
app_queue.so                   True Call Queueing                       0 
       
app_random.so                  Random goto                              0 
       
app_read.so                    Read Variable Application                0 
       
app_readfile.so                Stores output of file into a variable    0 
       
app_realtime.so                Realtime Data Lookup/Rewrite             0 
       
app_record.so                  Trivial Record Application               0 
       
app_sayunixtime.so             Say time                                 0 
       
app_senddtmf.so                Send DTMF digits Application             0 
       
app_sendtext.so                Send Text Applications                   0 
       
app_setcallerid.so             Set CallerID Application                 0 
       
app_setcdruserfield.so         CDR user field apps                      0 
       
app_settransfercapability.so   Set ISDN Transfer Capability             0 
       
app_sms.so                     SMS/PSTN handler                         0 
       
app_softhangup.so              Hangs up the requested channel           0 
       
app_speech_utils.so            Dialplan Speech Applications             0 
       
app_stack.so                   Stack Routines                           0 
       
app_system.so                  Generic System() application             0 
       
app_talkdetect.so              Playback with Talk Detection             0 
       
app_test.so                    Interface Test Application               0 
       
app_transfer.so                Transfer                                 0 
       
app_url.so                     Send URL Applications                    0 
       
app_userevent.so               Custom User Event Application            0 
       
app_verbose.so                 Send verbose output                      0 
       
app_voicemail.so               Comedian Mail (Voicemail System)         0 
       
app_waitforring.so             Waits until first ring after time        0 
       
app_waitforsilence.so          Wait For Silence                         0 
       
app_while.so                   While Loops and Conditional Execution    0 
       
app_zapateller.so              Block Telemarketers with Special Informa 0 
       
cdr_csv.so                     Comma Separated Values CDR Backend       0 
       
cdr_custom.so                  Customizable Comma Separated Values CDR  0 
       
cdr_manager.so                 Asterisk Manager Interface CDR Backend   0 
       
chan_agent.so                  Agent Proxy Channel                      0 
       
chan_iax2.so                   Inter Asterisk eXchange (Ver 2)          0 
       
chan_local.so                  Local Proxy Channel                      0 
       
chan_sip.so                    Session Initiation Protocol (SIP)        0 
       
codec_a_mu.so                  A-law and Mulaw direct Coder/Decoder     0 
       
codec_adpcm.so                 Adaptive Differential PCM Coder/Decoder  0 
       
codec_alaw.so                  A-law Coder/Decoder                      0 
       
codec_g726.so                  ITU G.726-32kbps G726 Transcoder         0 
       
codec_gsm.so                   GSM Coder/Decoder                        0 
       
codec_ilbc.so                  iLBC Coder/Decoder                       0 
       
codec_ulaw.so                  mu-Law Coder/Decoder                     0 
       
format_g723.so                 G.723.1 Simple Timestamp File Format     0 
       
format_g726.so                 Raw G.726 (16/24/32/40kbps) data         0 
       
format_g729.so                 Raw G729 data                            0 
       
format_gsm.so                  Raw GSM data                             0 
       
format_h264.so                 Raw H.264 data                           0 
       
format_ilbc.so                 Raw iLBC data                            0 
       
format_pcm.so                  Raw/Sun uLaw/ALaw 8KHz (PCM,PCMA,AU), G. 0 
       
format_sln.so                  Raw Signed Linear Audio support (SLN)    0 
       
format_vox.so                  Dialogic VOX (ADPCM) File Format         0 
       
format_wav.so                  Microsoft WAV format (8000Hz Signed Line 0 
       
format_wav_gsm.so              Microsoft WAV format (Proprietary GSM)   0 
       
func_base64.so                 base64 encode/decode dialplan functions  0 
       
func_callerid.so               Caller ID related dialplan function      0 
       
func_cdr.so                    CDR dialplan function                    0 
       
func_channel.so                Channel information dialplan function    0 
       
func_curl.so                   Load external URL                        0 
       
func_cut.so                    Cut out information from a string        0 
       
func_db.so                     Database (astdb) related dialplan functi 0 
       
func_enum.so                   ENUM related dialplan functions          0 
       
func_env.so                    Environment/filesystem dialplan function 0 
       
func_global.so                 Global variable dialplan functions       0 
       
func_groupcount.so             Channel group dialplan functions         0 
       
func_language.so               Channel language dialplan function       0 
       
func_logic.so                  Logical dialplan functions               0 
       
func_math.so                   Mathematical dialplan function           0 
       
func_md5.so                    MD5 digest dialplan functions            0 
       
func_moh.so                    Music-on-hold dialplan function          0 
       
func_rand.so                   Random number dialplan function          0 
       
func_realtime.so               Read/Write values from a RealTime reposi 0 
       
func_sha1.so                   SHA-1 computation dialplan function      0 
       
func_strings.so                String handling dialplan functions       0 
       
func_timeout.so                Channel timeout dialplan functions       0 
       
func_uri.so                    URI encode/decode dialplan functions     0 
       
pbx_ael.so                     Asterisk Extension Language Compiler     0 
       
pbx_config.so                  Text Extension Configuration             0 
       
pbx_dundi.so                   Distributed Universal Number Discovery ( 0 
       
pbx_loopback.so                Loopback Switch                          0 
       
pbx_realtime.so                Realtime Switch                          0 
       
pbx_spool.so                   Outgoing Spool Support                   0 
       
res_clioriginate.so            Call origination from the CLI            0 
       
res_convert.so                 File format conversion CLI command       0 
       
127 modules loaded
The 'show modules' command is deprecated and will be removed in a future
release. Please use 'module show' instead.
mini*CLI> exit
Executing last minute cleanups
mini:~ asterisk$ 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-24-07 11:40  tfitch         Note Added: 0075897                          
======================================================================




More information about the asterisk-bugs mailing list