[asterisk-commits] file: branch 1.4 r103823 - /branches/1.4/channels/h323/ast_h323.cxx

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 19 14:28:08 CST 2008


Author: file
Date: Tue Feb 19 14:28:08 2008
New Revision: 103823

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103823
Log:
Send CallerID Name in setup message.
(closes issue #11241)
Reported by: tusar
Patches:
      h323id_as_callerid_name.patch uploaded by tusar (license 344)

Modified:
    branches/1.4/channels/h323/ast_h323.cxx

Modified: branches/1.4/channels/h323/ast_h323.cxx
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/h323/ast_h323.cxx?view=diff&rev=103823&r1=103822&r2=103823
==============================================================================
--- branches/1.4/channels/h323/ast_h323.cxx (original)
+++ branches/1.4/channels/h323/ast_h323.cxx Tue Feb 19 14:28:08 2008
@@ -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());
 




More information about the asterisk-commits mailing list