private bool UpdateCodecs()
        {
            tdav_codec_id_t codecIds = tdav_codec_id_t.tdav_codec_id_none;

            this.codecs.ForEach(x => codecIds |= x.IsEnabled ? x.Id : tdav_codec_id_t.tdav_codec_id_none);
            this.sipService.Codecs             = (int)codecIds;

            this.configurationService.Set(Configuration.ConfFolder.MEDIA,
                                          Configuration.ConfEntry.CODECS, this.sipService.Codecs);

            return(true);
        }
 internal Codec(String name, String description, tdav_codec_id_t id)
 {
     this.name = name;
     this.description = description;
     this.id = id;
 }
Exemple #3
0
 public static void setCodecs(tdav_codec_id_t codecs)
 {
     tinyWRAPPINVOKE.SipStack_setCodecs((int)codecs);
 }
 internal Codec(String name, String description, tdav_codec_id_t id)
 {
     this.name        = name;
     this.description = description;
     this.id          = id;
 }
Exemple #5
0
 public static bool setCodecPriority(tdav_codec_id_t codec_id, int priority)
 {
     bool ret = tinyWRAPPINVOKE.SipStack_setCodecPriority((int)codec_id, priority);
     return ret;
 }
Exemple #6
0
 public static bool isCodecSupported(tdav_codec_id_t codec_id)
 {
     bool ret = tinyWRAPPINVOKE.SipStack_isCodecSupported((int)codec_id);
     return ret;
 }
Exemple #7
0
        public static bool isCodecSupported(tdav_codec_id_t codec)
        {
            bool ret = tinyWRAPPINVOKE.SipStack_isCodecSupported((int)codec);

            return(ret);
        }
Exemple #8
0
 public static void setCodecs(tdav_codec_id_t codecs)
 {
     tinyWRAPPINVOKE.SipStack_setCodecs((int)codecs);
 }
Exemple #9
0
        public static bool setCodecPriority(tdav_codec_id_t codec_id, int priority)
        {
            bool ret = tinyWRAPPINVOKE.SipStack_setCodecPriority((int)codec_id, priority);

            return(ret);
        }