Hello!
This is in continuation of our slack conversation with Razvan.
In the example below, when re-routing a call (second B-leg:
sip:[email protected]: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:[email protected]:5060");
b2b_server_new("src1");
b2b_init_request("sbc");
exit;
}
}
route[b2b_logic_reply] {
if ( $rm == "INVITE" && $rs == 408 ) {
b2b_client_new("dst2", "sip:[email protected]: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
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users