<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello,</div><div><br></div><div>Using mod_dingaling I am unable to get it to append the crypto details to the session-accept Jingle stanza. &nbsp;The message is sent as:</div><div><br></div><div><div>&lt;iq xmlns="<a href="jabber:client">jabber:client</a>" from="<a href="mailto:freeswitch@macbooks-macbook.local">freeswitch@macbooks-macbook.local</a>/talk" to="<a href="mailto:fff@macbooks-macbook.local">fff@macbooks-macbook.local</a>/talk" type="set" id="300"&gt;</div><div>&nbsp; &lt;jin:jingle xmlns:jin="urn:xmpp:jingle:1" action="session-accept" sid="233007325" initiator="<a href="mailto:fff@macbooks-macbook.local">fff@macbooks-macbook.local</a>"&gt;</div><div>&nbsp; &nbsp; &lt;jin:content name="audio" creator="initiator"&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;rtp:description xmlns:rtp="urn:xmpp:jingle:apps:rtp:1" media="audio" ssrc="1351525407"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;rtp:payload-type id="0" name="PCMU" clockrate="8000" ptime="8000" maxptime="8000"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;rtp:parameter name="bitrate" value="64000"&gt;&lt;/rtp:parameter&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/rtp:payload-type&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/rtp:description&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;p:transport xmlns:p="<a href="http://www.google.com/transport/p2p">http://www.google.com/transport/p2p</a>"&gt;&lt;/p:transport&gt;</div><div>&nbsp; &nbsp; &lt;/jin:content&gt;</div><div>&nbsp; &lt;/jin:jingle&gt;</div><div>&nbsp; &lt;ses:session xmlns:ses="<a href="http://www.google.com/session">http://www.google.com/session</a>" type="accept" id="233007325" initiator="<a href="mailto:fff@macbooks-macbook.local">fff@macbooks-macbook.local</a>"&gt;</div><div>&nbsp; &nbsp; &lt;pho:description xmlns:pho="<a href="http://www.google.com/session/phone">http://www.google.com/session/phone</a>"&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;pho:payload-type id="0" name="PCMU" clockrate="8000" bitrate="64000" xmlns:pho="<a href="http://www.google.com/session/phone">http://www.google.com/session/phone</a>"&gt;&lt;/pho:payload-type&gt;</div><div>&nbsp; &nbsp; &lt;/pho:description&gt;</div><div>&nbsp; &lt;/ses:session&gt;</div><div>&lt;/iq&gt;</div></div><div><br></div><div>The full Wireshark trace can be found at&nbsp;<a href="http://filebin.ca/8JFB0hyFdHf">http://filebin.ca/8JFB0hyFdHf</a></div><div><br></div><div>On investigation it would seem that the TFLAG_SECURE flag is not being set. &nbsp;If I hack out the test on this flag in mdl_build_crypto() then the crypto is included in the message generated by Freeswitch:</div><div><br></div><div><div>&lt;iq xmlns="<a href="jabber:client">jabber:client</a>" from="<a href="mailto:freeswitch@macbooks-macbook.local">freeswitch@macbooks-macbook.local</a>/talk" to="<a href="mailto:fff@macbooks-macbook.local">fff@macbooks-macbook.local</a>/talk" type="set" id="301"&gt;</div><div>&nbsp; &lt;jin:jingle xmlns:jin="urn:xmpp:jingle:1" action="session-accept" sid="7FnyqtQPPMNPn5h7nnJuRiv3GWg/bRAs" initiator="audio"&gt;</div><div>&nbsp; &nbsp; &lt;jin:content name="audio" creator="initiator"&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;rtp:description xmlns:rtp="urn:xmpp:jingle:apps:rtp:1" media="audio" ssrc="1351524387"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;rtp:payload-type id="0" name="PCMU" clockrate="8000" ptime="8000" maxptime="8000"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;rtp:parameter name="bitrate" value="64000"&gt;&lt;/rtp:parameter&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/rtp:payload-type&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;rtp:encryption&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;rtp:crypto crypto-suite="AES_CM_128_HMAC_SHA1_80" key-params="inline:J8/3QjLtugHFof08KBIevXxUOBo3x8PdphPMx7J4" tag="1"&gt;&lt;/rtp:crypto&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/rtp:encryption&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/rtp:description&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;p:transport xmlns:p="<a href="http://www.google.com/transport/p2p">http://www.google.com/transport/p2p</a>"&gt;&lt;/p:transport&gt;</div><div>&nbsp; &nbsp; &lt;/jin:content&gt;</div><div>&nbsp; &lt;/jin:jingle&gt;</div><div>&nbsp; &lt;ses:session xmlns:ses="<a href="http://www.google.com/session">http://www.google.com/session</a>" type="accept" id="7FnyqtQPPMNPn5h7nnJuRiv3GWg/bRAs" initiator="audio"&gt;</div><div>&nbsp; &nbsp; &lt;pho:description xmlns:pho="<a href="http://www.google.com/session/phone">http://www.google.com/session/phone</a>"&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;pho:payload-type id="0" name="PCMU" clockrate="8000" bitrate="64000" xmlns:pho="<a href="http://www.google.com/session/phone">http://www.google.com/session/phone</a>"&gt;&lt;/pho:payload-type&gt;</div><div>&nbsp; &nbsp; &lt;/pho:description&gt;</div><div>&nbsp; &lt;/ses:session&gt;</div><div>&lt;/iq&gt;</div></div><div><br></div><div>But, I can't see how this flag is ever set. &nbsp;Is this a bug or am I missing something very simple??</div><div><br></div><div>This is using Freeswitch commit&nbsp;fa1276d9492fd39ea733f7af301faed3556c9544 (dated 8th July 2012)<br><div><br></div><div>The jingle profile is here&nbsp;<a href="http://filebin.ca/8JGG8ZhEUSh">http://filebin.ca/8JGG8ZhEUSh</a>.</div></div><div><br></div><div><div><br></div></div><div>Regards,</div><div>&nbsp; Richard</div></div></body></html>