commit | c053e073360342ca60c9abf3ce3fed26bfe5a7c0 | [log] [tgz] |
---|---|---|
author | neels <nhofmeyr@sysmocom.de> | Thu Jan 11 19:40:27 2024 +0000 |
committer | neels <nhofmeyr@sysmocom.de> | Thu Jan 11 19:40:27 2024 +0000 |
tree | 569c73e4bf88e42d3e13739b9d6a93e57d7150e9 | |
parent | 2b30cbdfa83c20045ef92f53e88441dda185591b [diff] |
Revert "drop (now) unused code" This reverts commit 2b30cbdfa83c20045ef92f53e88441dda185591b. Reason for revert: Older versions of osmo-msc were actually calling map_codec_to_pt(). Change-Id: Ifff31012b327d40ed0b1559d5cf4f320784a4061 Related: https://jenkins.osmocom.org/jenkins/job/Osmocom-build-tags-against-master/1792/console
diff --git a/include/osmocom/mgcp_client/mgcp_client.h b/include/osmocom/mgcp_client/mgcp_client.h index e1748a6..1d33690 100644 --- a/include/osmocom/mgcp_client/mgcp_client.h +++ b/include/osmocom/mgcp_client/mgcp_client.h
@@ -119,5 +119,9 @@ } enum mgcp_codecs map_str_to_codec(const char *str); +unsigned int map_codec_to_pt(const struct ptmap *ptmap, unsigned int ptmap_len, + enum mgcp_codecs codec); +enum mgcp_codecs map_pt_to_codec(struct ptmap *ptmap, unsigned int ptmap_len, + unsigned int pt); const char *mgcp_client_name(const struct mgcp_client *mgcp);