SRTP setup

Hello,

I am trying to setup SRTP for a connection between two asterisk servers. I am having a little bit of trouble. I believe I have successfully setup SIP tls for the two servers, and in addition, I can successfully load the res_Srtp module. When I try to make a call with srtp by setting the Channel variable “secure_bridge_media” to 1, the call between the two phones fails. Here is an example of the sip.conf for one of the servers and the sip phone connected to it:

[general]
directmedia=no
tlsenable=yes
tlsbindaddr=::
tlsclientmethod=tlsv1
tlscipher=AES256-SHA

tlscertfile = /var/lib/asterisk/keys/serverA.pem
tlscafile = /var/lib/asterisk/keys/ca.crt

[serverB]
type=peer
host=192.168.1.211
defaultuser=serverA
secret=appletime
context=server2server
dtmfmode=rfc2833
disallow=all
allow=ulaw
encryption=yes
transport=tls

[thephone]
type=friend
secret=upstart
context=server2server
host=dynamic
disallow=all
allow=ulaw

If someone could tell me what I am doing wrong, or direct me to information on how to setup srtp and sip tls that would be great.

Thank you