map_masq: Rewrite the serviceCentreAddress in a sm-RP-DA

This commit is contained in:
Holger Hans Peter Freyther 2011-02-22 23:24:55 +01:00
parent 44635c74f9
commit e86edbd17b
1 changed files with 10 additions and 0 deletions

View File

@ -260,10 +260,20 @@ patch(#'SubscriberInfo'{'locationInformation'=LocInformation} = P) ->
patch(#'LocationInformation'{'vlr-number'=VlrNumber} = P) ->
VlrNumberOut = patch_map_isdn_addr(VlrNumber, vlr),
P#'LocationInformation'{'vlr-number'=VlrNumberOut};
patch(#'MO-ForwardSM-Arg'{'sm-RP-DA'=SC} = P) ->
NewSC = patch_scaddr(SC),
P#'MO-ForwardSM-Arg'{'sm-RP-DA'=NewSC};
patch(Default) ->
Default.
%rewrite the serviceCentreAddressDA
patch_scaddr({serviceCentreAddressDA,Ar}) ->
NewAddr = patch_map_isdn_addr(Ar, smsCDA),
{serviceCentreAddressDA,NewAddr};
patch_scaddr(Default) ->
Default.
patch_oBcsmCamelTDPDataList(List) ->
% we reverse the origianl list, as the tail recursive _acc function
% will invert the order of components again