[Devel] handle_publish question

Power ulin at tut.by
Thu Sep 21 10:10:38 CEST 2006


Hello,

I'm trying to use the PA module.
Here is the part of my openser.cfg: 

if (method=="REGISTER") {
   save("location");
         exit; 
      }; 
       
          if (!lookup("location")) { 
                 sl_send_reply("404", "Not Found"); 
             exit; 
      }; 

       
      if( method=="SUBSCRIBE" ) 
      { 
          if(!t_newtran()) 
          { 
         sl_reply_error(); 
         exit; 
          }; 
       
          if(!handle_subscription("registrar")) 
          { 
         sl_reply_error(); 
         exit; 
          } 
          exit; 
      }; 
       
      if( method=="PUBLISH" ) 
      { 
          if(!t_newtran()) 
          { 
         sl_reply_error(); 
         exit; 
          }; 
          

          if(!handle_publish("registrar")) 
          { 
         sl_reply_error(); 
         exit; 
          } 
          exit; 
      }; 



Everything seems to work fine except one thing - while handling publish request the PA
seems to discard presence info from publish request and send 
NOTIFY to destination client (I use X-Lite) containing the default presence data, I mean 
it always reports that presence status is 'closed'.

-- 
WBR,
 Power                          mailto:ulin at tut.by




More information about the Devel mailing list