[Asterisk-Dev] sco connection error: connection reset by peer
Khaled
khaled at ipbill.com
Wed Nov 30 05:01:03 MST 2005
Hello List,
Has anyone come accross the above error while trying to use asterisk and
chan_bluetooth (Theo Zourzouvillys's project)?
I am able to start asterisk without any problems; the bluetooth connection
to the mobile phone is initialised and then after about 2/3 seconds I get an
error. Please find below an extract from asterisk -vvvvvvvvvcd with debug
enabled:
== RTP Allocating from port range 10000 -> 20000
Asterisk Ready.
*CLI> Nov 30 12:08:21 NOTICE[5825]:
/usr/src/chan_bluetooth/chan_bluetooth.c:2041 try_connect: Initialised
bluetooth link to device Nokia6310i
[AG] Nokia6310i < AT+BRSF=23
Urgent handler
[AG] Nokia6310i > ERROR
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:1658
ag_brsf_response: Bluetooth features: ERROR
[AG] Nokia6310i < AT+CIND=?
Urgent handler
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:1504
ag_unsol_cind: CIND: 1=call
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:1504
ag_unsol_cind: CIND: 2=service
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:1514
ag_unsol_cind: CIND: 3=call_setup
[AG] Nokia6310i > +CIND:
("call",(0,1)),("service",(0,1)),("call_setup",(0-3))
[AG] Nokia6310i > OK
[AG] Nokia6310i < AT+CIND?
Urgent handler
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:2265
handle_incoming_sco: Incoming SCO socket
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:2295
handle_incoming_sco: SCO Connect from Nokia6310i
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:522
sco_thread: SCO thread started on fd 23, pid 5825
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:2315
handle_incoming_sco: SCO: 23, HCIHandle=44, MUT=64
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:386
set_cind: CIND 1 set to 0
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:386
set_cind: CIND 2 set to 1
Nov 30 12:08:21 NOTICE[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:417
set_cind: Audio Gateway Nokia6310i got signal
Nov 30 12:08:21 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:1539
ag_unsol_cind: CIND IND 3 set to 0 [0]
[AG] Nokia6310i > +CIND: 0,1,0
[AG] Nokia6310i > OK
[AG] Nokia6310i < AT+CMER=3,0,0,1
Urgent handler
[AG] Nokia6310i > OK
[AG] Nokia6310i < AT+CLIP=1
Urgent handler
[AG] Nokia6310i > OK
[AG] Nokia6310i < AT+CGMI=?
Urgent handler
[AG] Nokia6310i > OK
[AG] Nokia6310i < AT+CGMI
Urgent handler
[AG] Nokia6310i > Nokia
[AG] Nokia6310i > OK
Urgent handler
Nov 30 12:08:26 ERROR[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:586
sco_thread: SCO connection error: Connection reset by peer (errno 104)
Nov 30 12:08:26 DEBUG[5825]: /usr/src/chan_bluetooth/chan_bluetooth.c:619
sco_thread: SCO thread stopped
Any ideas why this is happening and how I can overcome this? All responses
are very much appreciated.
Kindest Regards
Khaled
More information about the asterisk-dev
mailing list