mirror of git://git.sysmocom.de/ofono
test: add scripts to test ims registration
This commit is contained in:
parent
551e41b31a
commit
7f6b9e1040
|
@ -810,7 +810,9 @@ test_scripts = test/backtrace \
|
||||||
test/enable-throttling \
|
test/enable-throttling \
|
||||||
test/disable-throttling \
|
test/disable-throttling \
|
||||||
test/set-lte-property \
|
test/set-lte-property \
|
||||||
test/test-serving-cell-info
|
test/test-serving-cell-info \
|
||||||
|
test/ims-register \
|
||||||
|
test/ims-unregister
|
||||||
|
|
||||||
|
|
||||||
if TEST
|
if TEST
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import dbus
|
||||||
|
import sys
|
||||||
|
|
||||||
|
bus = dbus.SystemBus()
|
||||||
|
|
||||||
|
if len(sys.argv) == 2:
|
||||||
|
path = sys.argv[1]
|
||||||
|
else:
|
||||||
|
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
||||||
|
'org.ofono.Manager')
|
||||||
|
modems = manager.GetModems()
|
||||||
|
path = modems[0][0]
|
||||||
|
|
||||||
|
imsreg = dbus.Interface(bus.get_object('org.ofono', path),
|
||||||
|
'org.ofono.IpMultimediaSystem')
|
||||||
|
imsreg.Register()
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import dbus
|
||||||
|
import sys
|
||||||
|
|
||||||
|
bus = dbus.SystemBus()
|
||||||
|
|
||||||
|
if len(sys.argv) == 2:
|
||||||
|
path = sys.argv[1]
|
||||||
|
else:
|
||||||
|
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
||||||
|
'org.ofono.Manager')
|
||||||
|
modems = manager.GetModems()
|
||||||
|
path = modems[0][0]
|
||||||
|
|
||||||
|
imsreg = dbus.Interface(bus.get_object('org.ofono', path),
|
||||||
|
'org.ofono.IpMultimediaSystem')
|
||||||
|
imsreg.Unregister()
|
Loading…
Reference in New Issue