[svn-commits] crichter: branch 1.2 r44335 - /branches/1.2/channels/chan_misdn.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Oct 4 08:27:00 MST 2006


Author: crichter
Date: Wed Oct  4 10:26:59 2006
New Revision: 44335

URL: http://svn.digium.com/view/asterisk?rev=44335&view=rev
Log:
if INFORMATION Message come with keypad instead of called party number, we just use the keypad as called party number.

Modified:
    branches/1.2/channels/chan_misdn.c

Modified: branches/1.2/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_misdn.c?rev=44335&r1=44334&r2=44335&view=diff
==============================================================================
--- branches/1.2/channels/chan_misdn.c (original)
+++ branches/1.2/channels/chan_misdn.c Wed Oct  4 10:26:59 2006
@@ -3316,6 +3316,12 @@
 		
 		if (ch->state == MISDN_WAITING4DIGS ) {
 			/*  Ok, incomplete Setup, waiting till extension exists */
+
+			if (ast_strlen_zero(bc->info_dad) && ! ast_strlen_zero(bc->keypad)) {
+				chan_misdn_log(1, bc->port, " --> using keypad as info\n");
+				strcpy(bc->info_dad,bc->keypad);
+			}
+
 			{
 				int l = sizeof(bc->dad);
 				strncat(bc->dad,bc->info_dad, l);



More information about the svn-commits mailing list