]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: remove sanity state check in outgoing function
authorMoises Silva <moy@sangoma.com>
Thu, 24 Feb 2011 18:14:23 +0000 (13:14 -0500)
committerMoises Silva <moy@sangoma.com>
Thu, 24 Feb 2011 18:14:23 +0000 (13:14 -0500)
libs/freetdm/src/ftdm_io.c

index 504c00f33cad7a0069342e44a9f4cb144f7caa8f..133420922ba190f2d839d15790adb7240ec70f08 100644 (file)
@@ -2430,11 +2430,6 @@ static ftdm_status_t _ftdm_channel_call_place_nl(const char *file, const char *f
                goto done;
        }
 
-       if (ftdmchan->state != FTDM_CHANNEL_STATE_DOWN) {
-               ftdm_log_chan(ftdmchan, FTDM_LOG_ERROR, "Cannot place call in channel in state %s!\n", ftdm_channel_state2str(ftdmchan->state));
-               goto done;
-       }
-
        status = ftdmchan->span->outgoing_call(ftdmchan);
        if (status == FTDM_BREAK) {
                /* the signaling module detected glare on time */