irontec / itsbc

Irontec Tiny SBC. OpenSIPS & RTPEngine based micro SBC with Web Administration
GNU General Public License v3.0
36 stars 27 forks source link

403 Preload Route denied #12

Closed ralonsom closed 3 years ago

ralonsom commented 6 years ago

Some models of phones or PBXs launch the first registration with "Route:". if the route is Route:domain , sbc answers "403 Preload Route denied". if the route is Route:IP the registry works correctly.

cruzccl commented 6 years ago

Hi @ralonsom,

SIP routing defined in RFC 3261 is quite complex, but related to the Record-Route/Route headers, it could be summarized (and simplified) as:

Although UAC behaviour described in 8.1 even recommends adding a Route in some initial requests, discarding this Routes is considered a good practise to avoid being used as an open relay (read this). In fact, removing them it is included in Kamailio's default configuration file.

But opensips doesn't remove them, it exits (see here).

You could try modifying that logic and removing Routes instead of exiting (as Kamailio's default config file does).

Regards,