sip: Allow specifying if media encryption is desired
A property of type SipMediaEncryption is added to both the origin and the call which allows to state if we want the media session to be encrypted with SRTP. Logic is added to interact with the CallsSdpCryptoContext if encryption is desired.
This commit is contained in:
@@ -249,6 +249,7 @@ test_media_pipeline_finalized_in_call (void)
|
||||
TRUE,
|
||||
"127.0.0.1",
|
||||
pipeline,
|
||||
SIP_MEDIA_ENCRYPTION_NONE,
|
||||
NULL);
|
||||
|
||||
g_object_unref (call);
|
||||
@@ -259,6 +260,7 @@ test_media_pipeline_finalized_in_call (void)
|
||||
TRUE,
|
||||
"127.0.0.1",
|
||||
pipeline,
|
||||
SIP_MEDIA_ENCRYPTION_NONE,
|
||||
NULL);
|
||||
g_object_unref (call);
|
||||
g_assert_finalize_object (pipeline);
|
||||
|
||||
Reference in New Issue
Block a user