BSC_Tests: use correct payload types and encoding names on MGCP

The test currently use a hardcoded payload type and encoding name.
This does mean in practice that even when an assignment with EFR
is happeining. The MGCP responses to the BSC tell that the codec
is AMR. This is not correct. The testcases should always pick a
suitable payload type / encoding name in the MGCP response

- Add constants for IANA/3GPP assigned payload types
- Add function to lookup the right encoding name for a payload type
- Initalize the encoding name and payload type in g_media according
  to the BSSAP PDU.

Change-Id: I2735267091059e2f2169da80bdcd30abc2b1554b
Realted: OS#2728
diff --git a/library/MGCP_Emulation.ttcn b/library/MGCP_Emulation.ttcn
index b02dc06..0863511 100644
--- a/library/MGCP_Emulation.ttcn
+++ b/library/MGCP_Emulation.ttcn
@@ -441,5 +441,26 @@
 	return omit;
 }
 
+/* Determine encoding name for a specified payload type number */
+function f_encoding_name_from_pt(SDP_FIELD_PayloadType pt) return charstring {
+	if (pt == PT_PCMU) {
+		return "PCMU";
+	} else if (pt == PT_GSM) {
+		return "GSM";
+	} else if (pt == PT_PCMA) {
+		return "PCMA";
+	} else if (pt == PT_GSMEFR) {
+		return "GSM-EFR";
+	} else if (pt == PT_GSMHR) {
+		return "GSM-HR-08";
+	} else if (pt == PT_AMR) {
+		return "AMR";
+	} else if (pt == PT_AMRWB) {
+		return "AMR-WB";
+	}
+
+	setverdict(fail);
+	return "";
+}
 
 }