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

[reSIProcate] minor bug in ClientSubscription::end()


Hi, all,

Found a minor bug in ClientSubscription::end()

void  
ClientSubscription::end()
{
   InfoLog (<< "End subscription: " <<
mLastRequest.header(h_RequestLine).uri());
   
   //mDialog.makeRequest(mLastRequest, SUBSCRIBE);
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   mDialog.makeRequest(mLastRequest, SUBSCRIBE);
//xkd-2004-11-4
   mLastRequest.header(h_Expires).value() = 0;   
   send(mLastRequest);
}

the use case is
 1: SUBSCRIBE success
 2: Client actively terminate the subscription before
ANY subscription refresh.

In this case, there is no tag in SUBSCRIBE's TO
header. At server side, this SUBSCRIBE is treated as a
NEW subscription with expires value of zero, and send
back a NOTIFY. The proxy doesnot reply the NOTIFY. I
caught this while testing with Free World Dialup.

Thanks,

kaiduan


______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca