Hi Volga,

I am pretty sure that the Record-Route/Route mechanism is only relevant for dialog-establishing requests: INVITE and SUBSCRIBE, since it provides a way to control the routing of in-dialog requests (re-INVITE, ACK, BYE).  If you want to control the routing of the initial requests instead (INVITE, OPTIONS), you should make use of the Path/Route mechanism.

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 27.06.2018 03:07, [email protected] wrote:
Hello Everyone,
In order to forward OPTIONS
In intial request do

       if(!is_method("REGISTER")) {
               record_route();
       }

volga629


On Tue, Jun 26, 2018 at 3:31 AM, Alexey Kazantsev via Users <[email protected]> wrote:
Hi Alexey,
thank you for the response!

My collegue also gave an example some minutes ago,
the logic is alike:

if (is_method("OPTIONS") ) {
   if (mid_registrar_lookup("location")) {
       t_relay();
       exit;
   }
}


So, thanks to everybody, the problem is solved :)

-----------------------------------------------
BR, Alexey
http://alexeyka.zantsev.com/
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to