[Home]

Summary:ASTERISK-09876: idle console disconnects
Reporter:Bruce Ferrell (bferell)Labels:
Date Opened:2007-07-13 16:27:27Date Closed:2008-05-28 11:44:51
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/Portability
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) Makefile.patch
Description:Asterisk 1.4.7.1  on Mac OSX 10.4

No other entries in the logs

****** ADDITIONAL INFORMATION ******

[Jul 13 14:36:48] VERBOSE[13693] logger.c: Asterisk Event Logger restarted
[Jul 13 14:36:48] VERBOSE[13693] logger.c: Asterisk Queue Logger restarted
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor



[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] WARNING[13693] asterisk.c: poll returned < 0: Bad file descriptor
[Jul 13 14:37:29] VERBOSE[13693] logger.c:     -- Remote UNIX connection disconnected
Comments:By: Joshua C. Colp (jcolp) 2007-07-16 07:36:54

Intel or PowerPC?

By: Bruce Ferrell (bferell) 2007-07-17 18:13:38

intel

By: tfitch (tfitch) 2007-11-17 23:27:13.000-0600

I see this same issue on running 1.4 builds on a 10.4.10 PPC. For me it coincides with the remote console (asterisk -vvvr) spontaneously exiting.

I put some extra logging in and dumped out the file descriptors after this error. But did not see anything too suspect. If I recall correctly, there were two file descriptor numbers one which looked like stdin the other was a low integer (11 maybe 14). Unfortunately I have misplaced my notes and have gone back to running 1.2.24 as I was having too many issues with the 1.4 builds on my Mac Mini PPC so it is not easy for me to recreate.

By: Michiel van Baak (mvanbaak) 2007-12-16 05:54:53.000-0600

Can someone reproduce this with the current 1.4-SVN ?

By: tfitch (tfitch) 2007-12-16 12:57:24.000-0600

With 1.4 SVN 93172 running on a PPC G4 MacMini with OS 10.4.11.

Accidentally ran v1.4 remote console against 1.2.24 daemon. Was able to stay connected. Once I "corrected" the situation and ran the v1.4 remote console against a matching 1.4 daemon the problem occurred: Disconnect after only a few seconds.

Oddly when 1.4 console connects to 1.2 daemon I got a number of lines that showed:

   -- Remote UNIX connection
   -- Remote UNIX connection disconnected

These mostly occurred within a the first minute or two of operation and then stopped.



By: Caio Begotti (caio1982) 2007-12-24 05:10:43.000-0600

I could not reproduced it on Mac OSX 10.4.11 with all available updates (Intel) using "Asterisk SVN-branch-1.4-r94660 on a i386 running Darwin on 2007-12-24 10:54:24 UTC". I even issued a few commands, unload/load modules and let it running for some minutes and nothing.

For bferell and tfitch: can you guys elaborate it and describe precisely what you're running? Which modules? Config files? How did you start Asterisk? I guess this is due some weird module but it worked beatifully for me (already had problems with func_iconv on OSX though it installed ok, that's why I'm shooting on this).

I got remote access to a Mac Mini like you, but I need more information in order to test it properly there :-)

By: Caio Begotti (caio1982) 2007-12-24 05:31:48.000-0600

Ok, I was able to reproduce it now and I believe it's somehow related to issue 10881. Can some marshall add a relationship to this bug then? I just triggered this one after going after 10881, so it might help others gathering information.

I forced a register line using null information about DNS and username:secret, just to test it.

This is my my process, started with asterisk -cvvvvv:

[Dec 24 09:17:10] NOTICE[8671]: chan_sip.c:7427 sip_reg_timeout:    -- Registration for 'xxx@vsp_hostname' timed out, trying again (Attempt #3)
[Dec 24 09:17:10] WARNING[8671]: asterisk.c:932 netconsole: poll returned < 0: Bad file descriptor
   -- Remote UNIX connection disconnected
[Dec 24 09:17:10] WARNING[8671]: chan_sip.c:2899 create_addr: No such host: vsp_hostname
[Dec 24 09:17:10] WARNING[8671]: chan_sip.c:7505 transmit_register: Probably a DNS error for registration to xxx@vsp_hostname, trying REGISTER again (after 20 seconds)

This is my remote CLI, started with asterisk -rvvvvv:

[Dec 24 09:17:10] NOTICE[8671]: chan_sip.c:7427 sip_reg_timeout:    -- Registration for 'xxx@vsp_hostname' timed out, trying again (Attempt #3)
189*CLI>
Disconnected from Asterisk server
Executing last minute cleanups

While it's not really an idle disconnect there is the "Bad file descriptor" problem here indeed. My main process's CLI get stuck while those registration attempts are running, interesting... these disconnections comes right after the attempt #number messages, my record is 9 attempts before crashing ;-)



By: Caio Begotti (caio1982) 2007-12-24 05:54:15.000-0600

Isn't related to Asterisk and DNS issues? Asterisk was always very DNS-sensitive and removing the register line I mentioned from sip.conf the issue is gone and those attempts are not a problem anymore. I have no valid username:secret to test right now (I'm at home, not at office) so I GUESS this is related to DNS failures.

By: tfitch (tfitch) 2007-12-24 10:53:45.000-0600

My setup is a G4 PPC MacMini currently running 10.4.11 with all the latest security patches. I could almost live with this bug but I am also suffering from bug 10342 which makes the system useless.

Regarding bug 10342, when I try to run (before the console exists with those bad file descriptor errors showing in the log) I sometimes see the following:

Connected to Asterisk SVN-branch-1.4-r93000M currently running on mini (pid = 17444)
Verbosity is at least 5
mini*CLI>
mini*CLI>
[Dec 16 11:11:56] WARNING[17444]: rtp.c:1142 ast_rtp_read: RTP Read too short


Between the bad file descriptor error coming out of a select on this console bug and the RTP read too short error on bug 10342 shortly after a select in the voice path code I wonder if there is an issue in the way OS 10 handles the poll() and/or select() calls. However the places I checked in the Asterisk code either have no changes or changes that appear to be benign between the 1.2.24 branch that runs wonderfully and the 1.4.xx builds that fail.

By: tfitch (tfitch) 2007-12-24 11:40:49.000-0600

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@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$

By: Caio Begotti (caio1982) 2008-01-07 21:55:36.000-0600

Facts after some humble detective work done last night (using trunk revision 96988):

1. These idle console disconnects for me were related to registry =>lines on my sip.conf as stated above so I checked it again and it seems to be something wrong when sip_reg_timeout is called but only when you type something on CLI.

2. While chan_sip keeps trying registration everything looks fine. Even with softphones logging in automatically at the same time. You just can't touch the CLI :-)

3. You can execute CLI commands as much as you like, until the first DNS error/registration attempt gets a timeout.

4. Whatever I set global_regattempts_max or not, the problems still occurs.

5. The problem simply vanish if I hack the if (r->call) statement on line 8328 with a bypass. The most isolated code within it seems to be the guilty r->call = dialog_unref(r->call); on line 8343 causing the CLI freezes on registrations for both local and remote connections. Yay!

6. This dialog_unref returns NULL and tweaking it solves the problem partially, sigh...

7. I also got 'Bus error' and crashes on some rasterisk executions while playing with tab completion, but I believe they might be a undiscovered bug, so I'll double check it before correlating it with this bug.

By: jmls (jmls) 2008-02-17 12:57:01.000-0600

any futher news on this ?

By: Mark Michelson (mmichelson) 2008-04-16 15:30:04

One big difference between 1.2 and 1.4 with regards to Mac OSX and the build system was that in 1.2, a Darwin system would not use the poll(2) system call but would instead use a version in the Asterisk source which actually used select(2) to determine ready file descriptors.

When the 1.4 build system changed to create a main/ directory, the logic for which version of poll to compile moved to that directory's Makefile. The result of this appeared to be that two different versions of poll() would be referenced in the build, and depending on which file poll() was called from, one or the other version would be used. This is bad.

I have written a patch which will revert 1.4 to properly using the version of poll() in the Asterisk source for Darwin systems. I have a feeling that this could be the cause behind issues ASTERISK-9876 and ASTERISK-9989, so I am posting the patches on both bugs.

Please test Makefile.patch and report if its use has solved the problem reported. Thank you very much!



By: Mark Michelson (mmichelson) 2008-05-08 20:00:55

For those still suffering from this issue, please see my latest note (~86648) on issue ASTERISK-9989 and try using the configure.patch on that issue. When I applied it, I no longer had the console disconnect.

Thanks!

By: Mark Michelson (mmichelson) 2008-05-12 12:16:12

file has uploaded configure script changes which reflect what I wrote on issue 10342, so now an svn update on the 1.4 branch will get you the correct configure script. Please try testing to see if the idle console disconnection still occurs with these changes in place.

By: Mark Michelson (mmichelson) 2008-05-28 11:44:48

Given that there has been no input towards this issue since January from people experiencing the problem and the fact that the configure script changes from file have successfully solved the issue for me locally, I am going to close this. If the problem persists, then please re-open