[Home]

Summary:ASTERISK-12952: [patch] On Mac OS X PowerPC, Asterisk 1.6.0.1 cannot create outbound channels
Reporter:John Covert (jcovert)Labels:
Date Opened:2008-10-22 21:48:36Date Closed:2009-01-21 18:45:57.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/Portability
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20090121__bug13767.diff.txt
( 1) channel.c.patch
Description:Although incoming SIP and IAX2 channels work, all attempts to use the Dial command to create SIP, IAX2, or Local channels fail as follows:

   -- Executing [953@localsjphone:1] Dial("SIP/localsjphone-0183ca00", "IAX2/mainpbx/953,120") in new stack
[Oct 22 21:23:40] WARNING[17558]: channel.c:3437 ast_request: Unable to lock channel list
[Oct 22 21:23:40] WARNING[17558]: app_dial.c:1450 dial_exec_full: Unable to create channel of type 'IAX2' (cause 0 - Unknown)
 == Everyone is busy/congested at this time (1:0/0/1)

or

   -- Executing [8998x26*192.168.2.7@localeightsip:9] Dial("SIP/localsjphone-01836c00", "SIP/x26@192.168.2.7,120") in new stack
[Oct 22 21:30:48] WARNING[17558]: channel.c:3437 ast_request: Unable to lock channel list
[Oct 22 21:30:48] WARNING[17558]: app_dial.c:1450 dial_exec_full: Unable to create channel of type 'SIP' (cause 0 - Unknown)
 == Everyone is busy/congested at this time (1:0/0/1)

even local:

   -- Executing [12640001@localsjphone:1] Dial("SIP/localsjphone-01825800", "local/12640001@inbound-cnet-264,20") in new stack
[Oct 22 21:57:19] WARNING[17558]: channel.c:3437 ast_request: Unable to lock channel list
[Oct 22 21:57:19] WARNING[17558]: app_dial.c:1450 dial_exec_full: Unable to create channel of type 'local' (cause 0 - Unknown)
 == Everyone is busy/congested at this time (1:0/0/1)



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

actually 1.6.0.1
Comments:By: John Covert (jcovert) 2008-10-22 22:48:57

I did some googling and discovered this:

http://www.asteriskguru.com/archives/svn-commits-russell-branch-russell-jack-r95440-team-ru-vt117085.html

Made the change near line 3437 and things seem to be running so far.  Seems ungood to ignore a failure to lock, though.

By: John Covert (jcovert) 2008-10-30 13:39:37

This problem persists in the latest SVN:

Asterisk SVN-branch-1.6.0-r152772-/trunk built by root @ jrcovert.covert.org on a Power Macintosh running Darwin on 2008-10-30 16:39:33 UTC

without ignoring the failure to get the lock (seems like a bad thing to ignore) it's not possible to run on Darwin.

By: John Covert (jcovert) 2009-01-11 11:57:42.000-0600

This problem persists in 1.6.0.3.

I'm including a patch which does the "hack" russell used above, but it seems like the real cause for failing to lock should be found.

By: Tilghman Lesher (tilghman) 2009-01-21 02:17:36.000-0600

After much testing, I figured it out.  The problem was in how rwlocks were initialized.  Patch uploaded, which works on my system, which is a PowerPC G4 running OS X 10.4.6.

By: John Covert (jcovert) 2009-01-21 17:48:04.000-0600

Thank you.  I've put it up on two systems, a PowerPC G4 laptop running 10.4.11 and a PowerPC G5 also running 10.4.11.  Seems to work good, lasts a long time.

By: Digium Subversion (svnbot) 2009-01-21 18:43:30.000-0600

Repository: asterisk
Revision: 169943

U   branches/1.4/include/asterisk/linkedlists.h

------------------------------------------------------------------------
r169943 | tilghman | 2009-01-21 18:43:30 -0600 (Wed, 21 Jan 2009) | 9 lines

AST_RWLOCK_INIT_VALUE is always defined.  What we really wanted to ask is
whether autoconf detected a static initializer value.  This fixes rwlocks
on all such platforms (mainly, Mac OS X).
(closes issue ASTERISK-12952)
Reported by: jcovert
Patches:
      20090121__bug13767.diff.txt uploaded by Corydon76 (license 14)
Tested by: jcovert, Corydon76

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=169943

By: Digium Subversion (svnbot) 2009-01-21 18:44:32.000-0600

Repository: asterisk
Revision: 169944

_U  trunk/
U   trunk/include/asterisk/linkedlists.h

------------------------------------------------------------------------
r169944 | tilghman | 2009-01-21 18:44:31 -0600 (Wed, 21 Jan 2009) | 16 lines

Merged revisions 169943 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
 r169943 | tilghman | 2009-01-21 18:43:31 -0600 (Wed, 21 Jan 2009) | 9 lines
 
 AST_RWLOCK_INIT_VALUE is always defined.  What we really wanted to ask is
 whether autoconf detected a static initializer value.  This fixes rwlocks
 on all such platforms (mainly, Mac OS X).
 (closes issue ASTERISK-12952)
  Reported by: jcovert
  Patches:
        20090121__bug13767.diff.txt uploaded by Corydon76 (license 14)
  Tested by: jcovert, Corydon76
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=169944

By: Digium Subversion (svnbot) 2009-01-21 18:45:18.000-0600

Repository: asterisk
Revision: 169945

_U  branches/1.6.0/
U   branches/1.6.0/include/asterisk/linkedlists.h

------------------------------------------------------------------------
r169945 | tilghman | 2009-01-21 18:45:18 -0600 (Wed, 21 Jan 2009) | 23 lines

Merged revisions 169944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r169944 | tilghman | 2009-01-21 18:44:52 -0600 (Wed, 21 Jan 2009) | 16 lines
 
 Merged revisions 169943 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r169943 | tilghman | 2009-01-21 18:43:31 -0600 (Wed, 21 Jan 2009) | 9 lines
   
   AST_RWLOCK_INIT_VALUE is always defined.  What we really wanted to ask is
   whether autoconf detected a static initializer value.  This fixes rwlocks
   on all such platforms (mainly, Mac OS X).
   (closes issue ASTERISK-12952)
    Reported by: jcovert
    Patches:
          20090121__bug13767.diff.txt uploaded by Corydon76 (license 14)
    Tested by: jcovert, Corydon76
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=169945

By: Digium Subversion (svnbot) 2009-01-21 18:45:57.000-0600

Repository: asterisk
Revision: 169946

_U  branches/1.6.1/
U   branches/1.6.1/include/asterisk/linkedlists.h

------------------------------------------------------------------------
r169946 | tilghman | 2009-01-21 18:45:57 -0600 (Wed, 21 Jan 2009) | 23 lines

Merged revisions 169944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
 r169944 | tilghman | 2009-01-21 18:44:52 -0600 (Wed, 21 Jan 2009) | 16 lines
 
 Merged revisions 169943 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r169943 | tilghman | 2009-01-21 18:43:31 -0600 (Wed, 21 Jan 2009) | 9 lines
   
   AST_RWLOCK_INIT_VALUE is always defined.  What we really wanted to ask is
   whether autoconf detected a static initializer value.  This fixes rwlocks
   on all such platforms (mainly, Mac OS X).
   (closes issue ASTERISK-12952)
    Reported by: jcovert
    Patches:
          20090121__bug13767.diff.txt uploaded by Corydon76 (license 14)
    Tested by: jcovert, Corydon76
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=169946