[Top][All Lists]

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

Re: [Linphone-developers] Linphone doesn't send Accept header in SUBSCRI

From: Tom Glindmeier
Subject: Re: [Linphone-developers] Linphone doesn't send Accept header in SUBSCRIBE
Date: Tue, 19 Apr 2016 10:22:42 +0200

If I understand the RFC correctly an Accept header is optional and if not set, the default format is application/pidf+xml. By insisting on an Accept header, Asterisk seems to be stupid here.

I fixed the problem with a work around: On the Kamailio proxy sitting infront of Asterisk I manipulate the SUBSCRIBE coming from Linphone. I add "Accept: application/pidf+xml" and now Asterisk is happy with the SUSBCRIBE and response to Linphone telling it the online/offline status of the requested buddy -> yeah!

But now there is another problem: If the buddy is in a call Asterisk notifies Linphone correctly, but Linphone doesn't change the status from Online to On the Phone.

This is the NOTIFY that is sent to LInphone

U ->
NOTIFY sip:address@hidden:5060 SIP/2.0.
Via: SIP/2.0/UDP;branch=z9hG4bK661a.66bcdf18558204cb09fc5bae843c4261.0.
Via: SIP/2.0/UDP;rport=5060;branch=z9hG4bK0242b3e4.
Max-Forwards: 69.
From: "Phone 1" <sip:address@hidden>;tag=as2e6575b5.
To: <sip:address@hidden>;tag=ruWFRcIJN.
Contact: <sip:address@hidden:5060>.
Call-ID: 9~afV87WWN.
CSeq: 103 NOTIFY.
User-Agent: my-provider.
Subscription-State: active.
Event: presence.
Content-Type: application/pidf+xml.
Content-Length: 539.
<?xml version="1.0" encoding="ISO-8859-1"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
<note>On the phone</note>
<tuple id="1">
<contact priority="1">sip:address@hidden</contact>

I changed IPs and domain.

Could you please tell me what Linphone expects in order change the status of the buddy from "Online" to "On the phone"?


2016-04-13 19:18 GMT+02:00 Tom Glindmeier <address@hidden>:
Hi List,

I recently installed Linphone on Mac. It is registered to Asterisk 11.21.0. I added a contact with a sip address. I can see the SUBSCRIBE that is generated by Linphone on my Asterisk box, but it doesn't contain an Accept header. I see the following warning in Asterisk log:

SUBSCRIBE failure: no Accept header: pvt: stateid: -1, laststate: 0, dialogver: 0, subscribecont: '', subscribeuri: ''

Asterisk response with 489 Bad Event. All contacts in Linphone appear as offline.

Should I somewhere report a bug?


reply via email to

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