[asterisk-commits] pcadach: branch pcadach/chan_h323-live r43096 - /team/pcadach/chan_h323-live/...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Sep 17 11:04:10 MST 2006


Author: pcadach
Date: Sun Sep 17 13:04:10 2006
New Revision: 43096

URL: http://svn.digium.com/view/asterisk?rev=43096&view=rev
Log:
Fix for incorrectly-formatted RedirectingNumber IE, generated by OpenH323

Modified:
    team/pcadach/chan_h323-live/channels/h323/ast_h323.cpp

Modified: team/pcadach/chan_h323-live/channels/h323/ast_h323.cpp
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/channels/h323/ast_h323.cpp?rev=43096&r1=43095&r2=43096&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/channels/h323/ast_h323.cpp (original)
+++ team/pcadach/chan_h323-live/channels/h323/ast_h323.cpp Sun Sep 17 13:04:10 2006
@@ -1303,8 +1303,14 @@
 	if (progressSetup)
 		setupPDU.GetQ931().SetProgressIndicator(progressSetup);
 	
-	if (redirect_reason >= 0)
+	if (redirect_reason >= 0) {
 		setupPDU.GetQ931().SetRedirectingNumber(rdnis, 0, 0, 0, 0, redirect_reason);
+		/* OpenH323 incorrectly fills number IE when redirecting reason is specified - fix it */
+		PBYTEArray IE(setupPDU.GetQ931().GetIE(Q931::RedirectingNumberIE));
+		IE[0] = IE[0] & 0x7f;
+		IE[1] = IE[1] & 0x7f;
+		setupPDU.GetQ931().SetIE(Q931::RedirectingNumberIE, IE);
+	}
 	
 	SetCallDetails(&cd, setupPDU, FALSE);
 



More information about the asterisk-commits mailing list