[Freeswitch-users] Check SRTP encryption on Leg B

Ivan Ilves ivan.ilves at gmail.com
Mon Mar 12 15:20:50 MSK 2012


Dear FreeSWITCH pros,

I need to check SRTP encryption on both call legs.

Checking SRTP encryption on leg A was easy enough:
--- CUT HERE ---
   <extension name="check_srtp_on_leg_a" continue="true">
      <condition field="${entry_context}" expression="^public$"
break="on-true"/>
      <condition field="${sip_has_crypto}"
expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$"
break="never">
        <anti-action application="log" data="INFO No encryption on leg
A. Rejecting call after audible warning."/>
        <anti-action application="sleep" data="2000"/>
        <anti-action application="playback" data="mamba.mp3"/>
        <anti-action application="hangup" data="CALL_REJECTED"/>
      </condition>
    </extension>
--- CUT HERE ---

But how do I check SRTP encryption on leg B?
I need this to disallow improperly configured devices to receive
unencrypted calls.

Could you please help me with this?

Thanks in advance!!!



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list