]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix for not handling T302 timeout in NET mode
authorDavid Yat Sin <dyatsin@sangoma.com>
Sun, 29 Apr 2012 15:33:24 +0000 (11:33 -0400)
committerDavid Yat Sin <dyatsin@sangoma.com>
Sun, 29 Apr 2012 15:33:24 +0000 (11:33 -0400)
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_hndl.c

index 0a340683595ff0776a1f98d0b43bae78319db22c..75575ca73217dd80706929c553ec762091274a71 100644 (file)
@@ -953,6 +953,12 @@ void sngisdn_process_sta_cfm (sngisdn_event_data_t *sngisdn_event)
                                break;
                                case 2: /* overlap sending */
                                        switch (ftdmchan->state) {
+                                               case FTDM_CHANNEL_STATE_COLLECT:
+                                                       /* T302 Timeout reached */
+                                                       /* Send the call to user, and see if they accept it */
+                                                       ftdm_log_chan_msg(ftdmchan, FTDM_LOG_DEBUG, "T302 Timer expired, proceeding with call\n");
+                                                       ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_RING);
+                                                       break;
                                                case FTDM_CHANNEL_STATE_PROCEED:
                                                case FTDM_CHANNEL_STATE_PROGRESS:
                                                case FTDM_CHANNEL_STATE_RINGING: