{ERR} mod_dialplan_xml.c:110 Nexted conditions are not allowed<br><br>That's because it shouldn't be nested. It's not missing a /, and the 1st Should have the /. The extra indendation shouldn't be there on the 2nd.<br>
<br>It should look like this:<br><br><extension name="incoming-fxs"><br>
<condition field="destination_number" expression="^(202)$"/><br>
<condition field="${sip_has_crypto}" expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$" break="never"><br>
<action application="set" data="sip_secure_media=true"/><br>
<action application="bridge" data="openzap/1/1"/><br>
</condition><br></extension><br><br>The two conditions function as an AND, even though it's not nested. FS stops checking the extension as soon as it sees a condition that's false (at least by default and in the above case), so if the destination is not 202 it'll never get to the 2nd condition.<br>
<br>-Steve<br><br><br><br><div class="gmail_quote">On 16 June 2011 03:10, Rob Hutton <span dir="ltr"><<a href="mailto:justlikeef@gmail.com">justlikeef@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I think I have TLS and SRTP working at this point, but in the docs it says to use the following template for the dialplan:<br>
<br>
<a href="http://wiki.freeswitch.org/wiki/Secure_RTP" target="_blank">http://wiki.freeswitch.org/wiki/Secure_RTP</a>:<br>
<br>
<extension name="incoming-fxs"><br>
<condition field="destination_number" expression="^(202)$"/><br>
<condition field="${sip_has_crypto}" expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$" break="never"><br>
<action application="set" data="sip_secure_media=true"/><br>
<action application="bridge" data="openzap/1/1"/><br>
</condition><br>
</extension<br>
<br>
1) There is a missing > at the end of the close extension tag.<br>
2) There is either a missing / at the end of the internal condition line, or a missing condition close tag somewhere<br>
3) When I fix the interal condition, I get an error:<br>
<br>
{ERR} mod_dialplan_xml.c:110 Nexted conditions are not allowed<br>
<br>
All this, but a packet capture shows that SRTP is working based on what I did on:<br>
<br>
<a href="http://wiki.freeswitch.org/wiki/SIP_TLS" target="_blank">http://wiki.freeswitch.org/wiki/SIP_TLS</a><br>
<br>
Can someone give me some guidance on the Secure_RTP page and I will update whatever?<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>