- changes for PipeWire and Debian Bookworm
This commit is contained in:
parent
6feb10f49a
commit
3b9e74d5ee
|
|
@ -11,7 +11,7 @@ GIT_SOURCE=https://git.sevana.biz/public/agent_gsm
|
||||||
|
|
||||||
# Install prerequisites
|
# Install prerequisites
|
||||||
sudo apt install --assume-yes git mc python3 sox vim libffi-dev screen python3-pip python3-numpy dnsmasq hostapd screen
|
sudo apt install --assume-yes git mc python3 sox vim libffi-dev screen python3-pip python3-numpy dnsmasq hostapd screen
|
||||||
sudo pip3 install pyyaml sox pyrabbit soundfile dbus_python pexpect requests rabbitpy bottle
|
sudo pip3 install pyyaml sox pyrabbit soundfile dbus_python pexpect requests rabbitpy bottle --break-system-packages
|
||||||
|
|
||||||
if [ -f "$INSTALL_DIR" ]; then
|
if [ -f "$INSTALL_DIR" ]; then
|
||||||
rm -rf "$INSTALL_DIR"
|
rm -rf "$INSTALL_DIR"
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ PHONE_BT_MAC = '40:B0:76:B4:36:98'
|
||||||
# Connection to phone
|
# Connection to phone
|
||||||
|
|
||||||
bluetooth_ctl = bt_controller.Bluetoothctl()
|
bluetooth_ctl = bt_controller.Bluetoothctl()
|
||||||
devices = bt_controller.get_paired_devices()
|
devices = bluetooth_ctl.get_paired_devices()
|
||||||
print(f'Paired devices: {devices}')
|
print(f'Paired devices: {devices}')
|
||||||
|
|
||||||
# disconnect before connect
|
# disconnect before connect
|
||||||
|
|
@ -34,9 +34,11 @@ phone.call_number('111222')
|
||||||
# Wait 5 seconds
|
# Wait 5 seconds
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
|
|
||||||
# Just to be sure
|
# Just to be sure - finish the call
|
||||||
phone.hangup_call()
|
phone.hangup_call()
|
||||||
phone.quit_dbus_loop()
|
phone.quit_dbus_loop()
|
||||||
|
|
||||||
|
# Disconnect BT transport from the phone
|
||||||
|
bluetooth_ctl.disconnect(PHONE_BT_MAC)
|
||||||
|
|
||||||
exit(EXIT_OK)
|
exit(EXIT_OK)
|
||||||
Loading…
Reference in New Issue