You can configure msilo module parameters as here (for offline user's message storing)

http://telephonynetworks.blogspot.com/2012/08/configuracion-de-kamailio-33-con-nat.html

/*Este modulo es opcional, se utiliza para guardar mensajes en la base de datos si el usuario esta offline, y se lo envia cuando vuelva a estar en linea, para activarlo debes escribir al principio #!define WITH_MSILO y cambiar las siguientes lineas*/
#!ifdef WITH_MSILO
# ------ msilo params ------
modparam("msilo","db_url",DBURL)
modparam("msilo","from_address","sip:registrar@your_public_ip")
#modparam("msilo","contact_hdr","Contact: <sip:registrar@your_public_ip>\r\n")
modparam("msilo","content_type_hdr","Content-Type: text/plain\r\n")
modparam("msilo","offline_message","*** User $rU is offline!")
#modparam("msilo", "check_time", 10)
#!endif


2012/9/19 Andrew Pogrebennyk <apogrebennyk@sipwise.com>
On 09/18/2012 12:15 PM, Gary Shergill wrote:
> Note that I am testing this with one computer connected by Bria and
> another computer connected via Blink. I am able to log on to a user on
> each (test1 and test2) and they are able to call each other. The issue
> is, with presence enabled, they are unable to IM each other (or add
> each other as contacts and see online status).

Gary,
I thought Bria uses RPID data format for presence (RFC 4480) while Blink
uses PIDF so they won't be able to see presence status of each other. I
see though that blink website mentions RPID as well, maybe somebody more
knowledgeable about blink can correct me.

For IM, add MESSAGE method to supported methods and send it after lookup
like INVITE. For offline message delivery, checkout the msilo module readme.

HTH,
Andrew

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users