Commit Graph

20740 Commits

Author SHA1 Message Date
Anthony Minessale 6973fbfa6d force rebuild 2011-12-06 17:56:11 -06:00
Anthony Minessale 5f57f43a8c comment out unused variable to satisfy build when compiling under core CFLAGS with warnings as errors 2011-12-06 17:55:11 -06:00
Anthony Minessale d91f67d0e3 Add T31 modem support to mod_spandsp - similar to iaxmodem only wired into FS. Also merge configs into single spandsp.conf.xml --see in tree example-- 2011-12-06 17:51:36 -06:00
Christopher Rienzo 0ed06ad710 Improve error handling 2011-12-06 22:36:05 +00:00
James Zhang 1cbeb33b2d freetdm: adding support of x-headers for Redirection Information
X-FreeTDM-RDINF-Indicator
         X-FreeTDM-RDINF-OrigReason
         X-FreeTDM-RDINF-Count
         X-FreeTDM-RDINF-Reason
2011-12-06 15:38:05 -05:00
Jeff Lenk 4e5560a980 small correction for windows build of spandsp 2011-12-06 11:30:30 -06:00
Steve Underwood 7bee037efd Reverted a bad change to v42_stop() 2011-12-07 00:27:05 +08:00
Steve Underwood 300311c1b2 Tweaks 2011-12-06 22:47:22 +08:00
Steve Underwood 70c1c03c93 Addition of logging capability to the DTMF detector in spandsp, to aid debugging
poor detection.
Fixes to how timezones are handled for FAX page headers.
Various cleanups of the spandsp headers.
2011-12-06 22:45:24 +08:00
James Zhang e582586876 Freetdm: adding X-FreeTDM-ANI-NADI and X-FreeTDM-DNIS-NADI support 2011-12-05 16:58:26 -05:00
Steve Underwood 32f70174f5 Tweaks to spandsp tests 2011-12-06 01:00:22 +08:00
Steve Underwood 62f21d8d57 Some tweaks to spandsp tests 2011-12-06 00:44:47 +08:00
Giovanni Maruzzelli 7da637d119 test, please ignore 2011-12-05 15:55:45 +01:00
Tamas Cseke e64104530e FS-3738 --resolve 2011-12-05 09:35:00 +01:00
Moises Silva b3297c7f3b freetdm: fix license path to use sngss7 path limits
do not use strcpy, use ftdm_set_string which is safer
         do not use strcpy when snprintf is safer and cleaner
2011-12-02 11:37:55 -05:00
Anthony Minessale f72af9ffc0 move spidermonkey to use its own env for each instance instead of sharing one, should fix garbage collection tieups 2011-12-02 09:42:57 -06:00
Anthony Minessale 13e19e579a remove curl refs 2011-12-02 09:05:58 -06:00
Brian West 32f1059c75 swigall 2011-12-02 15:24:32 -06:00
James Zhang 9bf25413ed Merge branch 'releases.3.4' of git.sangoma.com:smg_freeswitch into releases.3.4 2011-12-01 19:22:27 -05:00
James Zhang 35df4f468c Update to the SUSPEND state machine updated 2 commits ago.
SUSPEND will not only change the return state in few
cases.

I have retested all test cases from previous 2 commits.

What is missing is timer for each Tx Event.  RSC,BLO,UBL.
Its possible to loose a message from Slave via relay to Master.
If that ever occours we will not know what state we are in.
Thus we need a timer that will re-transmit a packet if
it does not get acknowledged.
2011-12-01 19:18:54 -05:00
Moises Silva 3432dccfc2 freetdm: fix cpu monitor inconsistent messages, variable names etc
changed parameter name from cpu_reset_alarm_threshold to cpu_clear_alarm_threshold
         (old parameter name still valid for backwards compatibility in configuration files)
2011-12-01 12:21:46 -05:00
wadam 16c2da1369 Merge branch 'releases.3.4' of ssh://git.sangoma.com/smg_freeswitch into releases.3.4 2011-12-01 11:43:08 -05:00
wadam 6dabe5409b Fixed Bug#2018 - The threshold of cpu warning message should be increased 2011-12-01 11:40:18 -05:00
Anthony Minessale 9d7e9e6742 FS-3731 --resolve 2011-12-01 07:41:18 -06:00
James Zhang 7b83dd4c96 Fixed the exception condition - trigger reset
used to clear ckt_flags, this was wrong.
	if ctk_flags are blindly cleard a PAUSE might be cleared.
	changed the code to clear only TX RESET and try to reset again.

Release Collision
	If we get out of sync with other side we must
	reset the circuit.
    This condition occoured at 1+3 test box

Local Management Block
    Its possible for stack to send us a BLO indicating to us
    that we are local blocked.  This case never worked and
    we would get stuck there forever.
    If we never manaully sent a LOCAL block, the BLO from
    the stack will be acked and then unblocked.
    This condition occoured at 1+3 test box
2011-12-01 03:16:59 -05:00
James Zhang 997c127a94 Fixed following two secnarios
From previous commit, failed to clear the done flag _DN
which cause SUSPEND to think that there was a block
pending, causing state to remain in RESTART

S UP -> relay down -> Tx AIS -> relay up -> Tx AIS off
  -> confirm all back up
  -> In this condition BLO will not go out due to PAUSE

S UP -> Tx AIS -> relay down -> Tx AIS off -> relay up
  -> confirm all back up
  -> In this condition UBL will not go out due to PAUSE
2011-11-30 20:02:25 -05:00
Jeff Lenk eae86e0a13 vs2010 reswig 2011-11-30 18:14:24 -06:00
James Zhang fa64d3954d Sigificant changes to the core state machine :)
Visually status of channels will only be DOWN once all resets/blocks are cleared.
Therefore if any reset/block is active on a channel, the channel state will be in RESTART not DOWN.

Logic Change

SUSPENDED
   -> Originally used as intermediate state. Purpose is to handle a condition
      from any state and go back to the previous state.
      Conditions: such as  block/ucic.
   -> Updated logic is that SUSPEND will be smart enough not to
      go back to just any state.  SUSPEND will only go back to
      UP - if call is still up
      RESTART - if for any reason singaling is not up due to
                blocks/resets/etc...
      DOWN - if signaling is UP - no resets/blocks
      In this case we avoid infinite loops due to state jumping
      from STATE->SUSPEND->STATE->SUSPEND
HANGUP_COMPLETE
   -> If call is in use and a RESET comes on a call
      the RESTART state will first try the HANGUP_COMPLETE state.
      HANGUP_COMPLETE will Tx RSC and wait for it.
      Reset Response handle was updated if current state HANGUP/HANGUP_COMPLETE
      go back to RESTART state.  Which will call HANGUP COMPLETE due to
      channel in usage and HANDLE_COMPLETE will clear RESET condition and go back to DOWN
TERMINATING
   -> This state is used to hangup a call. Sends a signal to FS.
   -> Usually TERMINATING state stays in TERMINATING until FS comes back.
   -> I added a condition in case of RESET on the line though TERMINATING
      will go back to RESTART.
      This allows us to process RESET commands even though we are
      in the middle of hanging up.
Block Handler
   If BLO is received on circuit is already blocked,
   we failed to trasmit BLA.  We should always ack the BLO
   even though it was alrady in blocked state.

Fixed & Tested

S UP --> place call --> relay down --> hangup --> relay up-->
   Confirm that call is hungup properly.
   In this condition, on relay up the circuit  is put into RESET.
   Since circuit is still in use, it will HANGUP first, then RESET
   then clear pending BLOCK.

S UP --> place call -> Tx RSC on call.
   Used to cause infitie loop
   Confirm call is cleard properly

Re-Tested

S UP --> place call -> Rx RSC on call
   Confirm call is cleard properly

S UP --> place call -> Rx BLO -> hangup -> place call
   Confirm call cannot be placed
   Tx UBL
   Confirm call can be placed

S UP --> place call -> Rx BLO -> Tx BLO -> hangup -> place call
   Confirm call cannot be placed
   Tx UBL
   Confirm call cannot be placed
   Rx UBL
   Confirm call can be placed

S UP --> place call -> relay down --> Rx BLO on channel from telco
     --> relay up
   Confirm that relay detects the BLO channels even though relay was down

Tx AIS -> S Start -> Confirm HW block -> Tx AIS off
   -> Confirm hw block clear and UP

S UP -> Tx AIS -> Confirm HW block -> Tx AIS off
   -> confirm hw block clear and UP

S UP -> relay down -> Tx AIS -> relay up -> Tx AIS off
   -> confirm all back up
   -> In this condition BLO will not go out due to PAUSE

S UP -> Tx AIS -> relay down -> Tx AIS off -> relay up
   -> confirm all back up
   -> In this condition UBL will not go out due to PAUSE
2011-11-30 19:11:33 -05:00
Michael Jerris cdfea085d2 add some missing indexes 2011-11-30 14:07:00 -05:00
Anthony Minessale 1ee867444d FS-2936 remove unused functions 2011-11-30 09:26:16 -06:00
Michael Jerris 64f04023a1 FS-2936: don't allow using system libcurl on systems that strip out Curl_setopt, we use it 2011-11-30 12:21:08 -05:00
Michael Jerris 36f0a5b870 FS-2936: don't allow using system libcurl on systems that strip out Curl_setopt, we use it 2011-11-30 12:03:53 -05:00
Michael Jerris 1ea5b3cf62 FS-2936: link curl on freeswitch binary as well to fix linker error on ubuntu 2011-11-30 11:33:37 -05:00
Jeff Lenk f5abef2000 FS-3728 --resolve thanks 2011-11-30 08:57:11 -06:00
Di-Shi Sun fafcc46a97 Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch 2011-11-30 15:19:34 +08:00
Di-Shi Sun ca97a49e29 Fixed buffer overflow issue caused by max number of destinations. 2011-11-30 15:17:13 +08:00
Jeff Lenk 674619b395 FS-2936 changes for vs2010 build - vs2008 coming later 2011-11-29 22:28:50 -06:00
Anthony Minessale 13dc2f9e31 FS-2936 stage 5 handle varargs right 2011-11-29 18:17:42 -06:00
Anthony Minessale d9089edf89 finishing touches for commit: b9e28f85cb 2011-11-29 16:23:49 -06:00
Anthony Minessale a7238d0b9d FS-2936 stage 4 these too 2011-11-29 15:38:52 -06:00
Anthony Minessale 17e9c50ee5 FS-2936 stage 3 probably need this file 2011-11-29 15:37:36 -06:00
Anthony Minessale e794a6db21 FS-2936 stage 2 please test ASAP 2011-11-29 15:35:36 -06:00
Michael Jerris 74ed2cef01 step 1 of curl linked in core 2011-11-29 14:35:28 -05:00
James Zhang 96068d901d Fixed case
S UP - Place Call - relay down - Hangup - relay up -
Confirm Call hangsup up properly and unblock is set.

Fixed unexpeced reset condidtions.
2011-11-29 13:11:38 -05:00
Anthony Minessale e58ed35d17 FS-2936 stage 1 2011-11-29 11:13:11 -06:00
Anthony Minessale f41020a625 FS-3727 --resolve 2011-11-29 08:28:10 -06:00
Brian West eef4bb03d3 swigall 2011-11-29 14:33:47 -06:00
Brian West 82807998d5 FS-3718 2011-11-29 14:32:11 -06:00
Anthony Minessale 12f2bdf66a FS-3724 2 ways to fix after updating to this version, 1) run set_zombie_exec in the dp; 2) use system_on_fax_success/system_on_fax_failure vars with explicit name of your command 2011-11-28 16:45:59 -06:00
Anthony Minessale ead7c770bd FS-3664 please try this 2011-11-28 16:11:09 -06:00