[Top][All Lists]

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

[Linphone-developers] An issue about presence subscription

From: Amin Alinezhad
Subject: [Linphone-developers] An issue about presence subscription
Date: Mon, 8 Jan 2024 11:36:56 +0330

According to my previous email, I realized that there are 2 ways to make a subscription via LibLinPhone.
1. Creating Friend and FriendList and Set the FriendList To the Core.
2. Creating independent subscription via Core.CreateSubscribe().
If I follow first way the LibLinPhone send the blew SIP message :
    Message Header
        Via: SIP/2.0/UDP;branch=z9hG4bK.idSwVuBW2;rport
        From: <sip:300@>;tag=e1m3i8pVF
        To: "Alinezhad2" <sip:222@>
        CSeq: 20 SUBSCRIBE
        Call-ID: lwm-h0ECFQ
        [Generated Call-ID: lwm-h0ECFQ]
        Max-Forwards: 70
        Supported: replaces, outbound, gruu, path
        Event: presence
        Expires: 600
        Contact: <sip:300@;transport=udp>;expires=3600
        User-Agent: Unknown
As you can see there is no "Accept" header field. According to RFC 3261 this header field is required for event packages and in this way we got a "Bad Event" response from our Asterisk server. I guess this way works only with Flexisip.
With the second way we can make a subscription successfully but there is no EventListener to receive the response(NOTIFY  SIP message).

Thank you so much and I'll be glad to read your opinions.

reply via email to

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