<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. The message is sent as:</div><div><br></div><div><div><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"></div><div> <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>"></div><div> <jin:content name="audio" creator="initiator"></div><div> <rtp:description xmlns:rtp="urn:xmpp:jingle:apps:rtp:1" media="audio" ssrc="1351525407"></div><div> <rtp:payload-type id="0" name="PCMU" clockrate="8000" ptime="8000" maxptime="8000"></div><div> <rtp:parameter name="bitrate" value="64000"></rtp:parameter></div><div> </rtp:payload-type></div><div> </rtp:description></div><div> <p:transport xmlns:p="<a href="http://www.google.com/transport/p2p">http://www.google.com/transport/p2p</a>"></p:transport></div><div> </jin:content></div><div> </jin:jingle></div><div> <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>"></div><div> <pho:description xmlns:pho="<a href="http://www.google.com/session/phone">http://www.google.com/session/phone</a>"></div><div> <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>"></pho:payload-type></div><div> </pho:description></div><div> </ses:session></div><div></iq></div></div><div><br></div><div>The full Wireshark trace can be found at <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. 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><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"></div><div> <jin:jingle xmlns:jin="urn:xmpp:jingle:1" action="session-accept" sid="7FnyqtQPPMNPn5h7nnJuRiv3GWg/bRAs" initiator="audio"></div><div> <jin:content name="audio" creator="initiator"></div><div> <rtp:description xmlns:rtp="urn:xmpp:jingle:apps:rtp:1" media="audio" ssrc="1351524387"></div><div> <rtp:payload-type id="0" name="PCMU" clockrate="8000" ptime="8000" maxptime="8000"></div><div> <rtp:parameter name="bitrate" value="64000"></rtp:parameter></div><div> </rtp:payload-type></div><div> <rtp:encryption></div><div> <rtp:crypto crypto-suite="AES_CM_128_HMAC_SHA1_80" key-params="inline:J8/3QjLtugHFof08KBIevXxUOBo3x8PdphPMx7J4" tag="1"></rtp:crypto></div><div> </rtp:encryption></div><div> </rtp:description></div><div> <p:transport xmlns:p="<a href="http://www.google.com/transport/p2p">http://www.google.com/transport/p2p</a>"></p:transport></div><div> </jin:content></div><div> </jin:jingle></div><div> <ses:session xmlns:ses="<a href="http://www.google.com/session">http://www.google.com/session</a>" type="accept" id="7FnyqtQPPMNPn5h7nnJuRiv3GWg/bRAs" initiator="audio"></div><div> <pho:description xmlns:pho="<a href="http://www.google.com/session/phone">http://www.google.com/session/phone</a>"></div><div> <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>"></pho:payload-type></div><div> </pho:description></div><div> </ses:session></div><div></iq></div></div><div><br></div><div>But, I can't see how this flag is ever set. Is this a bug or am I missing something very simple??</div><div><br></div><div>This is using Freeswitch commit fa1276d9492fd39ea733f7af301faed3556c9544 (dated 8th July 2012)<br><div><br></div><div>The jingle profile is here <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> Richard</div></div></body></html>