]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
if INFORMATION Message come with keypad instead of called party number, we just use...
authorChristian Richter <christian.richter@beronet.com>
Wed, 4 Oct 2006 15:26:59 +0000 (15:26 +0000)
committerChristian Richter <christian.richter@beronet.com>
Wed, 4 Oct 2006 15:26:59 +0000 (15:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@44335 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index f2898db3d12d97ce1fefdd3489009a7b3a36b073..de116768291f40f08822c90589923115ac21d05b 100644 (file)
@@ -3316,6 +3316,12 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
                
                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);