[Users] Rejecting SUBSCRIBE/NOTIFY messages

Christian Schlatter cs at unc.edu
Thu May 3 19:28:51 CEST 2007


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




More information about the Users mailing list