[asterisk-users] no sound with chan_mobile

linux at shelob.nl linux at shelob.nl
Mon Jun 18 16:14:42 CDT 2007


I am new to Asterisk (1.4.5), and I am trying to get chan_mobile working.
My intention is to use it as a cheap GSM gateway.

In the dialplan I configured that all mobile numbers should go thru the
mobile channel. The current situation is that I can setup the call via the
mobile channel (bluetooth), but sound is still thru the bluetooth attached
phone's speaker and microphone.

I searched internet, but could not find a solution to this problem.  My
assumption is that both data and voice could be used over bluetooth.

In the syslog there is a message that I do not understand. Do not know if
it is related to the problem at hand:
D-Bus failed to register /org/bluez/hci0 object


This is part of my configurations:
;
; mobile.conf
;

[general]
interval=60             ; Number of seconds between trying to connect to
devices.

; 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.
; Discovered devices not in this list are not available.
; Use the CLI command 'mobile search' to discover devices.
; Use the CLI command 'mobile show devices' to see device status.
;
; To place out through a cell phone use Dial(Mobile/[device]/NNN.....) in
your dialplan.
; To call a headset use Dial(Mobile/[device]).

[Hans.bt]
address=00:12:D1:8A:06:8E
port=1
context=mobiel-hans


Part of dialplan

[mobiel-uit]
exten => _06XXXXXXXX,1,Answer
exten => _06XXXXXXXX,n,Authenticate(1234,a)
exten => _06XXXXXXXX,n,Goto(mobiel-hans,${EXTEN},1)

[mobiel-hans]
exten => _06XXXXXXXX,1,Dial(Mobile/Hans.bt/${EXTEN},40,r)
exten => _06XXXXXXXX,n,Macro(fastbusy)
exten => _06XXXXXXXX,n,Hangup

asterisk*CLI> mobile show devices
ID              Address           Connected State SMS
Hans.bt         00:12:D1:8A:06:8E Yes       Free  Yes

Some logging while dialing out via the mobile channel:
    -- Starting simple switch on 'Zap/3-1'
    -- Executing [06********@home:1] Answer("Zap/3-1", "") in new stack
    -- Executing [06********@home:2] Authenticate("Zap/3-1", "****|a") in
new stack
    -- <Zap/3-1> Playing 'agent-pass' (language 'nl')
    -- <Zap/3-1> Playing 'auth-thankyou' (language 'nl')
    -- Executing [06*******4 at home:3] Goto("Zap/3-1",
"mobiel-hans|06********|1") in new stack
    -- Goto (mobiel-hans,06********,1)
    -- Executing [06********@mobiel-hans:1] Dial("Zap/3-1",
"Mobile/Hans.bt/06********|40|r") in new stack
    -- Called Hans.bt/06********
    -- Mobile/Hans.bt-a12b answered Zap/3-1
  == Spawn extension (mobiel-hans, 06********, 1) exited non-zero on
'Zap/3-1'
    -- Hungup 'Zap/3-1'

Reconnection mobile phone (Nokia 6230i):

   -- Bluetooth Device Hans.bt has disconnected, reason (104).
   -- Bluetooth Device Hans.bt has connected.
   -- Bluetooth Device Hans.bt initialised and ready.
asterisk*CLI> mobile search
No Bluetooth Cell / Mobile devices found.

It does not find any cell or mobile devices ??? But it just told me that
Device Hans.bt was initialized and ready?

dmesg fragment:
[   38.979067] Bluetooth: L2CAP ver 2.8
[   38.979089] Bluetooth: L2CAP socket layer initialized
[   39.061445] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[   39.431068] Bluetooth: RFCOMM socket layer initialized
[   39.431149] Bluetooth: RFCOMM TTY layer initialized
[   39.431166] Bluetooth: RFCOMM ver 1.8

syslog fragments:
Jun 17 20:23:16 asterisk hcid[17493]: Bluetooth HCI daemon
Jun 17 20:23:16 asterisk hcid[17493]: HCI dev 0 registered
Jun 17 20:23:16 asterisk hidd[17495]: Bluetooth HID daemon
Jun 17 20:23:16 asterisk hcid[17493]: HCI dev 0 already up
Jun 17 20:23:16 asterisk hcid[17493]: Device hci0 has been added
Jun 17 20:23:16 asterisk hcid[17493]: Starting security manager 0
Jun 17 20:23:16 asterisk hcid[17493]: Device hci0 has been activated
Jun 17 20:23:16 asterisk hcid[17493]: Starting SDP server
Jun 17 20:24:45 asterisk hcid[17493]: Reloading config file
Jun 17 20:24:45 asterisk hcid[17493]: HCI dev 0 registered
Jun 17 20:24:45 asterisk hcid[17493]: D-Bus failed to register
/org/bluez/hci0 object
Jun 17 20:24:45 asterisk hcid[17493]: HCI dev 0 already up
Jun 17 20:24:45 asterisk hcid[17493]: Device hci0 has been added
Jun 17 20:24:45 asterisk hcid[17493]: Device hci0 has been activated
...
....
Jun 17 11:32:54 asterisk kernel: [74009.258152] Bluetooth: SCO (Voice
Link) ver 0.6
Jun 17 11:32:54 asterisk kernel: [74009.258160] Bluetooth: SCO socket
layer initialized


Rgds,

Hans Feringa





More information about the asterisk-users mailing list