<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">What if you do:<div><br></div><div>remove_hf(“Record-Route”);</div><div><br></div><div>?<br><br><div id="AppleMailSignature" dir="ltr">—<div>Sent from mobile, with due apologies for brevity and errors.</div></div><div dir="ltr"><br>On Apr 27, 2019, at 7:00 PM, Sergiu Pojoga <<a href="mailto:pojogas@gmail.com">pojogas@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi ppl,<br><div><br></div><div>After a branch route fails, I need to re-evaluate the next destination and adjust RR parameters, if need be, like for example adjust the nat=yes|priv.</div><div><br></div><div>failure_route[MANAGE_PSTN_FAILURE] {<br></div><div>...</div><div>remove_record_route();<br></div><div>record_route();<br></div><div>route(NATMANAGE);<br></div><div>...</div><div>route(RELAY);</div><div>}</div><div><br></div><div>The result is that the new branch is stripped of "Record-Route: <sip:MYIP>", but the params remained. Moreover, record_route hasn't been re-added as instructed in the failure route.</div><div><br></div><div>Request headers of the initial branch that will eventually timeout and fail:</div><div><br></div><div>2019/04/27 18:29:18.034992 <a href="http://10.22.0.1:5060">10.22.0.1:5060</a> -> <a href="http://10.22.0.100:5060">10.22.0.100:5060</a>                                                                                                                                                                                                                 <br></div><div><div>INVITE <a href="mailto:sip%3A1514XXXXXXX@10.22.0.100">sip:1514XXXXXXX@10.22.0.100</a> SIP/2.0                                                                                                                                                                                                                                      </div><div>Record-Route: <sip:10.22.0.1;r2=on;lr=on;did=9e2.3dd2;nat=priv></div><div>Record-Route: <sip:65.XX.XX.1;r2=on;lr=on;did=9e2.3dd2;nat=priv></div></div><div><br></div><div>New request branch after failure:</div><div><br></div><div><div>2019/04/27 18:29:19.538292 65.XX.XXX.1:5060 -> 65.XX.XX.2:5060</div><div>INVITE sip:1514XXXXXXX@65.XX.XX.2 SIP/2.0</div><div><font color="#ff0000">;lr=on;did=9e2.3dd2;nat=priv></font></div></div><div><br></div><div><br></div><div>kamailio -v<br></div><div><div>version: kamailio 5.1.6 (x86_64/linux) 7d1964</div></div><div><br></div><div>Much obliged.</div><div>--Sergiu</div><div><br></div></div></div></div></div></div></div></div></div></div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>Kamailio (SER) - Users Mailing List</span><br><span><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a></span><br><span><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br></div></blockquote></div></body></html>