[Users] Rejecting SUBSCRIBE/NOTIFY messages
Ovidiu Sas
sip.nslu at gmail.com
Tue May 1 16:15:38 CEST 2007
Hi Andreas,
The following code will do it:
if (is_method("SUBSCRIBE|NOTIFY")) {
sl_send_reply("501", "SUBSCRIBE and NOTIFY not supported");
exit;
};
Regards,
Ovidiu Sas
On 5/1/07, Andreas Sikkema <andreas.sikkema at bbeyond.nl> wrote:
> Hi,
>
> I've been googling for a while and I haven't been
> able to find out how to do the following:
>
> I would like to reject all SUBSCRIBE and NOTIFY
> messages received by my OpenSER server. How do I
> do properly?
>
> if (method=="SUBSCRIBE")
> {
> };
>
> if (method=="NOTIFY")
> {
> };
>
> I couldn't find any examples and Google also didn't
> find anything that pointed me in the right direction.
>
> Thanks!
>
> --
> Andreas Sikkema
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list