close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "hg": No module named repo). Look in the Trac log for more information.

Opened 4 years ago

Closed 4 years ago

#59 closed defect (fixed)

SIP: doesn't handle suspend w/ network change

Reported by: jamincollins Owned by: vadim
Priority: minor Milestone: QuteCom 2.2-RC4
Component: 3rd party libs Version: 2.2-RC3
Keywords: sip suspend network Cc:

Description

Qutecom doesn't appear to properly handle/detect having been suspended and resuming with a network change.

As far as I can tell the SIP registration is updated correctly, but any attempted call results in no audio until the application is fully exited and restarted.

Qutecom should more gracefully detect network changes such as this.

Change History (12)

comment:1 Changed 4 years ago by vadim

Can you please provide some more info about your system? Is it windows, linux, desktop, portable?

comment:2 Changed 4 years ago by jamincollins

Linux, Ubuntu 8.10, Thinkpad T61p. I frequently suspend the unit when traveling from home to work and vice versa. So, the unit will suspend on one network and resume on another. Network Manager handles all the connection changes.

comment:3 Changed 4 years ago by vadim

Can you please do the following 2 tests:

launch in the shell window:

apic_listen >samenet.log

then suspend and resume ON THE SAME NET

And a second one:

apic_listen >anothernet.log

Then suspend and resume on DIFFERENT network

and post here the samenet.log and anothernet.log

Thanks

comment:4 Changed 4 years ago by jamincollins

do you perhaps mean acpi_listen?

If so, I've done the same network suspend and resume, but there's not much in the file.

$ cat samenet.log
ibm/hotkey HKEY 00000080 00001004
processor CPU0 00000081 00000000
processor CPU1 00000081 00000000

comment:5 Changed 4 years ago by vadim

  • Milestone changed from QuteCom 2.2-RC2 to milestone3

After further investigation it seems that the best way is to install a resume script in the /etc/acpi/resume.d directory sending some kind of DBus message to QuteCom upon resume...

Any volunteers?

comment:6 Changed 4 years ago by jamincollins

Why go with a resume script? That would still (presumably) leave Qutecom unable to handle general network changes. Say, for example, a user has Qutecom running and switches wireless networks or moves from wireless to wired what happens? If Qutecom were to instead monitor the Network Manager dbus state it would be able to proactively adjust to network changes.

comment:7 Changed 4 years ago by vadim

Excellent idea!!!
Do you have any pointers on docs about related DBus events?

comment:8 Changed 4 years ago by jamincollins

For Network Manager:
http://people.redhat.com/dcbw/NetworkManager/NetworkManager%20DBUS%20API.txt
http://projects.gnome.org/NetworkManager/developers/spec.html

Looks like qutecom is mostly written in C++, not a language I'm very good at. I did however find this tutorial:
http://dbus.freedesktop.org/doc/dbus-tutorial.html

It also appears that there is some python in the archive. A python dbus tutorial:
http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html

comment:9 Changed 4 years ago by vadim

Thinking some more about it.

Actually QuteCom detect network connectivity and loss pretty well, the only problem will is this suspend/resume scenario...
So maybe my idea about QuteCom specific resume script will be simpler to implement


comment:10 Changed 4 years ago by vadim

  • Status changed from new to assigned

I've commited a fix to this issue: http://hg.qutecom.com/qutecom-2.2/rev/0c9ef25e8554

PLease check it...

comment:11 Changed 4 years ago by cervajs

  • Milestone changed from milestone3 to QuteCom 2.2-RC4

Milestone milestone3 deleted

comment:12 Changed 4 years ago by vadim

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.