[Serusers] How to configure pa?
Jamey Hicks
jamey.hicks at hp.com
Thu Jun 9 14:42:44 CEST 2005
Steven Poveda wrote:
> Hi,
>
> I have just installed SER and I can see the server is not supporting
> PUBLISH method. I have loaded pa module but the reject to PUBLISH
> method is stil there.
>
Your ser.cfg file needs something like the following for PA to handle
PUBLISH and SUBSCRIBE messages and to send NOTIFY messages:
if (uri == myself) {
log(2, "for me\n");
if (method=="PUBLISH") {
if (!t_newtran()) {
log(1, "newtran error\n");
sl_reply_error();
};
handle_publish("registrar");
log(1,"handled publish\n");
break;
};
if (method=="SUBSCRIBE") {
if (!t_newtran()) {
log(1, "newtran error\n");
sl_reply_error();
};
handle_subscription("registrar");
log(1,"handled subscribe\n");
break;
};
}
-Jamey
More information about the sr-users
mailing list