[Home]

Summary:ASTERISK-00412: Route lookup, better soundcard integration
Reporter:Thorsten Lockert (tholo)Labels:
Date Opened:2003-10-21 21:07:04Date Closed:2008-01-15 14:36:24.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) openbsd.diff
( 1) openbsd-route.diff
Description:ast_ouraddrfor() was not previously working at all on OpenBSD.

chan_oss and app_intercom would try to open the wrong device on OpenBSD.

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

The following patch implements routing table lookup (by using the raw routing socket) on OpenBSD.  Most likely this will also work on other BSD systems, but may need changing.

Also, on OpenBSD systems, try to open /dev/audio instead of /dev/dsp
Comments:By: Mark Spencer (markster) 2003-10-21 21:44:37

Fixed in CVS

By: Thorsten Lockert (tholo) 2003-10-21 22:43:10

The route socket must be marked as non-blocking to make sure we don't block threads trying to find a local address / route -- fix attached.

By: Mark Spencer (markster) 2003-10-21 22:48:16

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 14:36:17.000-0600

Repository: asterisk
Revision: 1647

U   trunk/acl.c
U   trunk/apps/app_intercom.c
U   trunk/channels/chan_oss.c

------------------------------------------------------------------------
r1647 | markster | 2008-01-15 14:36:17 -0600 (Tue, 15 Jan 2008) | 2 lines

Make getaddrfor work with openbsd (bug ASTERISK-412)

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

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

By: Digium Subversion (svnbot) 2008-01-15 14:36:24.000-0600

Repository: asterisk
Revision: 1655

U   trunk/acl.c

------------------------------------------------------------------------
r1655 | tholo | 2008-01-15 14:36:24 -0600 (Tue, 15 Jan 2008) | 2 lines

Route fixes for OpenBSD (bug ASTERISK-412)

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

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