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

[reSIProcate-users] During shutdown, SUBSCRIBE with expires 0 does not go through o/ proxy


During application startup, REGISTER and SUBSCRIBE honour the profile setting which includes an o/b proxy.

 

During application shutdown, a SUBSCRIBE 0 and REGISTER 0 are issued as part of the end() processing. However only 1 of those messages works:

 

·         The SUBSCRIBE 0 is sent directly to the Proxy, bypassing the o/b proxy, which is wrong

 

·         The REGISTER 0 works symmetrically to the original REGISTER, going via the o/b proxy.

 

 

I have isolated the difference to this line in DialogUsageManager::endUsingOutboundIfAppropriate

 

 

if (userProfile.hasOutboundProxy() && !findDialog(id))

{

    // Set up o/b proxy

}

 

The clause is skipped since the SUBSCRIBE 0 dialog matches the original SUBSCRIBE, hence does not look like a new dialog.

 

What am I doing wrong?

 

Thanks.