Hi, Walter

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.

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:
company1.sbc.mycompany.com:5061 Route hdr and loose_route throws ERROR
"Different number of routes found in msg" because opensips doesn't detect
domain company1.sbc.mycompany.com 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.

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).


чт, 21 авг. 2025 г. в 14:12, Walter Schober <walter.scho...@neotel.at>:

> Hi Andrew!
>
> 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.
>
> br
> Walter
>
> Am 21.08.2025 um 12:11 schrieb Andrew <andrey55...@gmail.com>:
>
> Hi, all
> I am working on an MS Teams SBC for multiple tenants.
> I use OpenSIPS without topology hiding so I add Record-Route headers. For
> each tenant I have to add its own domain like company1.sbc.mycompany.com
> and so on. Domains are correctly resolved to the same IP as
> sbc.mycompany.com. They should be subdomains of sbc.mycompany.com . The
> main domain sbc.mycompany.com should also be added when receiving calls
> from MS so that they can send us sequential requests (like BYE).
> I use record_route_preset("company1.sbc.mycompany.com:5061;transport=tls",
> "LAN_IP:5060") for that as it's written here
> https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/ For calls
> from MS, I just change the order of the headers -
> record_route_preset("LAN_IP:5060", "sbc.mycompany.com:5061
> ;transport=tls").
> 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?
> 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?).
> Should I set the socket manually?
>
> Best regards, Andrew.
> _______________________________________________
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to