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

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 3 09:35:06 CET 2009


Hello,

On 01/29/2009 04:24 PM, Eric PTAK wrote:
> I agree with you, the module needs improvements on that point.
> It's a really old point I missed when we decided to reuse and to 
> reverse that module.
> I think about two manners in order to solve it :
> * implement a return code for purple_send_message
> * sending a reply directly in the module
>  
> Regarding the design of the module, I think both possibilities needs a 
> lot of mod.
> I'm not sure how to consider that mod as it's not a bug but a limitation.
> Is it a new feature I'll code when the trunk will be unfreezed ?

code will be unfrozen in few weeks. As personal preference, returning 
code is a more flexible way, as the config writer can chose what to send.

Changing the return code for a function is not a new feature IMO. 
However, I mean by that to do it with the current design. If I am not 
wrong there is a pipe communication between sip worker processes and 
purple worker processes.

You cannot get the error in purple processes and return it in the sip 
process. What you can do is to have a different reply code if you had an 
error while building the packet for purple process (e.g., no more 
memory) and once you send it to purple process return true and the code 
writer should reply with 202 Message accepted.

Cheers,
Daniel

> If yes, we may add that limitation in the doc for now.
>  
> Eric.
>  
>  
> 2009/1/29 Iñaki Baz Castillo ibc at aliax.net <mailto:ibc at aliax.net>
>
>     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 <mailto:ibc at aliax.net>>
>
>     _______________________________________________
>     Kamailio (OpenSER) - Devel mailing list
>     Devel at lists.kamailio.org <mailto:Devel at lists.kamailio.org>
>     http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
>     http://lists.openser-project.org/cgi-bin/mailman/listinfo/devel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list