Re: [reSIProcate-users] Bug report
Hi, does there have anyone take a look at this issue ?
Here is the SUBSCRIBE message:
SUBSCRIBE
sip:testuser1@xxxxxxxxxxxxxxxxxxxx:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.128:27706;branch=z9hG4bK-d8754z-b753c60c50748940-1---d8754z-;rport
Max-Forwards: 70
Contact: <
sip:testuser2@xxxxxxxxxxxxxx:1506>
To: "testuser1"<
sip:testuser1@xxxxxxxxxxxxxxxxxxxx:5060>
From: "testuser2"<
sip:testuser2@xxxxxxxxxxxxxxxxxxxx:5060>;tag=5a01271d
Call-ID: MWZiODcxNWU3YTg0NDdmMjY2NzU2MGVjNjg3Y2Y3Y2M.
CSeq: 1 SUBSCRIBE
Subject:
Expires: 3600
Accept: multipart/related, application/rlmi+xml, application/pidf+xml
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: Bria release 2.3 stamp 47296
Event: presence
Content-Length: 0
On Thu, Jul 24, 2008 at 3:39 PM, Karlsson <
boost.regex@xxxxxxxxx> wrote:
Hi all, I think I found a bug:
1: I using the counterpath Bria to send a presence SUBSCRIBE to my UA.
2: I use wireshark to capture the SUBSCRIBE message, saw it has Subject header, but this header value is empty.
3: onNewSubscription(ServerSubscriptionHandle h, const SipMessage& sub) call back is fired, then I use this code to access the Subject header:
Data subject;
if (sub.exists(h_Subject)==true && sub.header(h_Subject).value().empty()==false)
{
subject = sub.header(h_Subject).value();
}
When running to sub.header(h_Subject).value().empty()==false, the VC2005 debuger go to dialogusagemanager.cxx line 1778:
catch (BaseException& e)
{
SipMessage failure; <----------- it's go to here
makeResponse(failure, request, 400, e.getMessage());
failure.header(h_AcceptLanguages) = getMasterProfile()->getSupportedLanguages();
sendResponse(failure);
}
If the subject header value is not empty, then all are ok.
thanks