Ethereal-users: Re: [Ethereal-users] MGCP filter

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 10 Jul 2003 14:55:33 -0700

On Thursday, July 10, 2003, at 1:17 PM, Vikas Sarawat wrote:

I am using ethereal for MGCP traces. I was wondering, if I can filter
MGCP messages based on content of the MGCP message.

That depends on the part of the content you want to check. If you click on the "Filter:" button when constructing a filter to filter the display, you'll get a dialog box with an "Add Expression..." button; in the color filter dialog, the "New..." button will pop up a dialog box with that button as well. If you click on the "Add Expression..." button, you'll have a scrolling list of protocols - search for "MGCP" and click on the "[+]" box to open up the list of filterable fields for MGCP.

For example : - I want to see MGCP packets with Response code other than
200 and 100 in color other than black.

From a quick look at the code, it appears that the filter

	mgcp.rsp.rspcode != 200 && mgcp.rsp.rspcode != 100

will check for that.