[OpenSIPS-Users] b2b_bridge_retry() does not change the To header
Denys Pozniak
denys.pozniak at gmail.com
Fri Nov 15 09:35:21 UTC 2024
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20241115/24f4e21b/attachment.html>
More information about the Users
mailing list