droidian / oFono2MM

Python daemom implementing ModemManager D-Bus API and using oFono to manage the modems.
BSD 3-Clause "New" or "Revised" License
7 stars 8 forks source link

Trying to set connection as active if roaming disabled #21

Open bellegarde-c opened 3 months ago

bellegarde-c commented 3 months ago

Hello, I'm in Indonesia now and all is working as expected (roaming).

But I disable roaming when not needing to save some data usage.

When doing this, oFono2MM is trying to active connection in an infinite loop:

method call time=1714615777.867428 sender=:1.14 -> destination=org.ofono serial=2282901 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.867523 sender=:1.14 -> destination=org.ofono serial=2282902 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.867541 sender=:1.14 -> destination=org.ofono serial=2282903 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.867553 sender=:1.14 -> destination=org.ofono serial=2282904 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.867586 sender=:1.14 -> destination=org.ofono serial=2282905 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.867652 sender=:1.14 -> destination=org.ofono serial=2282906 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.867666 sender=:1.14 -> destination=org.ofono serial=2282907 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.867845 sender=:1.14 -> destination=org.ofono serial=2282908 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.868100 sender=:1.14 -> destination=org.ofono serial=2282909 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.868369 sender=:1.14 -> destination=org.ofono serial=2282910 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.868433 sender=:1.14 -> destination=org.ofono serial=2282911 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.868447 sender=:1.14 -> destination=org.ofono serial=2282912 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.871085 sender=:1.14 -> destination=org.ofono serial=2282913 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872058 sender=:1.14 -> destination=org.ofono serial=2282914 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872087 sender=:1.14 -> destination=org.ofono serial=2282915 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872312 sender=:1.14 -> destination=org.ofono serial=2282916 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872325 sender=:1.14 -> destination=org.ofono serial=2282917 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872338 sender=:1.14 -> destination=org.ofono serial=2282918 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872352 sender=:1.14 -> destination=org.ofono serial=2282919 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872365 sender=:1.14 -> destination=org.ofono serial=2282920 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872404 sender=:1.14 -> destination=org.ofono serial=2282921 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872418 sender=:1.14 -> destination=org.ofono serial=2282922 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872431 sender=:1.14 -> destination=org.ofono serial=2282923 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872445 sender=:1.14 -> destination=org.ofono serial=2282924 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872457 sender=:1.14 -> destination=org.ofono serial=2282925 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872469 sender=:1.14 -> destination=org.ofono serial=2282926 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872483 sender=:1.14 -> destination=org.ofono serial=2282927 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872652 sender=:1.14 -> destination=org.ofono serial=2282928 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872944 sender=:1.14 -> destination=org.ofono serial=2282929 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872957 sender=:1.14 -> destination=org.ofono serial=2282930 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872970 sender=:1.14 -> destination=org.ofono serial=2282931 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872982 sender=:1.14 -> destination=org.ofono serial=2282932 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.872993 sender=:1.14 -> destination=org.ofono serial=2282933 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.873007 sender=:1.14 -> destination=org.ofono serial=2282934 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.875920 sender=:1.14 -> destination=org.ofono serial=2282935 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.876214 sender=:1.14 -> destination=org.ofono serial=2282936 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.876298 sender=:1.14 -> destination=org.ofono serial=2282937 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.876375 sender=:1.14 -> destination=org.ofono serial=2282938 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.876450 sender=:1.14 -> destination=org.ofono serial=2282939 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.876525 sender=:1.14 -> destination=org.ofono serial=2282940 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.876605 sender=:1.14 -> destination=org.ofono serial=2282941 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
method call time=1714615777.876687 sender=:1.14 -> destination=org.ofono serial=2282942 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetContexts
method return time=1714615777.876766 sender=:1.15 -> destination=:1.14 serial=2282384 reply_serial=2282901
method call time=1714615777.923069 sender=:1.14 -> destination=org.ofono serial=2282943 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923183 sender=:1.14 -> destination=org.ofono serial=2282944 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923212 sender=:1.14 -> destination=org.ofono serial=2282945 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923236 sender=:1.14 -> destination=org.ofono serial=2282946 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923260 sender=:1.14 -> destination=org.ofono serial=2282947 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923283 sender=:1.14 -> destination=org.ofono serial=2282948 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923308 sender=:1.14 -> destination=org.ofono serial=2282949 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923332 sender=:1.14 -> destination=org.ofono serial=2282950 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923355 sender=:1.14 -> destination=org.ofono serial=2282951 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923379 sender=:1.14 -> destination=org.ofono serial=2282952 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923402 sender=:1.14 -> destination=org.ofono serial=2282953 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923426 sender=:1.14 -> destination=org.ofono serial=2282954 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923449 sender=:1.14 -> destination=org.ofono serial=2282955 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923473 sender=:1.14 -> destination=org.ofono serial=2282956 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923496 sender=:1.14 -> destination=org.ofono serial=2282957 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923519 sender=:1.14 -> destination=org.ofono serial=2282958 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923542 sender=:1.14 -> destination=org.ofono serial=2282959 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923566 sender=:1.14 -> destination=org.ofono serial=2282960 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923589 sender=:1.14 -> destination=org.ofono serial=2282961 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923612 sender=:1.14 -> destination=org.ofono serial=2282962 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.923635 sender=:1.14 -> destination=org.ofono serial=2282963 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.925254 sender=:1.14 -> destination=org.ofono serial=2282964 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.925425 sender=:1.14 -> destination=org.ofono serial=2282965 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.928991 sender=:1.14 -> destination=org.ofono serial=2282966 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.929348 sender=:1.14 -> destination=org.ofono serial=2282967 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.929502 sender=:1.14 -> destination=org.ofono serial=2282968 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.929653 sender=:1.14 -> destination=org.ofono serial=2282969 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.929800 sender=:1.14 -> destination=org.ofono serial=2282970 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.929947 sender=:1.14 -> destination=org.ofono serial=2282971 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.930398 sender=:1.14 -> destination=org.ofono serial=2282972 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.930775 sender=:1.14 -> destination=org.ofono serial=2282973 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.931153 sender=:1.14 -> destination=org.ofono serial=2282974 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.931540 sender=:1.14 -> destination=org.ofono serial=2282975 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.931858 sender=:1.14 -> destination=org.ofono serial=2282976 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.931892 sender=:1.14 -> destination=org.ofono serial=2282977 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.931919 sender=:1.14 -> destination=org.ofono serial=2282978 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.931944 sender=:1.14 -> destination=org.ofono serial=2282979 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.931971 sender=:1.14 -> destination=org.ofono serial=2282980 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.931998 sender=:1.14 -> destination=org.ofono serial=2282981 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.932024 sender=:1.14 -> destination=org.ofono serial=2282982 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.932158 sender=:1.14 -> destination=org.ofono serial=2282983 path=/ril_0/context1; interface=org.ofono.ConnectionContext; member=SetProperty
   string "Active"
   variant       boolean true
method call time=1714615777.932184 sender=:1.14 -> destination=org.ofono serial=2282984 path=/ril_0; interface=org.ofono.ConnectionManager; member=GetProperties
FakeShell commented 3 months ago

might be because of how roaming goes through 3gpp profile manager feel free to submit a pr and fix this issue