Why do you want to authorize such NOTIFY requests ? From the performance point of view, the best you can do is to send a reply back at the very beginning of the configuration file using sl_send_reply() (almost the best, dropping them would be even better, of course :-).
Jan.
On 14-11 08:11, Richard wrote:
Hi Jan,
In the NOTIFY message, it has a proxy authentication nonce got from REGISTER messages.
I am not in the <some test here> if proxy_authorize() should be called and the impact on the ser performance.
Richard
Since the purpose of NOTIFY messages is just to get some reply from SER and keep the NAT bindings open, I would recommend to put a simple test at the beginning of the configuration file and send 200 OK immediately, something like:
if (method == "NOTIFY" && <some test here>) { sl_send_reply("200", "OK"); break; };
Note that you have to replace <some test here> with something that tests if this is one of the NOTIFYs keeping the NAT open, you could probably test for some particular value in the Request-URI, or something like that. You probably do not want to reply all NOTIFY messages this way.
Jan.