Browse Source

sdpops: exported to kemi the functions to detect sdp with codecs

- sdp_with_codecs_by_id() and sdp_with_codecs_by_name()
Daniel-Constantin Mierla 6 năm trước cách đây
mục cha
commit
3716541db0
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      src/modules/sdpops/sdpops_mod.c

+ 10 - 0
src/modules/sdpops/sdpops_mod.c

@@ -2209,6 +2209,16 @@ static sr_kemi_t sr_kemi_sdpops_exports[] = {
 		{ SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
+	{ str_init("sdpops"), str_init("sdp_with_codecs_by_id"),
+		SR_KEMIP_INT, sdp_with_codecs_by_id,
+		{ SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
+			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+	},
+	{ str_init("sdpops"), str_init("sdp_with_codecs_by_name"),
+		SR_KEMIP_INT, sdp_with_codecs_by_name,
+		{ SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
+			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+	},
 	{ str_init("sdpops"), str_init("sdp_get"),
 		SR_KEMIP_INT, ki_sdp_get,
 		{ SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,