[asterisk-bugs] [Asterisk 0017635]: chan_mobile unable to connect to cellphone

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 23 09:59:07 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17635 
====================================================================== 
Reported By:                challado
Assigned To:                mnicholson
====================================================================== 
Project:                    Asterisk
Issue ID:                   17635
Category:                   Addons/chan_mobile
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 275863 
Request Review:              
====================================================================== 
Date Submitted:             2010-07-13 10:34 CDT
Last Modified:              2010-08-23 09:59 CDT
====================================================================== 
Summary:                    chan_mobile unable to connect to cellphone
Description: 
Before a Debian Package upgrade, the chan_bluetooth is unable to connect to
any cellphone in bluetooth interface. When I try with a old version of
debian (stable) all works correctly, but with these new package version the
chan_mobile won't works anymore!

I won't change any configuration in chan_mobile.conf file. Only distro
upgrade was made!

 
====================================================================== 

---------------------------------------------------------------------- 
 (0126231) ilduganov (reporter) - 2010-08-23 09:59
 https://issues.asterisk.org/view.php?id=17635#c126231 
---------------------------------------------------------------------- 
I've fixed the same problem with fix below. It should work on kernel
versions 2.6.7 and greater
(http://people.csail.mit.edu/albert/bluez-intro/x502.html). For earlier
versions the only way is to go over all channels until success.

Index: chan_mobile.c
===================================================================
--- chan_mobile.c       (revision 283172)
+++ chan_mobile.c       (working copy)
@@ -1381,7 +1381,7 @@
        memset(&addr, 0, sizeof(addr));
        addr.rc_family = AF_BLUETOOTH;
        bacpy(&addr.rc_bdaddr, &src);
-       addr.rc_channel = (uint8_t) 1;
+       addr.rc_channel = (uint8_t) 0;
        if (bind(s, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
                ast_debug(1, "bind() failed (%d).\n", errno);
                close(s); 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-23 09:59 ilduganov      Note Added: 0126231                          
======================================================================




More information about the asterisk-bugs mailing list