2005-05-08 20:34:57 +00:00
|
|
|
# camel.cnf
|
|
|
|
# camel conformation file
|
2005-03-22 15:41:40 +00:00
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
#.MODULE_IMPORT
|
2005-11-25 20:18:36 +00:00
|
|
|
MAP-CommonDataTypes gsm_map
|
|
|
|
MAP-MS-DataTypes gsm_map
|
|
|
|
MAP-CH-DataTypes gsm_map
|
|
|
|
|
|
|
|
#.INCLUDE ../gsmmap/gsm_map-exp.cnf
|
2005-03-22 15:41:40 +00:00
|
|
|
|
|
|
|
#.EXPORTS
|
|
|
|
|
|
|
|
|
|
|
|
#.PDU
|
|
|
|
|
|
|
|
|
|
|
|
#.NO_EMIT
|
|
|
|
|
|
|
|
#.TYPE_RENAME
|
|
|
|
|
|
|
|
#.FIELD_RENAME
|
|
|
|
|
2005-04-15 08:18:15 +00:00
|
|
|
#----------------------------------------------------------------------------------------
|
|
|
|
#.FN_BODY CallingPartyNumber
|
|
|
|
|
|
|
|
|
|
|
|
proto_item* parameter_item;
|
|
|
|
proto_item* parameter_tree;
|
|
|
|
tvbuff_t *isup_tvb;
|
|
|
|
guint32 len;
|
|
|
|
|
|
|
|
len=tvb_length_remaining(tvb,offset);
|
|
|
|
parameter_item = proto_tree_add_item(tree, hf_index, tvb, offset, -1, FALSE);
|
|
|
|
parameter_tree = proto_item_add_subtree(parameter_item, ett_camelisup_parameter);
|
|
|
|
isup_tvb = tvb_new_subset(tvb, offset,-1 , -1 );
|
|
|
|
dissect_isup_calling_party_number_parameter(isup_tvb, parameter_tree, parameter_item);
|
|
|
|
offset += len;
|
|
|
|
#.END
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------------------
|
|
|
|
#.FN_BODY CalledPartyNumber
|
|
|
|
|
|
|
|
|
|
|
|
tvbuff_t *isup_tvb;
|
2005-05-08 20:34:57 +00:00
|
|
|
guint32 len;
|
2005-04-15 08:18:15 +00:00
|
|
|
|
2005-05-08 20:34:57 +00:00
|
|
|
len=tvb_length_remaining(tvb,offset);
|
2005-04-15 08:18:15 +00:00
|
|
|
isup_tvb = tvb_new_subset(tvb, offset,-1 , -1 );
|
2005-12-14 21:46:56 +00:00
|
|
|
dissect_isup_called_party_number_parameter(isup_tvb, tree, NULL);
|
2005-05-08 20:34:57 +00:00
|
|
|
offset += len;
|
2005-04-15 08:18:15 +00:00
|
|
|
|
|
|
|
#.END
|
|
|
|
#----------------------------------------------------------------------------------------
|
2005-12-06 17:53:28 +00:00
|
|
|
#.FN_PARS ISDN-AddressString
|
|
|
|
VAL_PTR = ¶meter_tvb
|
2005-04-15 08:18:15 +00:00
|
|
|
|
|
|
|
#.FN_BODY ISDN-AddressString
|
|
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
char *digit_str;
|
2006-01-17 21:52:30 +00:00
|
|
|
proto_item *item;
|
|
|
|
proto_tree *subtree;
|
2005-04-15 08:18:15 +00:00
|
|
|
|
2005-12-06 17:53:28 +00:00
|
|
|
%(DEFAULT_BODY)s
|
2005-04-15 08:18:15 +00:00
|
|
|
|
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
2006-01-17 21:52:30 +00:00
|
|
|
item = get_ber_last_created_item();
|
|
|
|
subtree = proto_item_add_subtree(item, ett_camel_isdn_address_string);
|
2005-04-15 08:18:15 +00:00
|
|
|
|
2006-01-17 21:52:30 +00:00
|
|
|
proto_tree_add_item(subtree, hf_camel_addr_extension, parameter_tvb, 0,1,FALSE);
|
2005-05-08 20:34:57 +00:00
|
|
|
|
2006-01-17 21:52:30 +00:00
|
|
|
proto_tree_add_item(subtree, hf_camel_addr_natureOfAddressIndicator, parameter_tvb, 0,1,FALSE);
|
|
|
|
proto_tree_add_item(subtree, hf_camel_addr_numberingPlanInd, parameter_tvb, 0,1,FALSE);
|
2005-04-15 08:18:15 +00:00
|
|
|
digit_str = unpack_digits(parameter_tvb, 1);
|
|
|
|
|
2006-01-17 21:52:30 +00:00
|
|
|
proto_tree_add_string(subtree, hf_camel_addr_digits, parameter_tvb, 1, -1, digit_str);
|
2005-04-15 08:18:15 +00:00
|
|
|
#.END
|
2005-05-08 20:34:57 +00:00
|
|
|
|
2005-05-02 18:32:57 +00:00
|
|
|
#----------------------------------------------------------------------------------------
|
2005-12-06 17:53:28 +00:00
|
|
|
#.FN_PARS CallresultoctetPDU
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
2005-05-08 20:34:57 +00:00
|
|
|
#.FN_BODY CallresultoctetPDU
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
|
2005-12-06 17:53:28 +00:00
|
|
|
%(DEFAULT_BODY)s
|
2005-05-08 20:34:57 +00:00
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
2005-11-25 20:18:36 +00:00
|
|
|
dissect_camel_CAMEL_CallResult(implicit_tag, parameter_tvb, 0, pinfo, tree, -1);
|
2005-05-02 18:32:57 +00:00
|
|
|
|
2005-05-08 20:34:57 +00:00
|
|
|
#.END
|
2005-05-02 18:32:57 +00:00
|
|
|
|
2005-05-08 20:34:57 +00:00
|
|
|
#----------------------------------------------------------------------------------------
|
2005-12-06 17:53:28 +00:00
|
|
|
#.FN_PARS Cause
|
|
|
|
VAL_PTR = &camel_tvb
|
|
|
|
|
|
|
|
#.FN_BODY Cause
|
|
|
|
|
|
|
|
tvbuff_t *camel_tvb;
|
|
|
|
guint8 Cause_value;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (camel_tvb)
|
|
|
|
dissect_q931_cause_ie(camel_tvb, 0, tvb_length_remaining(camel_tvb,0), tree, hf_camel_cause_indicator, &Cause_value);
|
|
|
|
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
#.END
|
|
|
|
#----------------------------------------------------------------------------------------
|
|
|
|
#.FN_PARS Q850Cause
|
|
|
|
VAL_PTR = &camel_tvb
|
|
|
|
|
2005-05-08 20:34:57 +00:00
|
|
|
#.FN_BODY Q850Cause
|
2005-05-02 18:32:57 +00:00
|
|
|
|
2005-05-08 20:34:57 +00:00
|
|
|
tvbuff_t *camel_tvb;
|
|
|
|
guint8 Cause_value;
|
2005-12-06 17:53:28 +00:00
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
2005-05-02 18:32:57 +00:00
|
|
|
|
2005-09-22 00:51:11 +00:00
|
|
|
if (camel_tvb)
|
|
|
|
dissect_q931_cause_ie(camel_tvb, 0, tvb_length_remaining(camel_tvb,0), tree, hf_camel_cause_indicator, &Cause_value);
|
2005-05-08 20:34:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
return offset;
|
2005-05-02 18:32:57 +00:00
|
|
|
#.END
|
2005-03-22 15:41:40 +00:00
|
|
|
|
2005-05-08 20:34:57 +00:00
|
|
|
#----------------------------------------------------------------------------------------
|
|
|
|
#.FN_BODY DateAndTime
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* date_option = 1 european dd:mm:yyyy
|
|
|
|
* date_option = 2 american mm:dd:yyyy
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Output should be HH:MM:SS;dd/mm/yyyy
|
|
|
|
* if european is selected, and HH:MM:SS;mm/dd/yyyy
|
|
|
|
* otherwise.
|
|
|
|
*/
|
|
|
|
|
|
|
|
guint8 digit_pair;
|
|
|
|
guint8 i = 0, curr_offset;
|
2005-09-08 15:01:16 +00:00
|
|
|
char time[CAMEL_DATE_AND_TIME_LEN];
|
|
|
|
char c[CAMEL_DATE_AND_TIME_LEN]; /*temporary container*/
|
|
|
|
|
2005-05-08 20:34:57 +00:00
|
|
|
/* 2 digits per octet, 7 octets total + 5 delimiters */
|
|
|
|
|
|
|
|
for (curr_offset = 0; curr_offset < 7 ; curr_offset++)
|
|
|
|
/*Loop to extract date*/
|
|
|
|
{
|
|
|
|
digit_pair = tvb_get_guint8(tvb, curr_offset);
|
|
|
|
|
|
|
|
proto_tree_add_uint(tree,
|
|
|
|
hf_digit,
|
|
|
|
tvb,
|
|
|
|
curr_offset,
|
|
|
|
1,
|
|
|
|
digit_pair & 0x0F);
|
|
|
|
|
|
|
|
proto_tree_add_uint(tree,
|
|
|
|
hf_digit,
|
|
|
|
tvb,
|
|
|
|
curr_offset,
|
|
|
|
1,
|
2006-05-02 20:26:49 +00:00
|
|
|
digit_pair >>4);
|
2005-05-08 20:34:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
c[i] = camel_number_to_char( digit_pair & 0x0F);
|
|
|
|
i++;
|
2006-05-02 20:26:49 +00:00
|
|
|
c[i] = camel_number_to_char( digit_pair >>4);
|
2005-05-08 20:34:57 +00:00
|
|
|
i++;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Pretty print date */
|
2005-09-08 15:01:16 +00:00
|
|
|
/* XXX - Should we use sprintf here instead of assembling the string by
|
|
|
|
* hand? */
|
2005-05-08 20:34:57 +00:00
|
|
|
|
2006-05-02 20:26:49 +00:00
|
|
|
time[0] = c[8];
|
|
|
|
time[1] = c[9];
|
2005-05-08 20:34:57 +00:00
|
|
|
time[2] = ':';
|
|
|
|
time[3] = c[10];
|
|
|
|
time[4] = c[11];
|
|
|
|
time[5] = ':';
|
|
|
|
time[6] = c[12];
|
|
|
|
time[7] = c[13];
|
|
|
|
time[8] = ';';
|
|
|
|
if ( EUROPEAN_DATE == date_format) /*european*/
|
|
|
|
{
|
|
|
|
time[9] = c[6]; /*day*/
|
|
|
|
time[10] = c[7];
|
|
|
|
time[11] = '/';
|
|
|
|
time[12] = c[4]; /*month*/
|
|
|
|
time[13] = c[5];
|
|
|
|
}
|
|
|
|
else /*american*/
|
|
|
|
{
|
|
|
|
time[9] = c[4]; /*month*/
|
|
|
|
time[10] = c[5];
|
|
|
|
time[11] = '/';
|
|
|
|
time[12] = c[6]; /*day*/
|
|
|
|
time[13] = c[7];
|
|
|
|
}
|
|
|
|
time[14] = '/';
|
|
|
|
time[15] = c[0];
|
|
|
|
time[16] = c[1];
|
|
|
|
time[17] = c[2];
|
|
|
|
time[18] = c[3];
|
2005-09-08 15:01:16 +00:00
|
|
|
|
|
|
|
time[CAMEL_DATE_AND_TIME_LEN - 1] = '\0';
|
2005-05-08 20:34:57 +00:00
|
|
|
|
|
|
|
/*start = 0, length = 7*/
|
|
|
|
|
|
|
|
proto_tree_add_string(tree,
|
|
|
|
hf_index,
|
|
|
|
tvb,
|
|
|
|
0,
|
|
|
|
7,
|
|
|
|
time);
|
2005-09-08 15:01:16 +00:00
|
|
|
|
|
|
|
return 7; /* 7 octets eaten*/
|
2005-05-08 20:34:57 +00:00
|
|
|
|
2005-11-29 17:23:50 +00:00
|
|
|
#.FN_PARS BearerCap
|
|
|
|
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
|
|
|
#.FN_BODY BearerCap
|
|
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
dissect_q931_bearer_capability_ie(parameter_tvb, 0, tvb_length_remaining(parameter_tvb,0), tree);
|
|
|
|
|
|
|
|
#.FN_PARS RedirectionInformation
|
|
|
|
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
|
|
|
#.FN_BODY RedirectionInformation
|
|
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
dissect_isup_redirection_information_parameter(parameter_tvb, tree, NULL);
|
|
|
|
|
|
|
|
#.FN_PARS OriginalCalledPartyID
|
|
|
|
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
|
|
|
#.FN_BODY OriginalCalledPartyID
|
|
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
dissect_isup_original_called_number_parameter(parameter_tvb, tree, NULL);
|
|
|
|
|
|
|
|
#.FN_PARS RedirectingPartyID
|
|
|
|
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
|
|
|
#.FN_BODY RedirectingPartyID
|
|
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
dissect_isup_redirecting_number_parameter(parameter_tvb, tree, NULL);
|
|
|
|
|
2006-01-17 21:52:30 +00:00
|
|
|
#.FN_PARS MSNetworkCapability
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
|
|
|
#.FN_BODY MSNetworkCapability
|
|
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
proto_item *item;
|
|
|
|
proto_tree *subtree;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
item = get_ber_last_created_item();
|
|
|
|
subtree = proto_item_add_subtree(item, ett_camel_MSNetworkCapability);
|
|
|
|
de_gmm_ms_net_cap(parameter_tvb, subtree, 0, tvb_length_remaining(parameter_tvb,0), NULL, 0);
|
|
|
|
|
|
|
|
#.FN_PARS MSRadioAccessCapability
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
|
|
|
#.FN_BODY MSRadioAccessCapability
|
|
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
proto_item *item;
|
|
|
|
proto_tree *subtree;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
item = get_ber_last_created_item();
|
|
|
|
subtree = proto_item_add_subtree(item, ett_camel_MSRadioAccessCapability);
|
|
|
|
de_gmm_ms_radio_acc_cap(parameter_tvb, subtree, 0, tvb_length_remaining(parameter_tvb,0), NULL, 0);
|
|
|
|
|
|
|
|
#.FN_PARS AccessPointName
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
|
|
|
#.FN_BODY AccessPointName
|
|
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
proto_item *item;
|
|
|
|
proto_tree *subtree;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
item = get_ber_last_created_item();
|
|
|
|
subtree = proto_item_add_subtree(item, ett_camel_AccessPointName);
|
|
|
|
de_sm_apn(parameter_tvb, subtree, 0, tvb_length_remaining(parameter_tvb,0), NULL, 0);
|
2005-11-29 17:23:50 +00:00
|
|
|
|
2005-11-25 20:18:36 +00:00
|
|
|
|
2006-01-20 19:34:53 +00:00
|
|
|
#.FN_PARS PDPTypeOrganization
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
|
|
|
#.FN_BODY PDPTypeOrganization
|
|
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
PDPTypeOrganization = (tvb_get_guint8(parameter_tvb,0) &0x0f);
|
|
|
|
|
|
|
|
#.FN_PARS PDPTypeNumber
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
|
|
|
#.FN_BODY PDPTypeNumber
|
2005-05-08 20:34:57 +00:00
|
|
|
|
2006-01-20 19:34:53 +00:00
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
proto_item *item;
|
|
|
|
proto_tree *subtree;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
2005-05-08 20:34:57 +00:00
|
|
|
|
2006-01-20 19:34:53 +00:00
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
PDPTypeNumber = tvb_get_guint8(parameter_tvb,0);
|
|
|
|
item = get_ber_last_created_item();
|
|
|
|
subtree = proto_item_add_subtree(item, ett_camel_pdptypenumber);
|
|
|
|
switch (PDPTypeOrganization){
|
|
|
|
case 0: /* ETSI */
|
|
|
|
proto_tree_add_item(tree, hf_camel_PDPTypeNumber_etsi, parameter_tvb, 0, 1, FALSE);
|
|
|
|
break;
|
|
|
|
case 1: /* IETF */
|
|
|
|
proto_tree_add_item(tree, hf_camel_PDPTypeNumber_ietf, parameter_tvb, 0, 1, FALSE);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
#.FN_PARS PDPAddress
|
|
|
|
VAL_PTR = ¶meter_tvb
|
|
|
|
|
|
|
|
#.FN_BODY PDPAddress
|
|
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
proto_item *item;
|
|
|
|
proto_tree *subtree;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (!parameter_tvb)
|
|
|
|
return offset;
|
|
|
|
item = get_ber_last_created_item();
|
|
|
|
subtree = proto_item_add_subtree(item, ett_camel_pdptypenumber);
|
|
|
|
switch (PDPTypeOrganization){
|
|
|
|
case 0: /* ETSI */
|
|
|
|
break;
|
|
|
|
case 1: /* IETF */
|
|
|
|
switch(PDPTypeNumber){
|
|
|
|
case 0x21: /* IPv4 */
|
|
|
|
proto_tree_add_item(tree, hf_camel_PDPAddress_IPv4, parameter_tvb, 0, tvb_length(parameter_tvb), FALSE);
|
|
|
|
break;
|
|
|
|
case 0x57: /* IPv6 */
|
|
|
|
proto_tree_add_item(tree, hf_camel_PDPAddress_IPv6, parameter_tvb, 0, tvb_length(parameter_tvb), FALSE);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2006-01-22 21:16:33 +00:00
|
|
|
#.FN_BODY CellGlobalIdOrServiceAreaIdOrLAI
|
|
|
|
proto_item *item;
|
|
|
|
proto_tree *subtree;
|
|
|
|
int start_offset;
|
|
|
|
|
|
|
|
start_offset = offset;
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
item = get_ber_last_created_item();
|
|
|
|
subtree = proto_item_add_subtree(item, ett_camel_pdptypenumber);
|
|
|
|
|
|
|
|
if (tvb_reported_length_remaining(tvb,start_offset) == 7){
|
|
|
|
dissect_gsm_map_CellGlobalIdOrServiceAreaIdFixedLength(TRUE, tvb, start_offset, pinfo, subtree, hf_camel_cellGlobalIdOrServiceAreaIdFixedLength);
|
|
|
|
}else{
|
|
|
|
dissect_gsm_map_LAIFixedLength(TRUE, tvb, start_offset, pinfo, subtree, hf_camel_locationAreaId);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-01-20 19:34:53 +00:00
|
|
|
#.TYPE_ATTR
|
|
|
|
CallingPartysCategory TYPE = FT_UINT16 DISPLAY = BASE_DEC STRINGS = VALS(isup_calling_partys_category_value)
|
|
|
|
PDPTypeOrganization TYPE = FT_UINT8 DISPLAY = BASE_DEC BITMASK = 0x0f STRINGS = VALS(gsm_map_PDP_Type_Organisation_vals)
|
2006-05-02 20:26:49 +00:00
|
|
|
DateAndTime TYPE = FT_STRING DISPLAY = NONE
|
2006-01-20 19:34:53 +00:00
|
|
|
#.END
|