[Kamailio-Devel] presence/presence_mwi question

Klaus Darilion klaus.mailinglists at pernau.at
Tue Aug 26 17:31:58 CEST 2008



Juha Heinanen schrieb:
> Klaus Darilion writes:

>  > What If you want to write a "presence_dialoginfo" module which handles 
>  > dialog-info (not draft-anil-sipping-bla-03.txt but RFC 4235). The module 
>  > could add the "dialog" event to presence module (which should handle 
>  > SUBSCRIBE/NOTIFY) and register callbacks from dialog module to get the 
>  > dialog info. But how can I trigger sending new NOTIFYs with the 
>  > corresponding body from within the presenece_dialoginfo module? Can this 
>  > be done directly or do I have to use pua module to loop a PUBLISH to
>  > myself?
> 
> i i have not read the quoted rfc, but i could imagine that you need to
> add something to dialog module that sends a publish to presence module
> using pua whenever the state of dialog changes.  then you have to
> implement your presence_dialoginfo module that handles the body of the
> dialog info event similar to mwi.

Maybe I can use update_watchers_status() from presence module to trigger 
the NOTIFY explicitly. Although using pua and send PUBLISH allows 
separation of proxy and presence server I think it is a overhead if 
proxy and presence server are running on the same instance.

thanks
klaus



More information about the Devel mailing list