Hi everyone,
I have an asterisk configuration that uses PJSIP channels.
For my application, asterisk should reply to OPTIONS requests coming from certain endpoints with only the following methods in the header “Allow”:
- INVITE
- ACK
- CANCEL
- BYE
- OPTIONS
- PRACK
- UPDATE
- INFO
But not the methods:
- SUBSCRIBE
- REFER
- MESSAGE
- NOTIFY
- REGISTER
Is there a way (ideally by configuration) to get that behavior? Please note that asterisk should be able to send different “allow methods” to different endpoints.
I think I need something like the configuration variable disallowed_methods
you could put in sip.conf, only I need it for PJSIP channels.
Thank you very much.