Merged revisions 64904 via svnmerge from
authorChristian Richter <christian.richter@beronet.com>
Fri, 18 May 2007 11:17:16 +0000 (11:17 +0000)
committerChristian Richter <christian.richter@beronet.com>
Fri, 18 May 2007 11:17:16 +0000 (11:17 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r64904 | crichter | 2007-05-18 10:58:51 +0200 (Fr, 18 Mai 2007) | 9 lines

Merged revisions 64902 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r64902 | crichter | 2007-05-18 10:24:08 +0200 (Fr, 18 Mai 2007) | 1 line

we *need* to send a PROCEEDING when sending_complete is set, even if need_more_infos is requested.
........

................

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

channels/chan_misdn.c

index 05ccc8b..e777a46 100644 (file)
@@ -4210,7 +4210,8 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
                        if (!ch->noautorespond_on_setup) {
                                ch->state=MISDN_DIALING;
 
-                               if (bc->nt || (bc->need_more_infos && misdn_lib_is_ptp(bc->port)) ) {
+                               if (!bc->sending_complete &&
+                                               (bc->nt || (bc->need_more_infos && misdn_lib_is_ptp(bc->port)))) {
                                        int ret; 
                                        ret = misdn_lib_send_event(bc, EVENT_SETUP_ACKNOWLEDGE );
                                } else {