[Home]

Summary:ASTERISK-11274: chan_mobile unable to connect to Motorola L7e: rfcomm_connect: connect() failed (111)
Reporter:Sergey Basmanov (sb)Labels:
Date Opened:2008-01-21 17:24:23.000-0600Date Closed:2011-06-07 14:07:27
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Addons/chan_mobile
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Mandriva 2008, bluez 3.23, asterisk svn. kbluetooth (obex push) works fine with this phone.
*CLI> mobile search
Address           Name                           Usable Type    Port
00:17:E3:6A:90:80 MT                             Yes    Phone   7
When I configure chan_mobile to use phone, I see following:
[Jan 22 02:24:51] DEBUG[29142]: chan_mobile.c:989 rfcomm_connect: connect() failed (111).
Any ideas?

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

hcidump of connection attempt:
HCI sniffer - Bluetooth packet analyzer ver 1.40
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Read Voice Setting (0x03|0x0025) plen 0
> HCI Event: Command Complete (0x0e) plen 6
   Read Voice Setting (0x03|0x0025) ncmd 1
   status 0x00 voice setting 0x0060
< HCI Command: Create Connection (0x01|0x0005) plen 13
   bdaddr 00:17:E3:6A:90:80 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
   Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
   Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
   status 0x00 handle 11 bdaddr 00:17:E3:6A:90:80 type ACL encrypt 0x00
< ACL data: handle 11 flags 0x02 dlen 12
   L2CAP(s): Connect req: psm 3 scid 0x0040
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
   handle 11
> HCI Event: Command Status (0x0f) plen 4
   Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
   handle 11 policy 0x0f
   Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Read Remote Supported Features (0x0b) plen 11
   status 0x00 handle 11
   Features: 0xff 0xff 0x2d 0x78 0x18 0x18 0x00 0x80
> HCI Event: Command Complete (0x0e) plen 6
   Write Link Policy Settings (0x02|0x000d) ncmd 1
   status 0x00 handle 11
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
   bdaddr 00:17:E3:6A:90:80 mode 2 clkoffset 0x0000
> HCI Event: Command Status (0x0f) plen 4
   Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> HCI Event: Max Slots Change (0x1b) plen 3
   handle 11 slots 5
> HCI Event: Remote Name Req Complete (0x07) plen 255
   status 0x00 bdaddr 00:17:E3:6A:90:80 name 'MT'
> ACL data: handle 11 flags 0x02 dlen 16
   L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
     Connection successful
< ACL data: handle 11 flags 0x02 dlen 16
   L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
     MTU 1013
> ACL data: handle 11 flags 0x02 dlen 16
   L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
     MTU 1506
< ACL data: handle 11 flags 0x02 dlen 18
   L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
     Success
     MTU 1506
> ACL data: handle 11 flags 0x02 dlen 18
   L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
     Success
     MTU 1013
< ACL data: handle 11 flags 0x02 dlen 8
   L2CAP(d): cid 0x0040 len 4 [psm 3]
     RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> HCI Event: Number of Completed Packets (0x13) plen 5
   handle 11 packets 4
> ACL data: handle 11 flags 0x02 dlen 8
   L2CAP(d): cid 0x0040 len 4 [psm 3]
     RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 11 flags 0x02 dlen 18
   L2CAP(d): cid 0x0040 len 14 [psm 3]
     RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
     dlci 14 frame_type 0 credit_flow 15 pri 7 ack_timer 0
     frame_size 1008 max_retrans 0 credits 7
> ACL data: handle 11 flags 0x02 dlen 18
   L2CAP(d): cid 0x0040 len 14 [psm 3]
     RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
     dlci 14 frame_type 0 credit_flow 14 pri 7 ack_timer 0
     frame_size 256 max_retrans 0 credits 0
< ACL data: handle 11 flags 0x02 dlen 8
   L2CAP(d): cid 0x0040 len 4 [psm 3]
     RFCOMM(s): SABM: cr 1 dlci 14 pf 1 ilen 0 fcs 0x6
> HCI Event: Link Key Request (0x17) plen 6
   bdaddr 00:17:E3:6A:90:80
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
   bdaddr 00:17:E3:6A:90:80 key 42010B9B36DF1B9045066D4E98AB1A91
> HCI Event: Command Complete (0x0e) plen 10
   Link Key Request Reply (0x01|0x000b) ncmd 1
   status 0x00 bdaddr 00:17:E3:6A:90:80
> ACL data: handle 11 flags 0x02 dlen 8
   L2CAP(d): cid 0x0040 len 4 [psm 3]
     RFCOMM(s): DM: cr 1 dlci 14 pf 1 ilen 0 fcs 0x2c
< ACL data: handle 11 flags 0x02 dlen 8
   L2CAP(d): cid 0x0040 len 4 [psm 3]
     RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd
< ACL data: handle 11 flags 0x02 dlen 12
   L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> ACL data: handle 11 flags 0x02 dlen 12
   L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
< ACL data: handle 11 flags 0x02 dlen 12
   L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
   handle 11 packets 4
> ACL data: handle 11 flags 0x02 dlen 12
   L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
> ACL data: handle 11 flags 0x02 dlen 14
   L2CAP(s): Command rej: reason 2 dcid 0x0040 scid 0x0040
     Invalid CID in request
> HCI Event: Number of Completed Packets (0x13) plen 5
   handle 11 packets 1
< HCI Command: Disconnect (0x01|0x0006) plen 3
   handle 11 reason 0x13
   Reason: Remote User Terminated Connection
> HCI Event: Command Status (0x0f) plen 4
   Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
   status 0x00 handle 11 reason 0x16
   Reason: Connection Terminated by Local Host
Comments:By: Dave Bowerman (dbowerman) 2008-02-20 01:08:11.000-0600

111 = ECONNREFUSED

I'd say it was a pairing problem. have you set the phone to automatically accept connections?

By: Jason Parker (jparker) 2008-03-06 13:41:10.000-0600

No response.  Assuming fixed.

Please reopen if you are still experiencing this issue.