Chan_mobile Bluetooth usage

Can someone please direct me to a link showing a proper config for the below config files:

Mobile.conf
Chan_Mobile.conf
Pjsip.conf and
Extensions.con

And some other required config files showing me a demo on mobile sip integration. Thanks. Looking for a ‘Hello World’ type of demo for my mobile calls. Thanks :blush:

[root@localhost ~]# systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
Active: active (running) since Fri 2024-08-23 22:26:11 IST; 1h 27min ago
Docs: man:bluetoothd(8)
Main PID: 1958 (bluetoothd)
Status: “Running”
Tasks: 1 (limit: 10965)
Memory: 2.2M
CPU: 2.410s
CGroup: /system.slice/bluetooth.service
└─1958 /usr/libexec/bluetooth/bluetoothd

Aug 23 23:49:30 localhost.localdomain bluetoothd[1958]: Endpoint registered: sender=:1.101 path=/MediaEndpoint/A2DPSource/sbc
Aug 23 23:49:30 localhost.localdomain bluetoothd[1958]: Endpoint registered: sender=:1.101 path=/MediaEndpoint/A2DPSink/sbc_xq
Aug 23 23:49:30 localhost.localdomain bluetoothd[1958]: Endpoint registered: sender=:1.101 path=/MediaEndpoint/A2DPSource/sbc_xq
Aug 23 23:49:30 localhost.localdomain bluetoothd[1958]: Endpoint registered: sender=:1.101 path=/MediaEndpoint/A2DPSource/faststream
Aug 23 23:49:30 localhost.localdomain bluetoothd[1958]: Endpoint registered: sender=:1.101 path=/MediaEndpoint/A2DPSource/faststream_duplex
Aug 23 23:49:30 localhost.localdomain bluetoothd[1958]: Endpoint registered: sender=:1.101 path=/MediaEndpoint/A2DPSink/opus_05
Aug 23 23:49:30 localhost.localdomain bluetoothd[1958]: Endpoint registered: sender=:1.101 path=/MediaEndpoint/A2DPSource/opus_05
Aug 23 23:49:30 localhost.localdomain bluetoothd[1958]: Endpoint registered: sender=:1.101 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Aug 23 23:49:30 localhost.localdomain bluetoothd[1958]: Endpoint registered: sender=:1.101 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Aug 23 23:51:37 localhost.localdomain bluetoothd[1958]: /org/bluez/hci0/dev_FC_1D_2A_50_53_AD/fd2: fd(30) ready

pjsip.conf:
[transport-bluetooth]
type=transport
protocol=bt

[bluetooth_endpoint]
type=endpoint
bind=FC:1D:2A:50:53:AD
protocol=bt
context=from-internal
disallow=all
allow=ulaw
auth=bluetooth_auth

[bluetooth_auth]
type=auth
auth_type=userpass
password=unsecurepassword
username=bluetooth_endpoint

[bluetooth_aor]
type=aor
max_contacts=1

Almost There!

Hi All,
Good Evening. I am Prabhakaran from India. I have successfully connected my mobile phone using a Bluetooth adapter to the centos 9 Minimal. Now I have some difficulties on making it connect to the Asterisk Server. I think we have to change the voice setting in the Bluetooth Adapter to make it useful for Asterisk to communicate with that. How to do that… Please Help. Thanks.

p.s:
my system is not having hcidev tool instead I am having bluetoothctl and using the same. Hope you Help. Thanks.

[root@localhost ~]# service bluetooth status
Redirecting to /bin/systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
Active: active (running) since Fri 2024-08-23 18:10:11 IST; 1h 40min ago
Docs: man:bluetoothd(8)
Main PID: 2652 (bluetoothd)
Status: “Running”
Tasks: 1 (limit: 11084)
Memory: 1.1M
CPU: 3.950s
CGroup: /system.slice/bluetooth.service
└─2652 /usr/libexec/bluetooth/bluetoothd

Aug 23 18:37:46 localhost.localdomain bluetoothd[2652]: Endpoint registered: sender=:1.15 path=/MediaEndpoint/A2DPSource/faststream
Aug 23 18:37:46 localhost.localdomain bluetoothd[2652]: Endpoint registered: sender=:1.15 path=/MediaEndpoint/A2DPSource/faststream_duplex
Aug 23 18:37:46 localhost.localdomain bluetoothd[2652]: Endpoint registered: sender=:1.15 path=/MediaEndpoint/A2DPSink/opus_05
Aug 23 18:37:46 localhost.localdomain bluetoothd[2652]: Endpoint registered: sender=:1.15 path=/MediaEndpoint/A2DPSource/opus_05
Aug 23 18:37:46 localhost.localdomain bluetoothd[2652]: Endpoint registered: sender=:1.15 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Aug 23 18:37:46 localhost.localdomain bluetoothd[2652]: Endpoint registered: sender=:1.15 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Aug 23 18:41:51 localhost.localdomain bluetoothd[2652]: /org/bluez/hci0/dev_FC_1D_2A_50_53_AD/fd1: fd(30) ready
Aug 23 19:10:26 localhost.localdomain bluetoothd[2652]: src/advertising.c:add_client_complete() Failed to add advertisement: Busy (0x0a)
Aug 23 19:27:24 localhost.localdomain bluetoothd[2652]: src/device.c:device_new() Unable to register device interface for 31:8A:18:61:D5:11
Aug 23 19:27:24 localhost.localdomain bluetoothd[2652]: Unable to create object for found device 31:8A:18:61:D5:11

@shafty Please stop creating thread after thread about your chan_mobile/Bluetooth usage, and use this thread only.

1 Like

Sure

I am in India.
I have shortlisted the following adapter:
tp link bluetooth 5.0

Don’t know how does it pair with asterisk. Please suggest the best one. My Budget is from 750 INR to 1500 INR. Please suggest the best one. The only purpose would be connecting with asterisk. Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.