/* Message: OffHookMessage Opcode: 0x0006 Type: CallControl Direction: dev2pbx VarLength: no  */
static void handle_OffHookMessage(ptvcursor_t *cursor, packet_info *pinfo _U_)
/* Message: OffHookMessage Opcode: 0x0006 Type: CallControl Direction: dev2pbx VarLength: no  */
static void handle_OffHookMessage(ptvcursor_t *cursor, packet_info *pinfo _U_)
{
  guint32 hdr_data_length = tvb_get_letohl(ptvcursor_tvbuff(cursor), 0);
  if (hdr_data_length > 4) {
    si->lineId = tvb_get_letohl(ptvcursor_tvbuff(cursor), ptvcursor_current_offset(cursor));
    ptvcursor_add(cursor, hf_skinny_lineInstance, 4, ENC_LITTLE_ENDIAN);
    si->callId = tvb_get_letohl(ptvcursor_tvbuff(cursor), ptvcursor_current_offset(cursor));
    ptvcursor_add(cursor, hf_skinny_callReference, 4, ENC_LITTLE_ENDIAN);
  }
}