[asterisk-bugs] [Asterisk 0017163]: [patch] Bluetooth linkkey is never stored and as a result phone PIN is requested every time a new connection is started

Asterisk Bug Tracker noreply at bugs.digium.com
Sun May 9 20:23:09 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17163 
====================================================================== 
Reported By:                dveiga
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   17163
Category:                   Addons/chan_mobile
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           Addons-1.6.2.0 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2 
SVN Revision (number only!): 1097 
Request Review:              
====================================================================== 
Date Submitted:             2010-04-10 21:41 CDT
Last Modified:              2010-05-09 20:23 CDT
====================================================================== 
Summary:                    [patch] Bluetooth linkkey is never stored and as a
result phone PIN is requested every time a new connection is started
Description: 
I can´t tell since what version, because I jumped from
'bluez-libs-3.35-1.fc8' to 'bluez-libs-4.42-9.fc11.x86_64', but the
security defaults of the bottom layers changed. As a consecuence the
linkkey (the secret negotiated between the two bluetooth devices) is not
stored on disk, and a new sync is started every time a new connection is
started with the phone.
The proposed patch sets the socket options to avoid the problem.
====================================================================== 

---------------------------------------------------------------------- 
 (0121620) dveiga (reporter) - 2010-05-09 20:23
 https://issues.asterisk.org/view.php?id=17163#c121620 
---------------------------------------------------------------------- 
Yesterday I was upgrading an old system and I decided to apply the latest
patches to chan_mobile. When I got to mine I discovered it didn't compile.
The problem was I introduced it because bluetooth's security changed a new
socket option (BT_SECURITY) was added to adjust it. The patch is not
necessary for versions earlier than this change and it does not compile
either.
Looking a little bit further into the problem I found BT_SECURITY was
introduced in bluez 4.27. As the patch is not needed in earlier versions, I
changed it to introduce a #ifdef BT_SECURITY to exclude the patch under
those versions. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-09 20:23 dveiga         Note Added: 0121620                          
======================================================================




More information about the asterisk-bugs mailing list