[Kamailio-Users] How to avoid RtpProxy failure when 183 arrives after a CANCEL

Daniel-Constantin Mierla miconda at gmail.com
Fri May 29 17:52:31 CEST 2009


Hello,

On 05/29/2009 06:48 PM, Iñaki Baz Castillo wrote:
> Hi, I'm experimenting this real case very often:
>
> - Kamailio invokes "force_rtproxy()" for an INVITE and sets a
>   flag(USE_RTPPROXY).
>
> - A CANCEL arrives (so I invoke "unforce_rtpproxy()").
>
> - Inmediatelly a 183 arrives from downstream (before the UAS receives
>   the CANCEL generated by Kamailio).
>
> - flag(USE_RTPPROXY) is set so I invoke "force_rtpproxy()" for the 183
>   response, and obviously I get this error from RtpProxy module (since the
>   RtpProxy session was ended upon recepit of the CANCEL):
>
>     ERROR:nathelper:force_rtp_proxy: incorrect port 0 in reply from rtp proxy
>
>
> Yes, nothing wrong happens, but I would like to avoid this error in the logs. 
> Unfortunatelly when processing the incoming CANCEL kamailio cannot unset a 
> flag in the related INVITE transaction, so I cannot do 
> "resetflag(USE_RTPPROXY)" when receiving the CANCEL (it's not useful at all).
>
> So I cannot guess any way to do it, suggestions?
>   
t_was_cancelled() in reply route?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com/





More information about the sr-users mailing list