<div dir="ltr">Hi again.<div><br></div><div>While experimenting a bit here, I ended up using this kind of dirty trick:</div><div><br></div><div>...</div><div>                remove_hf_value("Via[-1].rport");<br>                msg_apply_changes();<br></div><div>...</div><div><br></div><div><br></div><div>but I still find it useful having something like unforce_rport() or ignore_rport() to be available just to trigger the ignore 'rport' param if present in Via header.</div><div>Looking forward to hear from you all.</div><div><br></div><div>Cheers,</div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--<br>Nuno Miguel Reis<br>Departamento de Engenharia Informática  <br>Faculdade de
    Ciências e Tecnologia  <br>Universidade de Coimbra<br></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 11, 2021 at 4:04 AM Nuno Miguel Reis <<a href="mailto:nmreis@student.dei.uc.pt">nmreis@student.dei.uc.pt</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi guys.<div><br></div><div>I've a scenario here where I'm receiving inbound traffic from a Mitel PBX on a LAN environment with a bunch of router hops between kamailio and the Mitel. Sometimes, not always, I get traffic from the MItel PBX where the source port is changed in transit (some kind of NAT, still don't know where exactly) from 5060 to a dynamic port different from 5060. Every INVITE comes with rport in via header as:</div><div><br></div><div>..</div><div>Via: SIP/2.0/UDP 10.21.252.35:5060;branch=z9hG4bK-524287-1---d6bac01809527627<b>;rport</b><br></div><div>..</div><div><br></div><div>when this happens kamailio sends all the replies to the $si:$sp symmetrically (force_rport behavior) and I would like to force the opposite instead, making it asymmetric and sending the traffic to $si:5060 everytime.</div><div><br></div><div>I'm having a hard time forcing the <b>unforce</b>_rport() behavior. Does anyone have a good suggestion for this?</div><div>Looking forward to hear from you.</div><div><br></div><div>Cheers,</div><div><br clear="all"><div><div dir="ltr">--<br>Nuno Miguel Reis<br>Departamento de Engenharia Informática  <br>Faculdade de
    Ciências e Tecnologia  <br>Universidade de Coimbra<br></div></div></div></div>
</blockquote></div>