]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
regression from yesterday causing a seg
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 13 Oct 2009 17:31:10 +0000 (17:31 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 13 Oct 2009 17:31:10 +0000 (17:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15147 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 90681561007eaa9e0852482923c9786fe44203ef..95ca08f6910dd9e41bf9331cd9a047621843da13 100644 (file)
@@ -2026,12 +2026,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                        }
                                }
 
-                               if (originate_status[0].peer_session
-                                       && switch_core_session_dequeue_message(oglobals.session, &message) == SWITCH_STATUS_SUCCESS) {
-                                       if (oglobals.session && !ringback_data && or_argc == 1 && and_argc == 1) {      
-                                               /* when there is only 1 channel to call and bridge and no ringback */
-                                               switch_core_session_receive_message(oglobals.session, message);
-                                       }
+                               if (oglobals.session && switch_core_session_dequeue_message(oglobals.session, &message) == SWITCH_STATUS_SUCCESS) {
+                                       switch_core_session_receive_message(oglobals.session, message);
                                        message = NULL;
                                }