MT#65428 rtpengine/kamailio: transcode pref order

Codecs should be offered in an order of preference that can be adjusted
by the operator

Change-Id: I625f07562861dd6b72ce5bf12d94910c0710da89
master
Richard Fuchs 4 weeks ago committed by Sipwise Jenkins Builder
parent 63c237675f
commit 016e41c0a6

@ -0,0 +1,3 @@
use provisioning;
DELETE FROM voip_preferences WHERE attribute = 'transcode_preference';

@ -0,0 +1,10 @@
use provisioning;
set autocommit=0;
SELECT id INTO @vpg_id FROM voip_preference_groups WHERE name = 'Media Codec Transcoding Options';
INSERT INTO voip_preferences (voip_preference_groups_id, attribute, label, type, max_occur, usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, modify_timestamp, internal, expose_to_customer, data_type, read_only, description)
VALUES
(@vpg_id, 'transcode_preference', "Offer codecs for transcoding in the given order of preference", 0, 1, 1, 1, 1, 1, 0, NOW(), 0, 0, 'string', 0, 'List of codecs, separated by commas, to determine the order of preference for transcoded codecs.');
commit;

@ -25,7 +25,7 @@ CREATE TABLE `db_schema` (
PRIMARY KEY (`id`),
UNIQUE KEY `rev_idx` (`revision`,`node`,`site_id`),
KEY `release_idx` (`release`)
) ENGINE=InnoDB AUTO_INCREMENT=931 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
) ENGINE=InnoDB AUTO_INCREMENT=932 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
@ -30983,6 +30983,7 @@ INSERT INTO `db_schema` VALUES (927,15884,'spce','1970-01-01 00:00:01','trunk',1
INSERT INTO `db_schema` VALUES (928,15885,'spce','1970-01-01 00:00:01','trunk',1);
INSERT INTO `db_schema` VALUES (929,15886,'spce','1970-01-01 00:00:01','trunk',1);
INSERT INTO `db_schema` VALUES (930,15887,'spce','1970-01-01 00:00:01','trunk',1);
INSERT INTO `db_schema` VALUES (931,15888,'spce','1970-01-01 00:00:01','trunk',1);
COMMIT;
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;

@ -1203,7 +1203,7 @@ CREATE TABLE `voip_preferences` (
UNIQUE KEY `attribute_idx` (`attribute`),
KEY `vpgid_ref` (`voip_preference_groups_id`),
CONSTRAINT `vpgid_ref` FOREIGN KEY (`voip_preference_groups_id`) REFERENCES `voip_preference_groups` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=421 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
) ENGINE=InnoDB AUTO_INCREMENT=422 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
@ -4251,6 +4251,7 @@ INSERT INTO `voip_preferences` VALUES (417,17,'transcode_G726_16','Transcode to
INSERT INTO `voip_preferences` VALUES (418,17,'transcode_G726_24','Transcode to G.726 24 kbps',0,1,1,1,1,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'boolean',0,'Always offer the audio codec G.726 (8 kHz/24 kbps) to this subscriber or peer.',0,0,0);
INSERT INTO `voip_preferences` VALUES (419,17,'transcode_G726_32','Transcode to G.726 32 kbps',0,1,1,1,1,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'boolean',0,'Always offer the audio codec G.726 (8 kHz/32 kbps) to this subscriber or peer.',0,0,0);
INSERT INTO `voip_preferences` VALUES (420,17,'transcode_G726_40','Transcode to G.726 40 kbps',0,1,1,1,1,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'boolean',0,'Always offer the audio codec G.726 (8 kHz/40 kbps) to this subscriber or peer.',0,0,0);
INSERT INTO `voip_preferences` VALUES (421,17,'transcode_preference','Offer codecs for transcoding in the given order of preference',0,1,1,1,1,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'string',0,'List of codecs, separated by commas, to determine the order of preference for transcoded codecs.',0,0,0);
COMMIT;
SET AUTOCOMMIT=@OLD_AUTOCOMMIT;
SET @OLD_AUTOCOMMIT=@@AUTOCOMMIT, @@AUTOCOMMIT=0;

Loading…
Cancel
Save