[Kamailio-Devel] New module : PURPLE - IM/Presence multi-protocol gateway

Iñaki Baz Castillo ibc at aliax.net
Thu Jan 29 14:48:16 CET 2009


2009/1/29 Eric PTAK <eric.ptak.fr at gmail.com>:
> Hello everyone,
>
> Let me introduce to you a new module, available in trunk since yesterday, so
> it will be included in 1.5.0 release :
>
> From http://kamailio.org/docs/modules/devel/purple.html:
>
> Purple module is a multi-protocol instant-messaging gateway module which use
> libpurple, the library on bottom of Pidgin (ex-gaim).
> This plugin was wrote in order to proof the concept of gateway between SIP
> and MSN/Live networks.
> [...]
> It's no really adapted to a production environment with a huge user count
> but can be used in order to demonstrate the concept or to use it in SOHO
> environment.
>
> I hope you'll enjoy purple module, and I'll welcome all feedbacks.

Thanks a lot. Let me a question about "purple_send_mesage" exported function:

if (is_method("MESSAGE")) {
    xlog("MESSAGE $ru from [$fu] to [$tu]\n");
    if (uri !~ "sip:.+ at .+;proto=.+") {
        purple_send_message();
        sl_send_reply("200", "Accepted");
    }
}


Why is needed to reply "200"? doesn't this module act as a proxy
waiting for a response from downstread (i.e. MSN network) and mapping
that response to the appropiate SIP code?

This is: if I send a MESSAGE to a MSN account not online (or not
existing) I will receive "200" anyway, shouldn't I receive a 480 or
404?

Regards.


-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Devel mailing list