Add the context features to the dialplan database.

This commit is contained in:
Mark Crane
2012-07-10 18:27:27 +00:00
parent c7f83d32ed
commit 15d853b0cc
9 changed files with 94 additions and 0 deletions
@@ -0,0 +1,11 @@
<!-- Only Truly consider it secure if its TLS and SRTP -->
<context name="features">
<extension name="is_secure" continue="true">
<condition field="${sip_via_protocol}" expression="tls"/>
<condition field="${sip_secure_media_confirmed}" expression="^true$">
<action application="sleep" data="1000"/>
<action application="playback" data="misc/call_secured.wav"/>
<anti-action application="eval" data="not_secure"/>
</condition>
</extension>
</context>