Opened 4 years ago
Closed 4 years ago
#74 closed enhancement (fixed)
Should send PUBLISH "closed" when switching off
| Reported by: | ibc | Owned by: | vadim |
|---|---|---|---|
| Priority: | major | Milestone: | QuteCom 2.3 |
| Component: | phapi | Version: | 2.2-RC3 |
| Keywords: | presence | Cc: |
Description
When the user switches off the softphone, QuteCom should send a PUBLISH with body:
<status><basic>closed</basic></status>
If not, it will remain as "online" for other users until the previous PUBLISH expires. Since a presence server could allow PUBLISH with long expire value (1 hour), the user would appear as "online" during an hour after switching off.
Change History (8)
comment:1 Changed 4 years ago by vadim
- Milestone changed from QuteCom 2.2-RC2 to QuteCom 2.3
comment:2 Changed 4 years ago by laurent
comment:3 Changed 4 years ago by ibc
Note I'm using 2.2 version, I don't know if it's fixed in 2.3.
However I sure that PUBLISH is sent during startup, but when I do "log off" or "quit", then QuteCom doesn't send a PUBLISH, neither a REGISTER (with Expires: 0 to un-register). Both PUBLISH and REGISTER should be sent.
Obviously if I send a sip flow capture ti would be empty :)
comment:4 Changed 4 years ago by laurent
I'm using qutecom-2.2. it send PUBLISH with body <status><basic>closed</basic> and *UNREGISTER*. Are you sure you are logged ?
comment:5 Changed 4 years ago by ibc
Oh, sure! I'm monitorizing all the SIP traffic. I perfectly see the initial REGISTER, PUBLISH's and SUBSCRIBE's. It works correctly (I get NOTIFY's when status of a subscribed account changes, I do calls, send MESSAGE's, change my presence status by sending PUBLISH... all works).
But when I press "log off" or directly "quit" there is no PUBLISH or REGISTER.
BTW note I'm using the Linux version (Ubuntu Hardy package from http://ppa.launchpad.net/cavedon/ppa/ubuntu).
comment:6 Changed 4 years ago by laurent
ok ibc,
I was using win32 version, i will take a look on linux ...
comment:7 Changed 4 years ago by ibc
I'm testing now the Windows 2.2 version and something different occurs. Yes, in Windows it sends PUBLISH when switching off, but it sends two PUBLISH:
- The first one with "Expires: XXXXX" (non zero) and "SIP-If-Match" header mathing the value received in the initial PUBLISH (when switching on), and empty body.
- The second one with no "SIP-If-Match" and body (status close).
Unfortunatelly, since Qutecom sends various PUBLISH during start up (so it generates two presentities in presence server) one presentity remain (as "open" status) when switching off.
Bug related: #76
comment:8 Changed 4 years ago by ibc
- Resolution set to fixed
- Status changed from new to closed
It seems that in 2.2-RC4 it sends PUBLISH (with state "offline") and also reacts when receiving 401/407 (so resends the PUBLISH with credentials).
However, still sends *too much* PUBLISH (bug #76).

When i log-off, Qutecom send a PUBLISH with body <status><basic>closed</basic></status>.
Can you send an xcap trace with login/logoff ?