<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
 </head><body style="">
 
 
  <div>
   Hello,
  </div> 
  <div>
    
  </div> 
  <div>
   I´m searching for a way to keep track about success or failure of locally generated SUBSCRIBE transactions, which are typically triggered by the RLS module. In case that a subscription is rejected by the subscribee with any negative response code or the transaction is timing out, I have to trigger a specific action (e.g. sending a PUBLISH message to another user agent). This seems to be not so easy....
  </div> 
  <div>
    
  </div> 
  <div>
   As Kamailio does not support referencing a failure_route to locally generated requests, I had the idea to "forward()" locally generated requests in the event_route "tm:local-request" to itself and handle the forwarded requests in the standard request_route, which would offer all usual options. But that seems not to be supported / allowed by Kamailio, as I have in practical tests (1) an outgoing request that is sent to the original Destination-URI (with a malformed "Content-Length" SIP hdr) and (2) the second request that is sent to the manual target (loop).
  </div> 
  <div>
    
  </div> 
  <div>
   I´ve found in the mailing list that elder Kamailio versions did not support any common way for this feature. However, can anybody give m a hint if / how this could eventually be solved with the event_route or in any alternative route? It seems that the Kamailio internally generated requests are still below the radar of TM or any other route blocks except tm:local-request.....
  </div> 
  <div>
    
  </div> 
  <div>
   regards,
  </div> 
  <div>
   Klaus
  </div> 
  <div>
    
  </div>
 
</body></html>