20403 Commits

Author SHA1 Message Date
Anthony Minessale
edcb1329da FS-3735 that is a resonable figure, if that works we can set it to this. can we close out this bounty then? 2011-12-07 14:04:30 -06:00
Anthony Minessale
38ff1347bb FS-3745 2011-12-07 11:49:44 -06:00
Anthony Minessale
f1d5120f63 FS-3735 2011-12-07 11:27:58 -06:00
Brian West
fd9158d069 Fireevents on each page send/received in rx/txfax. 2011-12-07 18:26:30 -06:00
Anthony Minessale
fc3be0ae27 compiler err 2011-12-07 09:28:36 -06:00
Anthony Minessale
b7b94082ae these files should build in win 2011-12-07 05:19:23 -06:00
Anthony Minessale
4a09e77f69 default to 0 2011-12-07 05:17:00 -06:00
Anthony Minessale
4af665317d probably want this 2011-12-07 05:16:43 -06:00
Anthony Minessale
a7d75db50b revert --- wrong you cant tell if you have modem support unless you include the file 2011-12-07 05:15:39 -06:00
Anthony Minessale
6fc10ffbf6 allow 0 2011-12-07 05:13:08 -06:00
Jeff Lenk
54ddef0bd4 Fix windows build for - Add T31 modem support 2011-12-06 21:53:45 -06:00
Brian West
2d2fe133eb echo it broken if we receive it broken 2011-12-07 02:49:43 -06:00
Anthony Minessale
9fe1f6fdcb FS-3748 --resolve 2011-12-06 18:12:48 -06:00
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