How to disable SIP Options methods on asterisk


#1

Hi there:

I have a running asterisk ver 1.2 box. It supports the following SIP methods:

INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY

If I want to disable OPTIONS method, what can I do on the sip setting files? Or I need to have an alternative way to reach it?

Thank you for your help.

Wilson


#2

out of curiousity, why do you need to disable OPTIONS? If asterisk is constantly sending OPTIONS queries, then set qualify=no in sip.conf and it will stop. qualify= means it uses sip options to ‘ping’ a device every minute or so to make sure it still has a connection and to renew NAT mappings if applicable.


#3

Thank you for your quick response. I have done the way what you told me, the OPTIONS method is still existed on the asterisk returning message.

User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY

The reason for turn off this function is requested by my SIP provider.

Do you have any other ideas for this issue?


#4

sorry, no. I also can’t think of any good reason why your provider would request such a thing. Maybe he saw your asterisk server constantly sending an OPTIONS statement (because of qualify=yes) and wanted that killed? I think the only way to rip out the entire function is to edit the source code :\