DHA: work around TCAP implementations that forget tho send the id-as-dialogue

This commit is contained in:
Harald Welte 2012-01-31 00:10:14 +01:00
parent 141484622f
commit 876c198584
1 changed files with 3 additions and 1 deletions

View File

@ -843,7 +843,9 @@ extract_dialogue_portion(UserData, _AppContextName) when not is_record(UserData,
extract_dialogue_portion(UserData, _AppContextName) when is_record(UserData, 'TR-user-data'),
UserData#'TR-user-data'.dialoguePortion /= undefined ->
%% Extract dialogue portion
{'EXTERNAL', {syntax,{0,0,17,773,1,1,1}}, _, DlgPDU} = UserData#'TR-user-data'.dialoguePortion,
%{'EXTERNAL', {syntax,{0,0,17,773,1,1,1}}, _, DlgPDU} = UserData#'TR-user-data'.dialoguePortion,
% some implementations seem to be broken and not send the 'symtax' part?!?
{'EXTERNAL', _, _, DlgPDU} = UserData#'TR-user-data'.dialoguePortion,
case 'DialoguePDUs':decode('DialoguePDU', DlgPDU) of
{ok, {dialogueResponse, AARE}} when is_record(AARE, 'AARE-apdu') ->
AARE; %% Dialogue portion correct? (yes)