I am running 1.4.20-1, chan_mobile 454-1 and get the following error when Asterisk is trying to connect to my Nokia N95. N95 firmware 21.0.016.
[Aug 19 13:22:57] VERBOSE[3668] logger.c: – Bluetooth Device N95 has connected.
[Aug 19 13:22:57] DEBUG[4301] chan_mobile.c: rfcomm_write() (N95) [AT+BRSF=4^M]
[Aug 19 13:22:57] DEBUG[4302] chan_mobile.c: About to accept() socket.
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_read() (N95) [+BRSF: 239]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_read() (N95) [OK]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_write() (N95) [AT+CIND=?^M]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_read() (N95) [+CIND: (“service”,(0,1)),(“call”,(0,1)),(“callsetup”,(0-3)),(“call_setup”,(0-3)),(“callheld”,(0-2)),(“signal”,(0-5)),(“roam”,(0-1)),(“battchg”,(0-5))]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: CIEV_CALL=2 CIEV_CALLSETUP=4
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_read() (N95) [OK]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_write() (N95) [AT+CIND?^M]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_read() (N95) [+CIND: 1,0,0,0,0,5,0,4]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_read() (N95) [OK]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_write() (N95) [AT+CMER=3,0,0,1^M]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_read() (N95) [OK]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_write() (N95) [AT+CMGF=1^M]
[Aug 19 13:22:58] DEBUG[4301] chan_mobile.c: rfcomm_read() (N95) [ERROR]
[Aug 19 13:22:58] VERBOSE[4301] logger.c: – Bluetooth Device N95 has disconnected, reason (104).
[Aug 19 13:22:59] VERBOSE[3639] logger.c: – Remote UNIX connection
[Aug 19 13:23:10] VERBOSE[3668] logger.c: – Bluetooth Device N95 has connected.
[Aug 19 13:23:10] DEBUG[4305] chan_mobile.c: rfcomm_write() (N95) [AT+BRSF=4^M]
[Aug 19 13:23:10] DEBUG[4306] chan_mobile.c: About to accept() socket.
[Aug 19 13:23:10] DEBUG[4305] chan_mobile.c: rfcomm_read() (N95) [+BRSF: 239]
[Aug 19 13:23:10] DEBUG[4305] chan_mobile.c: rfcomm_read() (N95) [OK]
[Aug 19 13:23:10] DEBUG[4305] chan_mobile.c: rfcomm_write() (N95) [AT+CIND=?^M]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_read() (N95) [+CIND: (“service”,(0,1)),(“call”,(0,1)),(“callsetup”,(0-3)),(“call_setup”,(0-3)),(“callheld”,(0-2)),(“signal”,(0-5)),(“roam”,(0-1)),(“battchg”,(0-5))]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: CIEV_CALL=2 CIEV_CALLSETUP=4
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_read() (N95) [OK]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_write() (N95) [AT+CIND?^M]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_read() (N95) [+CIND: 1,0,0,0,0,5,0,4]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_read() (N95) [OK]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_write() (N95) [AT+CMER=3,0,0,1^M]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_read() (N95) [OK]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_write() (N95) [AT+CLIP=1^M]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_read() (N95) [OK]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_write() (N95) [AT+CMGF=1^M]
[Aug 19 13:23:11] DEBUG[4305] chan_mobile.c: rfcomm_read() (N95) [ERROR]
[Aug 19 13:23:11] VERBOSE[4305] logger.c: – Bluetooth Device N95 has disconnected, reason (104).
pbx*CLI> mobile search
Address Name Usable Type Port
00:18:42:E9:97:60 N95 Yes Phone 1
pbx*CLI> mobile show devices
ID Address Group Adapter Connected State SMS
N95 00:18:42:E9:97:60 0 blue No Init No
[pbx asterisk]# vi mobile.conf
; The following is a list of the devices we deal with.
; Every device listed below will be available for calls in and out of Asterisk.
; Each device needs an adapter=xxxx entry which determines which bluetooth adapter is used.
; Use the CLI command ‘mobile search’ to discover devices.
; Use the CLI command ‘mobile show devices’ to see device status.
;
; To place a call out through a mobile phone use Dial(Mobile/[device]/NNN…) in your dialplan.
; To call a headset use Dial(Mobile/[device]).
[N95]
address=00:18:42:E9:97:60 ; the address of the phone
port=1 ; the rfcomm port number (from mobile search)
context=from-pstn ; dialplan context for incoming calls
adapter=blue ; adapter to use
I have had this working, although with an earlier version of Asterisk and an earlier version of chan_mobile.so
Any help would be greatly appreciated.
Regards
Rich