3 * Dissector for the Skinny Client Control Protocol
4 * (The "D-Channel"-Protocol for Cisco Systems' IP-Phones)
5 * Copyright 2001, Joerg Mayer (email: see AUTHORS file)
7 * Paul E. Erkkila (pee@erkkila.org) - fleshed out the decode
8 * skeleton to report values for most message/message fields.
9 * Much help from Guy Harris on figuring out the ethereal api.
11 * This file is based on packet-aim.c, which is
12 * Copyright 2000, Ralf Hoelzer <ralf@well.com>
16 * Ethereal - Network traffic analyzer
17 * By Gerald Combs <gerald@ethereal.com>
18 * Copyright 1998 Gerald Combs
20 * This program is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU General Public License
22 * as published by the Free Software Foundation; either version 2
23 * of the License, or (at your option) any later version.
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
30 * You should have received a copy of the GNU General Public License
31 * along with this program; if not, write to the Free Software
32 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
35 /* This implementation is based on a draft version of the 3.0
45 #include <epan/packet.h>
46 #include <epan/prefs.h>
48 #include "packet-rtp.h"
49 #include "packet-tcp.h"
51 #define TCP_PORT_SKINNY 2000
53 #define SKINNY_SOFTKEY0 0x01
54 #define SKINNY_SOFTKEY1 0x02
55 #define SKINNY_SOFTKEY2 0x04
56 #define SKINNY_SOFTKEY3 0x08
57 #define SKINNY_SOFTKEY4 0x10
58 #define SKINNY_SOFTKEY5 0x20
59 #define SKINNY_SOFTKEY6 0x40
60 #define SKINNY_SOFTKEY7 0x80
61 #define SKINNY_SOFTKEY8 0x100
62 #define SKINNY_SOFTKEY9 0x200
63 #define SKINNY_SOFTKEY10 0x400
64 #define SKINNY_SOFTKEY11 0x800
65 #define SKINNY_SOFTKEY12 0x1000
66 #define SKINNY_SOFTKEY13 0x2000
67 #define SKINNY_SOFTKEY14 0x4000
68 #define SKINNY_SOFTKEY15 0x8000
70 /* KeyMap Show/No Show */
71 static const true_false_string softKeyMapValues = {
77 /* I will probably need this again when I change things
78 * to function pointers, but let me use the existing
79 * infrastructure for now
87 static const value_string message_id[] = {
89 /* Station -> Callmanager */
90 {0x0000, "KeepAliveMessage"},
91 {0x0001, "RegisterMessage"},
92 {0x0002, "IpPortMessage"},
93 {0x0003, "KeypadButtonMessage"},
94 {0x0004, "EnblocCallMessage"},
95 {0x0005, "StimulusMessage"},
96 {0x0006, "OffHookMessage"},
97 {0x0007, "OnHookMessage"},
98 {0x0008, "HookFlashMessage"},
99 {0x0009, "ForwardStatReqMessage"},
100 {0x000A, "SpeedDialStatReqMessage"},
101 {0x000B, "LineStatReqMessage"},
102 {0x000C, "ConfigStatReqMessage"},
103 {0x000D, "TimeDateReqMessage"},
104 {0x000E, "ButtonTemplateReqMessage"},
105 {0x000F, "VersionReqMessage"},
106 {0x0010, "CapabilitiesResMessage"},
107 {0x0011, "MediaPortListMessage"},
108 {0x0012, "ServerReqMessage"},
109 {0x0020, "AlarmMessage"},
110 {0x0021, "MulticastMediaReceptionAck"},
111 {0x0022, "OpenReceiveChannelAck"},
112 {0x0023, "ConnectionStatisticsRes"},
113 {0x0024, "OffHookWithCgpnMessage"},
114 {0x0025, "SoftKeySetReqMessage"},
115 {0x0026, "SoftKeyEventMessage"},
116 {0x0027, "UnregisterMessage"},
117 {0x0028, "SoftKeyTemplateReqMessage"},
118 {0x0029, "RegisterTokenReq"},
119 {0x002A, "MediaTransmissionFailure"},
120 {0x002B, "HeadsetStatusMessage"},
121 {0x002C, "MediaResourceNotification"},
122 {0x002D, "RegisterAvailableLinesMessage"},
123 {0x002E, "DeviceToUserDataMessage"},
124 {0x002F, "DeviceToUserDataResponseMessage"},
125 {0x0030, "UpdateCapabilitiesMessage"},
126 {0x0031, "OpenMultiMediaReceiveChannelAckMessage"},
127 {0x0032, "ClearConferenceMessage"},
128 {0x0033, "ServiceURLStatReqMessage"},
129 {0x0034, "FeatureStatReqMessage"},
130 {0x0035, "CreateConferenceResMessage"},
131 {0x0036, "DeleteConferenceResMessage"},
132 {0x0037, "ModifyConferenceResMessage"},
133 {0x0038, "AddParticipantResMessage"},
134 {0x0039, "AuditConferenceResMessage"},
135 {0x0040, "AuditParticipantResMessage"},
136 {0x0041, "DeviceToUserDataVersion1Message"},
137 {0x0042, "DeviceToUserDataResponseVersion1Message"},
139 /* Callmanager -> Station */
140 /* 0x0000, 0x0003? */
141 {0x0081, "RegisterAckMessage"},
142 {0x0082, "StartToneMessage"},
143 {0x0083, "StopToneMessage"},
144 {0x0085, "SetRingerMessage"},
145 {0x0086, "SetLampMessage"},
146 {0x0087, "SetHkFDetectMessage"},
147 {0x0088, "SetSpeakerModeMessage"},
148 {0x0089, "SetMicroModeMessage"},
149 {0x008A, "StartMediaTransmission"},
150 {0x008B, "StopMediaTransmission"},
151 {0x008C, "StartMediaReception"},
152 {0x008D, "StopMediaReception"},
153 {0x008F, "CallInfoMessage"},
154 {0x0090, "ForwardStatMessage"},
155 {0x0091, "SpeedDialStatMessage"},
156 {0x0092, "LineStatMessage"},
157 {0x0093, "ConfigStatMessage"},
158 {0x0094, "DefineTimeDate"},
159 {0x0095, "StartSessionTransmission"},
160 {0x0096, "StopSessionTransmission"},
161 {0x0097, "ButtonTemplateMessage"},
162 {0x0098, "VersionMessage"},
163 {0x0099, "DisplayTextMessage"},
164 {0x009A, "ClearDisplay"},
165 {0x009B, "CapabilitiesReqMessage"},
166 {0x009C, "EnunciatorCommandMessage"},
167 {0x009D, "RegisterRejectMessage"},
168 {0x009E, "ServerResMessage"},
170 {0x0100, "KeepAliveAckMessage"},
171 {0x0101, "StartMulticastMediaReception"},
172 {0x0102, "StartMulticastMediaTransmission"},
173 {0x0103, "StopMulticastMediaReception"},
174 {0x0104, "StopMulticastMediaTransmission"},
175 {0x0105, "OpenReceiveChannel"},
176 {0x0106, "CloseReceiveChannel"},
177 {0x0107, "ConnectionStatisticsReq"},
178 {0x0108, "SoftKeyTemplateResMessage"},
179 {0x0109, "SoftKeySetResMessage"},
180 {0x0110, "SelectSoftKeysMessage"},
181 {0x0111, "CallStateMessage"},
182 {0x0112, "DisplayPromptStatusMessage"},
183 {0x0113, "ClearPromptStatusMessage"},
184 {0x0114, "DisplayNotifyMessage"},
185 {0x0115, "ClearNotifyMessage"},
186 {0x0116, "ActivateCallPlaneMessage"},
187 {0x0117, "DeactivateCallPlaneMessage"},
188 {0x0118, "UnregisterAckMessage"},
189 {0x0119, "BackSpaceReqMessage"},
190 {0x011A, "RegisterTokenAck"},
191 {0x011B, "RegisterTokenReject"},
193 {0x011C, "StartMediaFailureDetection"},
194 {0x011D, "DialedNumberMessage"},
195 {0x011E, "UserToDeviceDataMessage"},
196 {0x011F, "FeatureStatMessage"},
197 {0x0120, "DisplayPriNotifyMessage"},
198 {0x0121, "ClearPriNotifyMessage"},
199 {0x0122, "StartAnnouncementMessage"},
200 {0x0123, "StopAnnouncementMessage"},
201 {0x0124, "AnnouncementFinishMessage"},
202 {0x0127, "NotifyDtmfToneMessage"},
203 {0x0128, "SendDtmfToneMessage"},
204 {0x0129, "SubscribeDtmfPayloadReqMessage"},
205 {0x012A, "SubscribeDtmfPayloadResMessage"},
206 {0x012B, "SubscribeDtmfPayloadErrMessage"},
207 {0x012C, "UnSubscribeDtmfPayloadReqMessage"},
208 {0x012D, "UnSubscribeDtmfPayloadResMessage"},
209 {0x012E, "UnSubscribeDtmfPayloadErrMessage"},
210 {0x012F, "ServiceURLStatMessage"},
211 {0x0130, "CallSelectStatMessage"},
212 {0x0131, "OpenMultiMediaChannelMessage"},
213 {0x0132, "StartMultiMediaTransmission"},
214 {0x0133, "StopMultiMediaTransmission"},
215 {0x0134, "MiscellaneousCommandMessage"},
216 {0x0135, "FlowControlCommandMessage"},
217 {0x0136, "CloseMultiMediaReceiveChannel"},
218 {0x0137, "CreateConferenceReqMessage"},
219 {0x0138, "DeleteConferenceReqMessage"},
220 {0x0139, "ModifyConferenceReqMessage"},
221 {0x013A, "AddParticipantReqMessage"},
222 {0x013B, "DropParticipantReqMessage"},
223 {0x013C, "AuditConferenceReqMessage"},
224 {0x013D, "AuditParticipantReqMessage"},
225 {0x013F, "UserToDeviceDataVersion1Message"},
227 {0 , NULL} /* terminator */
231 * Device type to text conversion table
233 static const value_string deviceTypes[] = {
240 {7 , "TelecasterMgr"},
241 {8 , "TelecasterBus"},
245 {20 , "Virtual30SPplus"},
246 {21 , "PhoneApplication"},
247 {30 , "AnalogAccess"},
248 {40 , "DigitalAccessPRI"},
249 {41 , "DigitalAccessT1"},
250 {42 , "DigitalAccessTitan2"},
251 {43 , "DigitalAccessLennon"},
252 {47 , "AnalogAccessElvis"},
253 {50 , "ConferenceBridge"},
254 {51 , "ConferenceBridgeYoko"},
255 {52 , "ConferenceBridgeDixieLand"},
256 {53 , "ConferenceBridgeSummit"},
260 {70 , "MusicOnHold"},
263 {73 , "TapiRoutePoint"},
265 {81 , "VoiceInboxAdmin"},
266 {82 , "LineAnnunciator"},
267 {83 , "SoftwareMtpDixieLand"},
268 {84 , "CiscoMediaServer"},
269 {85 , "ConferenceBridgeFlint"},
271 {100, "LoadSimulator"},
272 {110, "MediaTerminationPoint"},
273 {111, "MediaTerminationPointYoko"},
274 {112, "MediaTerminationPointDixieLand"},
275 {113, "MediaTerminationPointSummit"},
276 {120, "MGCPStation"},
280 {126, "Annunciator"},
281 {127, "MonitorBridge"},
283 {129, "MonitorBridgeYoko"},
285 {254, "UnknownMGCPGateway"},
291 * keypad button -> text conversion
293 static const value_string keypadButtons[] = {
313 static const value_string deviceStimuli[] = {
314 {1 , "LastNumberRedial"},
320 {7 , "ForwardNoAnswer"},
324 {0xb , "T120Whiteboard"},
325 {0xc , "T120ApplicationSharing"},
326 {0xd , "T120FileTransfer"},
329 {0x10 , "AutoAnswerRelease"},
330 {0x11 , "AutoAnswer"},
333 {0x14 , "ServiceURL"},
334 {0x1B , "MaliciousCall"},
335 {0x21 , "GenericAppB1"},
336 {0x22 , "GenericAppB2"},
337 {0x23 , "GenericAppB3"},
338 {0x24 , "GenericAppB4"},
339 {0x25 , "GenericAppB5"},
340 {0x7b , "MeetMeConference"},
341 {0x7d , "Conference=0x7d"},
342 {0x7e , "CallPark=0x7e"},
343 {0x7f , "CallPickup"},
344 {0x80 , "GroupCallPickup=80"},
349 /* Note i'm only using 7 later on cuz i'm lazy ;) */
350 #define DeviceMaxCapabilities 18 /* max capabilities allowed in Cap response message */
352 static const value_string mediaPayloads[] = {
353 {1 , "Non-standard codec"},
354 {2 , "G.711 A-law 64k"},
355 {3 , "G.711 A-law 56k"},
356 {4 , "G.711 u-law 64k"},
357 {5 , "G.711 u-law 56k"},
364 {12 , "G.729 Annex A"},
365 {13 , "IS11172 AudioCap"}, /* IS11172 is an ISO MPEG standard */
366 {14 , "IS13818 AudioCap"}, /* IS13818 is an ISO MPEG standard */
367 {15 , "G.729 Annex B"},
368 {16 , "G.729 Annex A+Annex B"},
369 {18 , "GSM Full Rate"},
370 {19 , "GSM Half Rate"},
371 {20 , "GSM Enhanced Full Rate"},
372 {25 , "Wideband 256k"},
376 {81 , "ActiveVoice"},
381 {86 , "G.729B Low Complexity"},
387 {257 , "RFC2833_DynPayload"},
391 static const value_string alarmSeverities[] = {
394 {2 , "Informational"},
403 static const value_string multicastMediaReceptionStatus[] = {
409 static const value_string openReceiveChanStatus[] = {
416 static const value_string statsProcessingTypes[] = {
418 {1 , "doNotClearStats"},
422 #define SkMaxSoftKeyCount 18 /* this value should be the same as the max soft key value */
423 static const value_string softKeyEvents[] = {
430 {7 , "CFwdNoAnswer"},
439 {16 , "MeetMeConfrn"},
441 {18 , "GrpCallPickUp"},
445 /* Define info index for each softkey event for Telecaster station. */
446 static const value_string softKeyIndexes[] = {
447 {301 , "RedialInfoIndex"},
448 {302 , "NewCallInfoIndex"},
449 {303 , "HoldInfoIndex"},
450 {304 , "TrnsferInfoIndex"},
451 {305 , "CFwdAllInfoIndex"},
452 {306 , "CFwdBusyInfoIndex"}, /* not used yet */
453 {307 , "CFwdNoAnswerInfoIndex"}, /* not used yet */
454 {308 , "BackSpaceInfoIndex"},
455 {309 , "EndCallInfoIndex"},
456 {310 , "ResumeInfoIndex"},
457 {311 , "AnswerInfoIndex"},
458 {312 , "InfoInfoIndex"},
459 {313 , "ConfrnInfoIndex"},
460 {314 , "ParkInfoIndex"},
461 {315 , "JoinInfoIndex"},
462 {316 , "MeetMeConfrnInfoIndex"},
463 {317 , "CallPickUpInfoIndex"},
464 {318 , "GrpCallPickUpInfoIndex"},
469 static const value_string buttonDefinitions[] = {
470 {1 , "LastNumberRedial"},
476 {7 , "ForwardNoAnswer"},
480 {0xb , "T120Whiteboard"},
481 {0xc , "T120ApplicationSharing"},
482 {0xd , "T120FileTransfer"},
484 {0x10 , "AnswerRelease"},
487 {0xff , "Undefined"},
491 #define StationTotalSoftKeySets 10 /* total number of the soft key sets */
492 static const value_string keySetNames[] = {
498 {5 , "Connected with transfer"},
499 {6 , "Digits after dialing first digit"},
500 {7 , "Connected with conference"},
502 {9 , "OffHook with features"},
506 /* Define soft key labels for the Telecaster station */
507 static const value_string softKeyLabel[] = {
515 {7 , "CFwdNoAnswer"},
533 * lamp cadence is defined as follows
534 * Wink (on 80%) = 448msec on / 64msec off
535 * Flash (fast flash) = 32msec on / 32msec off
536 * Blink (on 50%) = 512msec on / 512msec off
539 static const value_string stationLampModes[] = {
549 /* Defined the Call States to be sent to the Telecaste station.
550 * These are NOT the call states used in CM internally. Instead,
551 * they are the call states sent from CM and understood by the Telecaster station
553 static const value_string skinny_stationCallStates[] = {
563 {10 , "CallTransfer"},
566 {13 , "CallRemoteMultiline"},
567 {14 , "InvalidNumber"},
571 /* Defined Call Type */
572 static const value_string skinny_callTypes[] = {
574 {2 , "OutBoundCall"},
580 * define station-playable tones;
581 * for tone definitions see SR-TSV-002275, "BOC Notes on the LEC Networks -- 1994"
583 static const value_string skinny_deviceTones[] = {
601 {0x21 , "InsideDialTone"},
602 {0x22 , "OutsideDialTone"},
603 {0x23 , "LineBusyTone"},
604 {0x24 , "AlertingTone"},
605 {0x25 , "ReorderTone"},
606 {0x26 , "RecorderWarningTone"},
607 {0x27 , "RecorderDetectedTone"},
608 {0x28 , "RevertingTone"},
609 {0x29 , "ReceiverOffHookTone"},
610 {0x2a , "PartialDialTone"},
611 {0x2b , "NoSuchNumberTone"},
612 {0x2c , "BusyVerificationTone"},
613 {0x2d , "CallWaitingTone"},
614 {0x2e , "ConfirmationTone"},
615 {0x2f , "CampOnIndicationTone"},
616 {0x30 , "RecallDialTone"},
620 {0x34 , "MusicTone"},
623 {0x37 , "DtMoniterWarningTone"},
624 {0x40 , "AddCallWaiting"},
625 {0x41 , "PriorityCallWait"},
626 {0x42 , "RecallDial"},
628 {0x44 , "DistinctAlert"},
629 {0x45 , "PriorityAlert"},
630 {0x46 , "ReminderRing"},
631 {0x47 , "PrecedenceRingBack"},
632 {0x48 , "PreemptionTone"},
648 {0x5f , "MILLIWATT"},
649 {0x60 , "MILLIWATTTEST"},
651 {0x62 , "FLASHOVERRIDE"},
654 {0x65 , "IMMEDIATE"},
655 {0x66 , "PREAMPWARN"},
660 {0x77 , "MLPP_PALA"},
664 {0x7B , "MLPP_BNEA"},
670 /* define ring types */
671 static const value_string skinny_ringTypes[] = {
673 {0x2 , "InsideRing"},
674 {0x3 , "OutsideRing"},
675 {0x4 , "FeatureRing"},
677 {0x6 , "PrecedenceRing"},
681 static const value_string skinny_speakerModes[] = {
687 static const value_string skinny_silenceSuppressionModes[] = {
688 {0 , "Media_SilenceSuppression_Off"},
689 {1 , "Media_SilenceSuppression_On"},
693 static const value_string skinny_g723BitRates[] = {
694 {1 , "Media_G723BRate_5_3"},
695 {2 , "Media_G723BRate_6_4"},
699 /* define device reset types */
700 static const value_string skinny_deviceResetTypes[] = {
701 {1 , "DEVICE_RESET"},
702 {2 , "DEVICE_RESTART"},
706 static const value_string skinny_echoCancelTypes[] = {
707 {0 , "Media_EchoCancellation_Off"},
708 {1 , "Media_EchoCancellation_On"},
712 static const value_string skinny_deviceUnregisterStatusTypes[] = {
715 {2 , "NAK"}, /* Unregister request is rejected for reaso n such as existence of a call */
719 static const value_string skinny_createConfResults[] = {
721 {1 , "ResourceNotAvailable"},
722 {2 , "ConferenceAlreadyExist"},
727 static const value_string skinny_modifyConfResults[] = {
729 {1 , "ResourceNotAvailable"},
730 {2 , "ConferenceNotExist"},
731 {3 , "InvalidParameter"},
732 {4 , "MoreActiveCallsThanReserved"},
733 {5 , "InvalidResourceType"},
738 static const value_string skinny_deleteConfResults[] = {
740 {1 , "ConferenceNotExist"},
745 static const value_string skinny_addParticipantResults[] = {
747 {1 , "ResourceNotAvailable"},
748 {2 , "ConferenceNotExist"},
749 {3 , "DuplicateCallRef"},
754 static const value_string skinny_auditParticipantResults[] = {
756 {1 , "ConferenceNotExist"},
760 /* define hook flash detection mode */
761 static const value_string skinny_hookFlashDetectModes[] = {
763 {2 , "HookFlashOff"},
767 /* define headset mode */
768 static const value_string skinny_headsetModes[] = {
774 /* define station microphone modes;
775 * Mic On - The speakerphone's microphone is turned on ONLY if the phone is in the "Speaker On (Off Hook)"
777 * Mic Off - The microphone is turned off or, if it's not on, the command is ignored.
779 static const value_string skinny_microphoneModes[] = {
785 /* define the session request types */
786 static const value_string skinny_sessionTypes[] = {
789 {4 , "ApplicationSharing"},
790 {8 , "FileTransfer"},
795 static const value_string skinny_mediaEnunciationTypes[] = {
801 static const value_string skinny_resourceTypes[] = {
807 static const value_string skinny_sequenceFlags[] = {
808 {0 , "StationSequenceFirst"},
809 {1 , "StationSequenceMore"},
810 {2 , "StationSequenceLast"},
814 static const value_string skinny_Layouts[] = {
819 {4 , "TwoByTwo3Alt1"},
820 {5 , "TwoByTwo3Alt2"},
821 {6 , "ThreeByThree"},
822 {7 , "ThreeByThree6Alt1"},
823 {8 , "ThreeByThree6Alt2"},
824 {9 , "ThreeByThree4Alt1"},
825 {10 , "ThreeByThree4Alt2"},
829 static const value_string skinny_transmitOrReceive[] = {
830 {1 , "Station_Receive_only"},
831 {2 , "Station_Transmit_only"},
832 {3 , "Station_Receive_Transmit"},
836 static const value_string skinny_endOfAnnAck[] = {
837 {0 , "NoAnnAckRequired"},
838 {1 , "AnnAckRequired"},
842 static const value_string skinny_annPlayMode[] = {
843 {0 , "AnnXmlConfigMode"},
844 {1 , "AnnOneShotMode"},
845 {2 , "AnnContinuousMode"},
849 static const value_string skinny_annPlayStatus[] = {
855 static const value_string skinny_miscCommandType[] = {
856 {0 , "videoFreezePicture"},
857 {1 , "videoFastUpdatePicture"},
858 {2 , "videoFastUpdateGOB"},
859 {3 , "videoFastUpdateMB"},
861 {5 , "lostPartialPicture"},
862 {6 , "recoveryReferencePicture"},
863 {7 , "temporalSpatialTradeOff"},
867 static const value_string skinny_formatTypes[] = {
868 {1 , "sqcif (128x96)"},
869 {2 , "qcif (176x144)"},
870 {3 , "cif (352x288)"},
871 {4 , "4cif (704x576)"},
872 {5 , "16cif (1408x1152)"},
877 static const value_string cast_callSecurityStatusTypes[] = {
878 {0 , "CallSecurityStatusUnknown"},
879 {1 , "CallSecurityStatusNotAuthenticated"},
880 {2 , "CallSecurityStatusAuthenticated"},
884 #define StationMaxDirnumSize 24 /* max size of calling or called party dirnum */
885 #define StationMaxNameSize 40 /* max size of calling party's name */
886 #define StationMaxDeviceNameSize 16 /* max size of station's IP name */
887 #define StationMaxSpeedDials 10 /* max number of speed dial numbers allowed on a station */
888 #define StationMaxVersionSize 16 /* max chars in version string */
889 #define StationMaxButtonTemplateSize 42 /* max button template size */
890 #define StationMaxDisplayTextSize 33 /* max text size in DisplayText message */
891 #define StationMaxPorts 10 /* max number of ports on one device */
892 #define StationDateTemplateSize 6 /* date template in the form M/D/Y, D/M/Y, ... */
893 #define StationMaxServerNameSize 48 /* max size of server name */
894 #define StationMaxServers 5 /* max servers */
895 #define StationMaxDeviceDirnums 1024 /* max dir numbers per SCM device */
896 #define StationMaxDirnums 64 /* max dir numbers per physical station (also used in db request msg); */
897 #define StationMaxSoftKeyLabelSize 16 /* max label size in the message */
898 #define StationMaxSoftKeyDefinition 32 /* max number of soft key definition in the message */
899 #define StationMaxSoftKeySetDefinition 16 /* max number of soft key set definition in the message */
900 #define StationMaxSoftKeyIndex 16 /* max number of soft key indices in a station soft key set */
901 #define StationMaxDisplayPromptStatusSize 32 /* max status text size in the display status message */
902 #define StationMaxDisplayNotifySize 32 /* max prompt text size in the display prompt message */
903 #define StationMaxAlarmMessageSize 80 /* max size for an alarm message */
904 #define StationMaxUserDeviceDataSize 2000 /* max size of user data between application and device */
905 #define StationMaxConference 32
906 #define AppConferenceIDSize 32
907 #define AppDataSize 24
908 #define MAX_CUSTOM_PICTURES 6
909 #define MAX_LAYOUT_WITH_SAME_SERVICE 5
910 #define MAX_SERVICE_TYPE 4
911 #define DeviceMaxCapabilities 18 /* max capabilities allowed in Cap response message */
912 #define StationMaxCapabilities DeviceMaxCapabilities
913 #define StationMaxVideoCapabilities 10
914 #define StationMaxDataCapabilities 5
915 #define MAX_LEVEL_PREFERENCE 4
916 #define MaxAnnouncementList 32
917 #define StationMaxMonitorParties 16 /* Max Monitor Bridge whisper matrix parties, rm, M&R in Parche */
918 #define StationMaxServiceURLSize 256 /* max number of service URLs length */
919 #define MAX_PICTURE_FORMAT 5
920 #define MAX_REFERENCE_PICTURE 4
922 static void dissect_skinny(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
924 /* Initialize the protocol and registered fields */
925 static int proto_skinny = -1;
926 static int hf_skinny_data_length = -1;
927 static int hf_skinny_reserved = -1;
928 static int hf_skinny_messageid = -1;
929 static int hf_skinny_deviceName = -1;
930 static int hf_skinny_stationUserId = -1;
931 static int hf_skinny_stationInstance = -1;
932 static int hf_skinny_deviceType = -1;
933 static int hf_skinny_maxStreams = -1;
934 static int hf_skinny_stationIpPort = -1;
935 static int hf_skinny_stationKeypadButton = -1;
936 static int hf_skinny_calledParty = -1;
937 static int hf_skinny_stimulus = -1;
938 static int hf_skinny_stimulusInstance = -1;
939 static int hf_skinny_lineNumber = -1;
940 static int hf_skinny_speedDialNumber = -1;
941 static int hf_skinny_capCount = -1;
942 static int hf_skinny_payloadCapability = -1;
943 static int hf_skinny_maxFramesPerPacket = -1;
944 static int hf_skinny_alarmSeverity = -1;
945 static int hf_skinny_alarmParam1 = -1;
946 static int hf_skinny_alarmParam2 = -1;
947 static int hf_skinny_receptionStatus = -1;
948 static int hf_skinny_passThruPartyID = -1;
949 static int hf_skinny_ORCStatus = -1;
950 static int hf_skinny_ipAddress = -1;
951 static int hf_skinny_portNumber = -1;
952 static int hf_skinny_statsProcessingType = -1;
953 static int hf_skinny_callIdentifier = -1;
954 static int hf_skinny_packetsSent = -1;
955 static int hf_skinny_octetsSent = -1;
956 static int hf_skinny_packetsRecv = -1;
957 static int hf_skinny_octetsRecv = -1;
958 static int hf_skinny_packetsLost = -1;
959 static int hf_skinny_latency = -1;
960 static int hf_skinny_jitter = -1;
961 static int hf_skinny_directoryNumber = -1;
962 static int hf_skinny_softKeyEvent = -1;
963 static int hf_skinny_lineInstance = -1;
964 static int hf_skinny_keepAliveInterval = -1;
965 static int hf_skinny_dateTemplate = -1;
966 static int hf_skinny_secondaryKeepAliveInterval = -1;
967 static int hf_skinny_buttonOffset = -1;
968 static int hf_skinny_buttonCount = -1;
969 static int hf_skinny_totalButtonCount = -1;
970 static int hf_skinny_buttonInstanceNumber = -1;
971 static int hf_skinny_buttonDefinition = -1;
972 static int hf_skinny_softKeyOffset = -1;
973 static int hf_skinny_softKeyCount = -1;
974 static int hf_skinny_totalSoftKeyCount = -1;
975 static int hf_skinny_softKeyLabel = -1;
976 static int hf_skinny_softKeySetOffset = -1;
977 static int hf_skinny_softKeySetCount = -1;
978 static int hf_skinny_totalSoftKeySetCount = -1;
979 static int hf_skinny_softKeyTemplateIndex = -1;
980 static int hf_skinny_softKeyInfoIndex = -1;
981 static int hf_skinny_softKeySetDescription = -1;
982 static int hf_skinny_softKeyMap = -1;
983 static int hf_skinny_softKey0 = -1;
984 static int hf_skinny_softKey1 = -1;
985 static int hf_skinny_softKey2 = -1;
986 static int hf_skinny_softKey3 = -1;
987 static int hf_skinny_softKey4 = -1;
988 static int hf_skinny_softKey5 = -1;
989 static int hf_skinny_softKey6 = -1;
990 static int hf_skinny_softKey7 = -1;
991 static int hf_skinny_softKey8 = -1;
992 static int hf_skinny_softKey9 = -1;
993 static int hf_skinny_softKey10 = -1;
994 static int hf_skinny_softKey11 = -1;
995 static int hf_skinny_softKey12 = -1;
996 static int hf_skinny_softKey13 = -1;
997 static int hf_skinny_softKey14 = -1;
998 static int hf_skinny_softKey15 = -1;
999 static int hf_skinny_lampMode = -1;
1000 static int hf_skinny_messageTimeOutValue = -1;
1001 static int hf_skinny_displayMessage = -1;
1002 static int hf_skinny_lineDirNumber = -1;
1003 static int hf_skinny_lineFullyQualifiedDisplayName = -1;
1004 static int hf_skinny_speedDialDirNumber = -1;
1005 static int hf_skinny_speedDialDisplayName = -1;
1006 static int hf_skinny_dateYear = -1;
1007 static int hf_skinny_dateMonth = -1;
1008 static int hf_skinny_dayOfWeek = -1;
1009 static int hf_skinny_dateDay = -1;
1010 static int hf_skinny_dateHour = -1;
1011 static int hf_skinny_dateMinute = -1;
1012 static int hf_skinny_dateSeconds = -1;
1013 static int hf_skinny_dateMilliseconds = -1;
1014 static int hf_skinny_timeStamp = -1;
1015 static int hf_skinny_callState = -1;
1016 static int hf_skinny_deviceTone = -1;
1017 static int hf_skinny_callingPartyName = -1;
1018 static int hf_skinny_callingParty = -1;
1019 static int hf_skinny_calledPartyName = -1;
1020 static int hf_skinny_callType = -1;
1021 static int hf_skinny_originalCalledPartyName = -1;
1022 static int hf_skinny_originalCalledParty = -1;
1023 static int hf_skinny_ringType = -1;
1024 static int hf_skinny_speakerMode = -1;
1025 static int hf_skinny_remoteIpAddr = -1;
1026 static int hf_skinny_remotePortNumber = -1;
1027 static int hf_skinny_millisecondPacketSize = -1;
1028 static int hf_skinny_precedenceValue = -1;
1029 static int hf_skinny_silenceSuppression = -1;
1030 static int hf_skinny_g723BitRate = -1;
1031 static int hf_skinny_conferenceID = -1;
1032 static int hf_skinny_deviceResetType = -1;
1033 static int hf_skinny_echoCancelType = -1;
1034 static int hf_skinny_deviceUnregisterStatus = -1;
1035 static int hf_skinny_hookFlashDetectMode = -1;
1036 static int hf_skinny_detectInterval = -1;
1037 static int hf_skinny_microphoneMode = -1;
1038 static int hf_skinny_headsetMode = -1;
1039 static int hf_skinny_unknown = -1;
1040 static int hf_skinny_data = -1;
1041 static int hf_skinny_activeForward = -1;
1042 static int hf_skinny_forwardAllActive = -1;
1043 static int hf_skinny_forwardBusyActive = -1;
1044 static int hf_skinny_forwardNoAnswerActive = -1;
1045 static int hf_skinny_forwardNumber = -1;
1046 static int hf_skinny_serverName = -1;
1047 static int hf_skinny_numberLines = -1;
1048 static int hf_skinny_numberSpeedDials = -1;
1049 static int hf_skinny_userName = -1;
1050 static int hf_skinny_sessionType = -1;
1051 static int hf_skinny_version = -1;
1052 static int hf_skinny_mediaEnunciationType = -1;
1053 static int hf_skinny_serverIdentifier = -1;
1054 static int hf_skinny_serverListenPort = -1;
1055 static int hf_skinny_serverIpAddress = -1;
1056 static int hf_skinny_multicastIpAddress = -1;
1057 static int hf_skinny_multicastPort = -1;
1058 static int hf_skinny_tokenRejWaitTime = -1;
1059 static int hf_skinny_numberOfInServiceStreams = -1;
1060 static int hf_skinny_maxStreamsPerConf = -1;
1061 static int hf_skinny_numberOfOutOfServiceStreams = -1;
1062 static int hf_skinny_applicationID = -1;
1063 static int hf_skinny_serviceNum = -1;
1064 static int hf_skinny_serviceURLIndex = -1;
1065 static int hf_skinny_featureIndex = -1;
1066 static int hf_skinny_createConfResults = -1;
1067 static int hf_skinny_modifyConfResults = -1;
1068 static int hf_skinny_deleteConfResults = -1;
1069 static int hf_skinny_addParticipantResults = -1;
1070 static int hf_skinny_passThruData = -1;
1071 static int hf_skinny_last = -1;
1072 static int hf_skinny_numberOfEntries = -1;
1073 static int hf_skinny_auditParticipantResults = -1;
1074 static int hf_skinny_participantEntry = -1;
1075 static int hf_skinny_resourceTypes = -1;
1076 static int hf_skinny_numberOfReservedParticipants = -1;
1077 static int hf_skinny_numberOfActiveParticipants = -1;
1078 static int hf_skinny_appID = -1;
1079 static int hf_skinny_appData = -1;
1080 static int hf_skinny_appConfID = -1;
1081 static int hf_skinny_sequenceFlag = -1;
1082 static int hf_skinny_displayPriority = -1;
1083 static int hf_skinny_appInstanceID = -1;
1084 static int hf_skinny_routingID = -1;
1085 static int hf_skinny_audioCapCount = -1;
1086 static int hf_skinny_videoCapCount = -1;
1087 static int hf_skinny_dataCapCount = -1;
1088 static int hf_skinny_RTPPayloadFormat = -1;
1089 static int hf_skinny_customPictureFormatCount = -1;
1090 static int hf_skinny_pictureWidth = -1;
1091 static int hf_skinny_pictureHeight = -1;
1092 static int hf_skinny_pixelAspectRatio = -1;
1093 static int hf_skinny_clockConversionCode = -1;
1094 static int hf_skinny_clockDivisor = -1;
1095 static int hf_skinny_activeStreamsOnRegistration = -1;
1096 static int hf_skinny_maxBW = -1;
1097 static int hf_skinny_serviceResourceCount = -1;
1098 static int hf_skinny_layoutCount = -1;
1099 static int hf_skinny_layout = -1;
1100 static int hf_skinny_maxConferences = -1;
1101 static int hf_skinny_activeConferenceOnRegistration = -1;
1102 static int hf_skinny_transmitOrReceive = -1;
1103 static int hf_skinny_levelPreferenceCount = -1;
1104 static int hf_skinny_transmitPreference = -1;
1105 static int hf_skinny_format = -1;
1106 static int hf_skinny_maxBitRate = -1;
1107 static int hf_skinny_minBitRate = -1;
1108 static int hf_skinny_MPI = -1;
1109 static int hf_skinny_serviceNumber = -1;
1110 static int hf_skinny_temporalSpatialTradeOffCapability = -1;
1111 static int hf_skinny_stillImageTransmission = -1;
1112 static int hf_skinny_h263_capability_bitfield = -1;
1113 static int hf_skinny_annexNandWFutureUse = -1;
1114 static int hf_skinny_modelNumber = -1;
1115 static int hf_skinny_bandwidth = -1;
1116 static int hf_skinny_protocolDependentData = -1;
1117 static int hf_skinny_priority = -1;
1118 static int hf_skinny_payloadDtmf = -1;
1119 static int hf_skinny_featureID = -1;
1120 static int hf_skinny_featureTextLabel = -1;
1121 static int hf_skinny_featureStatus = -1;
1122 static int hf_skinny_notify = -1;
1123 static int hf_skinny_endOfAnnAck = -1;
1124 static int hf_skinny_annPlayMode = -1;
1125 static int hf_skinny_annPlayStatus = -1;
1126 static int hf_skinny_locale = -1;
1127 static int hf_skinny_country = -1;
1128 static int hf_skinny_matrixConfPartyID = -1;
1129 static int hf_skinny_hearingConfPartyMask = -1;
1130 static int hf_skinny_serviceURL = -1;
1131 static int hf_skinny_serviceURLDisplayName = -1;
1132 static int hf_skinny_callSelectStat = -1;
1133 static int hf_skinny_isConferenceCreator = -1;
1134 static int hf_skinny_payload_rfc_number = -1;
1135 static int hf_skinny_payloadType = -1;
1136 static int hf_skinny_bitRate = -1;
1137 static int hf_skinny_pictureFormatCount = -1;
1138 static int hf_skinny_confServiceNum = -1;
1139 static int hf_skinny_DSCPValue = -1;
1140 static int hf_skinny_miscCommandType = -1;
1141 static int hf_skinny_temporalSpatialTradeOff = -1;
1142 static int hf_skinny_firstGOB = -1;
1143 static int hf_skinny_numberOfGOBs = -1;
1144 static int hf_skinny_firstMB = -1;
1145 static int hf_skinny_numberOfMBs = -1;
1146 static int hf_skinny_pictureNumber = -1;
1147 static int hf_skinny_longTermPictureIndex = -1;
1148 static int hf_skinny_recoveryReferencePictureCount = -1;
1149 static int hf_skinny_transactionID = -1;
1150 static int hf_cast_lastRedirectingPartyName = -1;
1151 static int hf_cast_lastRedirectingParty = -1;
1152 static int hf_cast_cgpnVoiceMailbox = -1;
1153 static int hf_cast_cdpnVoiceMailbox = -1;
1154 static int hf_cast_originalCdpnVoiceMailbox = -1;
1155 static int hf_cast_lastRedirectingVoiceMailbox = -1;
1156 static int hf_cast_originalCdpnRedirectReason = -1;
1157 static int hf_cast_lastRedirectingReason = -1;
1158 static int hf_cast_callInstance = -1;
1159 static int hf_cast_callSecurityStatus = -1;
1162 /* Initialize the subtree pointers */
1163 static gint ett_skinny = -1;
1164 static gint ett_skinny_tree = -1;
1165 static gint ett_skinny_softKeyMap = -1;
1167 /* desegmentation of SCCP */
1168 static gboolean skinny_desegment = TRUE;
1170 static dissector_handle_t data_handle;
1171 static dissector_handle_t rtp_handle=NULL;
1173 /* Get the length of a single SCCP PDU */
1174 static guint get_skinny_pdu_len(tvbuff_t *tvb, int offset)
1176 guint32 hdr_data_length;
1179 * Get the length of the SCCP packet.
1181 hdr_data_length = tvb_get_letohl(tvb, offset);
1184 * That length doesn't include the length of the header itself;
1187 return hdr_data_length + 8;
1190 /* Dissect a single SCCP PDU */
1191 static void dissect_skinny_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
1196 guint32 hdr_data_length;
1197 guint32 hdr_reserved;
1198 guint32 data_messageid;
1199 /* guint32 data_size; */
1208 guint32 softKeyCount;
1209 guint32 softKeySetCount;
1210 guint16 validKeyMask;
1212 /* Set up structures we will need to add the protocol subtree and manage it */
1214 proto_tree *skinny_tree = NULL;
1216 proto_tree *skinny_sub_tree;
1217 proto_tree *skinny_sub_tree_sav;
1218 proto_tree *skinny_sub_tree_sav_sav;
1220 proto_item *skm = NULL;
1221 proto_item *skm_tree = NULL;
1223 hdr_data_length = tvb_get_letohl(tvb, offset);
1224 hdr_reserved = tvb_get_letohl(tvb, offset+4);
1225 data_messageid = tvb_get_letohl(tvb, offset+8);
1227 /* In the interest of speed, if "tree" is NULL, don't do any work not
1228 * necessary to generate protocol tree items. */
1230 ti = proto_tree_add_item(tree, proto_skinny, tvb, offset, hdr_data_length+8, FALSE);
1231 skinny_tree = proto_item_add_subtree(ti, ett_skinny);
1232 proto_tree_add_uint(skinny_tree, hf_skinny_data_length, tvb, offset, 4, hdr_data_length);
1233 proto_tree_add_uint(skinny_tree, hf_skinny_reserved, tvb, offset+4, 4, hdr_reserved);
1236 if (check_col(pinfo->cinfo, COL_INFO)) {
1237 col_add_str(pinfo->cinfo, COL_INFO,
1238 val_to_str(data_messageid, message_id, "0x%08X (Unknown)"));
1242 proto_tree_add_uint(skinny_tree, hf_skinny_messageid, tvb,offset+8, 4, data_messageid );
1246 switch(data_messageid) {
1248 /* cases that do not need to be decoded */
1249 case 0x0 : /* keepAlive */
1252 case 0x6 : /* offHook */
1255 case 0x7 : /* onHook */
1258 case 0x8 : /* hookFlash */
1261 case 0xc : /* configStateReqMessage */
1264 case 0xd : /* timeDateReqMessage */
1267 case 0xe : /* buttoneTemplateReqMessage */
1270 case 0xf : /* stationVersionReqMessage */
1273 case 0x12 : /* stationServerReqMessage */
1276 case 0x25 : /* softKeySetReqMessage */
1279 case 0x27 : /* unregisterMessage */
1282 case 0x28 : /* softKeyTemplateRequest */
1285 case 0x83 : /* stopTone */
1288 case 0x9a : /* clearDisplay */
1291 case 0x9b : /* capabilitiesReqMessage */
1294 case 0x100 : /* keepAliveAck */
1297 case 0x115 : /* clearNotifyDisplay */
1300 case 0x117 : /* deactivateCallPlane */
1303 case 0x11a : /* registerTokenAck */
1306 case 0x13C : /* AuditConferenceReqMessage */
1310 ** cases that need decode
1314 case 0x1 : /* register message */
1315 proto_tree_add_item(skinny_tree, hf_skinny_deviceName, tvb, offset+12, StationMaxDeviceNameSize, TRUE);
1316 proto_tree_add_item(skinny_tree, hf_skinny_stationUserId, tvb, offset+28, 4, TRUE);
1317 proto_tree_add_item(skinny_tree, hf_skinny_stationInstance, tvb, offset+32, 4, TRUE);
1318 proto_tree_add_item(skinny_tree, hf_skinny_ipAddress, tvb, offset+36, 4, FALSE);
1319 proto_tree_add_item(skinny_tree, hf_skinny_deviceType, tvb, offset+40, 4, TRUE);
1320 proto_tree_add_item(skinny_tree, hf_skinny_maxStreams, tvb, offset+44, 4, TRUE);
1323 case 0x2 : /* ipPortMessage */
1324 proto_tree_add_item(skinny_tree, hf_skinny_stationIpPort, tvb, offset+12, 2, FALSE);
1327 case 0x3 : /* keyPadButtonMessage */
1328 proto_tree_add_item(skinny_tree, hf_skinny_stationKeypadButton, tvb, offset+12, 4, TRUE);
1331 case 0x4 : /* stationEnblocCallMessage -- This decode NOT verified*/
1332 proto_tree_add_item(skinny_tree, hf_skinny_calledParty, tvb, offset+12, StationMaxDirnumSize, TRUE);
1335 case 0x5 : /* stationStimulusMessage */
1336 proto_tree_add_item(skinny_tree, hf_skinny_stimulus, tvb, offset+12, 4, TRUE);
1337 proto_tree_add_item(skinny_tree, hf_skinny_stimulusInstance, tvb, offset+16, 4, TRUE);
1340 case 0x9 : /* stationForwardStatReqMessage */
1341 proto_tree_add_item(skinny_tree, hf_skinny_lineNumber, tvb, offset+12, 4, TRUE);
1344 case 0xa : /* speedDialStatReqMessage */
1345 proto_tree_add_item(skinny_tree, hf_skinny_speedDialNumber, tvb, offset+12, 4, TRUE);
1348 case 0xb : /* LineStatReqMessage */
1349 proto_tree_add_item(skinny_tree, hf_skinny_lineNumber, tvb, offset+12, 4, TRUE);
1352 case 0x10 : /* capabilitiesResMessage - VERIFIED AS IS*/
1353 /* FIXME -- we are only going to decode the first 7 protocol fields for now cuz that's all it sent me
1354 * on the phone i was working with. I should probably skip the struct decode and use a more piece
1355 * type method using the capCount definition to control the decode loop
1357 * basically changing StationMaxCapabilities definition
1360 capCount = tvb_get_letohl(tvb, offset+12);
1361 proto_tree_add_uint(skinny_tree, hf_skinny_capCount, tvb, offset+12, 4, capCount);
1362 for (i = 0; i < capCount; i++) {
1363 proto_tree_add_item(skinny_tree, hf_skinny_payloadCapability, tvb, offset+(i*16)+16, 4, TRUE);
1364 proto_tree_add_item(skinny_tree, hf_skinny_maxFramesPerPacket, tvb, offset+(i*16)+20, 2, TRUE);
1365 /* FIXME -- decode the union under here as required, is always 0 on my equipment */
1369 case 0x11 : /* mediaPortList */
1372 case 0x20 : /* stationAlarmMessage */
1373 proto_tree_add_item(skinny_tree, hf_skinny_alarmSeverity, tvb, offset+12, 4, TRUE);
1374 proto_tree_add_item(skinny_tree, hf_skinny_displayMessage, tvb, offset+16, StationMaxAlarmMessageSize, TRUE);
1375 proto_tree_add_item(skinny_tree, hf_skinny_alarmParam1, tvb, offset+96, 4, TRUE);
1376 proto_tree_add_item(skinny_tree, hf_skinny_alarmParam2, tvb, offset+100, 4, FALSE);
1379 case 0x21 : /* stationMulticastMediaReceptionAck - This decode NOT verified*/
1380 proto_tree_add_item(skinny_tree, hf_skinny_receptionStatus, tvb, offset+12, 4, TRUE);
1381 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
1384 case 0x22 : /* stationOpenReceiveChannelAck */
1385 proto_tree_add_item(skinny_tree, hf_skinny_ORCStatus, tvb, offset+12, 4, TRUE);
1386 proto_tree_add_item(skinny_tree, hf_skinny_ipAddress, tvb, offset+16, 4, FALSE);
1387 proto_tree_add_item(skinny_tree, hf_skinny_portNumber, tvb, offset+20, 4, TRUE);
1388 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+24, 4, TRUE);
1389 if((!pinfo->fd->flags.visited) && rtp_handle){
1391 guint32 ipv4_address;
1393 src_addr.type=AT_IPv4;
1395 src_addr.data=(guint8 *)&ipv4_address;
1396 tvb_memcpy(tvb, (guint8 *)&ipv4_address, offset+16, 4);
1397 rtp_add_address(pinfo, &src_addr, tvb_get_letohl(tvb, offset+20), 0, "Skinny", pinfo->fd->num, NULL);
1401 case 0x23 : /* stationConnectionStatisticsRes */
1402 proto_tree_add_item(skinny_tree, hf_skinny_directoryNumber, tvb, offset+12, StationMaxDirnumSize, TRUE);
1403 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+36, 4, TRUE);
1404 proto_tree_add_item(skinny_tree, hf_skinny_statsProcessingType, tvb, offset+40, 4, TRUE);
1405 proto_tree_add_item(skinny_tree, hf_skinny_packetsSent, tvb, offset+44, 4, TRUE);
1406 proto_tree_add_item(skinny_tree, hf_skinny_octetsSent, tvb, offset+48, 4, TRUE);
1407 proto_tree_add_item(skinny_tree, hf_skinny_packetsRecv, tvb, offset+52, 4, TRUE);
1408 proto_tree_add_item(skinny_tree, hf_skinny_octetsRecv, tvb, offset+56, 4, TRUE);
1409 proto_tree_add_item(skinny_tree, hf_skinny_packetsLost, tvb, offset+60, 4, TRUE);
1410 proto_tree_add_item(skinny_tree, hf_skinny_jitter, tvb, offset+64, 4, TRUE);
1411 proto_tree_add_item(skinny_tree, hf_skinny_latency, tvb, offset+68, 4, TRUE);
1414 case 0x24 : /* offHookWithCgpn */
1415 proto_tree_add_item(skinny_tree, hf_skinny_calledParty, tvb, offset+12,StationMaxDirnumSize, TRUE);
1418 case 0x26 : /* softKeyEventMessage */
1419 proto_tree_add_item(skinny_tree, hf_skinny_softKeyEvent, tvb, offset+12, 4, TRUE);
1420 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+16, 4, TRUE);
1421 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
1424 case 0x29 : /* registerTokenREq */
1425 proto_tree_add_item(skinny_tree, hf_skinny_deviceName, tvb, offset+12, 4, TRUE);
1426 i = offset+12+StationMaxDeviceNameSize;
1427 proto_tree_add_item(skinny_tree, hf_skinny_stationUserId, tvb, i, 4, TRUE);
1428 proto_tree_add_item(skinny_tree, hf_skinny_stationInstance, tvb, i+4, 4, TRUE);
1429 proto_tree_add_item(skinny_tree, hf_skinny_ipAddress, tvb, i+8, 4, FALSE);
1430 proto_tree_add_item(skinny_tree, hf_skinny_deviceType, tvb, i+12, 4, TRUE);
1433 case 0x2A : /* MediaTransmissionFailure */
1434 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
1435 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
1436 proto_tree_add_item(skinny_tree, hf_skinny_ipAddress, tvb, offset+20, 4, FALSE);
1437 proto_tree_add_item(skinny_tree, hf_skinny_portNumber, tvb, offset+24, 4, TRUE);
1438 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+28, 4, TRUE);
1441 case 0x2B : /* HeadsetStatusMessage */
1442 proto_tree_add_item(skinny_tree, hf_skinny_headsetMode, tvb, offset+12, 4, TRUE);
1445 case 0x2C : /* MediaResourceNotification */
1446 proto_tree_add_item(skinny_tree, hf_skinny_deviceType, tvb, offset+12, 4, TRUE);
1447 proto_tree_add_item(skinny_tree, hf_skinny_numberOfInServiceStreams, tvb, offset+16, 4, TRUE);
1448 proto_tree_add_item(skinny_tree, hf_skinny_maxStreamsPerConf, tvb, offset+20, 4, TRUE);
1449 proto_tree_add_item(skinny_tree, hf_skinny_numberOfOutOfServiceStreams, tvb, offset+24, 4, TRUE);
1452 case 0x2D : /* RegisterAvailableLinesMessage */
1453 proto_tree_add_item(skinny_tree, hf_skinny_numberLines, tvb, offset+12, 4, TRUE);
1456 case 0x2E : /* DeviceToUserDataMessage */
1457 proto_tree_add_item(skinny_tree, hf_skinny_applicationID, tvb, offset+12, 4, TRUE);
1458 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+16, 4, TRUE);
1459 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
1460 proto_tree_add_item(skinny_tree, hf_skinny_transactionID, tvb, offset+24, 4, TRUE);
1461 proto_tree_add_item(skinny_tree, hf_skinny_data_length, tvb, offset+28, 4, TRUE);
1462 count = tvb_get_letohl( tvb, offset+28);
1463 proto_tree_add_uint(skinny_tree, hf_skinny_data, tvb, offset+30, 1, count);
1466 case 0x2F : /* DeviceToUserDataResponseMessage */
1467 proto_tree_add_item(skinny_tree, hf_skinny_applicationID, tvb, offset+12, 4, TRUE);
1468 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+16, 4, TRUE);
1469 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
1470 proto_tree_add_item(skinny_tree, hf_skinny_transactionID, tvb, offset+24, 4, TRUE);
1471 proto_tree_add_item(skinny_tree, hf_skinny_data_length, tvb, offset+28, 4, TRUE);
1472 count = tvb_get_letohl( tvb, offset+28);
1473 proto_tree_add_uint(skinny_tree, hf_skinny_data, tvb, offset+30, 1, count);
1476 case 0x30 : /* UpdateCapabilitiesMessage */
1477 /* to do - this message is very large and will span multiple packets, it would be nice to someday */
1478 /* find out a way to join the next packet and get the complete message to decode */
1479 proto_tree_add_item(skinny_tree, hf_skinny_audioCapCount, tvb, offset+12, 4, TRUE);
1480 proto_tree_add_item(skinny_tree, hf_skinny_videoCapCount, tvb, offset+16, 4, TRUE);
1481 proto_tree_add_item(skinny_tree, hf_skinny_dataCapCount, tvb, offset+20, 4, TRUE);
1482 proto_tree_add_item(skinny_tree, hf_skinny_RTPPayloadFormat, tvb, offset+24, 4, TRUE);
1483 proto_tree_add_item(skinny_tree, hf_skinny_customPictureFormatCount, tvb, offset+28, 4, TRUE);
1485 for ( i = 0; i < MAX_CUSTOM_PICTURES; i++ ) {
1486 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 20, "customPictureFormat[%d]", i);
1487 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1488 proto_tree_add_item(skinny_sub_tree, hf_skinny_pictureWidth, tvb, count, 4, TRUE);
1490 proto_tree_add_item(skinny_sub_tree, hf_skinny_pictureHeight, tvb, count, 4, TRUE);
1492 proto_tree_add_item(skinny_sub_tree, hf_skinny_pixelAspectRatio, tvb, count, 4, TRUE);
1494 proto_tree_add_item(skinny_sub_tree, hf_skinny_clockConversionCode, tvb, count, 4, TRUE);
1496 proto_tree_add_item(skinny_sub_tree, hf_skinny_clockDivisor, tvb, count, 4, TRUE);
1499 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 8, "confResources");
1500 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1501 proto_tree_add_item(skinny_sub_tree, hf_skinny_activeStreamsOnRegistration, tvb, count, 4, TRUE);
1503 proto_tree_add_item(skinny_sub_tree, hf_skinny_maxBW, tvb, count, 4, TRUE);
1505 proto_tree_add_item(skinny_sub_tree, hf_skinny_serviceResourceCount, tvb, count, 4, TRUE);
1507 skinny_sub_tree_sav = skinny_sub_tree;
1508 for ( i = 0; i < MAX_SERVICE_TYPE; i++ ) {
1509 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 20, "serviceResource[%d]", i);
1510 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1511 proto_tree_add_item(skinny_sub_tree, hf_skinny_layoutCount, tvb, count, 4, TRUE);
1513 skinny_sub_tree_sav_sav = skinny_sub_tree_sav;
1514 for ( t = 0; t < MAX_LAYOUT_WITH_SAME_SERVICE; t++ ) {
1515 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 20, "layouts[%d]", t);
1516 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1517 proto_tree_add_item(skinny_sub_tree, hf_skinny_layout, tvb, count, 4, TRUE);
1520 skinny_sub_tree = skinny_sub_tree_sav_sav;
1521 proto_tree_add_item(skinny_sub_tree, hf_skinny_serviceNum, tvb, count, 4, TRUE);
1523 proto_tree_add_item(skinny_sub_tree, hf_skinny_maxStreams, tvb, count, 4, TRUE);
1525 proto_tree_add_item(skinny_sub_tree, hf_skinny_maxConferences, tvb, count, 4, TRUE);
1527 proto_tree_add_item(skinny_sub_tree, hf_skinny_activeConferenceOnRegistration, tvb, count, 4, TRUE);
1530 for ( i = 0; i < StationMaxCapabilities; i++ ) {
1531 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 20, "audiocaps[%d]", i);
1532 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1533 proto_tree_add_item(skinny_sub_tree, hf_skinny_payloadCapability, tvb, count, 4, TRUE);
1535 proto_tree_add_item(skinny_sub_tree, hf_skinny_maxFramesPerPacket, tvb, count, 2, TRUE);
1537 /* skip past union it is only for G723 */
1540 for ( i = 0; i < StationMaxVideoCapabilities; i++ ) {
1541 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 20, "vidCaps[%d]", i);
1542 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1543 proto_tree_add_item(skinny_sub_tree, hf_skinny_payloadCapability, tvb, count, 4, TRUE);
1545 proto_tree_add_item(skinny_sub_tree, hf_skinny_transmitOrReceive, tvb, count, 4, TRUE);
1547 proto_tree_add_item(skinny_sub_tree, hf_skinny_levelPreferenceCount, tvb, count, 4, TRUE);
1549 skinny_sub_tree_sav = skinny_sub_tree;
1550 for ( t = 0; t < MAX_LEVEL_PREFERENCE; t++ ) {
1551 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 20, "levelPreference[%d]", t);
1552 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1553 proto_tree_add_item(skinny_sub_tree, hf_skinny_transmitPreference, tvb, count, 4, TRUE);
1555 proto_tree_add_item(skinny_sub_tree, hf_skinny_format, tvb, count, 4, TRUE);
1557 proto_tree_add_item(skinny_sub_tree, hf_skinny_maxBitRate, tvb, count, 4, TRUE);
1559 proto_tree_add_item(skinny_sub_tree, hf_skinny_minBitRate, tvb, count, 4, TRUE);
1561 proto_tree_add_item(skinny_sub_tree, hf_skinny_MPI, tvb, count, 4, TRUE);
1563 proto_tree_add_item(skinny_sub_tree, hf_skinny_serviceNumber, tvb, count, 4, TRUE);
1569 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8, "h261VideoCapability");
1570 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1571 proto_tree_add_item(skinny_sub_tree, hf_skinny_temporalSpatialTradeOffCapability, tvb, count, 4, TRUE);
1573 proto_tree_add_item(skinny_sub_tree, hf_skinny_stillImageTransmission, tvb, count, 4, TRUE);
1578 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8, "h263VideoCapability");
1579 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1580 proto_tree_add_item(skinny_sub_tree, hf_skinny_h263_capability_bitfield, tvb, count, 4, TRUE);
1582 proto_tree_add_item(skinny_sub_tree, hf_skinny_annexNandWFutureUse, tvb, count, 4, TRUE);
1587 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8, "vieoVideoCapability");
1588 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1589 proto_tree_add_item(skinny_sub_tree, hf_skinny_modelNumber, tvb, count, 4, TRUE);
1591 proto_tree_add_item(skinny_sub_tree, hf_skinny_bandwidth, tvb, count, 4, TRUE);
1594 for ( i = 0; i < StationMaxDataCapabilities; i++ ) {
1595 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 20, "dataCaps[%d]", i);
1596 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1597 proto_tree_add_item(skinny_sub_tree, hf_skinny_payloadCapability, tvb, count, 4, TRUE);
1599 proto_tree_add_item(skinny_sub_tree, hf_skinny_transmitOrReceive, tvb, count, 4, TRUE);
1601 proto_tree_add_item(skinny_sub_tree, hf_skinny_protocolDependentData, tvb, count, 4, TRUE);
1603 proto_tree_add_item(skinny_sub_tree, hf_skinny_maxBitRate, tvb, count, 4, TRUE);
1608 case 0x31 : /* OpenMultiMediaReceiveChannelAckMessage */
1609 proto_tree_add_item(skinny_tree, hf_skinny_ORCStatus, tvb, offset+12, 4, TRUE);
1610 proto_tree_add_item(skinny_tree, hf_skinny_ipAddress, tvb, offset+16, 4, FALSE);
1611 proto_tree_add_item(skinny_tree, hf_skinny_portNumber, tvb, offset+20, 4, TRUE);
1612 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+24, 4, TRUE);
1613 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+28, 4, TRUE);
1616 case 0x32 : /* ClearConferenceMessage */
1617 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
1618 proto_tree_add_item(skinny_tree, hf_skinny_serviceNum, tvb, offset+16, 4, TRUE);
1621 case 0x33 : /* ServiceURLStatReqMessage */
1622 proto_tree_add_item(skinny_tree, hf_skinny_serviceURLIndex, tvb, offset+12, 4, TRUE);
1625 case 0x34 : /* FeatureStatReqMessage */
1626 proto_tree_add_item(skinny_tree, hf_skinny_featureIndex, tvb, offset+12, 4, TRUE);
1629 case 0x35 : /* CreateConferenceResMessage */
1630 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
1631 proto_tree_add_item(skinny_tree, hf_skinny_createConfResults, tvb, offset+16, 4, TRUE);
1632 proto_tree_add_item(skinny_tree, hf_skinny_data_length, tvb, offset+20, 4, TRUE);
1633 count = tvb_get_letohl( tvb, offset+20);
1634 proto_tree_add_uint(skinny_tree, hf_skinny_passThruData, tvb, offset+24, 1, count);
1637 case 0x36 : /* DeleteConferenceResMessage */
1638 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
1639 proto_tree_add_item(skinny_tree, hf_skinny_deleteConfResults, tvb, offset+16, 4, TRUE);
1642 case 0x37 : /* ModifyConferenceResMessage */
1643 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
1644 proto_tree_add_item(skinny_tree, hf_skinny_createConfResults, tvb, offset+16, 4, TRUE);
1645 proto_tree_add_item(skinny_tree, hf_skinny_data_length, tvb, offset+20, 4, TRUE);
1646 count = tvb_get_letohl( tvb, offset+20);
1647 proto_tree_add_uint(skinny_tree, hf_skinny_passThruData, tvb, offset+24, 1, count);
1650 case 0x38 : /* AddParticipantResMessage */
1651 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
1652 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+16, 4, TRUE);
1653 proto_tree_add_item(skinny_tree, hf_skinny_addParticipantResults, tvb, offset+20, 4, TRUE);
1656 case 0x39 : /* AuditConferenceResMessage */
1657 proto_tree_add_item(skinny_tree, hf_skinny_last, tvb, offset+12, 4, TRUE);
1658 proto_tree_add_item(skinny_tree, hf_skinny_numberOfEntries, tvb, offset+16, 4, TRUE);
1660 for ( i = 0; i < StationMaxConference; i++ ) {
1661 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, count, 4, TRUE);
1663 proto_tree_add_item(skinny_tree, hf_skinny_resourceTypes, tvb, count, 4, TRUE);
1665 proto_tree_add_item(skinny_tree, hf_skinny_numberOfReservedParticipants, tvb, count, 4, TRUE);
1667 proto_tree_add_item(skinny_tree, hf_skinny_numberOfActiveParticipants, tvb, count, 4, TRUE);
1669 proto_tree_add_item(skinny_tree, hf_skinny_appID, tvb, count, 4, TRUE);
1671 proto_tree_add_uint(skinny_tree, hf_skinny_appConfID, tvb, count, 1, AppConferenceIDSize);
1672 count += AppConferenceIDSize;
1673 proto_tree_add_uint(skinny_tree, hf_skinny_appData, tvb, count, 1, AppDataSize);
1674 count += AppDataSize;
1678 case 0x40 : /* AuditParticipantResMessage */
1679 proto_tree_add_item(skinny_tree, hf_skinny_auditParticipantResults, tvb, offset+12, 4, TRUE);
1680 proto_tree_add_item(skinny_tree, hf_skinny_last, tvb, offset+16, 4, TRUE);
1681 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+20, 4, TRUE);
1682 proto_tree_add_item(skinny_tree, hf_skinny_numberOfEntries, tvb, offset+24, 4, TRUE);
1683 count = tvb_get_letohl( tvb, offset+24);
1684 for ( i = 0; i < count; i++ ) {
1685 proto_tree_add_item(skinny_tree, hf_skinny_participantEntry, tvb, offset+28+(i*4), 4, TRUE);
1689 case 0x41 : /* DeviceToUserDataVersion1Message */
1690 proto_tree_add_item(skinny_tree, hf_skinny_applicationID, tvb, offset+12, 4, TRUE);
1691 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+16, 4, TRUE);
1692 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
1693 proto_tree_add_item(skinny_tree, hf_skinny_transactionID, tvb, offset+24, 4, TRUE);
1694 proto_tree_add_item(skinny_tree, hf_skinny_data_length, tvb, offset+28, 4, TRUE);
1695 count = tvb_get_letohl( tvb, offset+28);
1696 proto_tree_add_item(skinny_tree, hf_skinny_sequenceFlag, tvb, offset+30, 4, TRUE);
1697 proto_tree_add_item(skinny_tree, hf_skinny_displayPriority, tvb, offset+34, 4, TRUE);
1698 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+38, 4, TRUE);
1699 proto_tree_add_item(skinny_tree, hf_skinny_appInstanceID, tvb, offset+42, 4, TRUE);
1700 proto_tree_add_item(skinny_tree, hf_skinny_routingID, tvb, offset+46, 4, TRUE);
1701 proto_tree_add_uint(skinny_tree, hf_skinny_data, tvb, offset+50, 1, count);
1704 case 0x42 : /* DeviceToUserDataResponseVersion1Message */
1705 proto_tree_add_item(skinny_tree, hf_skinny_applicationID, tvb, offset+12, 4, TRUE);
1706 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+16, 4, TRUE);
1707 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
1708 proto_tree_add_item(skinny_tree, hf_skinny_transactionID, tvb, offset+24, 4, TRUE);
1709 proto_tree_add_item(skinny_tree, hf_skinny_data_length, tvb, offset+28, 4, TRUE);
1710 count = tvb_get_letohl( tvb, offset+28);
1711 proto_tree_add_item(skinny_tree, hf_skinny_sequenceFlag, tvb, offset+30, 4, TRUE);
1712 proto_tree_add_item(skinny_tree, hf_skinny_displayPriority, tvb, offset+34, 4, TRUE);
1713 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+38, 4, TRUE);
1714 proto_tree_add_item(skinny_tree, hf_skinny_appInstanceID, tvb, offset+42, 4, TRUE);
1715 proto_tree_add_item(skinny_tree, hf_skinny_routingID, tvb, offset+46, 4, TRUE);
1716 proto_tree_add_uint(skinny_tree, hf_skinny_data, tvb, offset+50, 1, count);
1722 * Call manager -> client messages start here(ish)
1725 case 0x81 : /* registerAck */
1726 proto_tree_add_item(skinny_tree, hf_skinny_keepAliveInterval, tvb, offset+12, 4, TRUE);
1727 proto_tree_add_item(skinny_tree, hf_skinny_dateTemplate, tvb, offset+16, StationDateTemplateSize, TRUE);
1728 proto_tree_add_item(skinny_tree, hf_skinny_secondaryKeepAliveInterval, tvb, offset+24, 4, TRUE);
1731 case 0x82 : /* startTone */
1732 proto_tree_add_item(skinny_tree, hf_skinny_deviceTone, tvb, offset+12, 4, TRUE);
1735 case 0x85 : /* setRingerMessage */
1736 proto_tree_add_item(skinny_tree, hf_skinny_ringType, tvb, offset+12, 4, TRUE);
1739 case 0x86 : /* setLampMessage */
1740 proto_tree_add_item(skinny_tree, hf_skinny_stimulus, tvb, offset+12, 4, TRUE);
1741 proto_tree_add_item(skinny_tree, hf_skinny_stimulusInstance, tvb, offset+16, 4, TRUE);
1742 proto_tree_add_item(skinny_tree, hf_skinny_lampMode, tvb, offset+20, 4, TRUE);
1745 case 0x87 : /* stationHookFlashDetectMode */
1746 proto_tree_add_item(skinny_tree, hf_skinny_hookFlashDetectMode, tvb, offset+12, 4, TRUE);
1747 proto_tree_add_item(skinny_tree, hf_skinny_detectInterval, tvb, offset+16, 4, TRUE);
1750 case 0x88 : /* setSpeakerMode */
1752 proto_tree_add_item(skinny_tree, hf_skinny_speakerMode, tvb, offset+12, 4, TRUE);
1755 case 0x89 : /* setMicroMode */
1756 proto_tree_add_item(skinny_tree, hf_skinny_microphoneMode, tvb, offset+12, 4, TRUE);
1759 case 0x8a : /* startMediaTransmistion */
1760 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
1761 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
1762 proto_tree_add_item(skinny_tree, hf_skinny_remoteIpAddr, tvb, offset+20, 4, FALSE);
1763 proto_tree_add_item(skinny_tree, hf_skinny_remotePortNumber, tvb, offset+24, 4, TRUE);
1764 proto_tree_add_item(skinny_tree, hf_skinny_millisecondPacketSize, tvb, offset+28, 4, TRUE);
1765 proto_tree_add_item(skinny_tree, hf_skinny_payloadCapability, tvb, offset+32, 4, TRUE);
1766 proto_tree_add_item(skinny_tree, hf_skinny_precedenceValue, tvb, offset+36, 4, TRUE);
1767 proto_tree_add_item(skinny_tree, hf_skinny_silenceSuppression, tvb, offset+40, 4, TRUE);
1768 proto_tree_add_item(skinny_tree, hf_skinny_maxFramesPerPacket, tvb, offset+44, 2, TRUE);
1769 proto_tree_add_item(skinny_tree, hf_skinny_g723BitRate, tvb, offset+48, 4, TRUE);
1770 if((!pinfo->fd->flags.visited) && rtp_handle){
1772 guint32 ipv4_address;
1774 src_addr.type=AT_IPv4;
1776 src_addr.data=(char *)&ipv4_address;
1777 tvb_memcpy(tvb, (char *)&ipv4_address, offset+20, 4);
1778 rtp_add_address(pinfo, &src_addr, tvb_get_letohl(tvb, offset+24), 0, "Skinny", pinfo->fd->num, NULL);
1782 case 0x8b : /* stopMediaTransmission */
1784 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
1785 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
1788 case 0x8c : /* startMediaReception */
1791 case 0x8d : /* stopMediaReception */
1794 case 0x8e : /* reservered */
1797 case 0x8f : /* callInfo */
1799 proto_tree_add_item(skinny_tree, hf_skinny_callingPartyName, tvb, i, StationMaxNameSize, TRUE);
1800 i += StationMaxNameSize;
1801 proto_tree_add_item(skinny_tree, hf_skinny_callingParty, tvb, i, StationMaxDirnumSize, TRUE);
1802 i += StationMaxDirnumSize;
1803 proto_tree_add_item(skinny_tree, hf_skinny_calledPartyName, tvb, i, StationMaxNameSize, TRUE);
1804 i += StationMaxNameSize;
1805 proto_tree_add_item(skinny_tree, hf_skinny_calledParty, tvb, i, StationMaxDirnumSize, TRUE);
1806 i += StationMaxDirnumSize;
1807 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, i, 4, TRUE);
1809 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, i, 4, TRUE);
1811 proto_tree_add_item(skinny_tree, hf_skinny_callType, tvb, i, 4, TRUE);
1813 proto_tree_add_item(skinny_tree, hf_skinny_originalCalledPartyName, tvb, i, StationMaxNameSize, TRUE);
1814 i += StationMaxNameSize;
1815 proto_tree_add_item(skinny_tree, hf_skinny_originalCalledParty, tvb, i, StationMaxDirnumSize, TRUE);
1816 i += StationMaxDirnumSize;
1817 proto_tree_add_item(skinny_tree, hf_cast_lastRedirectingPartyName, tvb, i, StationMaxNameSize, TRUE);
1818 i += StationMaxNameSize;
1819 proto_tree_add_item(skinny_tree, hf_cast_lastRedirectingParty, tvb, i, StationMaxDirnumSize, TRUE);
1820 i += StationMaxDirnumSize;
1821 proto_tree_add_item(skinny_tree, hf_cast_originalCdpnRedirectReason, tvb, i, 4, TRUE);
1823 proto_tree_add_item(skinny_tree, hf_cast_lastRedirectingReason, tvb, i, 4, TRUE);
1825 proto_tree_add_item(skinny_tree, hf_cast_cgpnVoiceMailbox, tvb, i, StationMaxDirnumSize, TRUE);
1826 i += StationMaxDirnumSize;
1827 proto_tree_add_item(skinny_tree, hf_cast_cdpnVoiceMailbox, tvb, i, StationMaxDirnumSize, TRUE);
1828 i += StationMaxDirnumSize;
1829 proto_tree_add_item(skinny_tree, hf_cast_originalCdpnVoiceMailbox, tvb, i, StationMaxDirnumSize, TRUE);
1830 i += StationMaxDirnumSize;
1831 proto_tree_add_item(skinny_tree, hf_cast_lastRedirectingVoiceMailbox, tvb, i, StationMaxDirnumSize, TRUE);
1832 i += StationMaxDirnumSize;
1833 proto_tree_add_item(skinny_tree, hf_cast_callInstance, tvb, i, 4, TRUE);
1835 proto_tree_add_item(skinny_tree, hf_cast_callSecurityStatus, tvb, i, 4, TRUE);
1837 val = tvb_get_letohl( tvb, i);
1838 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 8, "partyPIRestrictionBits");
1839 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
1840 proto_tree_add_text(skinny_sub_tree, tvb, i, 4,
1841 decode_boolean_bitfield( val, 0x01, 4*8, "Does RestrictCallingPartyName", "Doesn't RestrictCallingPartyName"));
1842 proto_tree_add_text(skinny_sub_tree, tvb, i, 4,
1843 decode_boolean_bitfield( val, 0x02, 4*8, "Does RestrictCallingPartyNumber", "Doesn't RestrictCallingPartyNumber"));
1844 proto_tree_add_text(skinny_sub_tree, tvb, i, 4,
1845 decode_boolean_bitfield( val, 0x04, 4*8, "Does RestrictCalledPartyName", "Doesn't RestrictCalledPartyName"));
1846 proto_tree_add_text(skinny_sub_tree, tvb, i, 4,
1847 decode_boolean_bitfield( val, 0x08, 4*8, "Does RestrictCalledPartyNumber", "Doesn't RestrictCalledPartyNumber"));
1848 proto_tree_add_text(skinny_sub_tree, tvb, i, 4,
1849 decode_boolean_bitfield( val, 0x10, 4*8, "Does RestrictOriginalCalledPartyName", "Doesn't RestrictOriginalCalledPartyName"));
1850 proto_tree_add_text(skinny_sub_tree, tvb, i, 4,
1851 decode_boolean_bitfield( val, 0x20, 4*8, "Does RestrictOriginalCalledPartyNumber", "Doesn't RestrictOriginalCalledPartyNumber"));
1852 proto_tree_add_text(skinny_sub_tree, tvb, i, 4,
1853 decode_boolean_bitfield( val, 0x40, 4*8, "Does RestrictLastRedirectPartyName", "Doesn't RestrictLastRedirectPartyName"));
1854 proto_tree_add_text(skinny_sub_tree, tvb, i, 4,
1855 decode_boolean_bitfield( val, 0x80, 4*8, "Does RestrictLastRedirectPartyNumber", "Doesn't RestrictLastRedirectPartyNumber"));
1858 case 0x90 : /* forwardStat */
1859 proto_tree_add_item(skinny_tree, hf_skinny_activeForward, tvb, offset+12, 4, TRUE);
1860 proto_tree_add_item(skinny_tree, hf_skinny_lineNumber, tvb, offset+16, 4, TRUE);
1861 proto_tree_add_item(skinny_tree, hf_skinny_forwardAllActive, tvb, offset+20, 4, TRUE);
1862 proto_tree_add_item(skinny_tree, hf_skinny_forwardNumber, tvb, offset+24, StationMaxDirnumSize, TRUE);
1863 i = offset+24+StationMaxDirnumSize;
1864 proto_tree_add_item(skinny_tree, hf_skinny_forwardBusyActive, tvb, i, 4, TRUE);
1866 proto_tree_add_item(skinny_tree, hf_skinny_forwardNumber, tvb, i, StationMaxDirnumSize, TRUE);
1867 i += StationMaxDirnumSize;
1868 proto_tree_add_item(skinny_tree, hf_skinny_forwardNoAnswerActive, tvb, i, 4, TRUE);
1870 proto_tree_add_item(skinny_tree, hf_skinny_forwardNumber, tvb, i, StationMaxDirnumSize, TRUE);
1873 case 0x91 : /* speedDialStatMessage */
1874 proto_tree_add_item(skinny_tree, hf_skinny_speedDialNumber, tvb, offset+12, 4, TRUE);
1875 proto_tree_add_item(skinny_tree, hf_skinny_speedDialDirNumber, tvb, offset+16, StationMaxDirnumSize, TRUE);
1876 proto_tree_add_item(skinny_tree, hf_skinny_speedDialDisplayName, tvb, offset+40, StationMaxNameSize, TRUE);
1879 case 0x92 : /* lineStatMessage */
1880 proto_tree_add_item(skinny_tree, hf_skinny_lineNumber, tvb, offset+12, 4, TRUE);
1881 proto_tree_add_item(skinny_tree, hf_skinny_lineDirNumber, tvb, offset+16, StationMaxDirnumSize, TRUE);
1882 proto_tree_add_item(skinny_tree, hf_skinny_lineFullyQualifiedDisplayName, tvb, offset+16+StationMaxDirnumSize, StationMaxNameSize, TRUE);
1885 case 0x93 : /* configStat */
1886 proto_tree_add_item(skinny_tree, hf_skinny_deviceName, tvb, offset+12, StationMaxDeviceNameSize, TRUE);
1887 i = offset+12+StationMaxDeviceNameSize;
1888 proto_tree_add_item(skinny_tree, hf_skinny_stationUserId, tvb, i, 4, TRUE);
1890 proto_tree_add_item(skinny_tree, hf_skinny_stationInstance, tvb, i, 4, TRUE);
1892 proto_tree_add_item(skinny_tree, hf_skinny_userName, tvb, i, StationMaxNameSize, TRUE);
1893 i += StationMaxNameSize;
1894 proto_tree_add_item(skinny_tree, hf_skinny_serverName, tvb, i, StationMaxNameSize, TRUE);
1895 i += StationMaxNameSize;
1896 proto_tree_add_item(skinny_tree, hf_skinny_numberLines, tvb, i, 4, TRUE);
1897 proto_tree_add_item(skinny_tree, hf_skinny_numberSpeedDials, tvb, i+4, 4, TRUE);
1900 case 0x94 : /* stationDefineTimeDate */
1901 proto_tree_add_item(skinny_tree, hf_skinny_dateYear, tvb, offset+12, 4, TRUE);
1902 proto_tree_add_item(skinny_tree, hf_skinny_dateMonth, tvb, offset+16, 4, TRUE);
1903 proto_tree_add_item(skinny_tree, hf_skinny_dayOfWeek, tvb, offset+20, 4, TRUE);
1904 proto_tree_add_item(skinny_tree, hf_skinny_dateDay, tvb, offset+24, 4, TRUE);
1905 proto_tree_add_item(skinny_tree, hf_skinny_dateHour, tvb, offset+28, 4, TRUE);
1906 proto_tree_add_item(skinny_tree, hf_skinny_dateMinute, tvb, offset+32, 4, TRUE);
1907 proto_tree_add_item(skinny_tree, hf_skinny_dateSeconds,tvb, offset+36, 4, TRUE);
1908 proto_tree_add_item(skinny_tree, hf_skinny_dateMilliseconds,tvb, offset+40, 4, TRUE);
1909 proto_tree_add_item(skinny_tree, hf_skinny_timeStamp, tvb, offset+44, 4, TRUE);
1912 case 0x95 : /* startSessionTransmission */
1913 proto_tree_add_item(skinny_tree, hf_skinny_remoteIpAddr, tvb, offset+12, 4, FALSE);
1914 proto_tree_add_item(skinny_tree, hf_skinny_sessionType, tvb, offset+16, 4, TRUE);
1917 case 0x96 : /* stopSessionTransmission */
1918 proto_tree_add_item(skinny_tree, hf_skinny_remoteIpAddr, tvb, offset+12, 4, FALSE);
1919 proto_tree_add_item(skinny_tree, hf_skinny_sessionType, tvb, offset+16, 4, TRUE);
1922 case 0x97 : /* buttonTemplateMessage */
1925 * This decode prints out oogly subtree maybe? or something besides the VALS...
1926 * note to self: uint8 != 4 kk thx info ^_^
1929 proto_tree_add_item(skinny_tree, hf_skinny_buttonOffset, tvb, offset+12, 4, TRUE);
1930 proto_tree_add_item(skinny_tree, hf_skinny_buttonCount, tvb, offset+16, 4, TRUE);
1931 proto_tree_add_item(skinny_tree, hf_skinny_totalButtonCount, tvb, offset+20, 4, TRUE);
1932 for (i = 0; i < StationMaxButtonTemplateSize; i++) {
1933 proto_tree_add_item(skinny_tree, hf_skinny_buttonInstanceNumber, tvb, offset+(i*2)+24, 1, TRUE);
1934 proto_tree_add_item(skinny_tree, hf_skinny_buttonDefinition, tvb, offset+(i*2)+25, 1, TRUE);
1938 case 0x98 : /* version */
1939 proto_tree_add_item(skinny_tree, hf_skinny_version, tvb, offset+12, StationMaxVersionSize, TRUE);
1942 case 0x99 : /* displayTextMessage */
1943 proto_tree_add_item(skinny_tree, hf_skinny_displayMessage, tvb, offset+12, StationMaxDisplayTextSize, TRUE);
1946 case 0x9c : /* enunciatorCommand */
1947 proto_tree_add_item(skinny_tree, hf_skinny_mediaEnunciationType, tvb, offset+12, 4, TRUE);
1948 for (i = 0; i < StationMaxDirnumSize; i++) {
1949 proto_tree_add_item(skinny_tree, hf_skinny_unknown, tvb, offset+16+(i*4), 4, TRUE);
1951 i = offset+16+StationMaxDirnumSize;
1952 proto_tree_add_item(skinny_tree, hf_skinny_mediaEnunciationType, tvb, i, 4, TRUE);
1955 case 0x9d : /* stationRegisterReject */
1956 proto_tree_add_item(skinny_tree, hf_skinny_displayMessage, tvb, offset+12, StationMaxDisplayTextSize, TRUE);
1959 case 0x9e : /* serverRes */
1960 for (i = 0; i < StationMaxServers; i++) {
1961 proto_tree_add_item(skinny_tree, hf_skinny_serverIdentifier, tvb, offset+12+(i*StationMaxServers), StationMaxServerNameSize, TRUE);
1963 j = offset+12+(i*StationMaxServers);
1964 for (i = 0; i < StationMaxServers; i++) {
1965 proto_tree_add_item(skinny_tree, hf_skinny_serverListenPort, tvb, j+(i*4), 4, TRUE);
1968 for (i = 0; i < StationMaxServers; i++) {
1969 proto_tree_add_item(skinny_tree, hf_skinny_serverIpAddress, tvb, j+(i*4), 4, FALSE);
1973 case 0x9f : /* reset */
1974 proto_tree_add_item(skinny_tree, hf_skinny_deviceResetType, tvb, offset+12, 4, TRUE);
1977 case 0x101 : /* startMulticastMediaReception*/
1978 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
1979 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
1980 proto_tree_add_item(skinny_tree, hf_skinny_multicastIpAddress, tvb, offset+20, 4, FALSE);
1981 proto_tree_add_item(skinny_tree, hf_skinny_multicastPort, tvb, offset+24, 4, TRUE);
1982 proto_tree_add_item(skinny_tree, hf_skinny_millisecondPacketSize, tvb, offset+28, 4, TRUE);
1983 proto_tree_add_item(skinny_tree, hf_skinny_payloadCapability, tvb, offset+32, 4, TRUE);
1984 proto_tree_add_item(skinny_tree, hf_skinny_echoCancelType, tvb, offset+36, 4, TRUE);
1985 proto_tree_add_item(skinny_tree, hf_skinny_g723BitRate, tvb, offset+40, 4, TRUE);
1988 case 0x102 : /* startMulticateMediaTermination*/
1989 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
1990 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
1991 proto_tree_add_item(skinny_tree, hf_skinny_multicastIpAddress, tvb, offset+20, 4, FALSE);
1992 proto_tree_add_item(skinny_tree, hf_skinny_multicastPort, tvb, offset+24, 4, TRUE);
1993 proto_tree_add_item(skinny_tree, hf_skinny_millisecondPacketSize, tvb, offset+28, 4, TRUE);
1994 proto_tree_add_item(skinny_tree, hf_skinny_payloadCapability, tvb, offset+32, 4, TRUE);
1995 proto_tree_add_item(skinny_tree, hf_skinny_precedenceValue, tvb, offset+36, 4, TRUE);
1996 proto_tree_add_item(skinny_tree, hf_skinny_silenceSuppression, tvb, offset+40, 4, TRUE);
1997 proto_tree_add_item(skinny_tree, hf_skinny_maxFramesPerPacket, tvb, offset+44, 2, TRUE);
1998 proto_tree_add_item(skinny_tree, hf_skinny_g723BitRate, tvb, offset+48, 4, TRUE);
2001 case 0x103 : /* stopMulticastMediaReception*/
2002 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2003 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2006 case 0x104 : /* stopMulticastMediaTermination*/
2007 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2008 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2011 case 0x105 : /* open receive channel */
2012 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2013 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2014 proto_tree_add_item(skinny_tree, hf_skinny_millisecondPacketSize, tvb, offset+20, 4, TRUE);
2015 proto_tree_add_item(skinny_tree, hf_skinny_payloadCapability, tvb, offset+24, 4, TRUE);
2016 proto_tree_add_item(skinny_tree, hf_skinny_echoCancelType, tvb, offset+28, 4, TRUE);
2017 proto_tree_add_item(skinny_tree, hf_skinny_g723BitRate, tvb, offset+32, 4, TRUE);
2020 case 0x106 : /* closeReceiveChannel */
2021 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2022 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2025 case 0x107 : /* connectionStatisticsReq */
2028 proto_tree_add_item(skinny_tree, hf_skinny_directoryNumber, tvb, i, StationMaxDirnumSize, TRUE);
2029 i = 12 + StationMaxDirnumSize;
2030 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, i, 4, TRUE);
2032 proto_tree_add_item(skinny_tree, hf_skinny_statsProcessingType, tvb, i, 4, TRUE);
2035 case 0x108 : /* softkeyTemplateResMessage */
2036 proto_tree_add_item(skinny_tree, hf_skinny_softKeyOffset, tvb, offset+12, 4, TRUE);
2037 softKeyCount = tvb_get_letohl(tvb, offset+16);
2038 proto_tree_add_uint(skinny_tree, hf_skinny_softKeyCount, tvb, offset+16, 4, softKeyCount);
2039 proto_tree_add_item(skinny_tree, hf_skinny_totalSoftKeyCount, tvb, offset+20, 4, TRUE);
2040 for (i = 0; ((i < StationMaxSoftKeyDefinition) && (i < softKeyCount)); i++){
2041 proto_tree_add_item(skinny_tree, hf_skinny_softKeyLabel, tvb, offset+(i*20)+24, StationMaxSoftKeyLabelSize, TRUE);
2042 proto_tree_add_item(skinny_tree, hf_skinny_softKeyEvent, tvb, offset+(i*20)+40, 4, TRUE);
2044 /* there is more data here, but it doesn't make a whole lot of sense, I imagine
2045 * it's just some not zero'd out stuff in the packet or...
2049 case 0x109 : /* softkeysetres */
2050 proto_tree_add_item(skinny_tree, hf_skinny_softKeySetOffset, tvb, offset+12, 4, TRUE);
2051 softKeySetCount = tvb_get_letohl(tvb, offset+16);
2052 proto_tree_add_uint(skinny_tree, hf_skinny_softKeySetCount, tvb, offset+16, 4, softKeySetCount);
2053 proto_tree_add_item(skinny_tree, hf_skinny_totalSoftKeySetCount, tvb, offset+20, 4, TRUE);
2054 for (i = 0; ((i < StationMaxSoftKeySetDefinition) && (i < softKeySetCount)); i++) {
2055 proto_tree_add_uint(skinny_tree, hf_skinny_softKeySetDescription, tvb, offset+24+(i*48) , 1, i);
2056 for (j = 0; j < StationMaxSoftKeyIndex; j++) {
2057 proto_tree_add_item(skinny_tree, hf_skinny_softKeyTemplateIndex, tvb, offset+24+(i*48)+j, 1, TRUE);
2059 for (j = 0; j < StationMaxSoftKeyIndex; j++) {
2060 proto_tree_add_item(skinny_tree, hf_skinny_softKeyInfoIndex, tvb, offset+24+(i*48)+StationMaxSoftKeyIndex+(j*2), 2, TRUE);
2065 case 0x110 : /* selectSoftKeys */
2066 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+12, 4, TRUE);
2067 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+16, 4, TRUE);
2068 proto_tree_add_item(skinny_tree, hf_skinny_softKeySetDescription, tvb, offset+20, 4, TRUE);
2069 validKeyMask = tvb_get_letohs(tvb, offset + 24);
2070 skm = proto_tree_add_uint(skinny_tree, hf_skinny_softKeyMap, tvb, offset + 24, 1, validKeyMask);
2071 skm_tree = proto_item_add_subtree(skm, ett_skinny_softKeyMap);
2072 proto_tree_add_boolean(skm_tree, hf_skinny_softKey0, tvb, offset + 24, 1, validKeyMask);
2073 proto_tree_add_boolean(skm_tree, hf_skinny_softKey1, tvb, offset + 24, 1, validKeyMask);
2074 proto_tree_add_boolean(skm_tree, hf_skinny_softKey2, tvb, offset + 24, 1, validKeyMask);
2075 proto_tree_add_boolean(skm_tree, hf_skinny_softKey3, tvb, offset + 24, 1, validKeyMask);
2076 proto_tree_add_boolean(skm_tree, hf_skinny_softKey4, tvb, offset + 24, 1, validKeyMask);
2077 proto_tree_add_boolean(skm_tree, hf_skinny_softKey5, tvb, offset + 24, 1, validKeyMask);
2078 proto_tree_add_boolean(skm_tree, hf_skinny_softKey6, tvb, offset + 24, 1, validKeyMask);
2079 proto_tree_add_boolean(skm_tree, hf_skinny_softKey7, tvb, offset + 24, 1, validKeyMask);
2080 proto_tree_add_boolean(skm_tree, hf_skinny_softKey8, tvb, offset + 24, 1, validKeyMask);
2081 proto_tree_add_boolean(skm_tree, hf_skinny_softKey9, tvb, offset + 24, 1, validKeyMask);
2082 proto_tree_add_boolean(skm_tree, hf_skinny_softKey10, tvb, offset + 24, 1, validKeyMask);
2083 proto_tree_add_boolean(skm_tree, hf_skinny_softKey11, tvb, offset + 24, 1, validKeyMask);
2084 proto_tree_add_boolean(skm_tree, hf_skinny_softKey12, tvb, offset + 24, 1, validKeyMask);
2085 proto_tree_add_boolean(skm_tree, hf_skinny_softKey13, tvb, offset + 24, 1, validKeyMask);
2086 proto_tree_add_boolean(skm_tree, hf_skinny_softKey14, tvb, offset + 24, 1, validKeyMask);
2087 proto_tree_add_boolean(skm_tree, hf_skinny_softKey15, tvb, offset + 24, 1, validKeyMask);
2090 case 0x111 : /* callState */
2091 proto_tree_add_item(skinny_tree, hf_skinny_callState, tvb, offset+12, 4, TRUE);
2092 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+16, 4, TRUE);
2093 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
2096 case 0x112 : /* displayPromptStatus */
2097 proto_tree_add_item(skinny_tree, hf_skinny_messageTimeOutValue, tvb, offset+12, 4, TRUE);
2098 proto_tree_add_item(skinny_tree, hf_skinny_displayMessage, tvb, offset+16, StationMaxDisplayPromptStatusSize, TRUE);
2099 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+48, 4, TRUE);
2100 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+52, 4, TRUE);
2103 case 0x113: /* clearPrompt */
2104 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance , tvb, offset+12, 4, TRUE);
2105 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+16, 4, TRUE);
2108 case 0x114 : /* displayNotify */
2109 proto_tree_add_item(skinny_tree, hf_skinny_messageTimeOutValue, tvb, offset+12, 4, TRUE);
2110 proto_tree_add_item(skinny_tree, hf_skinny_displayMessage, tvb, offset+16, StationMaxDisplayNotifySize , TRUE);
2113 case 0x116 : /* activateCallPlane */
2114 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+12, 4, TRUE);
2117 case 0x118 : /* unregisterAckMessage */
2118 proto_tree_add_item(skinny_tree, hf_skinny_deviceUnregisterStatus, tvb, offset+12, 4, TRUE);
2121 case 0x119 : /* backSpaceReq */
2122 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+12, 4, TRUE);
2123 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+16, 4, TRUE);
2126 case 0x11B : /* registerTokenReject */
2127 proto_tree_add_item(skinny_tree, hf_skinny_tokenRejWaitTime, tvb, offset+12, 4, TRUE);
2130 case 0x11C : /* StartMediaFailureDetection */
2131 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2132 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2133 proto_tree_add_item(skinny_tree, hf_skinny_millisecondPacketSize, tvb, offset+20, 4, TRUE);
2134 proto_tree_add_item(skinny_tree, hf_skinny_payloadCapability, tvb, offset+24, 4, TRUE);
2135 proto_tree_add_item(skinny_tree, hf_skinny_echoCancelType, tvb, offset+28, 4, TRUE);
2136 proto_tree_add_item(skinny_tree, hf_skinny_g723BitRate, tvb, offset+32, 4, TRUE);
2137 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+34, 4, TRUE);
2140 case 0x11D : /* DialedNumberMessage */
2141 proto_tree_add_item(skinny_tree, hf_skinny_calledParty, tvb, offset+12, StationMaxDirnumSize, TRUE);
2142 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+16+StationMaxDirnumSize, 4, TRUE);
2143 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20+StationMaxDirnumSize, 4, TRUE);
2146 case 0x11E : /* UserToDeviceDataMessage */
2147 proto_tree_add_item(skinny_tree, hf_skinny_applicationID, tvb, offset+12, 4, TRUE);
2148 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+16, 4, TRUE);
2149 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
2150 proto_tree_add_item(skinny_tree, hf_skinny_transactionID, tvb, offset+24, 4, TRUE);
2151 proto_tree_add_item(skinny_tree, hf_skinny_data_length, tvb, offset+28, 4, TRUE);
2152 count = tvb_get_letohl( tvb, offset+28);
2153 proto_tree_add_uint(skinny_tree, hf_skinny_data, tvb, offset+30, 1, count);
2156 case 0x11F : /* FeatureStatMessage */
2157 proto_tree_add_item(skinny_tree, hf_skinny_featureIndex, tvb, offset+12, 4, TRUE);
2158 proto_tree_add_item(skinny_tree, hf_skinny_featureID, tvb, offset+16, 4, TRUE);
2159 proto_tree_add_item(skinny_tree, hf_skinny_featureTextLabel, tvb, offset+20, StationMaxNameSize, TRUE);
2160 proto_tree_add_item(skinny_tree, hf_skinny_featureStatus, tvb, offset+20+StationMaxNameSize, 4, TRUE);
2163 case 0x120 : /* DisplayPriNotifyMessage */
2164 proto_tree_add_item(skinny_tree, hf_skinny_messageTimeOutValue, tvb, offset+12, 4, TRUE);
2165 proto_tree_add_item(skinny_tree, hf_skinny_priority, tvb, offset+16, 4, TRUE);
2166 proto_tree_add_item(skinny_tree, hf_skinny_notify, tvb, offset+16, StationMaxDisplayNotifySize, TRUE);
2169 case 0x121 : /* ClearPriNotifyMessage */
2170 proto_tree_add_item(skinny_tree, hf_skinny_priority, tvb, offset+12, 4, TRUE);
2173 case 0x122 : /* StartAnnouncementMessage */
2175 for ( i = 0; i < MaxAnnouncementList; i++ ) {
2176 proto_tree_add_item(skinny_tree, hf_skinny_locale, tvb, count, 4, TRUE);
2178 proto_tree_add_item(skinny_tree, hf_skinny_country, tvb, count, 4, TRUE);
2180 proto_tree_add_item(skinny_tree, hf_skinny_deviceTone, tvb, count, 4, TRUE);
2183 proto_tree_add_item(skinny_tree, hf_skinny_endOfAnnAck, tvb, count, 4, TRUE);
2185 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, count, 4, TRUE);
2188 for ( i = 0; i < StationMaxMonitorParties; i++ ) {
2189 proto_tree_add_item(skinny_tree, hf_skinny_matrixConfPartyID, tvb, count, 4, TRUE);
2192 proto_tree_add_item(skinny_tree, hf_skinny_hearingConfPartyMask, tvb, count, 4, TRUE);
2194 proto_tree_add_item(skinny_tree, hf_skinny_annPlayMode, tvb, count, 4, TRUE);
2197 case 0x123 : /* StopAnnouncementMessage */
2198 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2201 case 0x124 : /* AnnouncementFinishMessage */
2202 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2203 proto_tree_add_item(skinny_tree, hf_skinny_annPlayStatus, tvb, offset+16, 4, TRUE);
2206 case 0x127 : /* NotifyDtmfToneMessage */
2207 proto_tree_add_item(skinny_tree, hf_skinny_deviceTone, tvb, offset+12, 4, TRUE);
2208 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+16, 4, TRUE);
2209 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+20, 4, TRUE);
2212 case 0x128 : /* SendDtmfToneMessage */
2213 proto_tree_add_item(skinny_tree, hf_skinny_deviceTone, tvb, offset+12, 4, TRUE);
2214 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+16, 4, TRUE);
2215 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+20, 4, TRUE);
2218 case 0x129 : /* SubscribeDtmfPayloadReqMessage */
2219 proto_tree_add_item(skinny_tree, hf_skinny_payloadDtmf, tvb, offset+12, 4, TRUE);
2220 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+16, 4, TRUE);
2221 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+20, 4, TRUE);
2224 case 0x12A : /* SubscribeDtmfPayloadResMessage */
2225 proto_tree_add_item(skinny_tree, hf_skinny_payloadDtmf, tvb, offset+12, 4, TRUE);
2226 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+16, 4, TRUE);
2227 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+20, 4, TRUE);
2230 case 0x12B : /* SubscribeDtmfPayloadErrMessage */
2231 proto_tree_add_item(skinny_tree, hf_skinny_payloadDtmf, tvb, offset+12, 4, TRUE);
2232 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+16, 4, TRUE);
2233 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+20, 4, TRUE);
2236 case 0x12C : /* UnSubscribeDtmfPayloadReqMessage */
2237 proto_tree_add_item(skinny_tree, hf_skinny_payloadDtmf, tvb, offset+12, 4, TRUE);
2238 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+16, 4, TRUE);
2239 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+20, 4, TRUE);
2242 case 0x12D : /* UnSubscribeDtmfPayloadResMessage */
2243 proto_tree_add_item(skinny_tree, hf_skinny_payloadDtmf, tvb, offset+12, 4, TRUE);
2244 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+16, 4, TRUE);
2245 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+20, 4, TRUE);
2248 case 0x12E : /* UnSubscribeDtmfPayloadErrMessage */
2249 proto_tree_add_item(skinny_tree, hf_skinny_payloadDtmf, tvb, offset+12, 4, TRUE);
2250 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+16, 4, TRUE);
2251 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+20, 4, TRUE);
2254 case 0x12F : /* ServiceURLStatMessage */
2255 proto_tree_add_item(skinny_tree, hf_skinny_serviceURLIndex, tvb, offset+12, 4, TRUE);
2256 proto_tree_add_item(skinny_tree, hf_skinny_serviceURL, tvb, offset+12, StationMaxServiceURLSize, TRUE);
2257 proto_tree_add_item(skinny_tree, hf_skinny_serviceURLDisplayName, tvb, offset+12, StationMaxNameSize, TRUE);
2260 case 0x130 : /* CallSelectStatMessage */
2261 proto_tree_add_item(skinny_tree, hf_skinny_callSelectStat, tvb, offset+12, 4, TRUE);
2262 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+16, 4, TRUE);
2263 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+20, 4, TRUE);
2266 case 0x131 : /* OpenMultiMediaChannelMessage */
2267 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2268 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2269 proto_tree_add_item(skinny_tree, hf_skinny_payloadCapability, tvb, offset+20, 4, TRUE);
2270 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+24, 4, TRUE);
2271 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+28, 4, TRUE);
2272 proto_tree_add_item(skinny_tree, hf_skinny_payload_rfc_number, tvb, offset+32, 4, TRUE);
2273 proto_tree_add_item(skinny_tree, hf_skinny_payloadType, tvb, offset+36, 4, TRUE);
2274 proto_tree_add_item(skinny_tree, hf_skinny_isConferenceCreator, tvb, offset+40, 4, TRUE);
2276 /* add audio part of union */
2277 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 12, "audioParameters");
2278 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2279 proto_tree_add_item(skinny_sub_tree, hf_skinny_millisecondPacketSize, tvb, offset+44, 4, TRUE);
2280 proto_tree_add_item(skinny_sub_tree, hf_skinny_echoCancelType, tvb, offset+48, 4, TRUE);
2281 proto_tree_add_item(skinny_sub_tree, hf_skinny_g723BitRate, tvb, offset+52, 4, TRUE);
2283 /* add video part of union */
2284 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 30, "vidParameters");
2285 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2286 proto_tree_add_item(skinny_sub_tree, hf_skinny_bitRate, tvb, offset+44, 4, TRUE);
2287 proto_tree_add_item(skinny_sub_tree, hf_skinny_pictureFormatCount, tvb, offset+48, 4, TRUE);
2288 skinny_sub_tree_sav = skinny_sub_tree;
2290 for ( i = 0; i < MAX_PICTURE_FORMAT; i++ ) {
2291 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8 * MAX_PICTURE_FORMAT, "pictureFormat[%d]", i);
2292 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2293 proto_tree_add_item(skinny_sub_tree, hf_skinny_format, tvb, count, 4, TRUE);
2295 proto_tree_add_item(skinny_sub_tree, hf_skinny_MPI, tvb, count, 4, TRUE);
2298 skinny_sub_tree = skinny_sub_tree_sav;
2299 proto_tree_add_item(skinny_sub_tree, hf_skinny_confServiceNum, tvb, count, 4, TRUE);
2303 /* add H261 part of union */
2304 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8, "h261VideoCapability");
2305 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2306 proto_tree_add_item(skinny_sub_tree, hf_skinny_temporalSpatialTradeOffCapability, tvb, count, 4, TRUE);
2308 proto_tree_add_item(skinny_sub_tree, hf_skinny_stillImageTransmission, tvb, count, 4, TRUE);
2310 /* add H263 part of union */
2312 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8, "h263VideoCapability");
2313 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2314 proto_tree_add_item(skinny_sub_tree, hf_skinny_h263_capability_bitfield, tvb, count, 4, TRUE);
2316 proto_tree_add_item(skinny_sub_tree, hf_skinny_annexNandWFutureUse, tvb, count, 4, TRUE);
2318 /* add Vieo part of union */
2320 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8, "vieoVideoCapability");
2321 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2322 proto_tree_add_item(skinny_sub_tree, hf_skinny_modelNumber, tvb, count, 4, TRUE);
2324 proto_tree_add_item(skinny_sub_tree, hf_skinny_bandwidth, tvb, count, 4, TRUE);
2326 /* add data part of union */
2327 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 8, "dataParameters");
2328 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2329 proto_tree_add_item(skinny_sub_tree, hf_skinny_protocolDependentData, tvb, offset+44, 4, TRUE);
2330 proto_tree_add_item(skinny_sub_tree, hf_skinny_maxBitRate, tvb, offset+48, 4, TRUE);
2333 case 0x132 : /* StartMultiMediaTransmission */
2334 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2335 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2336 proto_tree_add_item(skinny_tree, hf_skinny_payloadCapability, tvb, offset+20, 4, TRUE);
2337 proto_tree_add_item(skinny_tree, hf_skinny_ipAddress, tvb, offset+24, 4, FALSE);
2338 proto_tree_add_item(skinny_tree, hf_skinny_portNumber, tvb, offset+28, 4, TRUE);
2339 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+32, 4, TRUE);
2340 proto_tree_add_item(skinny_tree, hf_skinny_payload_rfc_number, tvb, offset+36, 4, TRUE);
2341 proto_tree_add_item(skinny_tree, hf_skinny_payloadType, tvb, offset+40, 4, TRUE);
2342 proto_tree_add_item(skinny_tree, hf_skinny_DSCPValue, tvb, offset+44, 4, TRUE);
2344 /* add audio part of union */
2345 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 12, "audioParameters");
2346 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2347 proto_tree_add_item(skinny_sub_tree, hf_skinny_millisecondPacketSize, tvb, offset+48, 4, TRUE);
2348 proto_tree_add_item(skinny_sub_tree, hf_skinny_echoCancelType, tvb, offset+52, 4, TRUE);
2349 proto_tree_add_item(skinny_sub_tree, hf_skinny_g723BitRate, tvb, offset+56, 4, TRUE);
2351 /* add video part of union */
2352 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 30, "vidParameters");
2353 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2354 proto_tree_add_item(skinny_sub_tree, hf_skinny_bitRate, tvb, offset+48, 4, TRUE);
2355 proto_tree_add_item(skinny_sub_tree, hf_skinny_pictureFormatCount, tvb, offset+52, 4, TRUE);
2356 skinny_sub_tree_sav = skinny_sub_tree;
2358 for ( i = 0; i < MAX_PICTURE_FORMAT; i++ ) {
2359 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8 * MAX_PICTURE_FORMAT, "pictureFormat[%d]", i);
2360 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2361 proto_tree_add_item(skinny_sub_tree, hf_skinny_format, tvb, count, 4, TRUE);
2363 proto_tree_add_item(skinny_sub_tree, hf_skinny_MPI, tvb, count, 4, TRUE);
2366 skinny_sub_tree = skinny_sub_tree_sav;
2367 proto_tree_add_item(skinny_sub_tree, hf_skinny_confServiceNum, tvb, count, 4, TRUE);
2371 /* add H261 part of union */
2372 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8, "h261VideoCapability");
2373 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2374 proto_tree_add_item(skinny_sub_tree, hf_skinny_temporalSpatialTradeOffCapability, tvb, count, 4, TRUE);
2376 proto_tree_add_item(skinny_sub_tree, hf_skinny_stillImageTransmission, tvb, count, 4, TRUE);
2378 /* add H263 part of union */
2380 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8, "h263VideoCapability");
2381 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2382 proto_tree_add_item(skinny_sub_tree, hf_skinny_h263_capability_bitfield, tvb, count, 4, TRUE);
2384 proto_tree_add_item(skinny_sub_tree, hf_skinny_annexNandWFutureUse, tvb, count, 4, TRUE);
2386 /* add Vieo part of union */
2388 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8, "vieoVideoCapability");
2389 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2390 proto_tree_add_item(skinny_sub_tree, hf_skinny_modelNumber, tvb, count, 4, TRUE);
2392 proto_tree_add_item(skinny_sub_tree, hf_skinny_bandwidth, tvb, count, 4, TRUE);
2394 /* add data part of union */
2395 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 8, "dataParameters");
2396 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2397 proto_tree_add_item(skinny_sub_tree, hf_skinny_protocolDependentData, tvb, offset+48, 4, TRUE);
2398 proto_tree_add_item(skinny_sub_tree, hf_skinny_maxBitRate, tvb, offset+52, 4, TRUE);
2401 case 0x133 : /* StopMultiMediaTransmission */
2402 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2403 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2404 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
2407 case 0x134 : /* MiscellaneousCommandMessage */
2408 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2409 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2410 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
2411 proto_tree_add_item(skinny_tree, hf_skinny_miscCommandType, tvb, offset+24, 4, TRUE);
2413 /* show videoFreezePicture */
2414 /* not sure of format */
2416 /* show videoFastUpdatePicture */
2417 /* not sure of format */
2419 /* show videoFastUpdateGOB */
2420 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 8, "videoFastUpdateGOB");
2421 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2422 proto_tree_add_item(skinny_sub_tree, hf_skinny_firstGOB, tvb, offset+28, 4, TRUE);
2423 proto_tree_add_item(skinny_sub_tree, hf_skinny_numberOfGOBs, tvb, offset+32, 4, TRUE);
2425 /* show videoFastUpdateMB */
2426 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 8, "videoFastUpdateGOB");
2427 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2428 proto_tree_add_item(skinny_sub_tree, hf_skinny_firstGOB, tvb, offset+28, 4, TRUE);
2429 proto_tree_add_item(skinny_sub_tree, hf_skinny_firstMB, tvb, offset+32, 4, TRUE);
2430 proto_tree_add_item(skinny_sub_tree, hf_skinny_numberOfMBs, tvb, offset+36, 4, TRUE);
2432 /* show lostPicture */
2433 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 8, "lostPicture");
2434 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2435 proto_tree_add_item(skinny_sub_tree, hf_skinny_pictureNumber, tvb, offset+28, 4, TRUE);
2436 proto_tree_add_item(skinny_sub_tree, hf_skinny_longTermPictureIndex, tvb, offset+32, 4, TRUE);
2438 /* show lostPartialPicture */
2439 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 8, "lostPartialPicture");
2440 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2441 proto_tree_add_item(skinny_sub_tree, hf_skinny_pictureNumber, tvb, offset+28, 4, TRUE);
2442 proto_tree_add_item(skinny_sub_tree, hf_skinny_longTermPictureIndex, tvb, offset+32, 4, TRUE);
2443 proto_tree_add_item(skinny_sub_tree, hf_skinny_firstMB, tvb, offset+36, 4, TRUE);
2444 proto_tree_add_item(skinny_sub_tree, hf_skinny_numberOfMBs, tvb, offset+40, 4, TRUE);
2446 /* show recoveryReferencePicture */
2447 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 8, "recoveryReferencePicture");
2448 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2449 proto_tree_add_item(skinny_sub_tree, hf_skinny_recoveryReferencePictureCount, tvb, offset+28, 4, TRUE);
2450 skinny_sub_tree_sav = skinny_sub_tree;
2451 for ( i = 0; i < MAX_REFERENCE_PICTURE; i++ ) {
2452 ti_sub = proto_tree_add_text(skinny_sub_tree_sav, tvb, offset, 8, "recoveryReferencePicture[%d]", i);
2453 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2454 proto_tree_add_item(skinny_sub_tree, hf_skinny_pictureNumber, tvb, offset+32+(i*8), 4, TRUE);
2455 proto_tree_add_item(skinny_sub_tree, hf_skinny_longTermPictureIndex, tvb, offset+36+(i*8), 4, TRUE);
2458 /* show temporalSpatialTradeOff */
2459 ti_sub = proto_tree_add_text(skinny_tree, tvb, offset, 4, "temporalSpatialTradeOff");
2460 skinny_sub_tree = proto_item_add_subtree(ti_sub, ett_skinny_tree);
2461 proto_tree_add_item(skinny_sub_tree, hf_skinny_temporalSpatialTradeOff, tvb, offset+28, 4, TRUE);
2464 case 0x135 : /* FlowControlCommandMessage */
2465 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2466 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2467 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
2468 proto_tree_add_item(skinny_tree, hf_skinny_maxBitRate, tvb, offset+24, 4, TRUE);
2471 case 0x136 : /* CloseMultiMediaReceiveChannel */
2472 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2473 proto_tree_add_item(skinny_tree, hf_skinny_passThruPartyID, tvb, offset+16, 4, TRUE);
2474 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
2477 case 0x137 : /* CreateConferenceReqMessage */
2478 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2479 proto_tree_add_item(skinny_tree, hf_skinny_numberOfReservedParticipants, tvb, offset+16, 4, TRUE);
2480 proto_tree_add_item(skinny_tree, hf_skinny_resourceTypes, tvb, offset+16, 4, TRUE);
2481 proto_tree_add_item(skinny_tree, hf_skinny_appID, tvb, offset+20, 4, TRUE);
2483 proto_tree_add_uint(skinny_tree, hf_skinny_appConfID, tvb, count, 1, AppConferenceIDSize);
2484 count += AppConferenceIDSize;
2485 proto_tree_add_uint(skinny_tree, hf_skinny_appData, tvb, count, 1, AppDataSize);
2486 count += AppDataSize;
2487 proto_tree_add_item(skinny_tree, hf_skinny_data_length, tvb, count, 4, TRUE);
2488 val = tvb_get_letohl( tvb, count);
2490 proto_tree_add_uint(skinny_tree, hf_skinny_passThruData, tvb, count, 1, val);
2493 case 0x138 : /* DeleteConferenceReqMessage */
2494 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2497 case 0x139 : /* ModifyConferenceReqMessage */
2498 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2499 proto_tree_add_item(skinny_tree, hf_skinny_numberOfReservedParticipants, tvb, offset+16, 4, TRUE);
2500 proto_tree_add_item(skinny_tree, hf_skinny_appID, tvb, offset+20, 4, TRUE);
2502 proto_tree_add_uint(skinny_tree, hf_skinny_appConfID, tvb, count, 1, AppConferenceIDSize);
2503 count += AppConferenceIDSize;
2504 proto_tree_add_uint(skinny_tree, hf_skinny_appData, tvb, count, 1, AppDataSize);
2505 count += AppDataSize;
2506 proto_tree_add_item(skinny_tree, hf_skinny_data_length, tvb, count, 4, TRUE);
2507 val = tvb_get_letohl( tvb, count);
2509 proto_tree_add_uint(skinny_tree, hf_skinny_passThruData, tvb, count, 1, val);
2512 case 0x13A : /* AddParticipantReqMessage */
2513 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2514 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+16, 4, TRUE);
2517 case 0x13B : /* DropParticipantReqMessage */
2518 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2519 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+16, 4, TRUE);
2522 case 0x13D : /* AuditParticipantReqMessage */
2523 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+12, 4, TRUE);
2526 case 0x13F : /* UserToDeviceDataVersion1Message */
2527 proto_tree_add_item(skinny_tree, hf_skinny_applicationID, tvb, offset+12, 4, TRUE);
2528 proto_tree_add_item(skinny_tree, hf_skinny_lineInstance, tvb, offset+16, 4, TRUE);
2529 proto_tree_add_item(skinny_tree, hf_skinny_callIdentifier, tvb, offset+20, 4, TRUE);
2530 proto_tree_add_item(skinny_tree, hf_skinny_transactionID, tvb, offset+24, 4, TRUE);
2531 proto_tree_add_item(skinny_tree, hf_skinny_data_length, tvb, offset+28, 4, TRUE);
2532 count = tvb_get_letohl( tvb, offset+28);
2533 proto_tree_add_item(skinny_tree, hf_skinny_sequenceFlag, tvb, offset+30, 4, TRUE);
2534 proto_tree_add_item(skinny_tree, hf_skinny_displayPriority, tvb, offset+34, 4, TRUE);
2535 proto_tree_add_item(skinny_tree, hf_skinny_conferenceID, tvb, offset+38, 4, TRUE);
2536 proto_tree_add_item(skinny_tree, hf_skinny_appInstanceID, tvb, offset+42, 4, TRUE);
2537 proto_tree_add_item(skinny_tree, hf_skinny_routingID, tvb, offset+46, 4, TRUE);
2538 proto_tree_add_uint(skinny_tree, hf_skinny_data, tvb, offset+50, 1, count);
2548 /* Code to actually dissect the packets */
2549 static void dissect_skinny(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
2551 /* The general structure of a packet: {IP-Header|TCP-Header|n*SKINNY}
2552 * SKINNY-Packet: {Header(Size, Reserved)|Data(MessageID, Message-Data)}
2555 volatile guint32 hdr_data_length;
2556 guint32 hdr_reserved;
2558 /* check, if this is really an SKINNY packet, they start with a length + 0 */
2560 /* get relevant header information */
2561 hdr_data_length = tvb_get_letohl(tvb, 0);
2562 hdr_reserved = tvb_get_letohl(tvb, 4);
2564 /* data_size = MIN(8+hdr_data_length, tvb_length(tvb)) - 0xC; */
2566 if (hdr_data_length < 4 || hdr_reserved != 0) {
2567 /* Not an SKINNY packet, just happened to use the same port */
2568 call_dissector(data_handle,tvb, pinfo, tree);
2572 /* Make entries in Protocol column and Info column on summary display */
2573 if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
2574 col_set_str(pinfo->cinfo, COL_PROTOCOL, "SKINNY");
2577 if (check_col(pinfo->cinfo, COL_INFO)) {
2578 col_set_str(pinfo->cinfo, COL_INFO, "Skinny Client Control Protocol");
2581 tcp_dissect_pdus(tvb, pinfo, tree, skinny_desegment, 4,
2582 get_skinny_pdu_len, dissect_skinny_pdu);
2585 /* Register the protocol with Ethereal */
2587 proto_register_skinny(void)
2590 /* Setup list of header fields */
2591 static hf_register_info hf[] = {
2592 { &hf_skinny_data_length,
2593 { "Data Length", "skinny.data_length",
2594 FT_UINT32, BASE_DEC, NULL, 0x0,
2595 "Number of bytes in the data portion.",
2598 { &hf_skinny_reserved,
2599 { "Reserved", "skinny.reserved",
2600 FT_UINT32, BASE_HEX, NULL, 0x0,
2601 "Reserved for future(?) use.",
2604 /* FIXME: Enable use of message name ??? */
2605 { &hf_skinny_messageid,
2606 { "Message ID", "skinny.messageid",
2607 FT_UINT32, BASE_HEX, VALS(message_id), 0x0,
2608 "The function requested/done with this message.",
2612 { &hf_skinny_deviceName,
2613 { "DeviceName", "skinny.deviceName",
2614 FT_STRING, BASE_NONE, NULL, 0x0,
2615 "The device name of the phone.",
2619 { &hf_skinny_stationUserId,
2620 { "StationUserId", "skinny.stationUserId",
2621 FT_UINT32, BASE_DEC, NULL, 0x0,
2622 "The station user id.",
2626 { &hf_skinny_stationInstance,
2627 { "StationInstance", "skinny.stationInstance",
2628 FT_UINT32, BASE_DEC, NULL, 0x0,
2629 "The stations instance.",
2633 { &hf_skinny_deviceType,
2634 { "DeviceType", "skinny.deviceType",
2635 FT_UINT32, BASE_DEC, VALS(deviceTypes), 0x0,
2636 "DeviceType of the station.",
2640 { &hf_skinny_maxStreams,
2641 { "MaxStreams", "skinny.maxStreams",
2642 FT_UINT32, BASE_DEC, NULL, 0x0,
2643 "32 bit unsigned integer indicating the maximum number of simultansous RTP duplex streams that the client can handle.",
2647 { &hf_skinny_stationIpPort,
2648 { "StationIpPort", "skinny.stationIpPort",
2649 FT_UINT16, BASE_DEC, NULL, 0x0,
2650 "The station IP port",
2654 { &hf_skinny_stationKeypadButton,
2655 { "KeypadButton", "skinny.stationKeypadButton",
2656 FT_UINT32, BASE_HEX, VALS(keypadButtons), 0x0,
2657 "The button pressed on the phone.",
2661 { &hf_skinny_calledParty,
2662 { "CalledParty", "skinny.calledParty",
2663 FT_STRING, BASE_NONE, NULL, 0x0,
2664 "The number called.",
2668 { &hf_skinny_stimulus,
2669 { "Stimulus", "skinny.stimulus",
2670 FT_UINT32, BASE_HEX, VALS(deviceStimuli), 0x0,
2671 "Reason for the device stimulus message.",
2675 { &hf_skinny_stimulusInstance,
2676 { "StimulusInstance", "skinny.stimulusInstance",
2677 FT_UINT32, BASE_DEC, NULL, 0x0,
2678 "The instance of the stimulus",
2682 { &hf_skinny_lineNumber,
2683 { "LineNumber", "skinny.lineNumber",
2684 FT_UINT32, BASE_DEC, NULL, 0x0,
2689 { &hf_skinny_speedDialNumber,
2690 { "SpeedDialNumber", "skinny.speedDialNumber",
2691 FT_UINT32, BASE_DEC, NULL, 0x0,
2692 "Which speed dial number",
2696 { &hf_skinny_capCount,
2697 { "CapCount", "skinny.capCount",
2698 FT_UINT32, BASE_DEC, NULL, 0x0,
2699 "How many capabilities",
2703 { &hf_skinny_payloadCapability,
2704 { "PayloadCapability", "skinny.payloadCapability",
2705 FT_UINT32, BASE_DEC, VALS(mediaPayloads), 0x0,
2706 "The payload capability for this media capability structure.",
2710 { &hf_skinny_maxFramesPerPacket,
2711 { "MaxFramesPerPacket", "skinny.maxFramesPerPacket",
2712 FT_UINT16, BASE_DEC, NULL, 0x0,
2713 "Max frames per packet",
2717 { &hf_skinny_alarmSeverity,
2718 { "AlarmSeverity", "skinny.alarmSeverity",
2719 FT_UINT32, BASE_DEC, VALS(alarmSeverities), 0x0,
2720 "The severity of the reported alarm.",
2724 { &hf_skinny_alarmParam1,
2725 { "AlarmParam1", "skinny.alarmParam1",
2726 FT_UINT32, BASE_HEX, NULL, 0x0,
2727 "An as yet undecoded param1 value from the alarm message",
2731 { &hf_skinny_alarmParam2,
2732 { "AlarmParam2", "skinny.alarmParam2",
2733 FT_IPv4, BASE_NONE, NULL, 0x0,
2734 "This is the second alarm parameter i think it's an ip address",
2738 { &hf_skinny_receptionStatus,
2739 { "ReceptionStatus", "skinny.receptionStatus",
2740 FT_UINT32, BASE_DEC, VALS(multicastMediaReceptionStatus), 0x0,
2741 "The current status of the multicast media.",
2745 { &hf_skinny_passThruPartyID,
2746 { "PassThruPartyID", "skinny.passThruPartyID",
2747 FT_UINT32, BASE_DEC, NULL, 0x0,
2748 "The pass thru party id",
2752 { &hf_skinny_ORCStatus,
2753 { "OpenReceiveChannelStatus", "skinny.openReceiveChannelStatus",
2754 FT_UINT32, BASE_DEC, VALS(openReceiveChanStatus), 0x0,
2755 "The status of the opened receive channel.",
2759 { &hf_skinny_ipAddress,
2760 { "IP Address", "skinny.ipAddress",
2761 FT_IPv4, BASE_NONE, NULL, 0x0,
2766 { &hf_skinny_portNumber,
2767 { "Port Number", "skinny.portNumber",
2768 FT_UINT32, BASE_DEC, NULL, 0x0,
2773 { &hf_skinny_statsProcessingType,
2774 { "StatsProcessingType", "skinny.statsProcessingType",
2775 FT_UINT32, BASE_DEC, VALS(statsProcessingTypes), 0x0,
2776 "What do do after you send the stats.",
2780 { &hf_skinny_callIdentifier,
2781 { "Call Identifier", "skinny.callIdentifier",
2782 FT_UINT32, BASE_DEC, NULL, 0x0,
2783 "Call identifier for this call.",
2787 { &hf_skinny_packetsSent,
2788 { "Packets Sent", "skinny.packetsSent",
2789 FT_UINT32, BASE_DEC, NULL, 0x0,
2790 "Packets Sent during the call.",
2794 { &hf_skinny_octetsSent,
2795 { "Octets Sent", "skinny.octetsSent",
2796 FT_UINT32, BASE_DEC, NULL, 0x0,
2797 "Octets sent during the call.",
2801 { &hf_skinny_packetsRecv,
2802 { "Packets Received", "skinny.packetsRecv",
2803 FT_UINT32, BASE_DEC, NULL, 0x0,
2804 "Packets received during the call.",
2808 { &hf_skinny_octetsRecv,
2809 { "Octets Received", "skinny.octetsRecv",
2810 FT_UINT32, BASE_DEC, NULL, 0x0,
2811 "Octets received during the call.",
2815 { &hf_skinny_packetsLost,
2816 { "Packets Lost", "skinny.packetsLost",
2817 FT_UINT32, BASE_DEC, NULL, 0x0,
2818 "Packets lost during the call.",
2822 { &hf_skinny_latency,
2823 { "Latency(ms)", "skinny.latency",
2824 FT_UINT32, BASE_DEC, NULL, 0x0,
2825 "Average packet latency during the call.",
2829 { &hf_skinny_jitter,
2830 { "Jitter", "skinny.jitter",
2831 FT_UINT32, BASE_DEC, NULL, 0x0,
2832 "Average jitter during the call.",
2836 { &hf_skinny_directoryNumber,
2837 { "Directory Number", "skinny.directoryNumber",
2838 FT_STRING, BASE_NONE, NULL, 0x0,
2839 "The number we are reporting statistics for.",
2843 { &hf_skinny_lineInstance,
2844 { "Line Instance", "skinny.lineInstance",
2845 FT_UINT32, BASE_DEC, NULL, 0x0,
2846 "The display call plane associated with this call.",
2850 { &hf_skinny_softKeyEvent,
2851 { "SoftKeyEvent", "skinny.softKeyEvent",
2852 FT_UINT32, BASE_DEC, VALS(softKeyEvents), 0x0,
2853 "Which softkey event is being reported.",
2857 { &hf_skinny_keepAliveInterval,
2858 { "KeepAliveInterval", "skinny.keepAliveInterval",
2859 FT_UINT32, BASE_DEC, NULL, 0x0,
2860 "How often are keep alives exchanges between the client and the call manager.",
2864 { &hf_skinny_secondaryKeepAliveInterval,
2865 { "SecondaryKeepAliveInterval", "skinny.secondaryKeepAliveInterval",
2866 FT_UINT32, BASE_DEC, NULL, 0x0,
2867 "How often are keep alives exchanges between the client and the secondary call manager.",
2871 { &hf_skinny_dateTemplate,
2872 { "DateTemplate", "skinny.dateTemplate",
2873 FT_STRING, BASE_NONE, NULL, 0x0,
2874 "The display format for the date/time on the phone.",
2878 { &hf_skinny_buttonOffset,
2879 { "ButtonOffset", "skinny.buttonOffset",
2880 FT_UINT32, BASE_DEC, NULL, 0x0,
2881 "Offset is the number of the first button referenced by this message.",
2885 { &hf_skinny_buttonCount,
2886 { "ButtonCount", "skinny.buttonCount",
2887 FT_UINT32, BASE_DEC, NULL, 0x0,
2888 "Number of (VALID) button definitions in this message.",
2892 { &hf_skinny_totalButtonCount,
2893 { "TotalButtonCount", "skinny.totalButtonCount",
2894 FT_UINT32, BASE_DEC, NULL, 0x0,
2895 "The total number of buttons defined for this phone.",
2899 { &hf_skinny_buttonInstanceNumber,
2900 { "InstanceNumber", "skinny.buttonInstanceNumber",
2901 FT_UINT8, BASE_HEX, VALS(keypadButtons), 0x0,
2902 "The button instance number for a button or the StationKeyPad value, repeats allowed.",
2906 { &hf_skinny_buttonDefinition,
2907 { "ButtonDefinition", "skinny.buttonDefinition",
2908 FT_UINT8, BASE_HEX, VALS(buttonDefinitions), 0x0,
2909 "The button type for this instance (ie line, speed dial, ....",
2913 { &hf_skinny_softKeyOffset,
2914 { "SoftKeyOffset", "skinny.softKeyOffset",
2915 FT_UINT32, BASE_DEC, NULL, 0x0,
2916 "The offset for the first soft key in this message.",
2920 { &hf_skinny_softKeyCount,
2921 { "SoftKeyCount", "skinny.softKeyCount",
2922 FT_UINT32, BASE_DEC, NULL, 0x0,
2923 "The number of valid softkeys in this message.",
2927 { &hf_skinny_totalSoftKeyCount,
2928 { "TotalSoftKeyCount", "skinny.totalSoftKeyCount",
2929 FT_UINT32, BASE_DEC, NULL, 0x0,
2930 "The total number of softkeys for this device.",
2934 { &hf_skinny_softKeyLabel,
2935 { "SoftKeyLabel", "skinny.softKeyLabel",
2936 FT_STRING, BASE_NONE, NULL, 0x0,
2937 "The text label for this soft key.",
2941 { &hf_skinny_softKeySetOffset,
2942 { "SoftKeySetOffset", "skinny.softKeySetOffset",
2943 FT_UINT32, BASE_DEC, NULL, 0x0,
2944 "The offset for the first soft key set in this message.",
2948 { &hf_skinny_softKeySetCount,
2949 { "SoftKeySetCount", "skinny.softKeySetCount",
2950 FT_UINT32, BASE_DEC, NULL, 0x0,
2951 "The number of valid softkey sets in this message.",
2955 { &hf_skinny_totalSoftKeySetCount,
2956 { "TotalSoftKeySetCount", "skinny.totalSoftKeySetCount",
2957 FT_UINT32, BASE_DEC, NULL, 0x0,
2958 "The total number of softkey sets for this device.",
2962 { &hf_skinny_softKeyTemplateIndex,
2963 { "SoftKeyTemplateIndex", "skinny.softKeyTemplateIndex",
2964 FT_UINT8, BASE_DEC, VALS(softKeyEvents), 0x0,
2965 "Array of size 16 8-bit unsigned ints containing an index into the softKeyTemplate.",
2969 { &hf_skinny_softKeyInfoIndex,
2970 { "SoftKeyInfoIndex", "skinny.softKeyInfoIndex",
2971 FT_UINT16, BASE_DEC, VALS(softKeyIndexes), 0x0,
2972 "Array of size 16 16-bit unsigned integers containing an index into the soft key description information.",
2976 { &hf_skinny_softKeySetDescription,
2977 { "SoftKeySet", "skinny.softKeySetDescription",
2978 FT_UINT8, BASE_DEC, VALS(keySetNames), 0x0,
2979 "A text description of what this softkey when this softkey set is displayed",
2983 { &hf_skinny_softKeyMap,
2984 { "SoftKeyMap","skinny.softKeyMap",
2985 FT_UINT16, BASE_HEX, NULL, 0x0,
2990 { &hf_skinny_softKey0,
2991 { "SoftKey0", "skinny.softKeyMap.0",
2992 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY0,
2997 { &hf_skinny_softKey1,
2998 { "SoftKey1", "skinny.softKeyMap.1",
2999 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY1,
3004 { &hf_skinny_softKey2,
3005 { "SoftKey2", "skinny.softKeyMap.2",
3006 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY2,
3011 { &hf_skinny_softKey3,
3012 { "SoftKey3", "skinny.softKeyMap.3",
3013 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY3,
3018 { &hf_skinny_softKey4,
3019 { "SoftKey4", "skinny.softKeyMap.4",
3020 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY4,
3025 { &hf_skinny_softKey5,
3026 { "SoftKey5", "skinny.softKeyMap.5",
3027 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY5,
3032 { &hf_skinny_softKey6,
3033 { "SoftKey6", "skinny.softKeyMap.6",
3034 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY6,
3039 { &hf_skinny_softKey7,
3040 { "SoftKey7", "skinny.softKeyMap.7",
3041 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY7,
3046 { &hf_skinny_softKey8,
3047 { "SoftKey8", "skinny.softKeyMap.8",
3048 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY8,
3053 { &hf_skinny_softKey9,
3054 { "SoftKey9", "skinny.softKeyMap.9",
3055 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY9,
3060 { &hf_skinny_softKey10,
3061 { "SoftKey10", "skinny.softKeyMap.10",
3062 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY10,
3067 { &hf_skinny_softKey11,
3068 { "SoftKey11", "skinny.softKeyMap.11",
3069 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY11,
3074 { &hf_skinny_softKey12,
3075 { "SoftKey12", "skinny.softKeyMap.12",
3076 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY12,
3081 { &hf_skinny_softKey13,
3082 { "SoftKey13", "skinny.softKeyMap.13",
3083 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY13,
3088 { &hf_skinny_softKey14,
3089 { "SoftKey14", "skinny.softKeyMap.14",
3090 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY14,
3095 { &hf_skinny_softKey15,
3096 { "SoftKey15", "skinny.softKeyMap.15",
3097 FT_BOOLEAN, 16, TFS(&softKeyMapValues), SKINNY_SOFTKEY15,
3102 { &hf_skinny_lampMode,
3103 { "LampMode", "skinny.lampMode",
3104 FT_UINT32, BASE_DEC, VALS(stationLampModes), 0x0,
3109 { &hf_skinny_messageTimeOutValue,
3110 { "Message Timeout", "skinny.messageTimeOutValue",
3111 FT_UINT32, BASE_DEC, NULL, 0x0,
3112 "The timeout in seconds for this message",
3116 { &hf_skinny_displayMessage,
3117 { "DisplayMessage", "skinny.displayMessage",
3118 FT_STRING, BASE_NONE, NULL, 0x0,
3119 "The message displayed on the phone.",
3123 { &hf_skinny_lineDirNumber,
3124 { "Line Dir Number", "skinny.lineDirNumber",
3125 FT_STRING, BASE_NONE, NULL, 0x0,
3126 "The directory number for this line.",
3130 { &hf_skinny_lineFullyQualifiedDisplayName,
3131 { "DisplayName", "skinny.fqdn",
3132 FT_STRING, BASE_NONE, NULL, 0x0,
3133 "The full display name for this line.",
3137 { &hf_skinny_speedDialDirNumber,
3138 { "SpeedDial Number", "skinny.speedDialDirNum",
3139 FT_STRING, BASE_NONE, NULL, 0x0,
3140 "the number to dial for this speed dial.",
3144 { &hf_skinny_speedDialDisplayName,
3145 { "SpeedDial Display", "skinny.speedDialDisplay",
3146 FT_STRING, BASE_NONE, NULL, 0x0,
3147 "The text to display for this speed dial.",
3151 { &hf_skinny_dateYear,
3152 { "Year", "skinny.year",
3153 FT_UINT32, BASE_DEC, NULL, 0x0,
3158 { &hf_skinny_dateMonth,
3159 { "Month", "skinny.month",
3160 FT_UINT32, BASE_DEC, NULL, 0x0,
3161 "The current month",
3165 { &hf_skinny_dayOfWeek,
3166 { "DayOfWeek", "skinny.dayOfWeek",
3167 FT_UINT32, BASE_DEC, NULL, 0x0,
3168 "The day of the week",
3172 { &hf_skinny_dateDay,
3173 { "Day", "skinny.day",
3174 FT_UINT32, BASE_DEC, NULL, 0x0,
3175 "The day of the current month",
3179 { &hf_skinny_dateHour,
3180 { "Hour", "skinny.hour",
3181 FT_UINT32, BASE_DEC, NULL, 0x0,
3186 { &hf_skinny_dateMinute,
3187 { "Minute", "skinny.minute",
3188 FT_UINT32, BASE_DEC, NULL, 0x0,
3193 { &hf_skinny_dateSeconds,
3194 { "Seconds", "skinny.dateSeconds",
3195 FT_UINT32, BASE_DEC, NULL, 0x0,
3200 { &hf_skinny_dateMilliseconds,
3201 { "Milliseconds", "skinny.dateMilliseconds",
3202 FT_UINT32, BASE_DEC, NULL, 0x0,
3207 { &hf_skinny_timeStamp,
3208 { "Timestamp", "skinny.timeStamp",
3209 FT_UINT32, BASE_DEC, NULL, 0x0,
3210 "Time stamp for the call reference",
3213 { &hf_skinny_callState,
3214 { "CallState", "skinny.callState",
3215 FT_UINT32, BASE_DEC, VALS(skinny_stationCallStates), 0x0,
3216 "The D channel call state of the call",
3220 { &hf_skinny_deviceTone,
3221 { "Tone", "skinny.deviceTone",
3222 FT_UINT32, BASE_HEX, VALS(skinny_deviceTones), 0x0,
3223 "Which tone to play",
3227 { &hf_skinny_callingPartyName,
3228 { "Calling Party Name", "skinny.callingPartyName",
3229 FT_STRING, BASE_NONE, NULL, 0x0,
3230 "The passed name of the calling party.",
3234 { &hf_skinny_callingParty,
3235 { "Calling Party", "skinny.callingPartyName",
3236 FT_STRING, BASE_NONE, NULL, 0x0,
3237 "The passed number of the calling party.",
3241 { &hf_skinny_calledPartyName,
3242 { "Called Party Name", "skinny.calledPartyName",
3243 FT_STRING, BASE_NONE, NULL, 0x0,
3244 "The name of the party we are calling.",
3248 { &hf_skinny_callType,
3249 { "Call Type", "skinny.callType",
3250 FT_UINT32, BASE_DEC, VALS(skinny_callTypes), 0x0,
3251 "What type of call, in/out/etc",
3255 { &hf_skinny_originalCalledPartyName,
3256 { "Original Called Party Name", "skinny.originalCalledPartyName",
3257 FT_STRING, BASE_NONE, NULL, 0x0,
3258 "name of the original person who placed the call.",
3262 { &hf_skinny_originalCalledParty,
3263 { "Original Called Party", "skinny.originalCalledParty",
3264 FT_STRING, BASE_NONE, NULL, 0x0,
3265 "The number of the original calling party.",
3269 { &hf_skinny_ringType,
3270 { "Ring Type", "skinny.ringType",
3271 FT_UINT32, BASE_HEX, VALS(skinny_ringTypes), 0x0,
3272 "What type of ring to play",
3276 { &hf_skinny_speakerMode,
3277 { "Speaker", "skinny.speakerMode",
3278 FT_UINT32, BASE_HEX, VALS(skinny_speakerModes), 0x0,
3279 "This message sets the speaker mode on/off",
3283 { &hf_skinny_remoteIpAddr,
3284 { "Remote Ip Address", "skinny.remoteIpAddr",
3285 FT_IPv4, BASE_NONE, NULL, 0x0,
3286 "The remote end ip address for this stream",
3290 { &hf_skinny_remotePortNumber,
3291 { "Remote Port", "skinny.remotePortNumber",
3292 FT_UINT32, BASE_DEC, NULL, 0x0,
3293 "The remote port number listening for this stream",
3297 { &hf_skinny_millisecondPacketSize,
3298 { "MS/Packet", "skinny.millisecondPacketSize",
3299 FT_UINT32, BASE_DEC, NULL, 0x0,
3300 "The number of milliseconds of conversation in each packet",
3304 { &hf_skinny_precedenceValue,
3305 { "Precedence", "skinny.precedenceValue",
3306 FT_UINT32, BASE_DEC, NULL, 0x0,
3311 { &hf_skinny_silenceSuppression,
3312 { "Silence Suppression", "skinny.silenceSuppression",
3313 FT_UINT32, BASE_HEX, VALS(skinny_silenceSuppressionModes), 0x0,
3314 "Mode for silence suppression",
3318 { &hf_skinny_g723BitRate,
3319 { "G723 BitRate", "skinny.g723BitRate",
3320 FT_UINT32, BASE_DEC, VALS(skinny_g723BitRates), 0x0,
3321 "The G723 bit rate for this stream/JUNK if not g723 stream",
3325 { &hf_skinny_conferenceID,
3326 { "Conference ID", "skinny.conferenceID",
3327 FT_UINT32, BASE_DEC, NULL, 0x0,
3328 "The conference ID",
3332 { &hf_skinny_deviceResetType,
3333 { "Reset Type", "skinny.deviceResetType",
3334 FT_UINT32, BASE_DEC, VALS(skinny_deviceResetTypes), 0x0,
3335 "How the devices it to be reset (reset/restart)",
3339 { &hf_skinny_echoCancelType,
3340 { "Echo Cancel Type", "skinny.echoCancelType",
3341 FT_UINT32, BASE_DEC, VALS(skinny_echoCancelTypes), 0x0,
3342 "Is echo cancelling enabled or not",
3346 { &hf_skinny_deviceUnregisterStatus,
3347 { "Unregister Status", "skinny.deviceUnregisterStatus",
3348 FT_UINT32, BASE_DEC, VALS(skinny_deviceUnregisterStatusTypes), 0x0,
3349 "The status of the device unregister request (*CAN* be refused)",
3353 { &hf_skinny_hookFlashDetectMode,
3354 { "Hook Flash Mode", "skinny.hookFlashDetectMode",
3355 FT_UINT32, BASE_DEC, VALS(skinny_hookFlashDetectModes), 0x0,
3356 "Which method to use to detect that a hook flash has occured",
3360 { &hf_skinny_detectInterval,
3361 { "HF Detect Interval", "skinny.detectInterval",
3362 FT_UINT32, BASE_DEC, NULL, 0x0,
3363 "The number of milliseconds that determines a hook flash has occured",
3367 { &hf_skinny_headsetMode,
3368 { "Headset Mode", "skinny.headsetMode",
3369 FT_UINT32, BASE_DEC, VALS(skinny_headsetModes), 0x0,
3370 "Turns on and off the headset on the set",
3374 { &hf_skinny_microphoneMode,
3375 { "Microphone Mode", "skinny.microphoneMode",
3376 FT_UINT32, BASE_DEC, VALS(skinny_microphoneModes), 0x0,
3377 "Turns on and off the microphone on the set",
3381 { &hf_skinny_activeForward,
3382 { "Active Forward", "skinny.activeForward",
3383 FT_UINT32, BASE_DEC, NULL, 0x0,
3384 "This is non zero to indicate that a forward is active on the line",
3388 { &hf_skinny_forwardAllActive,
3389 { "Forward All", "skinny.forwardAllActive",
3390 FT_UINT32, BASE_DEC, NULL, 0x0,
3391 "Forward all calls",
3395 { &hf_skinny_forwardBusyActive,
3396 { "Forward Busy", "skinny.forwardBusyActive",
3397 FT_UINT32, BASE_DEC, NULL, 0x0,
3398 "Forward calls when busy",
3402 { &hf_skinny_forwardNoAnswerActive,
3403 { "Forward NoAns", "skinny.forwardNoAnswerActive",
3404 FT_UINT32, BASE_DEC, NULL, 0x0,
3405 "Forward only when no answer",
3409 { &hf_skinny_forwardNumber,
3410 { "Forward Number", "skinny.forwardNumber",
3411 FT_STRING, BASE_NONE, NULL, 0x0,
3412 "The number to forward calls to.",
3416 { &hf_skinny_userName,
3417 { "Username", "skinny.userName",
3418 FT_STRING, BASE_NONE, NULL, 0x0,
3419 "Username for this device.",
3423 { &hf_skinny_serverName,
3424 { "Server Name", "skinny.serverName",
3425 FT_STRING, BASE_NONE, NULL, 0x0,
3426 "The server name for this device.",
3430 { &hf_skinny_numberLines,
3431 { "Number of Lines", "skinny.numberLines",
3432 FT_UINT32, BASE_DEC, NULL, 0x0,
3433 "How many lines this device has",
3437 { &hf_skinny_numberSpeedDials,
3438 { "Number of SpeedDials", "skinny.numberSpeedDials",
3439 FT_UINT32, BASE_DEC, NULL, 0x0,
3440 "The number of speed dials this device has",
3444 { &hf_skinny_sessionType,
3445 { "Session Type", "skinny.sessionType",
3446 FT_UINT32, BASE_DEC, VALS(skinny_sessionTypes), 0x0,
3447 "The type of this session.",
3451 { &hf_skinny_version,
3452 { "Version", "skinny.version",
3453 FT_STRING, BASE_NONE, NULL, 0x0,
3458 { &hf_skinny_mediaEnunciationType,
3459 { "Enunciation Type", "skinny.mediaEnunciationType",
3460 FT_UINT32, BASE_DEC, VALS(skinny_mediaEnunciationTypes), 0x0,
3465 { &hf_skinny_serverIdentifier,
3466 { "Server Identifier", "skinny.serverIdentifier",
3467 FT_STRING, BASE_NONE, NULL, 0x0,
3468 "Server Identifier.",
3472 { &hf_skinny_serverListenPort,
3473 { "Server Port", "skinny.serverListenPort",
3474 FT_UINT32, BASE_DEC, NULL, 0x0,
3475 "The port the server listens on.",
3479 { &hf_skinny_serverIpAddress,
3480 { "Server Ip Address", "skinny.serverIpAddress",
3481 FT_IPv4, BASE_NONE, NULL, 0x0,
3482 "The IP address for this server",
3486 { &hf_skinny_multicastPort,
3487 { "Multicast Port", "skinny.multicastPort",
3488 FT_UINT32, BASE_DEC, NULL, 0x0,
3489 "The multicast port the to listens on.",
3493 { &hf_skinny_multicastIpAddress,
3494 { "Multicast Ip Address", "skinny.multicastIpAddress",
3495 FT_IPv4, BASE_NONE, NULL, 0x0,
3496 "The multicast address for this conference",
3500 { &hf_skinny_tokenRejWaitTime,
3501 { "Retry Wait Time", "skinny.tokenRejWaitTime",
3502 FT_UINT32, BASE_DEC, NULL, 0x0,
3503 "The time to wait before retrying this token request.",
3507 { &hf_skinny_unknown,
3508 { "Data", "skinny.unknown",
3509 FT_UINT32, BASE_HEX, NULL, 0x0,
3510 "Place holder for unknown data.",
3515 { "Data", "skinny.data",
3516 FT_UINT8, BASE_HEX, NULL, 0x0,
3517 "dataPlace holder for unknown data.",
3521 { &hf_skinny_numberOfInServiceStreams,
3522 { "NumberOfInServiceStreams", "skinny.numberOfInServiceStreams",
3523 FT_UINT32, BASE_DEC, NULL, 0x0,
3524 "Number of in service streams.",
3528 { &hf_skinny_maxStreamsPerConf,
3529 { "MaxStreamsPerConf", "skinny.maxStreamsPerConf",
3530 FT_UINT32, BASE_DEC, NULL, 0x0,
3531 "Maximum number of streams per conference.",
3535 { &hf_skinny_numberOfOutOfServiceStreams,
3536 { "NumberOfOutOfServiceStreams", "skinny.numberOfOutOfServiceStreams",
3537 FT_UINT32, BASE_DEC, NULL, 0x0,
3538 "Number of out of service streams.",
3542 { &hf_skinny_applicationID,
3543 { "ApplicationID", "skinny.applicationID",
3544 FT_UINT32, BASE_DEC, NULL, 0x0,
3549 { &hf_skinny_transactionID,
3550 { "TransactionID", "skinny.transactionID",
3551 FT_UINT32, BASE_DEC, NULL, 0x0,
3556 { &hf_skinny_serviceNum,
3557 { "ServiceNum", "skinny.serviceNum",
3558 FT_UINT32, BASE_DEC, NULL, 0x0,
3563 { &hf_skinny_serviceURLIndex,
3564 { "serviceURLIndex", "skinny.serviceURLIndex",
3565 FT_UINT32, BASE_DEC, NULL, 0x0,
3570 { &hf_skinny_featureIndex,
3571 { "FeatureIndex", "skinny.featureIndex",
3572 FT_UINT32, BASE_DEC, NULL, 0x0,
3577 { &hf_skinny_createConfResults,
3578 { "CreateConfResults", "skinny.createConfResults",
3579 FT_UINT32, BASE_DEC, VALS(skinny_createConfResults), 0x0,
3580 "The create conference results",
3584 { &hf_skinny_modifyConfResults,
3585 { "ModifyConfResults", "skinny.modifyConfResults",
3586 FT_UINT32, BASE_DEC, VALS(skinny_modifyConfResults), 0x0,
3587 "The modify conference results",
3591 { &hf_skinny_deleteConfResults,
3592 { "DeleteConfResults", "skinny.deleteConfResults",
3593 FT_UINT32, BASE_DEC, VALS(skinny_deleteConfResults), 0x0,
3594 "The delete conference results",
3598 { &hf_skinny_addParticipantResults,
3599 { "AddParticipantResults", "skinny.addParticipantResults",
3600 FT_UINT32, BASE_DEC, VALS(skinny_addParticipantResults), 0x0,
3601 "The add conference participant results",
3605 { &hf_skinny_passThruData,
3606 { "PassThruData", "skinny.passThruData",
3607 FT_UINT8, BASE_HEX, NULL, 0x0,
3608 "Pass Through data.",
3612 { &hf_skinny_auditParticipantResults,
3613 { "AuditParticipantResults", "skinny.auditParticipantResults",
3614 FT_UINT32, BASE_DEC, VALS(skinny_auditParticipantResults), 0x0,
3615 "The audit participant results",
3620 { "Last", "skinny.last",
3621 FT_UINT32, BASE_DEC, NULL, 0x0,
3626 { &hf_skinny_numberOfEntries,
3627 { "NumberOfEntries", "skinny.numberOfEntries",
3628 FT_UINT32, BASE_DEC, NULL, 0x0,
3629 "Number of entries in list.",
3633 { &hf_skinny_participantEntry,
3634 { "ParticipantEntry", "skinny.participantEntry",
3635 FT_UINT32, BASE_DEC, NULL, 0x0,
3636 "Participant Entry.",
3640 { &hf_skinny_resourceTypes,
3641 { "ResourceType", "skinny.resourceTypes",
3642 FT_UINT32, BASE_DEC, VALS(skinny_resourceTypes), 0x0,
3647 { &hf_skinny_numberOfReservedParticipants,
3648 { "NumberOfReservedParticipants", "skinny.numberOfReservedParticipants",
3649 FT_UINT32, BASE_DEC, NULL, 0x0,
3650 "numberOfReservedParticipants.",
3654 { &hf_skinny_numberOfActiveParticipants,
3655 { "NumberOfActiveParticipants", "skinny.numberOfActiveParticipants",
3656 FT_UINT32, BASE_DEC, NULL, 0x0,
3657 "numberOfActiveParticipants.",
3662 { "AppID", "skinny.appID",
3663 FT_UINT32, BASE_DEC, NULL, 0x0,
3668 { &hf_skinny_appData,
3669 { "AppData", "skinny.appData",
3670 FT_UINT8, BASE_HEX, NULL, 0x0,
3675 { &hf_skinny_appConfID,
3676 { "AppConfID", "skinny.appConfID",
3677 FT_UINT8, BASE_HEX, NULL, 0x0,
3678 "App Conf ID Data.",
3682 { &hf_skinny_sequenceFlag,
3683 { "SequenceFlag", "skinny.sequenceFlag",
3684 FT_UINT32, BASE_DEC, VALS(skinny_sequenceFlags), 0x0,
3689 { &hf_skinny_displayPriority,
3690 { "DisplayPriority", "skinny.displayPriority",
3691 FT_UINT32, BASE_DEC, NULL, 0x0,
3692 "Display Priority.",
3696 { &hf_skinny_appInstanceID,
3697 { "AppInstanceID", "skinny.appInstanceID",
3698 FT_UINT32, BASE_DEC, NULL, 0x0,
3703 { &hf_skinny_routingID,
3704 { "routingID", "skinny.routingID",
3705 FT_UINT32, BASE_DEC, NULL, 0x0,
3710 { &hf_skinny_audioCapCount,
3711 { "AudioCapCount", "skinny.audioCapCount",
3712 FT_UINT32, BASE_DEC, NULL, 0x0,
3717 { &hf_skinny_videoCapCount,
3718 { "VideoCapCount", "skinny.videoCapCount",
3719 FT_UINT32, BASE_DEC, NULL, 0x0,
3724 { &hf_skinny_dataCapCount,
3725 { "DataCapCount", "skinny.dataCapCount",
3726 FT_UINT32, BASE_DEC, NULL, 0x0,
3731 { &hf_skinny_RTPPayloadFormat,
3732 { "RTPPayloadFormat", "skinny.RTPPayloadFormat",
3733 FT_UINT32, BASE_DEC, NULL, 0x0,
3734 "RTPPayloadFormat.",
3738 { &hf_skinny_customPictureFormatCount,
3739 { "CustomPictureFormatCount", "skinny.customPictureFormatCount",
3740 FT_UINT32, BASE_DEC, NULL, 0x0,
3741 "CustomPictureFormatCount.",
3745 { &hf_skinny_pictureWidth,
3746 { "PictureWidth", "skinny.pictureWidth",
3747 FT_UINT32, BASE_DEC, NULL, 0x0,
3752 { &hf_skinny_pictureHeight,
3753 { "PictureHeight", "skinny.pictureHeight",
3754 FT_UINT32, BASE_DEC, NULL, 0x0,
3759 { &hf_skinny_pixelAspectRatio,
3760 { "PixelAspectRatio", "skinny.pixelAspectRatio",
3761 FT_UINT32, BASE_DEC, NULL, 0x0,
3762 "PixelAspectRatio.",
3766 { &hf_skinny_clockConversionCode,
3767 { "ClockConversionCode", "skinny.clockConversionCode",
3768 FT_UINT32, BASE_DEC, NULL, 0x0,
3769 "ClockConversionCode.",
3773 { &hf_skinny_clockDivisor,
3774 { "ClockDivisor", "skinny.clockDivisor",
3775 FT_UINT32, BASE_DEC, NULL, 0x0,
3780 { &hf_skinny_activeStreamsOnRegistration,
3781 { "ActiveStreamsOnRegistration", "skinny.activeStreamsOnRegistration",
3782 FT_UINT32, BASE_DEC, NULL, 0x0,
3783 "ActiveStreamsOnRegistration.",
3788 { "MaxBW", "skinny.maxBW",
3789 FT_UINT32, BASE_DEC, NULL, 0x0,
3794 { &hf_skinny_serviceResourceCount,
3795 { "ServiceResourceCount", "skinny.serviceResourceCount",
3796 FT_UINT32, BASE_DEC, NULL, 0x0,
3797 "ServiceResourceCount.",
3801 { &hf_skinny_layoutCount,
3802 { "LayoutCount", "skinny.layoutCount",
3803 FT_UINT32, BASE_DEC, NULL, 0x0,
3808 { &hf_skinny_layout,
3809 { "Layout", "skinny.layout",
3810 FT_UINT32, BASE_DEC, VALS(skinny_Layouts), 0x0,
3815 { &hf_skinny_maxConferences,
3816 { "MaxConferences", "skinny.maxConferences",
3817 FT_UINT32, BASE_DEC, NULL, 0x0,
3822 { &hf_skinny_activeConferenceOnRegistration,
3823 { "ActiveConferenceOnRegistration", "skinny.activeConferenceOnRegistration",
3824 FT_UINT32, BASE_DEC, NULL, 0x0,
3825 "ActiveConferenceOnRegistration.",
3829 { &hf_skinny_transmitOrReceive,
3830 { "TransmitOrReceive", "skinny.transmitOrReceive",
3831 FT_UINT32, BASE_DEC, VALS(skinny_transmitOrReceive), 0x0,
3832 "TransmitOrReceive",
3836 { &hf_skinny_levelPreferenceCount,
3837 { "LevelPreferenceCount", "skinny.levelPreferenceCount",
3838 FT_UINT32, BASE_DEC, NULL, 0x0,
3839 "LevelPreferenceCount.",
3843 { &hf_skinny_transmitPreference,
3844 { "TransmitPreference", "skinny.transmitPreference",
3845 FT_UINT32, BASE_DEC, NULL, 0x0,
3846 "TransmitPreference.",
3850 { &hf_skinny_format,
3851 { "Format", "skinny.format",
3852 FT_UINT32, BASE_DEC, VALS(skinny_formatTypes), 0x0,
3857 { &hf_skinny_maxBitRate,
3858 { "MaxBitRate", "skinny.maxBitRate",
3859 FT_UINT32, BASE_DEC, NULL, 0x0,
3864 { &hf_skinny_minBitRate,
3865 { "MinBitRate", "skinny.minBitRate",
3866 FT_UINT32, BASE_DEC, NULL, 0x0,
3872 { "MPI", "skinny.MPI",
3873 FT_UINT32, BASE_DEC, NULL, 0x0,
3878 { &hf_skinny_serviceNumber,
3879 { "ServiceNumber", "skinny.serviceNumber",
3880 FT_UINT32, BASE_DEC, NULL, 0x0,
3885 { &hf_skinny_temporalSpatialTradeOffCapability,
3886 { "TemporalSpatialTradeOffCapability", "skinny.temporalSpatialTradeOffCapability",
3887 FT_UINT32, BASE_DEC, NULL, 0x0,
3888 "TemporalSpatialTradeOffCapability.",
3892 { &hf_skinny_stillImageTransmission,
3893 { "StillImageTransmission", "skinny.stillImageTransmission",
3894 FT_UINT32, BASE_DEC, NULL, 0x0,
3895 "StillImageTransmission.",
3899 { &hf_skinny_h263_capability_bitfield,
3900 { "H263_capability_bitfield", "skinny.h263_capability_bitfield",
3901 FT_UINT32, BASE_DEC, NULL, 0x0,
3902 "H263_capability_bitfield.",
3906 { &hf_skinny_annexNandWFutureUse,
3907 { "AnnexNandWFutureUse", "skinny.annexNandWFutureUse",
3908 FT_UINT32, BASE_DEC, NULL, 0x0,
3909 "AnnexNandWFutureUse.",
3913 { &hf_skinny_modelNumber,
3914 { "ModelNumber", "skinny.modelNumber",
3915 FT_UINT32, BASE_DEC, NULL, 0x0,
3920 { &hf_skinny_bandwidth,
3921 { "Bandwidth", "skinny.bandwidth",
3922 FT_UINT32, BASE_DEC, NULL, 0x0,
3927 { &hf_skinny_protocolDependentData,
3928 { "ProtocolDependentData", "skinny.protocolDependentData",
3929 FT_UINT32, BASE_DEC, NULL, 0x0,
3930 "ProtocolDependentData.",
3934 { &hf_skinny_priority,
3935 { "Priority", "skinny.priority",
3936 FT_UINT32, BASE_DEC, NULL, 0x0,
3941 { &hf_skinny_payloadDtmf,
3942 { "PayloadDtmf", "skinny.payloadDtmf",
3943 FT_UINT32, BASE_DEC, NULL, 0x0,
3944 "RTP payload type.",
3948 { &hf_skinny_featureID,
3949 { "FeatureID", "skinny.featureID",
3950 FT_UINT32, BASE_DEC, NULL, 0x0,
3955 { &hf_skinny_featureTextLabel,
3956 { "FeatureTextLabel", "skinny.featureTextLabel",
3957 FT_STRING, BASE_NONE, NULL, 0x0,
3958 "The feature lable text that is displayed on the phone.",
3962 { &hf_skinny_featureStatus,
3963 { "FeatureStatus", "skinny.featureStatus",
3964 FT_UINT32, BASE_DEC, NULL, 0x0,
3969 { &hf_skinny_notify,
3970 { "Notify", "skinny.notify",
3971 FT_STRING, BASE_NONE, NULL, 0x0,
3972 "The message notify text that is displayed on the phone.",
3976 { &hf_skinny_endOfAnnAck,
3977 { "EndOfAnnAck", "skinny.endOfAnnAck",
3978 FT_UINT32, BASE_DEC, VALS(skinny_endOfAnnAck), 0x0,
3983 { &hf_skinny_annPlayMode,
3984 { "annPlayMode", "skinny.annPlayMode",
3985 FT_UINT32, BASE_DEC, VALS(skinny_annPlayMode), 0x0,
3990 { &hf_skinny_annPlayStatus,
3991 { "AnnPlayStatus", "skinny.annPlayStatus",
3992 FT_UINT32, BASE_DEC, VALS(skinny_annPlayStatus), 0x0,
3997 { &hf_skinny_locale,
3998 { "Locale", "skinny.locale",
3999 FT_UINT32, BASE_DEC, NULL, 0x0,
4004 { &hf_skinny_country,
4005 { "Country", "skinny.country",
4006 FT_UINT32, BASE_DEC, NULL, 0x0,
4007 "Country ID (Network locale).",
4011 { &hf_skinny_matrixConfPartyID,
4012 { "MatrixConfPartyID", "skinny.matrixConfPartyID",
4013 FT_UINT32, BASE_DEC, NULL, 0x0,
4014 "existing conference parties.",
4018 { &hf_skinny_hearingConfPartyMask,
4019 { "HearingConfPartyMask", "skinny.hearingConfPartyMask",
4020 FT_UINT32, BASE_DEC, NULL, 0x0,
4021 "Bit mask of conference parties to hear media received on this stream. Bit0 = matrixConfPartyID[0], Bit1 = matrixConfPartiID[1].",
4025 { &hf_skinny_serviceURL,
4026 { "ServiceURL", "skinny.serviceURL",
4027 FT_STRING, BASE_NONE, NULL, 0x0,
4032 { &hf_skinny_serviceURLDisplayName,
4033 { "ServiceURLDisplayName", "skinny.serviceURLDisplayName",
4034 FT_STRING, BASE_NONE, NULL, 0x0,
4035 "ServiceURLDisplayName.",
4039 { &hf_skinny_callSelectStat,
4040 { "CallSelectStat", "skinny.callSelectStat",
4041 FT_UINT32, BASE_DEC, NULL, 0x0,
4046 { &hf_skinny_isConferenceCreator,
4047 { "IsConferenceCreator", "skinny.isConferenceCreator",
4048 FT_UINT32, BASE_DEC, NULL, 0x0,
4049 "IsConferenceCreator.",
4053 { &hf_skinny_payload_rfc_number,
4054 { "Payload_rfc_number", "skinny.payload_rfc_number",
4055 FT_UINT32, BASE_DEC, NULL, 0x0,
4056 "Payload_rfc_number.",
4060 { &hf_skinny_payloadType,
4061 { "PayloadType", "skinny.payloadType",
4062 FT_UINT32, BASE_DEC, NULL, 0x0,
4067 { &hf_skinny_bitRate,
4068 { "BitRate", "skinny.bitRate",
4069 FT_UINT32, BASE_DEC, NULL, 0x0,
4074 { &hf_skinny_pictureFormatCount,
4075 { "PictureFormatCount", "skinny.pictureFormatCount",
4076 FT_UINT32, BASE_DEC, NULL, 0x0,
4077 "PictureFormatCount.",
4081 { &hf_skinny_confServiceNum,
4082 { "ConfServiceNum", "skinny.confServiceNum",
4083 FT_UINT32, BASE_DEC, NULL, 0x0,
4088 { &hf_skinny_DSCPValue,
4089 { "DSCPValue", "skinny.DSCPValue",
4090 FT_UINT32, BASE_DEC, NULL, 0x0,
4095 { &hf_skinny_miscCommandType,
4096 { "MiscCommandType", "skinny.miscCommandType",
4097 FT_UINT32, BASE_DEC, VALS(skinny_miscCommandType), 0x0,
4102 { &hf_skinny_temporalSpatialTradeOff,
4103 { "TemporalSpatialTradeOff", "skinny.temporalSpatialTradeOff",
4104 FT_UINT32, BASE_DEC, NULL, 0x0,
4105 "TemporalSpatialTradeOff.",
4109 { &hf_skinny_firstGOB,
4110 { "FirstGOB", "skinny.firstGOB",
4111 FT_UINT32, BASE_DEC, NULL, 0x0,
4116 { &hf_skinny_numberOfGOBs,
4117 { "NumberOfGOBs", "skinny.numberOfGOBs",
4118 FT_UINT32, BASE_DEC, NULL, 0x0,
4123 { &hf_skinny_firstMB,
4124 { "FirstMB", "skinny.firstMB",
4125 FT_UINT32, BASE_DEC, NULL, 0x0,
4130 { &hf_skinny_numberOfMBs,
4131 { "NumberOfMBs", "skinny.numberOfMBs",
4132 FT_UINT32, BASE_DEC, NULL, 0x0,
4137 { &hf_skinny_pictureNumber,
4138 { "PictureNumber", "skinny.pictureNumber",
4139 FT_UINT32, BASE_DEC, NULL, 0x0,
4144 { &hf_skinny_longTermPictureIndex,
4145 { "LongTermPictureIndex", "skinny.longTermPictureIndex",
4146 FT_UINT32, BASE_DEC, NULL, 0x0,
4147 "LongTermPictureIndex.",
4151 { &hf_skinny_recoveryReferencePictureCount,
4152 { "RecoveryReferencePictureCount", "skinny.recoveryReferencePictureCount",
4153 FT_UINT32, BASE_DEC, NULL, 0x0,
4154 "RecoveryReferencePictureCount.",
4158 { &hf_cast_lastRedirectingPartyName,
4159 { "LastRedirectingPartyName", "cast.lastRedirectingPartyName",
4160 FT_STRING, BASE_NONE, NULL, 0x0,
4161 "LastRedirectingPartyName.",
4165 { &hf_cast_lastRedirectingParty,
4166 { "LastRedirectingParty", "cast.lastRedirectingParty",
4167 FT_STRING, BASE_NONE, NULL, 0x0,
4168 "LastRedirectingParty.",
4172 { &hf_cast_cgpnVoiceMailbox,
4173 { "CgpnVoiceMailbox", "cast.cgpnVoiceMailbox",
4174 FT_STRING, BASE_NONE, NULL, 0x0,
4175 "CgpnVoiceMailbox.",
4179 { &hf_cast_cdpnVoiceMailbox,
4180 { "CdpnVoiceMailbox", "cast.cdpnVoiceMailbox",
4181 FT_STRING, BASE_NONE, NULL, 0x0,
4182 "CdpnVoiceMailbox.",
4186 { &hf_cast_originalCdpnVoiceMailbox,
4187 { "OriginalCdpnVoiceMailbox", "cast.originalCdpnVoiceMailbox",
4188 FT_STRING, BASE_NONE, NULL, 0x0,
4189 "OriginalCdpnVoiceMailbox.",
4193 { &hf_cast_lastRedirectingVoiceMailbox,
4194 { "LastRedirectingVoiceMailbox", "cast.lastRedirectingVoiceMailbox",
4195 FT_STRING, BASE_NONE, NULL, 0x0,
4196 "LastRedirectingVoiceMailbox.",
4200 { &hf_cast_originalCdpnRedirectReason,
4201 { "OriginalCdpnRedirectReason", "cast.originalCdpnRedirectReason",
4202 FT_UINT32, BASE_DEC, NULL, 0x0,
4203 "OriginalCdpnRedirectReason.",
4207 { &hf_cast_lastRedirectingReason,
4208 { "LastRedirectingReason", "cast.lastRedirectingReason",
4209 FT_UINT32, BASE_DEC, NULL, 0x0,
4210 "LastRedirectingReason.",
4214 { &hf_cast_callInstance,
4215 { "CallInstance", "cast.callInstance",
4216 FT_UINT32, BASE_DEC, NULL, 0x0,
4221 { &hf_cast_callSecurityStatus,
4222 { "CallSecurityStatus", "cast.callSecurityStatus",
4223 FT_UINT32, BASE_DEC, VALS(cast_callSecurityStatusTypes), 0x0,
4224 "CallSecurityStatus.",
4230 /* Setup protocol subtree array */
4231 static gint *ett[] = {
4234 &ett_skinny_softKeyMap,
4237 module_t *skinny_module;
4239 /* Register the protocol name and description */
4240 proto_skinny = proto_register_protocol("Skinny Client Control Protocol",
4241 "SKINNY", "skinny");
4243 /* Required function calls to register the header fields and subtrees used */
4244 proto_register_field_array(proto_skinny, hf, array_length(hf));
4245 proto_register_subtree_array(ett, array_length(ett));
4247 skinny_module = prefs_register_protocol(proto_skinny, NULL);
4248 prefs_register_bool_preference(skinny_module, "desegment",
4249 "Reassemble SCCP messages spanning multiple TCP segments",
4250 "Whether the SCCP dissector should reassemble messages spanning multiple TCP segments."
4251 " To use this option, you must also enable \"Allow subdissectors to reassemble TCP streams\" in the TCP protocol settings.",
4256 proto_reg_handoff_skinny(void)
4258 dissector_handle_t skinny_handle;
4260 data_handle = find_dissector("data");
4261 rtp_handle = find_dissector("rtp");
4262 skinny_handle = create_dissector_handle(dissect_skinny, proto_skinny);
4263 dissector_add("tcp.port", TCP_PORT_SKINNY, skinny_handle);
4269 * This is the status of this decode.
4270 * Items marked as N/A in the decode field have no params to test
4271 * implemented for N/A means they exist in the switch statement
4274 * id message implemented decode tested (via capture)
4275 * ---------------------------------------------------------------------------
4276 * 0x0 keepAlive Y N/A
4279 * 0x3 keypadButton Y Y
4280 * 0x4 enblocCall Y N
4284 * 0x8 hookFlash Y N/A
4285 * 0x9 forwardStatReq Y N
4286 * 0xa speedDialStatReq Y Y
4287 * 0xb lineStatReq Y Y
4288 * 0xc configStatReq Y N/A
4289 * 0xd timeDateReq Y N/A
4290 * 0xe buttonTemplateReq Y N/A
4291 * 0xf versionReq Y N/A
4292 * 0x10 capabilitiesRes Y Y -- would like more decodes
4293 * 0x11 mediaPortList S N -- no info
4294 * 0x12 serverReq Y N/A
4295 * 0x20 alarmMessage Y Y
4296 * 0x21 multicastMediaReceptionAck Y N
4297 * 0x22 openReceiveChannelAck Y Y
4298 * 0x23 connectionStatisticsRes Y Y
4299 * 0x24 offHookWithCgpn Y N
4300 * 0x25 softKeySetReq Y N/A
4301 * 0x26 softKeyEvent Y Y
4302 * 0x27 unregister Y N/A
4303 * 0x28 softKeytemplateReq Y N/A
4304 * 0x29 registerTokenReq Y N
4305 * 0x2A mediaTransmissionFailure
4306 * 0x2B headsetStatus
4307 * 0x2C mediaResourceNotification
4308 * 0x2D registerAvailableLines
4309 * 0x2E deviceToUserData
4310 * 0x2F deviceToUserDataResponse
4311 * 0x30 updateCapabilities
4312 * 0x31 openMultiMediaReceiveChannelAck
4313 * 0x32 clearConference
4314 * 0x33 serviceURLStatReq
4315 * 0x34 featureStatReq
4316 * 0x35 createConferenceRes
4317 * 0x36 deleteConferenceRes
4318 * 0x37 modifyConferenceRes
4319 * 0x38 addParticipantRes
4320 * 0x39 auditConferenceRes
4321 * 0x40 auditParticipantRes
4322 * 0x41 deviceToUserDataVersion1
4323 * 0x42 deviceToUserDataResponseVersion1
4324 * 0x81 registerAck Y Y
4325 * 0x82 startTone Y Y
4326 * 0x83 stopTone Y N/A
4327 * 0x85 setRinger Y Y
4329 * 0x87 setHkFDetect Y N
4330 * 0x88 setSpeakerMode Y Y
4331 * 0x89 setMicroMode Y N
4332 * 0x8A startMediaTransmission Y Y
4333 * 0x8B stopMediaTransmission Y Y
4334 * 0x8C startMediaReception S N
4335 * 0x8D stopMediaReception S N
4336 * 0x8E *reserved* S *
4338 * 0x90 forwardStat Y N
4339 * 0x91 speedDialStat Y Y
4341 * 0x93 configStat Y N
4342 * 0x94 defineTimeDate Y Y
4343 * 0x95 startSessionTransmission Y N
4344 * 0x96 stopSessionTransmission Y N
4345 * 0x97 buttonTemplate Y Y -- ugly =)
4347 * 0x99 displayText Y Y
4348 * 0x9A clearDisplay Y N/A
4349 * 0x9B capabilitiesReq Y N/A
4350 * 0x9C enunciatorCommand Y N (inner loop unknown)
4351 * 0x9D registerReject Y N
4352 * 0x9E serverRes Y N
4354 * 0x100 keepAliveAck Y N/A
4355 * 0x101 startMulticastMediaReception Y N
4356 * 0x102 startMulticastMediaTransmission Y N
4357 * 0x103 stopMulticastMediaReception Y N
4358 * 0x104 stopMulticastMediaTransmission Y N
4359 * 0x105 openreceiveChannel Y Y
4360 * 0x106 closeReceiveChannel Y Y
4361 * 0x107 connectionStatisticsReq Y Y
4362 * 0x108 softKeyTemplateRes Y Y
4363 * 0x109 softKeySetRes Y Y
4364 * 0x110 selectSoftKeys Y Y
4365 * 0x111 callState Y Y
4366 * 0x112 displayPromptStatus Y Y
4367 * 0x113 clearPromptStatus Y Y
4368 * 0x114 displayNotify Y Y
4369 * 0x115 clearNotify Y Y
4370 * 0x116 activateCallPlane Y Y
4371 * 0x117 deactivateCallPlane Y N/A
4372 * 0x118 unregisterAck Y Y
4373 * 0x119 backSpaceReq Y Y
4374 * 0x11A registerTokenAck Y N
4375 * 0x11B registerTokenReject Y N
4376 * 0x11C startMediaFailureDetection
4377 * 0x11D dialedNumber
4378 * 0x11E userToDeviceData
4380 * 0x120 displayPriNotify
4381 * 0x121 clearPriNotify
4382 * 0x122 startAnnouncement
4383 * 0x123 stopAnnouncement
4384 * 0x124 announcementFinish
4385 * 0x127 notifyDtmfTone
4386 * 0x128 sendDtmfTone
4387 * 0x129 subscribeDtmfPayloadReq
4388 * 0x12A subscribeDtmfPayloadRes
4389 * 0x12B subscribeDtmfPayloadErr
4390 * 0x12C unSubscribeDtmfPayloadReq
4391 * 0x12D unSubscribeDtmfPayloadRes
4392 * 0x12E unSubscribeDtmfPayloadErr
4393 * 0x12F serviceURLStat
4394 * 0x130 callSelectStat
4395 * 0x131 openMultiMediaChannel
4396 * 0x132 startMultiMediaTransmission
4397 * 0x133 stopMultiMediaTransmission
4398 * 0x134 miscellaneousCommand
4399 * 0x135 flowControlCommand
4400 * 0x136 closeMultiMediaReceiveChannel
4401 * 0x137 createConferenceReq
4402 * 0x138 deleteConferenceReq
4403 * 0x139 modifyConferenceReq
4404 * 0x13A addParticipantReq
4405 * 0x13B dropParticipantReq
4406 * 0x13C auditConferenceReq
4407 * 0x13D auditParticipantReq
4408 * 0x13F userToDeviceDataVersion1