Use the "local_route" for that

https://www.opensips.org/Documentation/Script-Routes-3-1#toc6

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Bootcamp 2021 online
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 4/14/21 2:54 PM, [email protected] wrote:
Hi Bogdan,

I got it, the actual question is how can I add new headers (not only Route, but 
any header) with values to the outgoing B2B INVITE request. Please see my other 
mail.

Thanks,
Xaled

-----Original Message-----
From: Bogdan-Andrei Iancu <[email protected]>
Sent: Wednesday, April 14, 2021 12:30 PM
To: [email protected]; [email protected]
Subject: Re: [OpenSIPS-Users] loose_route with opensips 3.2 B2B module

Hi Xaled,

The record routing is incompatible with the b2b, by SIP definition. The record 
routing is done only by a SIP proxy, not by a SIP b2b2.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
    https://www.opensips-solutions.com
OpenSIPS Bootcamp 2021 online
    https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 4/11/21 9:32 PM, [email protected] wrote:
Hi,

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:[email protected];user=phone SIP/2.0
Via: SIP/2.0/TCP
4.3.2.1:5060;branch=z9hG4bK40365b83fb9732a054d124bb46252151.7242beeb
Route: <sip:[email protected]:5060;transport=tcp;lr>,
<sip:605e7788/[email protected]:5060;transport=tcp;lr>

Wanted outgoing INVITE:

INVITE sip:[email protected];user=phone SIP/2.0
Via: SIP/2.0/TCP
test.com;branch=z9hG4bK40365b83fb9732a054d124bb46252151.7242beeb
Route: <sip:605e7788/[email protected]:5060;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] {

<------>loose_route();

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

Thanks,
Xaled


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to