From 70dfcccd667cceae05c4e5784366ec0d60692aaa Mon Sep 17 00:00:00 2001 From: Paul Cadach Date: Tue, 3 Oct 2006 18:30:48 +0000 Subject: [PATCH] Fix preparation of type and presentation of calling number git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44283 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/h323/ast_h323.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/h323/ast_h323.cxx b/channels/h323/ast_h323.cxx index 7fb6e05994..46ded04c83 100644 --- a/channels/h323/ast_h323.cxx +++ b/channels/h323/ast_h323.cxx @@ -758,9 +758,9 @@ void MyH323Connection::SetCallDetails(void *callDetails, const H323SignalPDU &se unsigned plan, type, screening, presentation; /* Fetch presentation and type information about calling party's number */ - if (setupPDU.GetQ931().GetCallingPartyNumber(sourceName, &plan, &type, &presentation, &screening, 2, 3)) { + if (setupPDU.GetQ931().GetCallingPartyNumber(sourceName, &plan, &type, &presentation, &screening, 0, 1)) { /* Construct fields back */ - cd->type_of_number = (type << 4) | screening; + cd->type_of_number = (type << 4) | plan; cd->presentation = (presentation << 5) | screening; } else if (cd->call_source_e164[0]) { cd->type_of_number = 0; /* UNKNOWN */