<div dir="ltr">Hello!<div><br></div>I would appreciate any ideas on how to avoid using this function (b2b_bridge_retry).<br>So far the only thing that comes to mind is to loop the traffic: failure rerouting to do on classic opensips1* and loop the traffic back and pass it through b2b on opensips2*...<br><br>I created a feature request for tracking:<br><a href="https://github.com/OpenSIPS/opensips/issues/3517">https://github.com/OpenSIPS/opensips/issues/3517</a><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 15 нояб. 2024 г. в 10:35, Denys Pozniak <<a href="mailto:denys.pozniak@gmail.com">denys.pozniak@gmail.com</a>>:<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"><div>Hello!<br><br>This is in continuation of our slack conversation with Razvan.</div><div>In the example below, when re-routing a call (second B-leg: <a href="http://sip:101@127.0.0.2:5060" target="_blank">sip:101@127.0.0.2:5060</a>) , the To header is not updated by b2b_bridge_retry() and all data in it is replicated from the original A-leg.</div><div>If you need help with reproducing or need logs/pcap traces, I can send privately.</div><div><br></div><div><br>route{<br> if ( is_method("INVITE") && !has_totag() ) {<br> b2b_client_new("dst1", "<a href="http://sip:101@127.0.0.1:5060" target="_blank">sip:101@127.0.0.1:5060</a>");<br> b2b_server_new("src1");<br> b2b_init_request("sbc");<br> exit;<br> }<br>}<br><br>route[b2b_logic_reply] {<br> if ( $rm == "INVITE" && $rs == 408 ) {<br> b2b_client_new("dst2", "<a href="http://sip:101@127.0.0.2:5060" target="_blank">sip:101@127.0.0.2:5060</a>");<br> b2b_bridge_retry("dst2");<br> }<br>}</div><div><br></div><div><br></div><div>version: opensips 3.5.2 (x86_64/linux)<br>flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>poll method support: poll, epoll, sigio_rt, select.<br>git revision: 8a183b0c0<br>main.c compiled on with gcc 9<br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><br><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div></div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><br><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div>