linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] Wrong statuses in user list


From: D . Sonin
Subject: [Linphone-developers] Wrong statuses in user list
Date: Thu, 26 Jan 2012 14:03:08 +0400
User-agent: SquirrelMail/1.4.22

Добрый день! Я пользуюсь вашим продуктом Linphone v3.5.0 для Microsoft
Windows, для подключения к voip-серверу Asterisk v1.8.

В LinPhone неверно отображаются статусы пользователей в списке
друзей(friends) - все пользователи со статусом оффлайн.
Происходит это по тому, что LinPhone отправляет на сервер Asterisk
неправильный XML-запрос SUBSCRIBE. Из-за этого на сервере не создаётся
соответствующий subscription.

Лог Asterisk при получении SUBSCRIBE запроса от LinPhone:
WARNING[4074]: chan_sip.c:24106 handle_request_subscribe: SUBSCRIBE
failure: no Accept header: pvt: stateid: -1, laststate: 0, dialogver: 0,
subscribecont: 'status', subscribeuri: ''
Really destroying SIP dialog '19570' Method: SUBSCRIBE

Если посмотреть лог подробнее, то видно, что в XML-запросе от LinPhone
действительно нету заголовка "Accept".
Для сравнения в SUBSCRIBE-запросе от другого софтфона Jitsi заголовок
"Accept" есть и Asterisk его успешно обрабатывает. В результате создаётся
subscription и в Jitsi статусы пользователей отображаются корректно.

Есть ли какая нибудь дополнительная настройка LinPhone, которая решит эту
проблему?

Прикладываю лог сервера Asterisk - SUBSCRIBE запросы от LinPhone и Jitsi.

------------------------------------------------

Good day! I'm using your product Linphone v3.5.0 for Microsoft Windows, to
connect to voip-server Asterisk v1.8.

LinPhone incorrectly displays the status of users in the friends list -
all users has status "off-line".
This is because that LinPhone sends to the server Asterisk incorrect
XML-query SUBSCRIBE. The following occurs the server does not create the
"subscription".

When receiving a SUBSCRIBE request from the LinPhone, Asterisk said:
>WARNING [4074]: chan_sip.c: 24 106 handle_request_subscribe: SUBSCRIBE
failure: no Accept header: pvt: stateid: -1, laststate: 0, dialogver: 0,
>subscribecont: 'status', subscribeuri:''
>Really destroying SIP dialog '19570 'Method: SUBSCRIBE

When I look at the log in detail, I see that XML-request from LinPhone
really don't have the "Accept" header.
For comparison, the SUBSCRIBE-request from the another softphone Jitsi has
"Accept" header and it handles by Asterisk successfully. In result
Asterisk creates a "subscription" and friends statuses are displayed
correctly.

Is there any additional configuration LinPhone, which will solve this
problem for me?

I attach the log of server Asterisk when it receive SUBSCRIBE XML-requests
from LinPhone and Jitsi.

==========================LinPhone============================
<--- SIP read from UDP:192.168.90.100:5060 --->
SUBSCRIBE sip:address@hidden SIP/2.0
Via: SIP/2.0/UDP 192.168.90.100:5060;rport;branch=z9hG4bK24941
From: <sip:address@hidden>;tag=3831
To: "user" <sip:address@hidden>
Call-ID: 19570
CSeq: 20 SUBSCRIBE
Contact: <sip:address@hidden>
Max-Forwards: 70
User-Agent: Linphone/3.5.0 (eXosip2/3.6.0)
Expires: 600
Event: presence
Content-Length: 0

<------------->
--- (12 headers 0 lines) ---
==========================LinPhone============================


============================Jitsi=============================
<--- SIP read from UDP:192.168.90.100:5060 --->
SUBSCRIBE sip:address@hidden SIP/2.0
Call-ID: address@hidden:0:0:0:0:0:0:0
CSeq: 1 SUBSCRIBE
From: "user" <sip:address@hidden>;tag=5ffd5637
To: <sip:address@hidden>
Via: SIP/2.0/UDP
192.168.90.100:5060;branch=z9hG4bK-363833-9e6dbe181c55762384a6185f52fc241e
Max-Forwards: 70
Contact: "D.Sonin"
<sip:address@hidden:5060;transport=udp;registering_acc=voip_srv_tltsu_ru>
User-Agent: Jitsi1.0-beta1-nightly.build.3689Windows 7
Event: presence
Accept: application/pidf+xml
Expires: 3600
Content-Length: 0

<------------->
--- (13 headers 0 lines) ---
============================Jitsi=============================






reply via email to

[Prev in Thread] Current Thread [Next in Thread]