< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate-users] parsing SdpContents


Hi all,
i need some insight on a strange issue i am experiencing,
in a simple client app in the onAnswer() method inherited from InviteSessionHandler
i execute the doParse() on the SdpContents and then proceed to find matching codecs.
This has worked 99% of times i tested it, however when testing against a specific software i do get a parse exception when executing the doParse() on SdpContents.
With gdb i noticed that the mField of SdpContents is empty and the state is DIRTY instead of NOT_PARSED, printing the getBodyData() i do the get SDP string.

I suspected obviously that the SDP received was malformed, however i did not notice anything unusual from the wireshark trace and that client's answers are accepted without problems by asterisk or other softwares.

From the first round of debugging it seems that the state is DIRTY from the very beginning, so, can you point me where the state of the SDPcontents is set to DIRTY instead of NOT_PARSED?

besides, any ideas on why this might happen is much appreciated :)

thanks