Hello,
Using mod_dingaling I am unable to get it to append the crypto details to the session-accept Jingle stanza. The message is sent as:
<jin:content name="audio" creator="initiator">
<rtp:description xmlns:rtp="urn:xmpp:jingle:apps:rtp:1" media="audio" ssrc="1351525407">
<rtp:payload-type id="0" name="PCMU" clockrate="8000" ptime="8000" maxptime="8000">
<rtp:parameter name="bitrate" value="64000"></rtp:parameter>
</rtp:payload-type>
</rtp:description>
</jin:content>
</jin:jingle>
</pho:description>
</ses:session>
</iq>
On investigation it would seem that the TFLAG_SECURE flag is not being set. If I hack out the test on this flag in mdl_build_crypto() then the crypto is included in the message generated by Freeswitch:
<jin:jingle xmlns:jin="urn:xmpp:jingle:1" action="session-accept" sid="7FnyqtQPPMNPn5h7nnJuRiv3GWg/bRAs" initiator="audio">
<jin:content name="audio" creator="initiator">
<rtp:description xmlns:rtp="urn:xmpp:jingle:apps:rtp:1" media="audio" ssrc="1351524387">
<rtp:payload-type id="0" name="PCMU" clockrate="8000" ptime="8000" maxptime="8000">
<rtp:parameter name="bitrate" value="64000"></rtp:parameter>
</rtp:payload-type>
<rtp:encryption>
<rtp:crypto crypto-suite="AES_CM_128_HMAC_SHA1_80" key-params="inline:J8/3QjLtugHFof08KBIevXxUOBo3x8PdphPMx7J4" tag="1"></rtp:crypto>
</rtp:encryption>
</rtp:description>
</jin:content>
</jin:jingle>
</pho:description>
</ses:session>
</iq>
But, I can't see how this flag is ever set. Is this a bug or am I missing something very simple??
This is using Freeswitch commit fa1276d9492fd39ea733f7af301faed3556c9544 (dated 8th July 2012)
Regards,
Richard