[Spce-user] Softphone

Andrew Pogrebennyk apogrebennyk at sipwise.com
Mon Oct 24 16:41:12 EDT 2011


On 10/24/2011 03:53 PM, roman dmytriv wrote:
> Can some one point me on the right direction to kamailio config
> template and steps need to enable IM

You do not need any modules to relay message, just add it to the list of
supported methods in kamailio.cfg:
if(is_method("INVITE|ACK|CANCEL|BYE|OPTIONS|NOTIFY|PRACK|UPDATE"))
		route(ROUTE_PRX_REQUEST);

Then in proxy.cfg route[ROUTE_PRX_REQUEST] you need to add a simple
check if method=="MESSAGE" then call route(ROUTE_PRX_AUTH) to
authenticate your message, do lookup in location table and relay message
to the UA.

You need msilo module if you want to have server-side offline message
storage, here is the config example:
http://www.kamailio.org/docs/modules/3.2.x/modules_k/msilo.html#id2496010
It is a little bit more involved. What you could really do is to use the
above example to start another kamailio instance on localhost serving
message only, and from your proxy.cfg call t_relay() with IP:port of
your IM kamailio instance.

But then you need to take care of correct SIP message routing, also IM
proxy must be hooked in your register call flow. Or integrate offline IM
into sipwise configs, which is more difficult to maintain during version
upgrades.
Here's another link you may find interesting although not about IM:
http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour




More information about the Spce-user mailing list