Andreas Sikkema wrote:
Ovidiu,
The following code will do it: if (is_method("SUBSCRIBE|NOTIFY")) { sl_send_reply("501", "SUBSCRIBE and NOTIFY not supported"); exit; };
And 501 is the appropriate error to send back?
Yes, you may want to have a look at
http://tech-invite.com/Ti-sip-abnf.html#siprc
for a list of all possible SIP response codes.
Christian