[OpenSIPS-Devel] GEtting the proper CSeq value from a module

Saúl Ibarra Corretgé saul at ag-projects.com
Wed Mar 12 11:56:18 CET 2014


Hi Vlad,

On Mar 12, 2014, at 11:47 AM, Vlad Paiu wrote:

> Hello,
> 
> Indeed in the case of the in-dialog pinging, the cseq might change and get_cseq is not going to be accurate for such cases.
> 
> What we can do is to have the dialog module change the number pointer in the actual cseq parsed structure to point to the lump added by the dialog module in case of pinging ( very similar to what fix_nated_contact is doing when fixing the contact header ).
> 

That would be nice.

> Alternatively, if you're using the TM module to get the actual CSEQ header, you can use parse_cseq() from parser/parse_cseq.h to extract the actual CSEQ number.
> 

Actually, I'm not sure what I'm doing is correct, if the cseq_n from the transaction supposed to be updated already in case dialog ping is enabled?


Regards,

--
Saúl Ibarra Corretgé
AG Projects






More information about the Devel mailing list