[OpenSIPS-Users] b2b_bridge_retry() does not change the To header

Denys Pozniak denys.pozniak at gmail.com
Wed Nov 20 08:38:45 UTC 2024


Hello!

I would appreciate any ideas on how to avoid using this function
(b2b_bridge_retry).
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*...

I created a feature request for tracking:
https://github.com/OpenSIPS/opensips/issues/3517



пт, 15 нояб. 2024 г. в 10:35, Denys Pozniak <denys.pozniak at gmail.com>:

> Hello!
>
> This is in continuation of our slack conversation with Razvan.
> In the example below, when re-routing a call (second B-leg:
> sip:101 at 127.0.0.2:5060) , the To header is not updated by
> b2b_bridge_retry() and all data in it is replicated from the original A-leg.
> If you need help with reproducing or need logs/pcap traces, I can send
> privately.
>
>
> route{
>   if ( is_method("INVITE") && !has_totag() ) {
>     b2b_client_new("dst1", "sip:101 at 127.0.0.1:5060");
>     b2b_server_new("src1");
>     b2b_init_request("sbc");
>     exit;
>   }
> }
>
> route[b2b_logic_reply] {
>     if ( $rm == "INVITE" && $rs == 408 ) {
>         b2b_client_new("dst2", "sip:101 at 127.0.0.2:5060");
>         b2b_bridge_retry("dst2");
>     }
> }
>
>
> version: opensips 3.5.2 (x86_64/linux)
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
> Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535
> poll method support: poll, epoll, sigio_rt, select.
> git revision: 8a183b0c0
> main.c compiled on  with gcc 9
>
> --
>
> BR,
> Denys Pozniak
>
>
>

-- 

BR,
Denys Pozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20241120/097e0ede/attachment.html>


More information about the Users mailing list