[Serusers] RE: pa module query

Steve Blair blairs at isc.upenn.edu
Fri Aug 12 21:54:31 CEST 2005


The following should be enough to get you started with the presence (pa) 
module.
The xcap stuff I do not yet have documented or working properly so I 
cannot help
with that.

-Steve

loadmodule "/usr/local/lib/ser/modules/pa.so"            # enables 
presence module

#
# ------------- pa settings
#
modparam("pa", "default_expires", 1800)
modparam("pa", "timer_interval", 10)
modparam("pa", "use_db", 0)                     # def=0 disable db support
modparam("pa", "use_place_table", 0)            # def=0 disable use of 
place table
modparam("pa", "use_bsearch", 0)                # def=0 disable use of 
binary search for location
modparam("pa", "use_location_package", 0)       # def=0 disable use of 
location package
modparam("pa", "pa_domain", "bigU.edu")         # def name of xcap server
modparam("pa", "db_url", "mysql://ser:tespaserv@localhost/ser")     # 
def db access string
modparam("pa", "presentity_table", "presentity")
modparam("pa", "presentity_contact_table", "presentity_contact")
modparam("pa", "watcherinfo_table", "watcherinfo")
modparam("pa", "place_table", "place")
modparam("pa", "new_watcher_pending", 0)        # def=0 default state of 
watchers 0=active
modparam("pa", "pidf_priority", 1)              # def=1 default priority 
of contacts in pidf documents

 if (uri==myself) {
...
     #
     # Handle publish and subscription requests
     #

     if (method=="PUBLISH") {
        if (!t_newtran()) {
          xlog("L_INFO", "\n[SER]: PUBLISH newtran problem: Time: [%Tf] 
From: <%fu> Source IP: <%is> \n");
          sl_reply_error();
        };
        handle_publish("registrar");
        xlog("L_INFO", "\n[SER]: Handle PUBLISH: Time: [%Tf] From: <%fu> 
To <%tu> Source IP: <%is> \n");
        break;
     };

     if (method=="SUBSCRIBE") {
        if (!t_newtran()) {
          xlog("L_INFO", "\n[SER]: SUBSCRIBE newtran problem: Time: 
[%Tf] From: <%fu> Source IP: <%is> \n");
          sl_reply_error();
        };
        handle_subscription("registrar");
        xlog("L_INFO", "\n[SER]: Handle SUBSCRIBE: Time: [%Tf] From: 
<%fu> To <%tu> Source IP: <%is> \n");
        break;
     };

....

harry gaillac wrote:

>Hello,
>
>I would be happy to help you however I can't help you
>for setting pa module IM/presence because of I tried
>to do it myself.
>
>Try to join Jamey Hicks for help.
>I can't find doc to setup pa module and xcap server.
>I'm sorry !
>
>Harry
>
>
>--- meera.balu at wipro.com a écrit :
>
>  
>
>>Hi Harry
>>
>>I found your email id  from SER development mailing
>>list
>>
>>You seem to be testing/enhancing "pa" module of SER
>>
>>Iam actually testing the pa module and would need
>>your help in setting
>>up & doing basic testing.
>>
>>I have loaded the '"pa" module in ser.cfg
>>
>>I would like to know
>>
>>*	Would kphone4.2 (linux based soft phone) be enough
>>to test the
>>"presence" aspects (Updating states, subscribing to
>>users, getting
>>notified of change in user states, etc.) of 'pa' ?
>>*	Is their any SQL table available for presence ?
>>(from where did
>>you get pa.sql -
>>
>>    
>>
>http://lists.iptel.org/pipermail/serdev/2005-March/004129.html)
>  
>
>>*	Other than loading the pa module in ser.cfg file,
>>what are the
>>other configuration changes or settings that I need
>>to be doing for
>>verifying presence agent module
>>
>>Any pointers would be of much help.
>>
>>Thanks
>>Meera
>>
>>
>>
>>
>>
>>
>>Confidentiality Notice
>>
>>The information contained in this electronic message
>>and any attachments to this message are intended
>>for the exclusive use of the addressee(s) and may
>>contain confidential or privileged information. If
>>you are not the intended recipient, please notify
>>the sender at Wipro or Mailadmin at wipro.com
>>immediately
>>and destroy all copies of this message and any
>>    
>>
>attachments.
>
>
>
>	
>
>	
>		
>___________________________________________________________________________ 
>Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
>Téléchargez cette version sur http://fr.messenger.yahoo.com
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>  
>




More information about the sr-users mailing list