[OpenSIPS-Users] add_rr_param(";r2=on"); not adding

James Hogbin james at ip-sentinel.com
Mon May 18 21:26:11 EST 2020


My script has

if (is_method("INVITE") && !has_totag() && check_source_address(0)) {
        xlog("[ROUTE]Incoming call to MS: RURI=$ruri, SI=$si, M=$rm\n");
        trace("tid");
        create_dialog();
        do_routing(1);  
        strip(1);
        prefix("+44");
        record_route_preset("sbc.ip-sentinel.com:5091;transport=tls", "10.0.0.5:5060");
        add_rr_param(";r2=on");
        route(relay);

Which is turning this:

James Hogbin
Director 
 
IP Sentinel 
t. +44 (0)20 3011 4150
m. +44 7786910895
w. https://www.ip-sentinel.com

INVITE sip:08435577721 at sbc.ip-sentinel.com SIP/2.0
Via: SIP/2.0/UDP 13.80.245.144:5080;rport;branch=z9hG4bK1tDv8cQgjXXaj
Max-Forwards: 68
From: "James Hogbin" <sip:+442030114146 at 13.80.245.144>;tag=8tKmNZc4FpF3D
To: <sip:08435577721 at sbc.ip-sentinel.com>

Into:

INVITE sip:+448435577721 at sip.pstnhub.microsoft.com SIP/2.0
Record-Route: <sip:sbc.ip-sentinel.com:5091;transport=tls;ftag=8tKmNZc4FpF3D;lr;did=688.48bca672>
Record-Route: <sip:10.0.0.5:5060;ftag=8tKmNZc4FpF3D;lr;did=688.48bca672>
Via: SIP/2.0/TLS 137.117.136.143:5091;branch=z9hG4bKb195.04f15415.0
Via: SIP/2.0/UDP 13.80.245.144:5080;received=13.80.245.144;rport=5080;branch=z9hG4bK1tDv8cQgjXXaj
Max-Forwards: 68
From: "James Hogbin" <sip:+442030114146 at 13.80.245.144>;tag=8tKmNZc4FpF3D
To: <sip:08435577721 at sbc.ip-sentinel.com>

BUT the Record routes do not have ;r2=on in them

I think this is causing an issue with ACK & BYE from the PBX hanging off the 5050 port

IP Sentinel Disclaimer 
This communication is for the information of the person to whom it has been delivered and neither it nor any of its contents should be passed on to or used by any other person. IP Sentinel Ltd is a limited company registered in England and Wales under Registered Number 08648097. Registered Office: Newnhams Wood, Horsted Keynes, West Sussex, RH17 7BT. 
Disclaimer: Q3dhRSrm_disclaimer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200518/9fec5dee/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 120051822261400313.png
Type: image/png
Size: 3317 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20200518/9fec5dee/attachment.png>


More information about the Users mailing list