Hello
Im trying to use the presence X-Lite 3.0 where you can see if the other 
person is away, on the phone, offline, etc
But everytime I run X-Lite I get this error in Kamailio:


[7055]: LOG: route 2 
[7055]: LOG: R2 - SUBSCRIBE
[7055]: ERROR:presence:handle_subscribe: Missing or unsupported event 
header field value
[7055]: ERROR:presence:handle_subscribe:         event= message-summary


In main routing, I call route 2:

        if( is_method("PUBLISH|SUBSCRIBE"))
                route(2);




route[2]
{
log(3, "LOG: route 2 \n");
        if (!t_newtran())
        {
                log(3, "LOG: R2 - t_newtran\n");
                sl_reply_error();
                exit;
        };

        if(is_method("PUBLISH"))
        {
                log(3, "LOG: R2 - PUBLISH \n");
                handle_publish();
                t_release();
        }  
        else
        if( is_method("SUBSCRIBE"))
        {
                log(3, "LOG: R2 - SUBSCRIBE\n");

                handle_subscribe();
                t_release();
        }
        exit;
       
       
        # if presence enabled, this part will not be executed
        if (is_method("PUBLISH") || $rU==null)
        {
                log(3, "LOG: R2 - PUBLISH \n"); 
                sl_send_reply("404", "Not here");
                exit;
        }
        return;
}



What could be missing?
Thanks
Regards
Joao Pereira

_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Reply via email to