diff options
author | pcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-03 18:30:48 +0000 |
---|---|---|
committer | pcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-03 18:30:48 +0000 |
commit | 6b28edcaaa29f1508eb5449fc915d3ae54113d3f (patch) | |
tree | 0526478a443356bbe392c62a83a71a75ea3ce582 /channels/h323 | |
parent | b68ccc8fe6bdec8de95abdc247de0890dca2c41e (diff) |
Fix preparation of type and presentation of calling number
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44283 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323')
-rw-r--r-- | channels/h323/ast_h323.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/h323/ast_h323.cxx b/channels/h323/ast_h323.cxx index 7fb6e0599..46ded04c8 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 */ |