anchor.diff:  	Gt#global_title{phone_number = Header ++ NewDigits ++ Trailer};
   
   % Execute a single action: Replac the numbering plan in the GT
  -gtt_action(Gt, #gtt_act_repl_num_plan{numbering_plan = NewNumPlan}) when is_record(Gt, global_title) ->
  +gtt_action(Gt, #gtt_act_repl_num_plan{numbering_plan = NewNumPlan})
  +					when is_record(Gt, global_title) ->
   	Gt#global_title{numbering_plan = NewNumPlan};
   
   % Execute a single 'generic purpose' action that will call apply/2
  -gtt_action(Gt, #gtt_act_apply{funct = Funct, args = Args}) when is_record(Gt, global_title) ->
  +gtt_action(Gt, #gtt_act_apply{funct = Funct, args = Args}) when
  +					is_record(Gt, global_title) ->
   	apply(Funct, Args).
   
   
  
positive.code: 		end
  	end;
  % Same as above, but for SCCP Address (i.e. GT + point code and SSN)
  global_title_match([{Match, Action}|Tail], SccpAddr) when is_record(SccpAddr, sccp_addr) ->
  	Gt = SccpAddr#sccp_addr.global_title,
  	PhoneNumInt = osmo_util:digit_list2int(Gt#global_title.phone_number),
  	if Match#gtt_match.gt_range_from >= PhoneNumInt ->
  		% in an ordered list, we can assume that no trailing rules will match
  		false;
  	   true ->
  		case single_gt_match(Match, SccpAddr) of
  
negative.code: 
  
  % perform matching of a given global title against a single match
  single_gt_match(Match, Gt) when is_record(Match, gtt_match),
  				is_record(Gt, global_title) ->
  	#gtt_match{gt_range_from = RangeFrom, gt_range_to = RangeTo,
  		   numbering_plan = NumPlan,
  		   nature_of_addr_ind = NatureInd} = Match,
  	#global_title{phone_number = GtPhoneNum,
  		      numbering_plan = GtNumPlan,
  		      nature_of_addr_ind = GtNature} = Gt,
  	% build a list of the individual criteria that all have to match
  	SubMatchList = [{digits, {RangeFrom, RangeTo}, GtPhoneNum},
  			{numbering_plan, NumPlan, GtNumPlan},
  			{nature_of_addr_ind, NatureInd, GtNature}],
  	gt_sub_match_list(SubMatchList);
  % Same as above, but for SCCP Address (i.e. GT + point code and SSN)
  single_gt_match(Match, SccpAddr) when is_record(Match, gtt_match),
  				      is_record(SccpAddr, sccp_addr) ->
  	#gtt_match{dpc = Dpc, ssn = Ssn} = Match,
  	Gt = SccpAddr#sccp_addr.global_title,
  	% First match the GT part
  