[SR-Users] msilo clarification

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 13 12:25:57 CET 2015


Hello,


On 13/03/15 10:54, mayamatakeshi wrote:
> Hello,
> maybe this phrase in the msilo doc is misleading:
>
> /Every time when a user registers with Kamailio, the module is looking
> in database for offline messages intended for that user. All of them
> will be sent to contact address provided in REGISTER request./
> http://kamailio.org/docs/modules/4.2.x/modules/msilo.html
>
> The above seems to imply that msilo would send the call directly to
> the contact address. But this doesn't seem to be the case based on
> what is mentioned in several threads in the mailing list and in what I
> saw in the msilo.c code.
> If so, is there a reason to be a such? Would it be a problem to allow
> msilo m_dump to get the values of contact, received and path and use
> them when calling t_request?

IIRC, the MESSAGE requests are sent to the From address that sent the
message. That's typically the AoR, meaning that the request is sent to
the server of that user which should do lookup location to resolve the
destination.

There is an option to send some notification back to origin when the
destination is offline, controlled by:

-
http://kamailio.org/docs/modules/stable/modules/msilo.html#msilo.p.use_contact

But that should not be related to relaying the instant messages when the
user becomes online.

If the destination user is on same kamailio, be sure you don't
authenticate requests coming from the same box (ie, skip authentication
if src_ip==myself).

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150313/74b40349/attachment.html>


More information about the sr-users mailing list