[OpenSIPS-Users] How to best check a request's method?

Michael Renzmann mrenzmann at otaku42.de
Tue Nov 13 09:46:13 CET 2012


Hi all.

Let's assume that I want to check whether the current request uses a given
method. The following statements would work for that:

 1. if (method == INVITE) { ... }
 2. if (method == "INVITE") { ... }
 3. if (is_method("INVITE")) { ... }

Now I wonder:



More information about the Users mailing list