Re: [SR-Users] Limiting Kamailios accepted methods

2018-04-12 Thread Gholamreza Sabery
Thank you very much Daniel. Regards On Thu, Apr 12, 2018 at 9:11 PM, Daniel-Constantin Mierla wrote: > Hello, > > pointed in another response, is_method(...) is good solution, I just > wanted to add that you should be careful with what you reject and when, > because part of

Re: [SR-Users] Limiting Kamailios accepted methods

2018-04-12 Thread Daniel-Constantin Mierla
Hello, pointed in another response, is_method(...) is good solution, I just wanted to add that you should be careful with what you reject and when, because part of an INVITE dialog can be more than just ACK, BYE and CANCEL, you can get REFER, UPDATE, INFO, NOTIFY... So I would allow all requests

Re: [SR-Users] Limiting Kamailios accepted methods

2018-04-12 Thread Gholamreza Sabery
Dear Grant Thank you very much! On Thu, Apr 12, 2018 at 6:00 PM, Grant Bagdasarian wrote: > Hi, > > > > We use the is_method function to enforce this. You can specify multiple > method names in the function arguments. > > For instance: > > > >

Re: [SR-Users] Limiting Kamailios accepted methods

2018-04-12 Thread Grant Bagdasarian
Hi, We use the is_method function to enforce this. You can specify multiple method names in the function arguments. For instance: if(is_method("SUBSCRIBE|NOTIFY|PUBLISH|INFO|MESSAGE")) { sl_send_reply("405", "Method Not Allowed"); exit; } Regards, Grant Bagdasarian Senior