< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] PUBLISH's ETag


Noiile, Hello
 
I found that entity-tag can not be changed, because DUM use it to find the corresponding ServerPublication. If ServerPublication use different entity-tag in 2xx, dum will response 412 for next PUBLISH request.
But I can not understand, why the entity-tag can not be changed ?
 
Code in DialogUsageManager::processPublish(const SipMessage& request)
   if (request.exists(h_SIPIfMatch))
   {
      ServerPublications::iterator i = mServerPublications.find(request.header(h_SIPIfMatch).value());
      if (i != mServerPublications.end())
      {
         i->second->dispatch(request);
      }
      else
      {
         SipMessage response;
         makeResponse(response, request, 412);
         send(response);
      }
   }
 
2005-9-21
----- Receiving the following content -----
Receiver: Noiile
Time: 2005-09-20, 17:43:33
Subject: [reSIProcate] PUBLISH's ETag

resiprocate-devel, Hello
 
According to RFC3903, the header entity-tag should different for each PUBLISH request in the Publication, but dum send response for PUBLISH use the same ETag, right?
Maybe it should be changed by Application, but the interface ServerPublication::getEtag() return const, it confuse me. 
and I think it should be implemented in DUM. 
 

2005-9-20