Greetings list, 

I am getting hard time to make kamailio perfectly handle cancels request. 
I am using http_async_client and MSILO to handle push notifications.

Case 1. When B party record exists in location but it is off-line and I send cancel instantly from Party A while kamailio is sending push to wake B Party up. 

modparam("tm", "failure_reply_mode", 3)
modparam("tm", "cancel_b_method", 1)
modparam("tm", "fr_timer", 30000)
modparam("tm", "fr_inv_timer", 120000)

You can see in below picture 407 being generated after some time. 

default.PNG
 What could be the reason of this problem?

any pointer is much appreciated.

Br, Aqs.