[OpenSIPS-Users] loose_route with opensips 3.2 B2B module

xaled at web.de xaled at web.de
Sun Apr 11 18:32:34 EST 2021


would it be possible to respect loose routing on the caller side of B2B module and set route header on the callee side accordingly 

Something like this:

Incoming INVITE:

INVITE sip:+12345678 at;user=phone SIP/2.0
Via: SIP/2.0/TCP;branch=z9hG4bK40365b83fb9732a054d124bb46252151.7242beeb
Route: <sip:orig-test at test.com:5060;transport=tcp;lr>, <sip:605e7788/ at;transport=tcp;lr>

Wanted outgoing INVITE:

INVITE sip:+87654321 at;user=phone SIP/2.0
Via: SIP/2.0/TCP test.com;branch=z9hG4bK40365b83fb9732a054d124bb46252151.7242beeb
Route: <sip:605e7788/ at;transport=tcp;lr>

I tried setting loose_route in both the original route and in the resulting b2b route but without success.

route[b2b_test_logic] {


    if ($rm != "BYE") {
        # for requests other than BYE, no special actions needs to be done,
        # just pass the request to the peer


More information about the Users mailing list