--- ast_h323.cxx.orig 2007-12-04 18:28:42.000000000 +0600 +++ ast_h323.cxx 2007-12-05 12:25:16.000000000 +0600 @@ -718,7 +718,8 @@ fastStartState = (opts->fastStart ? FastStartInitiate : FastStartDisabled); h245Tunneling = (opts->h245Tunneling ? TRUE : FALSE); } else { - SetLocalPartyName(PString(opts->cid_num)); + sourceE164 = PString(opts->cid_num); + SetLocalPartyName(PString(opts->cid_name)); SetDisplayName(PString(opts->cid_name)); if (opts->redirect_reason >= 0) { rdnis = PString(opts->cid_rdnis); @@ -1247,7 +1248,7 @@ /* OpenH323 will build calling party information with default type and presentation information, so build it to be recorded by embedding routines */ - setupPDU.GetQ931().SetCallingPartyNumber(GetLocalPartyName(), (cid_ton >> 4) & 0x07, + setupPDU.GetQ931().SetCallingPartyNumber(sourceE164, (cid_ton >> 4) & 0x07, cid_ton & 0x0f, (cid_presentation >> 5) & 0x03, cid_presentation & 0x1f); setupPDU.GetQ931().SetDisplayName(GetDisplayName());