Commit Graph

366 Commits

Author SHA1 Message Date
David Yat Sin eb0404d025 Merge remote branch 'fsorig/master' into releases.3.5
Conflicts:
	build/modules.conf.in
	libs/freetdm/mod_freetdm/mod_freetdm.c
2012-05-31 13:57:42 -04:00
David Yat Sin e05bd3fae8 Some changes to ss7 variables to be more consistent 2012-05-30 13:10:04 -04:00
Anthony Minessale 8bb55ed4bf abstract out originate_signal_bond to a function to avoid confustion and regressions 2012-05-29 13:10:15 -05:00
James 91dfa062bf ss7: adding iam_fwd_ind_HEX channel variable to set forward indicator
IE's heximal value.
     - add <action application="export" data="freetdm_iam_fwd_ind_HEX=2301"/>
       to dialplan with expected hex value. If the outgoing ftdm channel's
       forward indicator needs to be changed, "export" needs to be put in the
       incoming channel's dialplan to set this variable value accordingly.
     - this implementation takes bits of A, CB, D, E, F, HG, I from the hex
       value. Bits of KJ, L, P-M are not taken from the hex.
     - How to calculate hex value with wanted bits:
       . the hex value is H-A-P-I, H is the highest bit to A, and next is P-I.
         I is the lowest bit in the whole field, and H is the highest bit in
         the whole field. Refer to Q.763 chapter 3.23.
       . use a text pad to fill in the bits with 0 and 1. eventually fill all
         the 16 bits
       . copy the binary value into a calculator and convert it to hex
2012-05-28 17:07:52 -04:00
David Yat Sin e91e4d6816 renamed sip_h_X-FreeTDM-Access-Transport to sip_h_X-FreeTDM-Access-Transport-URLENC 2012-05-18 09:57:51 -04:00
kapil 23ca7f8fed adding m2ua stack config/control code 2012-05-18 12:05:25 +05:30
James Zhang ce46a57b85 ss7: Adding support of Access Transport IE in IAM message
Adding sip x-header and channel variable to set the value
     of Access Transport IE
2012-05-17 17:56:50 -04:00
Moises Silva 105ce9ff33 Fixes before merging sangoma repo with upstream 2012-05-07 16:26:48 -04:00
Moises Silva 1f08e2b0ec Merge remote branch 'fsorig/master' 2012-05-07 15:46:08 -04:00
Moises Silva f316f9307f freetdm: First GSM working version
- Manually merging latest code from gideon.gsm branch after review/inspection/modifications
2012-05-07 15:35:13 -04:00
Moises Silva cf9f937079 Merge branch 'master' into gsm.merge 2012-05-07 15:15:44 -04:00
Moises Silva de98034145 freetdm: - Extend ftdm interrupt object to notify which IO events are ready in the device
- Add definition of FTDM_MAX_SIG_PARAMETERS to have a standard limit for signaling module parameters
2012-05-07 15:13:26 -04:00
Moises Silva 412c808e0c freetdm: Added GSM module skeleton 2012-05-07 15:10:25 -04:00
David Yat Sin 5226489c39 Merge branch 'releases.3.4' into releases.3.5
Conflicts:
	libs/freetdm/mod_freetdm/mod_freetdm.c
	libs/freetdm/src/ftdm_state.c
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_handle.c
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_main.c
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_main.h
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_out.c
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_xml.c
2012-04-26 16:13:26 -04:00
Ken Rice c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
David Yat Sin e3369119e0 Merge branch 'master' into releases.3.5 2012-04-03 18:16:36 -04:00
David Yat Sin 27e4cdb4dd Merge branch 'fsorig'
Conflicts:
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_cfg.c
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_hndl.c
2012-04-03 18:08:49 -04:00
Anthony Minessale 647740e9a4 cleanup after yourself 2012-04-02 16:20:40 -05:00
James Zhang 8a589435de freetdm: Adding condition to parse sip headers only for non-freetdm channels.
This fixes an issue where ss7 native bridge was accidentally enabled
         any time two freetdm channels were bridged regardless of the freetdm_native_sigbridge
         variable value.
2012-03-30 16:50:00 -04:00
Moises Silva 681f582b20 freetdm: Try to resolve OPENZAP-173
The token count needs to be updated after the master session token is cleared
         and before checking for other tokens
2012-03-19 09:20:44 -04:00
James Zhang 6ed6fd2c1a freetdm: latest SPIROU fixes in releases.3.4 branch merged in releases.3.5 2012-02-24 15:43:23 -05:00
James Zhang 3f43b053a0 freetdm: adding x-ocn-* headers for incoming sip calls 2012-02-16 16:49:51 -05:00
James Zhang 4ccc26f08b freetdm: Fix improper logging statement when doing native ss7 bridge (peer_chan was set to the SIP leg) 2012-02-16 15:15:22 -05:00
James Zhang 8c8d649221 freetdm: Add support to set/receive location and original call number SS7 elements through variables (including SIP X headers) 2012-02-16 15:14:06 -05:00
Moises Silva 541aa551c7 Merge branch 'releases.3.4.experimental_head' into releases.3.5 2012-01-31 17:17:25 -05:00
Moises Silva 1ad0bc250c Merge remote-tracking branch 'fsorig/master' 2012-01-31 15:57:07 -05:00
Moises Silva cafff50005 Merge branch 'releases.3.4' into releases.3.4.experimental_head
Conflicts:
	libs/freetdm/mod_freetdm/mod_freetdm.c
2012-01-31 15:37:33 -05:00
James Zhang d1a772bfe9 freetdm: Only hangup with user message when release location information is set 2012-01-30 18:02:26 -05:00
Moises Silva 5ef3c94271 OPENZAP-177 --resolve Thanks to Abhishek Singh 2012-01-30 14:15:51 -05:00
Moises Silva 2db41c5c79 freetdm: Fix uninitialized var leading to segfault 2012-01-27 06:34:36 -05:00
Moises Silva 1aa4f87b6a freetdm: Tweaks to SS7 native bridge feature
- Enable native bridge also when receiving the UUID via SIP header
         - Remove some debug CRIT messages and set a more proper log level
2012-01-26 23:51:21 -05:00
Moises Silva 9fc8395b31 Merge remote branch 'origin/jz.SPIROU' into releases.3.4.bridge_hack 2012-01-26 23:34:20 -05:00
James Zhang 977b546f9a FreeTDM: reuse sip_h_X-FreeTDM-LOC = NULL to indicate disable LOC 2012-01-26 18:52:27 -05:00
James Zhang 3235fa079a FreeTDM: fix for SPIROU
- adding freetdm_iam_fwd_ind_isdn_access_ind (value must be 0 or 1)
             to modify forward call indicator's ISDN access indicator value in
             transparent IAM
2012-01-26 18:00:34 -05:00
James Zhang 95baef8821 FreeTDM: patch SPIROU requests
- adding freetdm_iam_loc_pres variable to disable LOC in transparent IAM
 		   - confirming freetdm_bearer_capability is working properly
2012-01-26 17:37:35 -05:00
Moises Silva a1a1af579b freetdm: Implement SS7 transparent IAM functionality using the event clones queue 2012-01-26 16:50:38 -05:00
James Zhang 98d566b29c FreeTDM: adding variable ss7_rel_loc for REL location indicator (to support SPIROU) 2012-01-26 16:39:43 -05:00
James Zhang 90f538c0a0 FreeTDM: Fixing issues of SPIROU
- redirect number in Transparent IAM
		   - redirect information in Transparent IAM
		   - called party number in Transparent IAM
           - adding incoming uuid to x-header to check loop calls
2012-01-26 11:19:41 -05:00
Moises Silva 7bd2d154d6 Merge branch 'smgmaster' into releases.3.4.experimental_head
Conflicts:
	libs/freetdm/mod_freetdm/mod_freetdm.c
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_handle.c
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_main.c
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_main.h
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_relay.c
	src/mod/endpoints/mod_sofia/mod_sofia.c
	src/mod/endpoints/mod_sofia/sofia_glue.c
2011-12-17 17:42:34 -05:00
Moises Silva 7e31b9cc28 Merge remote branch 'fsorig/master'
Conflicts:
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_rcv.c
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c
2011-12-17 17:21:14 -05:00
Nenad Corbic 732a0ed2de Fix for 3000ms timeout on hangup.
Where FS does not hangup the channel with in 3sec.
Without this fix, it was possible that 2 FS sessions
use the single span/chan freetdm session.
Merged the feature from git master of freetdm
2011-12-15 20:39:38 -05:00
Moises Silva 4b22c22c33 freetdm: fix potential bug in MFCR2 where the channel token is cleared too soon 2011-12-15 20:29:32 -05: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
James Zhang e582586876 Freetdm: adding X-FreeTDM-ANI-NADI and X-FreeTDM-DNIS-NADI support 2011-12-05 16:58:26 -05:00
Jeff Lenk f5abef2000 FS-3728 --resolve thanks 2011-11-30 08:57:11 -06:00
James Zhang cb1d5be5e6 freetdm: fix redirection presentation number in X-header 2011-11-17 15:43:40 -05:00
James Zhang e293c12535 freetdm: fix loc_nadi value 2011-11-15 18:26:13 -05:00
James Zhang dcdb5f18eb freetdm: fixing RDNIS-Screen value mis-displaying string in decimal format 2011-11-14 16:42:23 -05:00
root 08e01bb5a2 freetdm: fix generic number 2011-11-07 17:32:02 -05:00
root f0631fc87e freetdm: change call reference number to HEX string format 2011-11-07 16:37:11 -05:00
root 3552e329ca freetdm: fix sip header wrong value of NADI
error was caused by printing string value to integer
2011-11-07 12:53:32 -05:00
Moises Silva 680d92967f freetdm: mod_freetdm - add SIP x header for FreeTDM-NADI value 2011-10-24 13:22:53 -04:00
Moises Silva 563460ce15 freetdm: mod_freetdm - add SIP x header for FreeTDM-NADI value 2011-10-24 13:21:15 -04:00
James Zhang 4aa0285a22 freetdm: CDR - location number implementation (for incoming and outgoing calls) 2011-10-12 17:44:52 -04:00
Jeff Lenk f0efbd3f08 FS-3599 --resolve correct windows compiler warnings 2011-10-07 08:38:48 -05:00
root c0f988b292 freetdm: changing call reference to generic header; removing location area code 2011-10-06 19:08:25 -04:00
James Zhang 20abac2794 ftdm_ss7: Adding OPC and Call Reference Number to SIP x-headers 2011-10-06 19:07:05 -04:00
root 595454126b freetdm: changing call reference to generic header; removing location area code 2011-09-30 13:09:13 -04:00
James Zhang f43eecbab3 ftdm_ss7: Adding OPC and Call Reference Number to SIP x-headers 2011-09-30 10:25:21 -04:00
Moises Silva b004bcfc6d Merge remote-tracking branch 'fsorig/master'
Conflicts:
	src/mod/endpoints/mod_sofia/mod_sofia.c
	src/mod/endpoints/mod_sofia/sofia_glue.c
2011-09-28 12:19:48 -04:00
Anthony Minessale 995d7dcb02 dont clear token on SIGEVENT_STOP for ISDN legs, save it for the hangup handler 2011-09-16 16:44:15 -05:00
Anthony Minessale 42ff14d22a use index in this loop instead of the max val for the iteration 2011-09-16 15:53:49 -05:00
Anthony Minessale 8a3c292534 fix seg in recent change 2011-09-16 14:52:14 -05:00
Moises Silva 25417d3ea8 freetdm: Verify that the uuid that is being hung up is still attached to the FreeTDM device
This avoids hanging up a device that is no longer attached to the session, in the
         weird situation where the FreeSWITCH core takes an awful lot of time (more than 3 seconds)
         to come around to acknowledge the SIGEVENT_STOP signal.
2011-09-15 19:42:39 -04:00
Moises Silva aa0a6c9222 freetdm: print span/chan identifiers on hangup 2011-09-15 13:50:42 -04:00
Moises Silva 9aa887fe2b freetdm: SS7 - CIC value stored in freetdm_ss7_cic variable (cherry-picked from releases.3.3)
Conflicts:

	libs/freetdm/mod_freetdm/mod_freetdm.c
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_handle.c
2011-09-15 12:04:23 -04:00
Moises Silva 4ed900eb92 freetdm: add debug stacktrace to track spurious channel_on_hangup call 2011-09-12 18:13:10 -04:00
Moises Silva 23aba09f1b freetdm: mod_freetdm - fix len data type for 64bit systems 2011-09-12 15:48:28 -04:00
Moises Silva 6c5132a507 freetdm: - Clear the IO flag when FreeSWITCH hangs up before notifying freetdm
- Misc fixes to log messages to aid debugging
         - Added ftdm ioread command to read media from the channel
         - Modified the ftdm_channel_open() API to return FTDM_EBUSY if the channel is already open
2011-09-12 15:21:23 -04:00
Michael Jerris 77284b5d21 use system default dtmf duration instead of hardcoded value 2011-08-31 14:45:16 -04:00
Moises Silva f57c33f1ee OPENZAP-112 --resolve 2011-08-06 21:32:21 -04:00
Moises Silva bfabc98f3d freetdm: more CLI improvements 2011-08-04 10:10:13 -04:00
Moises Silva c3f719c80d freetdm: fix typo in iostats command - print proper tx queue size and length 2011-08-03 13:05:02 -04:00
Moises Silva 68b887c760 freetdm: allow IO statistics access to users
added ftdm iostats command
2011-07-30 17:40:32 -04:00
Moises Silva f68d351fdd freetdm: refactoring of the CLI, it was getting way too ugly! 2011-07-29 19:35:10 -04:00
Jeff Lenk 71c66bcf5a OPENZAP-162 -- resolve 2011-06-14 08:47:46 -05:00
Moises Silva 1d3417a97b freetdm: be more tolerant to a few read errors 2011-06-07 17:35:49 -04:00
Moises Silva 5042b21fc5 freetdm: check if the event was created before firing it 2011-06-07 09:54:50 -04:00
David Yat Sin bd7672242c Support for AT&T *8 Transfer (VRU only) 2011-06-03 17:18:30 -04:00
Moises Silva 3fa2fce3f3 freetdm: added fail-on-error global configuration to refuse
to load the module if there is any error

Conflicts:

	libs/freetdm/mod_freetdm/mod_freetdm.c
2011-06-01 15:24:09 -04:00
Moises Silva e56d8934fe freetdm: make codec configurable for unrestricted digital calls (for G722 calls in Sangoma ISDN) 2011-05-19 17:17:46 -03:00
Moises Silva b22fc869dd freetdm: update bearer capability macro 2011-05-17 20:02:18 -04:00
Moises Silva 0b59756edd Merge remote-tracking branch 'smgfs/master'
Conflicts:
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c
2011-05-17 19:57:49 -04:00
David Yat Sin ea428669d3 chlog: freetdm - SS7: Support for Transparent IAM 2011-05-17 17:27:05 -04:00
Moises Silva e544e4cff1 freetdm: Add initial testing support for unrestricted digital calls using G722 codec 2011-05-10 23:35:20 -04:00
David Yat Sin 3b2019cd1f minor changes 2011-05-10 16:09:02 -04:00
David Yat Sin 32bf306af5 freetdm: ss7 - CPC 2011-05-10 15:56:30 -04:00
David Yat Sin 95f2d6de0d freetdm: Changed SS7 to use global CPC variable 2011-05-10 15:28:10 -04:00
David Yat Sin 05fa93f831 chlog: freetdm: ss7 - Support for Calling Party's Category 2011-05-10 11:38:23 -04:00
Moises Silva 929b69ea5d Merge remote branch 'smgfs/master' 2011-05-06 22:29:20 -04:00
David Yat Sin e9f8fb4942 freetdm - SS7 Support for custom SIP headers for RDNIS and Generic Number 2011-05-06 17:52:41 -04:00
Michael Jerris b7da00209f too much perl 2011-05-05 22:04:43 -04:00
Michael Jerris 7c971707b1 add specific alarm status in dump 2011-05-04 12:51:49 -04:00
Jeff Lenk 5510618660 OPENZAP-154 --resolve 2011-04-29 08:57:00 -05:00
David Yat Sin 2e8b3d75d0 chlog: freetdm: SS7 - Fix for Screening Ind and Presentation Ind not being sent out 2011-04-26 15:13:11 -04:00
root f235d95537 freetdm: SS7 - Support for receiving RDNIS variables 2011-04-26 14:52:53 -04:00
David Yat Sin 6558b9bba9 freetdm: fix compile errors from previous commit 2011-04-26 13:21:55 -04:00
David Yat Sin dd6853cb98 freetdm: ss7 - Fix for some SIP RDNIS headers being overwritten 2011-04-26 11:07:40 -04:00
Marc Olivier Chouinard ba7dc9fde8 Fix for -Wunused-but-set-variable required compiler. : mod_freetdm mod_avmd mod_cidlookup mod_ladspa mod_lcr mod_nibblebill mod_rss mod_vdm mod_dahdi_codec mod_skinny mod_cdr_pg_csv 2011-04-22 22:49:41 -04:00
David Yat Sin 358e9aab22 chlog:FreeTDM - SS7 Support for transmitting Redirecting Number 2011-04-06 17:25:29 -04:00
David Yat Sin 3013a9a02a Merge branch 'fsorig' 2011-04-04 16:04:13 -04:00
Daniel Swarbrick 73a9e05eaa fixed a couple of typos 2011-03-31 15:29:32 +02:00
David Yat Sin 2fba005764 freetdm: added support to restart all channels on a span 2011-03-25 16:48:57 -04:00
Moises Silva 244fd68dfd freetdm: added command complete for ftdm queuesize 2011-03-21 14:27:57 -04:00
Moises Silva 63706a839f freetdm: add support for setting the channel tx/rx queue size from config file (wanpipe.conf) and from CLI 2011-03-21 14:25:20 -04:00
Jeff Lenk a8f01d5bc6 Correct gains usage example 2011-03-10 16:58:16 -06:00
Moises Silva 865d04ef2f Merge remote branch 'fsorig/master' 2011-03-05 20:46:30 -05:00
Moises Silva 7e5befc2ba freetdm: use ftdm_channel_hangup_with_cause for CAS channels (ftmod_r2) 2011-03-01 12:16:27 -05:00
Moises Silva 4793c697bd Merge branch 'netborder'
Conflicts:
	libs/freetdm/mod_freetdm/mod_freetdm.c
	libs/freetdm/src/ftdm_io.c
	libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2_io_mf_lib.h
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_trace.c
	libs/freetdm/src/include/freetdm.h
	libs/freetdm/src/include/private/ftdm_core.h
2011-02-28 12:47:27 -05:00
Moises Silva d1b3c595cf Merge branch 'netborder' of git.sangoma.com:smg_freeswitch into netborder
Conflicts:
	libs/freetdm/mod_freetdm/mod_freetdm.c
	libs/freetdm/src/ftdm_state.c
2011-02-28 10:55:40 -05:00
Moises Silva cd6eee31a2 freetdm: remove ftdm_channel_init API 2011-02-28 10:52:30 -05:00
Moises Silva 687d39f259 freetdm: ftmod_analog - Add timeout parameter for dial tone. 0 means not waiting for dial tone. 2011-02-25 10:35:25 -05:00
David Yat Sin 49ac70defd freetdm: User variables now stored in ftdm_usrmsg_t 2011-02-25 09:58:15 -05:00
David Yat Sin cabd05d116 chlog: freetdm: channel/call variables moved to sigmsg 2011-02-18 13:01:57 -05:00
Konrad Hammel 11cc6f95cd freetdm: ss7 - update to configuration file to mirror ISDN configuration 2011-02-15 11:58:16 -05:00
Moises Silva f113c323fc Merge branch 'master' of git.sangoma.com:smg_freeswitch 2011-02-14 17:32:55 -05:00
Moises Silva c9ee4fab73 freetdm: remove deprecated channel variables code 2011-02-14 17:32:30 -05:00
Moises Silva e281aca346 Merge branch 'netborder' of git.sangoma.com:smg_freeswitch into netborder 2011-02-14 15:33:19 -05:00
Moises Silva 642882727f freetdm: added CLI completion for core commands 2011-02-14 15:14:44 -05:00
Moises Silva acd6333e33 freetdm: disallow completely core variables for freetdm outbound variables 2011-02-11 10:55:11 -05:00
Arnaldo Pereira 41dc6f46db Merge branch 'master' of git://git.freeswitch.org/freeswitch 2011-02-03 19:57:25 -02:00
Anthony Minessale 257bf9a46c fix possible bad pointer in global vars (please test) 2011-02-02 16:05:51 -06:00
David Yat Sin 57b0710bac freetdm: Fix for typo in print 2011-02-02 11:35:38 -05:00
Konrad Hammel a382990d9f chlog: freetdm: ss7 - bug fix: a route now supports multiple linksets 2011-01-29 19:49:34 -05:00
Konrad Hammel becb94052a chlog: freetdm: ss7 - added support for RELAY 2011-01-29 19:49:34 -05:00
Moises Silva 04d5652819 freetdm: fix incorrect alarm reporting due to Wanpipe bug
proper alarm handling for R2 calls
2011-01-14 18:43:42 -05:00
Moises Silva 3594419622 Merge branch 'master' into moy.r2glare 2011-01-12 13:37:05 -05:00
Moises Silva 85e107a56e freetdm: set channel name before caller profile
otherwise the channel name is not set in 'show channels'
2011-01-11 14:53:14 -05:00
Moises Silva 74a01d23bc freetdm: Added FTDM_SIGEVENT_DIALING
Added hunting scheme to support new ftdm_call_place API
         Make ftdm_channel_call_answer use ftdm_channel_call_indicate with FTDM_CHANNEL_INDICATE_ANSWER
         Updated doxygen docs in freetdm.h
2011-01-10 16:49:58 -05:00
Brian West e42c423c92 add tab completion stuffs 2011-01-10 14:44:54 -06:00
Brian West 3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Moises Silva 35776314d0 freetdm: Use proper screen and presentation definitions in mod_freetdm 2011-01-05 10:39:25 -05:00
Moises Silva fe0d8d1ec5 freetdm: - updated all signaling modules (except for ftmod_isdn and ftmod_sangoma_ss7) to adapt to new core state processing
- fixed bug in configure.ac to detect ftmod_pritap compilation
         - ignore FTDM_SIGEVENT_RELEASED and FTDM_SIGEVENT_INDICATION_COMPLETED in mod_freetdm
         - Destroy the state completed interrupt on channel destroy
         - Fix analog polarity reversal bug when using 3-way calling or call-swap
2010-12-31 13:44:20 -05:00
Moises Silva 090864fa39 freetdm: completed most of the code for the new core state processing
use new core state processing functions in ftmod_r2
2010-12-29 13:38:43 -05:00
Moises Silva 665b12b1f5 Merge remote branch 'fsorig/master' 2010-12-21 15:23:23 -05:00
Moises Silva ebb6133529 Merge branch 'master' of git.sangoma.com:smg_freeswitch 2010-12-21 15:16:09 -05:00
Moises Silva cdfa8bf7ae freetdm: Added new OOB event FTDM_OOB_POLARITY_REVERSE
Added new channel command FTDM_COMMAND_SET_POLARITY
         ftmod_wanpipe - Added support to enqueue polarity events on FXO lines
	 ftmod_wanpipe - Added support to set polarity on FXS lines
	 ftmod_analog - Added support to answer and hangup FXO lines on polarity reverse
	 ftmod_analog - Added support to reverse polarity in the FXS line on answer and hangup
	 mod_freetdm - Added parameters answer-on-polarity, hangup-on-polarity and polarity-delay
                       to enable those analog features
2010-12-21 15:11:22 -05:00
Arnaldo Pereira f5c36acfe2 freetdm: mod_freetdm - updated api commands help
ftmod_r2 - updated api help and removed references to threads per channel,
                    not used anymore
2010-12-21 13:31:21 -02:00
Moises Silva 38968d15fe freetdm: fake signaling status notifications in ftmod_analog 2010-12-20 16:15:41 -05:00
Moises Silva b5b2f6134d freetdm: multiple fixes for the core and analog
* Replace ftdm_channel_flag_t with defines. We reached the 32bit limit where does not seem reliable
          to keep using enum.
	* Flags member for ftdm_channel_t is now uint64_t
	* Added FTDM_CHANNEL_CALL_STARTED flag to indicate when the API user knows about a call
	* Refactored raw_data member for ftdm_sigmsg_t. If raw_data needs to be freed it must be requested explicitly
          through the autofree member
	* Added collected member to ftdm_sigmsg_t for FTDM_SIGEVENT_COLLECTED data instead of using raw_data
	* Created define FTDM_DIGITS_LIMIT for DNIS/ANI digits limit
	* Fix some stat checks and outdated code in ftmod_analog
	* Refactored ftdm_channel_get_history_str API to return the time offsets and time since last state change
	* Do not send FTDM_SIGEVENT_STOP and FTDM_SIGEVENT_RELEASED on calls that were never reported to the user
2010-12-20 14:06:54 -05:00
Jeff Lenk a1a710482b freetdm windows build tweaks 2010-12-20 12:15:41 -06:00
Stefan Knoblich b84b71defa FreeTDM: Stop using raw_data for FTDM_SIGEVENT_SIGSTATUS_CHANGED events.
The raw_data member is used for passing heap allocated data with an event,
(e.g. strings of dtmf data) the memory is freed after the event has been processed.

Recent changes in the event structure added a way to pass sig status changes inline,
so remove the raw_data usage for FTDM_SIGEVENT_SIGSTATUS_CHANGED events.

NOTE: This (finally) fixes a bug in ftmod_libpri that was caused by
      the event handling changes (stack corruption due to using free()
      on a variable on the stack, which turned into a NULL ptr deref
      caused by some compat code in ftdm_io.c:ftdm_span_send_signal().

Compiles and tested on my BRI setup, i did a quick audit of all
places that generate FTDM_SIGEVENT_SIGSTATUS_CHANGED events and
except for the sangoma_boost module there's nothing else that left
using raw_data for this event.

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-12-19 21:09:50 +01:00
Moises Silva aa69927b8f freetdm: OPENZAP-124 - Add round robin hunting direction (Patched by Ric) 2010-12-17 20:04:30 -05:00
Moises Silva d349290f7b freetdm: fix OPENZAP-125 (Add basic calling party category support into ftmod_r2) (Patched by ric) 2010-12-17 19:26:43 -05:00
Moises Silva 6e24e8e67b Merge remote branch 'smgfs/master' 2010-12-16 16:50:19 -05:00
Arnaldo Pereira 37753892f1 Merge branch 'master' of git@git.sangoma.com:smg_freeswitch 2010-12-16 17:01:37 -02:00
Arnaldo Pereira a082c9e913 freetdm: ftmod_r2 - implemented ftdm_r2_get_span_sig_status() and ftdm_r2_set_span_sig_status()
mod_freetdm - created sigstatus api command
2010-12-16 17:01:06 -02:00
Anthony Minessale 43393f26d1 normalize tests for outbound channels to use switch_channel_direction instead of testing for CF_OUTBOUND 2010-12-15 20:59:42 -06:00
David Yat Sin a24b9c9f68 freetdm: Support for RAW traces 2010-12-15 16:29:44 -05:00
David Yat Sin 102640ad7b freetdm: support for SIGEVENT_RING 2010-12-15 11:45:50 -05:00