[serusers] pa module

Jamey Hicks jamey.hicks at hp.com
Wed Jun 22 19:20:33 CEST 2005


michael p wrote:

> thanks
>
> but where i have to put this line in the ser.cfg ?
> in method = register? in method = invite?
>
  if (uri == myself) {

        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;
        };
        ...
  }




More information about the sr-users mailing list