MGCP: add support for option mp and fxr/fx

svn path=/trunk/; revision=51535
This commit is contained in:
Pascal Quantin 2013-08-27 12:28:21 +00:00
parent ed8115e099
commit 165caf0869
2 changed files with 19 additions and 1 deletions

View File

@ -3694,7 +3694,7 @@ Robert Simac <rsimac[AT]cronsult.com>
Johanna Sochos <johanna.sochos[AT]swissqual.com>
Felix Obenhuber <felix[AT]obenhuber.de>
Hilko Bengen <bengen--wireshark[AT]hilluzination.de>
Hadar Shoham <hadar[AT]ti.com>
Hadar Shoham <hadar.shoham[AT]gmail.com>
Robert Bullen <robert[AT]robertbullen.com>
Chuck Kristofek <chuck.kristofek[AT]ngc.com>
Markus Renz <Markus.Renz[AT]hirschmann.de>

View File

@ -7,6 +7,8 @@
* NCS 1.0: PacketCable Network-Based Call Signaling Protocol Specification,
* PKT-SP-EC-MGCP-I09-040113, January 13, 2004, Cable Television
* Laboratories, Inc., http://www.PacketCable.com/
* NCS 1.5: PKT-SP-NCS1.5-I03-070412, April 12, 2007 Cable Television
* Laboratories, Inc., http://www.PacketCable.com/
* www.iana.org/assignments/mgcp-localconnectionoptions
*
* $Id$
@ -101,6 +103,8 @@ static int hf_mgcp_param_localconnoptions_t = -1;
static int hf_mgcp_param_localconnoptions_rcnf = -1;
static int hf_mgcp_param_localconnoptions_rdir = -1;
static int hf_mgcp_param_localconnoptions_rsh = -1;
static int hf_mgcp_param_localconnoptions_mp = -1;
static int hf_mgcp_param_localconnoptions_fxr = -1;
static int hf_mgcp_param_connectionmode = -1;
static int hf_mgcp_param_reqevents = -1;
static int hf_mgcp_param_restartmethod = -1;
@ -721,6 +725,12 @@ void proto_register_mgcp(void)
{ &hf_mgcp_param_localconnoptions_rsh,
{ "Resource Sharing (r-sh)", "mgcp.param.localconnectionoptions.rsh", FT_STRING, BASE_NONE, NULL, 0x0,
"Resource Sharing", HFILL }},
{ &hf_mgcp_param_localconnoptions_mp,
{ "Multiple Packetization period (mp)", "mgcp.param.localconnectionoptions.mp", FT_STRING, BASE_NONE, NULL, 0x0,
"Multiple Packetization period", HFILL }},
{ &hf_mgcp_param_localconnoptions_fxr,
{ "FXR (fxr/fx)", "mgcp.param.localconnectionoptions.fxr", FT_STRING, BASE_NONE, NULL, 0x0,
"FXR", HFILL }},
{ &hf_mgcp_param_connectionmode,
{ "ConnectionMode (M)", "mgcp.param.connectionmode", FT_STRING, BASE_NONE, NULL, 0x0,
"Connection Mode", HFILL }},
@ -2064,6 +2074,14 @@ dissect_mgcp_localconnectionoptions(proto_tree *parent_tree, tvbuff_t *tvb, gint
{
hf_string = hf_mgcp_param_localconnoptions_rsh;
}
else if (!g_ascii_strcasecmp(g_strstrip(typval[0]), "mp"))
{
hf_string = hf_mgcp_param_localconnoptions_mp;
}
else if (!g_ascii_strcasecmp(g_strstrip(typval[0]), "fxr/fx"))
{
hf_string = hf_mgcp_param_localconnoptions_fxr;
}
else
{
hf_uint = -1;