2007-08-14 06:14:31 +00:00
|
|
|
# tcap.cnf
|
|
|
|
# $Id$
|
|
|
|
# tcap conformation file
|
|
|
|
|
2008-07-28 14:31:35 +00:00
|
|
|
#.OMIT_ASSIGNMENT
|
|
|
|
# Removed as they are giving 'defined but not used' warnings currently.
|
|
|
|
Priority
|
|
|
|
#.END
|
|
|
|
|
2007-08-16 19:59:55 +00:00
|
|
|
#--- OperationCode ---
|
|
|
|
|
|
|
|
#.FN_PARS
|
|
|
|
OperationCode VAL_PTR = &ansi_tcap_private.d.OperationCode
|
|
|
|
OperationCode/national VAL_PTR = &ansi_tcap_private.d.OperationCode_national
|
2008-01-17 09:20:17 +00:00
|
|
|
OperationCode/private VAL_PTR = &ansi_tcap_private.d.OperationCode_private
|
2007-08-16 19:59:55 +00:00
|
|
|
#.FN_FTR OperationCode
|
|
|
|
ansi_tcap_private.d.OperationCode_item = actx->created_item;
|
|
|
|
#.END
|
2007-08-14 06:14:31 +00:00
|
|
|
|
|
|
|
#--- INVOKE ---
|
|
|
|
#.FIELD_ATTR
|
2009-06-20 18:33:33 +00:00
|
|
|
Invoke/parameter TYPE = FT_BYTES DISPLAY = BASE_NONE
|
2007-08-14 06:14:31 +00:00
|
|
|
|
|
|
|
#.FN_BODY Invoke/parameter
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
|
|
|
|
offset = dissect_ber_octet_string(TRUE, actx, tree, tvb, offset, hf_index,
|
|
|
|
¶meter_tvb);
|
|
|
|
if(!parameter_tvb)
|
2007-08-17 23:23:36 +00:00
|
|
|
return offset;
|
|
|
|
|
2007-11-12 17:02:46 +00:00
|
|
|
find_tcap_subdissector(parameter_tvb, actx, tree);
|
2007-08-17 23:23:36 +00:00
|
|
|
|
2007-09-12 16:45:53 +00:00
|
|
|
#.FN_HDR Invoke
|
2007-08-16 19:59:55 +00:00
|
|
|
ansi_tcap_private.d.pdu = 1;
|
2007-08-14 06:14:31 +00:00
|
|
|
|
2007-08-16 19:59:55 +00:00
|
|
|
#--- RETURN RESULT ---
|
2007-08-14 06:14:31 +00:00
|
|
|
|
|
|
|
#.FIELD_ATTR
|
2009-06-20 18:33:33 +00:00
|
|
|
ReturnResult/parameter TYPE = FT_BYTES DISPLAY = BASE_NONE
|
2007-08-14 06:14:31 +00:00
|
|
|
|
|
|
|
#.FN_BODY ReturnResult/parameter
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
|
|
|
|
|
|
|
|
offset = dissect_ber_octet_string(TRUE, actx, tree, tvb, offset, hf_index,
|
|
|
|
¶meter_tvb);
|
2007-08-17 23:23:36 +00:00
|
|
|
if(!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
|
2007-11-12 17:02:46 +00:00
|
|
|
find_tcap_subdissector(parameter_tvb, actx, tree);
|
2007-08-14 06:14:31 +00:00
|
|
|
|
2007-09-12 16:45:53 +00:00
|
|
|
#.FN_HDR ReturnResult
|
2007-08-16 19:59:55 +00:00
|
|
|
ansi_tcap_private.d.pdu = 2;
|
|
|
|
|
2007-08-14 06:14:31 +00:00
|
|
|
|
|
|
|
#--- RETURN ERROR ---
|
|
|
|
|
|
|
|
#.FIELD_ATTR
|
2009-06-20 18:33:33 +00:00
|
|
|
ReturnError/parameter TYPE = FT_BYTES DISPLAY = BASE_NONE
|
2007-08-14 06:14:31 +00:00
|
|
|
|
|
|
|
#.FN_BODY ReturnError/parameter
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
|
|
|
|
offset = dissect_ber_octet_string(TRUE, actx, tree, tvb, offset, hf_index,
|
|
|
|
¶meter_tvb);
|
2007-08-17 23:23:36 +00:00
|
|
|
if(!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
|
2007-11-12 17:02:46 +00:00
|
|
|
find_tcap_subdissector(parameter_tvb, actx, tree);
|
2007-08-17 23:23:36 +00:00
|
|
|
|
2007-09-12 16:45:53 +00:00
|
|
|
#.FN_HDR ReturnError
|
2007-08-16 19:59:55 +00:00
|
|
|
ansi_tcap_private.d.pdu = 3;
|
2007-08-17 23:23:36 +00:00
|
|
|
|
|
|
|
#--- ObjectIDApplicationContext --
|
|
|
|
#.FN_BODY ObjectIDApplicationContext FN_VARIANT = _str VAL_PTR = &oid_str
|
|
|
|
|
|
|
|
static const char * oid_str;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
2007-09-12 18:12:18 +00:00
|
|
|
ansi_tcap_private.objectApplicationId_oid= (void*) oid_str;
|
2007-08-17 23:23:36 +00:00
|
|
|
ansi_tcap_private.oid_is_present=TRUE;
|
|
|
|
|
|
|
|
#.FN_HDR PackageType/unidirectional
|
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2009-09-23 15:43:55 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "unidirectional ");
|
2007-08-17 23:23:36 +00:00
|
|
|
|
|
|
|
#.FN_HDR PackageType/queryWithPerm
|
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2009-09-23 15:43:55 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "queryWithPerm ");
|
2007-08-17 23:23:36 +00:00
|
|
|
|
|
|
|
#.FN_HDR PackageType/queryWithoutPerm
|
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2009-09-23 15:43:55 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "queryWithoutPerm ");
|
2007-08-17 23:23:36 +00:00
|
|
|
|
|
|
|
#.FN_HDR PackageType/response
|
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2009-09-23 15:43:55 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "response ");
|
2007-08-17 23:23:36 +00:00
|
|
|
|
|
|
|
#.FN_HDR PackageType/conversationWithPerm
|
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2009-09-23 15:43:55 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "conversationWithPerm ");
|
2007-08-17 23:23:36 +00:00
|
|
|
|
|
|
|
#.FN_HDR PackageType/conversationWithoutPerm
|
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2009-09-23 15:43:55 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "conversationWithoutPerm ");
|
2007-08-17 23:23:36 +00:00
|
|
|
|
|
|
|
#.FN_HDR PackageType/abort
|
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ABORT;
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2009-09-23 15:43:55 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "Abort ");
|
2007-08-17 23:23:36 +00:00
|
|
|
|
2007-08-16 19:59:55 +00:00
|
|
|
#.FN_BODY TransactionID/_untag VAL_PTR = &next_tvb
|
|
|
|
|
|
|
|
tvbuff_t *next_tvb;
|
|
|
|
guint8 len;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if(next_tvb) {
|
2007-09-13 20:20:11 +00:00
|
|
|
if(tvb_length(next_tvb) !=0)
|
|
|
|
ansi_tcap_private.TransactionID_str = tvb_bytes_to_str(next_tvb, 0,tvb_length(next_tvb));
|
2007-08-16 19:59:55 +00:00
|
|
|
len = tvb_length_remaining(next_tvb, 0);
|
|
|
|
switch(len) {
|
|
|
|
case 1:
|
|
|
|
gp_tcapsrt_info->src_tid=tvb_get_guint8(next_tvb, 0);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
gp_tcapsrt_info->src_tid=tvb_get_ntohs(next_tvb, 0);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
gp_tcapsrt_info->src_tid=tvb_get_ntohl(next_tvb, 0);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gp_tcapsrt_info->src_tid=0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#.END
|