[reSIProcate] Smarter accept header validation in dum?

Scott Godin slgodin at icescape.com
Fri Jan 21 15:07:57 CST 2005


I agree with you, and I like your suggestion.  I will add this to my task
list. 

For now - you could just disable Accept validation completely - by calling
profile method:
validateAcceptEnabled() = false;

-----Original Message-----
From: Scott Zuk [mailto:szuk at telusplanet.net] 
Sent: Thursday, January 20, 2005 1:23 AM
To: resiprocate-devel at list.sipfoundry.org
Subject: [reSIProcate] Smarter accept header validation in dum?

Hi,

I'm trying to get my dum based program to talk with windows messenger,
however 
the way the dum handles accept header validation causes all subscribe 
requests sent by windows messenger to be rejected.

WM sends subscribes with an Accept header containing the mime types 
"text/xml+msrtc.pidf" "application/xpidf+xml" and "application/pidf+xml" in 
that order.  My app is set to reply using only "application/pidf+xml" so in 
theory this should be fine.  The problem though is that 
DialogUsageManager::validateAccept() sends a 406 failure on the first 
unrecognized mime type it sees, even if there is a valid one later in the 
list.  Is this the intended behaviour?

I think the dum should take into account the message type when determining 
valid accept mime types.  Adding a method to Profile that would allow 
something like
addSupportedMimeType(Mime("application", "pidf+xml"), SUBSCRIBE) might be 
usefull.  Are there any current plans to implement something like this in 
resiprocate?

Thanks,
~Scott
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel at list.sipfoundry.org
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel



More information about the resiprocate-devel mailing list