[Kamailio-Devel] pua callback

Daniel-Constantin Mierla miconda at gmail.com
Mon Oct 6 17:21:27 CEST 2008


Hello Sebastian,

On 10/06/08 17:23, Schumann Sebastian wrote:
> Dear all
>  
> I wrote a module using the pua module api to send presence messages 
> directly from the script and it all works fine. I have only problems 
> to use the ETag from the answer, I can somehow not process the answer 
> at all. I tried to look at pua_mi and other pua modules but cannot see 
> any light there how to process the answer. I know pua callback does it 
> but do not know how, I am lost within the structures.
>  
> It is important though because otherwise if a publish is sent and the 
> state is updated, there is no acutal update but two presence states 
> from one client.
>  
> Can someone (Anca?) help me and provide some more info about the 
> proper use of PUA to process the answer and E-Tag respectively properly?
do you want to get access to the SIP reply so you can take E-Tag?

I guess you are sending the message via TM functions, so you can 
register a callback that is executed when reply is received and 
transaction is completed.

Hope I understood your need, otherwise please provide more details about 
what you want to accomplish.

Cheers,
Daniel

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




More information about the Devel mailing list