/* Message: OffHookWithCgpnMessage Opcode: 0x0024 Type: CallControl Direction: dev2pbx VarLength: no  */
static void handle_OffHookWithCgpnMessage(ptvcursor_t *cursor, packet_info *pinfo _U_)
/* Message: OffHookWithCgpnMessage Opcode: 0x0024 Type: CallControl Direction: dev2pbx VarLength: no  */
static void handle_OffHookWithCgpnMessage(ptvcursor_t *cursor, packet_info *pinfo _U_)
{
  guint32 hdr_version = tvb_get_letohl(ptvcursor_tvbuff(cursor), 4);
  guint32 VariableDirnumSize = (hdr_version >= V18_MSG_TYPE) ? 25 : 24;
  ptvcursor_add(cursor, hf_skinny_callingPartyNumber, VariableDirnumSize, ENC_ASCII|ENC_NA);
  ptvcursor_add(cursor, hf_skinny_cgpnVoiceMailbox, VariableDirnumSize, ENC_ASCII|ENC_NA);
  si->lineId = tvb_get_letohl(ptvcursor_tvbuff(cursor), ptvcursor_current_offset(cursor));
  ptvcursor_add(cursor, hf_skinny_lineInstance, 4, ENC_LITTLE_ENDIAN);
}