[SR-Users] R-R to MS Teams Proxy

Daniel-Constantin Mierla miconda at gmail.com
Thu Feb 11 10:12:18 CET 2021


On 11.02.21 09:52, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> I think the parameters are added even if you use the
>> record_route_preset(), isn't it? If you use add_rr_param() and this
>> function, the params are not showing up in headers?
> Daniel,
>
> That exactly is the problem.  If I call  record_route_preset() and after
> that add_rr_param(), the params are not added.
>
> I just made a test:
>
>             record_route_preset("teams.tutpro.com:8007;transport=tls;bc",
>                 "127.0.0.1:5070;transport=tcp;bc");
>             add_rr_param(";r2=on");
>
> and this is what is sent out:
>
> Record-Route: <sip:teams.tutpro.com:8007;transport=tls;bc;lr>
> Record-Route: <sip:127.0.0.1:5070;transport=tcp;bc;lr>

The code of add_rr_param() used after the record-route header is added
indicates that the values should be added. I didn't have the time to
check what is with the cached params if add_rr_param() used beore the
record-route header is added. I will try to reproduce.

On your specific case, your probably can just add ";r2=on" in the params
of the record_route_preset() function.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla




More information about the sr-users mailing list