[Devel] SF.net SVN: openser: [2110] trunk/modules/pua_mi/mi_func.c

Anca-Maria Vamanu anca at voice-system.ro
Wed May 2 16:18:19 CEST 2007


Hi Juha,

I have generalized handling publish body in pua module. Using the same 
function as event specific body handing in presence was not a good idea 
since the modules that already use send_publish from pua module have 
other requirements. Instead, functions written in  the same module are 
called depending on the event flag. It is a quick solution, not very 
elegant as it does not allow adding new events very easily. I am 
thinking about adding a list with event specific parameters to pua also. 
Anyhow, this fix should comply with your needs.

It you need to process your body before putting it in a Publish request, 
you should  write the function mwi_process_body. Checking for 
correctness is not compulsory at this level, as it will be done in 
presence. (you might however prefer this to detect  to stop processing 
of an  wrong request as soon as detection is possible)

I have also finished improving pua_mi so that now it replies with etag 
and expires from the reply to Publish.

regards,

Anca


Juha Heinanen wrote:

>Revision: 2110
>          http://openser.svn.sourceforge.net/openser/?rev=2110&view=rev
>Author:   juhe
>Date:     2007-05-01 01:34:52 -0700 (Tue, 01 May 2007)
>
>Log Message:
>-----------
>* Removed XML parsing of publish body from mi_pua_publish, because it is
>  event specific and again done in pua_send_publish() function.
>* Clean up debug and error messages.
>* Still to do: event type specific handling of publish body by
>  pua_send_publish().
>
>Modified Paths:
>--------------
>    trunk/modules/pua_mi/mi_func.c
>
>
>This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
>
>_______________________________________________
>Devel mailing list
>Devel at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/devel
>
>  
>




More information about the Devel mailing list