<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi, Walter<div><br></div><div>Yes, companies are added in some other system so the list is dynamic and opensips here is only a SBC without connections to any outer database. Subdomain is passed in a custom header and pushed to Record-Route.</div><div><br></div><div>I've done some more testing. There is also a problem with sequential requests from MS Teams in SIP-to-MS calls. They come with Route: <a href="http://company1.sbc.mycompany.com:5061">company1.sbc.mycompany.com:5061</a> Route hdr and loose_route throws ERROR "Different number of routes found in msg" because opensips doesn't detect domain <a href="http://company1.sbc.mycompany.com">company1.sbc.mycompany.com</a> as local. The problem can be resolved with the domain module by adding domains to a database. Unfortunately I will need to sync the domain list in this case.</div><div><br></div><div>In the end I've found that those problems are solved in OpenSIPS 3.6. It has a new option ACCEPT_SUBDOMAIN on socket :). But I am not ready to move to 3.6 (3.4 is in use currently).</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">чт, 21 авг. 2025 г. в 14:12, Walter Schober <<a href="mailto:walter.schober@neotel.at" target="_blank">walter.schober@neotel.at</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hi Andrew!
<div><br>
</div>
<div>I guess the socket „company1.sbc.mycompany.com:5061“ is not known to opensips. Since there is no socket name alias (or is it meanwhile?) like in kamailio you will need to set the socket manually. Pls correct me, if Im wrong.</div>
<div><br>
</div>
<div>br</div>
<div>Walter</div>
<div><br>
<div>
<blockquote type="cite">
<div>Am 21.08.2025 um 12:11 schrieb Andrew <<a href="mailto:andrey55555@gmail.com" target="_blank">andrey55555@gmail.com</a>>:</div>
<br>
<div>
<div dir="ltr">Hi, all<br>
I am working on an MS Teams SBC for multiple tenants.<br>
I use OpenSIPS without topology hiding so I add Record-Route headers. For each tenant I have to add its own domain like
<a href="http://company1.sbc.mycompany.com/" target="_blank">company1.sbc.mycompany.com</a> and so on. Domains are correctly resolved to the same IP as
<a href="http://sbc.mycompany.com/" target="_blank">sbc.mycompany.com</a>. They should be subdomains of
<a href="http://sbc.mycompany.com/" target="_blank">sbc.mycompany.com</a> . The main domain <a href="http://sbc.mycompany.com/" target="_blank">
sbc.mycompany.com</a> should also be added when receiving calls from MS so that they can send us sequential requests (like BYE).<br>
I use record_route_preset("company1.sbc.mycompany.com:5061;transport=tls", "LAN_IP:5060") for that as it's written here
<a href="https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/" target="_blank">https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/</a> For calls from MS, I just change the order of the headers - record_route_preset("LAN_IP:5060", "sbc.mycompany.com:5061;transport=tls").<br>
My calls work both ways but I receive the following warning WARNING:rr:after_loose: no socket found to match 2nd RR after doing loose_route() . What are the consequences of this warning?
<br>
I've already experienced one consequence: when I receive a BYE, OpenSIPS doesn't set the socket_out variable, but the actual packet is sent from the correct socket(or is it just luck?).<br>
Should I set the socket manually?<br>
<br>
Best regards, Andrew.</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>
</div>