Merged revisions 92934 via svnmerge from
authorChristian Richter <christian.richter@beronet.com>
Fri, 14 Dec 2007 15:08:09 +0000 (15:08 +0000)
committerChristian Richter <christian.richter@beronet.com>
Fri, 14 Dec 2007 15:08:09 +0000 (15:08 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92934 | crichter | 2007-12-14 16:05:28 +0100 (Fr, 14 Dez 2007) | 1 line

fixed the sequencing of WAITING_4DIGS state setting and overlap_task thread starting.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92935 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 0dd77f8..2e9eb6a 100644 (file)
@@ -4432,11 +4432,11 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
                        ch->overlap_tv = ast_tvnow();
                        ast_mutex_unlock(&ch->overlap_tv_lock);
 
+                       wait_for_digits(ch, bc, chan);
                        if (ch->overlap_dial_task == -1) 
                                ch->overlap_dial_task = 
                                        misdn_tasks_add_variable(ch->overlap_dial, misdn_overlap_dial_task, ch);
 
-                       wait_for_digits(ch, bc, chan);
                        break;
                }