]> git.ipfire.org Git - thirdparty/freeswitch.git/log
thirdparty/freeswitch.git
14 years agoFixed compile error
David Yat Sin [Sat, 28 Jul 2012 14:41:55 +0000 (10:41 -0400)] 
Fixed compile error

14 years agoFixed compile warning
David Yat Sin [Sat, 28 Jul 2012 13:59:47 +0000 (09:59 -0400)] 
Fixed compile warning

14 years agoAdded event system for TDM termination alarms
root [Sat, 28 Jul 2012 01:31:24 +0000 (21:31 -0400)] 
Added event system for TDM termination alarms

14 years agoadd api-expansion to switch.conf.xml and fsctl api_expansion command to control allow...
Anthony Minessale [Fri, 27 Jul 2012 23:53:04 +0000 (18:53 -0500)] 
add api-expansion to switch.conf.xml and fsctl api_expansion command to control allowing apis to be expanded via variable expansion

14 years agoFS-4462 add log message to point out this problem in the future
Anthony Minessale [Fri, 27 Jul 2012 20:27:01 +0000 (15:27 -0500)] 
FS-4462 add log message to point out this problem in the future

14 years agoadding code for updating codec types
root [Fri, 27 Jul 2012 20:11:46 +0000 (16:11 -0400)] 
adding code for updating codec types

14 years ago457x tweaks
Anthony Minessale [Fri, 27 Jul 2012 20:07:11 +0000 (15:07 -0500)] 
457x tweaks

14 years agotweak
Anthony Minessale [Fri, 27 Jul 2012 19:49:08 +0000 (14:49 -0500)] 
tweak

14 years agoFix compile warning
David Yat Sin [Fri, 27 Jul 2012 19:02:45 +0000 (15:02 -0400)] 
Fix compile warning

14 years agofix seg
Anthony Minessale [Fri, 27 Jul 2012 18:23:30 +0000 (13:23 -0500)] 
fix seg

14 years agofixing issue
root [Fri, 27 Jul 2012 17:01:54 +0000 (13:01 -0400)] 
fixing issue

14 years agoadding codec nogotiation code
root [Fri, 27 Jul 2012 16:54:58 +0000 (12:54 -0400)] 
adding codec nogotiation code

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Fri, 27 Jul 2012 16:08:48 +0000 (12:08 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agolocal descriptor codec negotiation done
root [Fri, 27 Jul 2012 16:08:15 +0000 (12:08 -0400)] 
local descriptor codec negotiation done

14 years agofreetdm: adding variables for ansi outgoing IAMs
James Zhang [Fri, 27 Jul 2012 15:53:00 +0000 (11:53 -0400)] 
freetdm: adding variables for ansi outgoing IAMs
         . added called party number INN variable
           ie. <action application="export" data="freetdm_ss7_cld_inn=0"/>
         . added multiple variables to set User Service Information IE
           variables are :
              ss7_iam_usi_trans_cap
              ss7_iam_usi_code_standard
              ss7_iam_usi_trans_mode
              ss7_iam_usi_trans_rate_0
              ss7_iam_usi_trans_rate_1
              ss7_iam_usi_layer1_ident
              ss7_iam_usi_layer1_prot
              ss7_iam_usi_layer2_ident
              ss7_iam_usi_layer2_prot
              ss7_iam_usi_layer3_ident
              ss7_iam_usi_layer3_prot
              ss7_iam_usi_chan_struct
              ss7_iam_usi_config
              ss7_iam_usi_establish
              ss7_iam_usi_symmetry
              ss7_iam_usi_rate_multiplier

         . ss7_iam_usi_trans_cap is a string variable, the others are all integers
         . ss7_iam_usi_trans_cap has options of :
              - SPEECH
              - UNRESTRICTED
              - RESTRICTED
              - 31KHZ
              - 7KHZ
              - 15KHZ
              - VIDEO
           default value is SPEECH, if the parameter is wrong, set to SPEECH. If not
           set, this field is not present

14 years agoFS-4470 --resolve 2 for one fix
Anthony Minessale [Fri, 27 Jul 2012 15:44:16 +0000 (10:44 -0500)] 
FS-4470 --resolve 2 for one fix

14 years agocommit from testbox
root [Fri, 27 Jul 2012 15:22:29 +0000 (11:22 -0400)] 
commit from testbox

14 years agoautomatically fail new tdm channel if ftdm_start_only is true
Mathieu Rene [Fri, 27 Jul 2012 15:06:23 +0000 (11:06 -0400)] 
automatically fail new tdm channel if ftdm_start_only is true

14 years agoMerge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg/4.3
Mathieu Rene [Fri, 27 Jul 2012 15:04:29 +0000 (11:04 -0400)] 
Merge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg/4.3

14 years agoadd megaco_prepare_termination
Mathieu Rene [Fri, 27 Jul 2012 14:59:37 +0000 (10:59 -0400)] 
add megaco_prepare_termination

14 years agoMerge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg/4.3
Mathieu Rene [Fri, 27 Jul 2012 14:47:19 +0000 (10:47 -0400)] 
Merge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg/4.3

Conflicts:
src/mod/endpoints/mod_media_gateway/media_gateway_cmd_handler.c
src/mod/endpoints/mod_media_gateway/media_gateway_xml.c

14 years agoFreeTDM: Add FTDM_XINT64_FMT 64bit hex format string and use it in ftmod_misdn.
Stefan Knoblich [Fri, 27 Jul 2012 12:31:39 +0000 (14:31 +0200)] 
FreeTDM: Add FTDM_XINT64_FMT 64bit hex format string and use it in ftmod_misdn.

Fixes:
  src/ftmod/ftmod_misdn/ftmod_misdn.c: In function 'misdn_handle_mph_information_ind':
  src/ftmod/ftmod_misdn/ftmod_misdn.c:871:3: error: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'uint64_t' [-Werror=format]

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
14 years agoFS-4471 --resolve
Anthony Minessale [Fri, 27 Jul 2012 02:25:50 +0000 (21:25 -0500)] 
FS-4471 --resolve

14 years ago4569 tweaks
Anthony Minessale [Fri, 27 Jul 2012 02:07:10 +0000 (21:07 -0500)] 
4569 tweaks

14 years ago4569 tweaks
Anthony Minessale [Thu, 26 Jul 2012 21:47:50 +0000 (16:47 -0500)] 
4569 tweaks

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
David Yat Sin [Thu, 26 Jul 2012 20:43:29 +0000 (16:43 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agofreetdm: Added thread to service events when there is no signalling module on a span
David Yat Sin [Thu, 26 Jul 2012 20:43:18 +0000 (16:43 -0400)] 
freetdm: Added thread to service events when there is no signalling module on a span

14 years agoFS-4470 try this, the tmp_hanguphook will flag the b leg with CF_REDIRECT in the...
Anthony Minessale [Thu, 26 Jul 2012 19:33:45 +0000 (14:33 -0500)] 
FS-4470 try this, the tmp_hanguphook will flag the b leg with CF_REDIRECT in the event that it hangs up which should spare it from the codepath in exchange_media state

14 years agofixing local sdp issue
root [Thu, 26 Jul 2012 19:02:25 +0000 (15:02 -0400)] 
fixing local sdp issue

14 years agoexpand vars in hold music variable
Anthony Minessale [Thu, 26 Jul 2012 18:17:39 +0000 (13:17 -0500)] 
expand vars in hold music variable

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 17:51:53 +0000 (13:51 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agofixing two add for same termination back-2-back scenario, 2nd add should reject as...
root [Thu, 26 Jul 2012 17:50:43 +0000 (13:50 -0400)] 
fixing two add for same termination back-2-back scenario, 2nd add should reject as term already in context

14 years agoFS-4453 confirm this fixes your problem please
Anthony Minessale [Thu, 26 Jul 2012 17:32:51 +0000 (12:32 -0500)] 
FS-4453 confirm this fixes your problem please

14 years agoadd core-uuid attr to xml cdr tag
Anthony Minessale [Thu, 26 Jul 2012 16:45:06 +0000 (11:45 -0500)] 
add core-uuid attr to xml cdr tag

14 years agoremove typedef added for code completion
Mathieu Rene [Thu, 26 Jul 2012 16:43:32 +0000 (12:43 -0400)] 
remove typedef added for code completion

14 years agoadd core_uuid global variable to expose the runtime uuid
Anthony Minessale [Thu, 26 Jul 2012 16:38:02 +0000 (11:38 -0500)] 
add core_uuid global variable to expose the runtime uuid

14 years agochanges on test box
root [Thu, 26 Jul 2012 16:30:33 +0000 (12:30 -0400)] 
changes on test box

14 years agoftmod_isdn: Fix per-channel teletone buffer offset wraparound.
Stefan Knoblich [Thu, 26 Jul 2012 07:06:08 +0000 (09:06 +0200)] 
ftmod_isdn: Fix per-channel teletone buffer offset wraparound.

Do a "soft" wraparound with modulo, removes the ~0.5s tone glitch.
(Multiply ts.rate (samples) by two to match the offset unit (bytes, 2 per sample).)

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 03:16:53 +0000 (23:16 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
David Yat Sin [Thu, 26 Jul 2012 03:16:42 +0000 (23:16 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoReverted back clear-channel, used existing FTDM_SIGTYPE instead
David Yat Sin [Thu, 26 Jul 2012 03:16:32 +0000 (23:16 -0400)] 
Reverted back clear-channel, used existing FTDM_SIGTYPE instead

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 03:15:16 +0000 (23:15 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoprevent writes if we dont have a remote addr
Mathieu Rene [Thu, 26 Jul 2012 02:24:12 +0000 (22:24 -0400)] 
prevent writes if we dont have a remote addr

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 01:58:10 +0000 (21:58 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoallow remote addr modification on rtp
Mathieu Rene [Thu, 26 Jul 2012 01:58:03 +0000 (21:58 -0400)] 
allow remote addr modification on rtp

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 01:50:29 +0000 (21:50 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoallow remote addr modification on rtp
Mathieu Rene [Thu, 26 Jul 2012 01:49:47 +0000 (21:49 -0400)] 
allow remote addr modification on rtp

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 01:27:06 +0000 (21:27 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoallocate recv buffer for tdm
Mathieu Rene [Thu, 26 Jul 2012 01:26:53 +0000 (21:26 -0400)] 
allocate recv buffer for tdm

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 01:16:52 +0000 (21:16 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoadd logging before uuid_bridge, set frame->codec from tech_pvt->read_codec
Mathieu Rene [Thu, 26 Jul 2012 01:16:46 +0000 (21:16 -0400)] 
add logging before uuid_bridge, set frame->codec from tech_pvt->read_codec

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 01:16:23 +0000 (21:16 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoadd logging before uuid_bridge, set frame->codec from tech_pvt->read_codec
Mathieu Rene [Thu, 26 Jul 2012 01:16:14 +0000 (21:16 -0400)] 
add logging before uuid_bridge, set frame->codec from tech_pvt->read_codec

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 01:07:02 +0000 (21:07 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agogive the tdm channels their caller profile so switch_ivr_uuid_bridge doesn't piss...
Mathieu Rene [Thu, 26 Jul 2012 01:06:47 +0000 (21:06 -0400)] 
give the tdm channels their caller profile so switch_ivr_uuid_bridge doesn't piss its pants off

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 01:04:22 +0000 (21:04 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agosave the uuid
Mathieu Rene [Thu, 26 Jul 2012 01:04:15 +0000 (21:04 -0400)] 
save the uuid

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 00:59:17 +0000 (20:59 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoIm feeling bold
Mathieu Rene [Thu, 26 Jul 2012 00:59:09 +0000 (20:59 -0400)] 
Im feeling bold

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 00:54:58 +0000 (20:54 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agooriginate returns a status, not a cause
Mathieu Rene [Thu, 26 Jul 2012 00:54:47 +0000 (20:54 -0400)] 
originate returns a status, not a cause

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 00:50:42 +0000 (20:50 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoMerge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg-4.3
Mathieu Rene [Thu, 26 Jul 2012 00:50:37 +0000 (20:50 -0400)] 
Merge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg-4.3

14 years agogo in consume media right away
Mathieu Rene [Thu, 26 Jul 2012 00:50:18 +0000 (20:50 -0400)] 
go in consume media right away

14 years agomark tdm channel as answered immediately
Mathieu Rene [Thu, 26 Jul 2012 00:49:33 +0000 (20:49 -0400)] 
mark tdm channel as answered immediately

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 00:45:42 +0000 (20:45 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
David Yat Sin [Thu, 26 Jul 2012 00:41:16 +0000 (20:41 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agoAdded new channel type clear-channel for channels that do not have a signalling module
David Yat Sin [Thu, 26 Jul 2012 00:41:01 +0000 (20:41 -0400)] 
Added new channel type clear-channel for channels that do not have a signalling module

14 years agodoh
Anthony Minessale [Thu, 26 Jul 2012 00:09:03 +0000 (19:09 -0500)] 
doh

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Thu, 26 Jul 2012 00:04:48 +0000 (20:04 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agofix crash on chan open failure
Mathieu Rene [Thu, 26 Jul 2012 00:04:35 +0000 (20:04 -0400)] 
fix crash on chan open failure

14 years agoMerge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
root [Wed, 25 Jul 2012 23:56:58 +0000 (19:56 -0400)] 
Merge branch 'nsg-4.3' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

14 years agomissing goto fail
Mathieu Rene [Wed, 25 Jul 2012 23:56:25 +0000 (19:56 -0400)] 
missing goto fail

14 years agocommit -- fix stash pop err
root [Wed, 25 Jul 2012 23:47:41 +0000 (19:47 -0400)] 
commit -- fix stash pop err

14 years agoproperly git rid of span_id
Mathieu Rene [Wed, 25 Jul 2012 23:37:47 +0000 (19:37 -0400)] 
properly git rid of span_id

14 years agoproperly git rid of span_id
Mathieu Rene [Wed, 25 Jul 2012 23:37:16 +0000 (19:37 -0400)] 
properly git rid of span_id

14 years agorefactor error
Mathieu Rene [Wed, 25 Jul 2012 23:34:15 +0000 (19:34 -0400)] 
refactor error

14 years agoftmod_isdn: Rework teletone buffer offset handling in isdn_tones_run().
Stefan Knoblich [Wed, 25 Jul 2012 23:05:36 +0000 (01:05 +0200)] 
ftmod_isdn: Rework teletone buffer offset handling in isdn_tones_run().

Store the offset in the teletone buffer in the b-channel private data.

An NT-mode setup with ftmod_misdn showed severe (dial-)tone distortions
in a sound editor (330Hz sine wave phase errors), caused by
using a global teletone buffer offset.

Switching to a per-channel offset, that is advanced by the amount
of data actually written to the channel, removes (almost) all
distortions.

There is still a minimal phase error every ~500ms (audible) that
needs more investigating.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
14 years agomissing crtp init in mod_freetdm.c -- start implementing media modify
Mathieu Rene [Wed, 25 Jul 2012 22:57:32 +0000 (18:57 -0400)] 
missing crtp init in mod_freetdm.c -- start implementing media modify

14 years agoFS-4467 try this patch that will sanity check for dups to catch this case when the...
Anthony Minessale [Wed, 25 Jul 2012 21:34:43 +0000 (16:34 -0500)] 
FS-4467 try this patch that will sanity check for dups to catch this case when the ambigous method is used

14 years agoadding add rsp sdp code
root [Wed, 25 Jul 2012 21:28:56 +0000 (17:28 -0400)] 
adding add rsp sdp code

14 years agouse span name instead of id. implement termination choose for tdm.
Mathieu Rene [Wed, 25 Jul 2012 21:18:18 +0000 (17:18 -0400)] 
use span name instead of id. implement termination choose for tdm.

14 years agooops
Mathieu Rene [Wed, 25 Jul 2012 19:45:20 +0000 (15:45 -0400)] 
oops

14 years agofix warnings
Mathieu Rene [Wed, 25 Jul 2012 19:22:01 +0000 (15:22 -0400)] 
fix warnings

14 years agofix warnings
Mathieu Rene [Wed, 25 Jul 2012 19:13:04 +0000 (15:13 -0400)] 
fix warnings

14 years agoMerge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg-4.3
Mathieu Rene [Wed, 25 Jul 2012 19:11:42 +0000 (15:11 -0400)] 
Merge branch 'nsg-4.3' of git.sangoma.com:smg_freeswitch into nsg-4.3

Conflicts:
src/mod/endpoints/mod_media_gateway/mod_media_gateway.h

14 years agomap physical terms
Mathieu Rene [Wed, 25 Jul 2012 19:10:47 +0000 (15:10 -0400)] 
map physical terms

14 years agoadding code to print the Notify/Service-Change response
Kapil [Wed, 25 Jul 2012 19:02:00 +0000 (15:02 -0400)] 
adding code to print the Notify/Service-Change response

14 years agoadding "MGC_FAIL" alarm
Kapil [Wed, 25 Jul 2012 17:05:54 +0000 (13:05 -0400)] 
adding "MGC_FAIL" alarm

14 years agoadding code to
Kapil [Wed, 25 Jul 2012 16:57:42 +0000 (12:57 -0400)] 
adding code to
  1) parse incoming MODIFY request for ITO package ,
  2) starting timer based on MGC requested time
  3) on expiry generate Inactivity Notify to MGC

14 years agoFixed conflict from previous merge
David Yat Sin [Wed, 25 Jul 2012 15:27:01 +0000 (11:27 -0400)] 
Fixed conflict from previous merge

14 years agoMerge branch 'releases.3.5' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3
David Yat Sin [Wed, 25 Jul 2012 15:15:18 +0000 (11:15 -0400)] 
Merge branch 'releases.3.5' of ssh://git.sangoma.com/smg_freeswitch into nsg-4.3

Conflicts:
.gitignore
conf/insideout/autoload_configs/modules.conf.xml
conf/vanilla/autoload_configs/modules.conf.xml
src/mod/endpoints/mod_sofia/mod_sofia.h
src/switch_rtp.c

14 years agofixing 32bit specific print warnings
root [Wed, 25 Jul 2012 14:53:07 +0000 (10:53 -0400)] 
fixing 32bit specific print warnings

14 years agoFreeTDM: Add ftdm_offset_of() and ftdm_container_of() macros.
Stefan Knoblich [Wed, 25 Jul 2012 14:10:35 +0000 (16:10 +0200)] 
FreeTDM: Add ftdm_offset_of() and ftdm_container_of() macros.

Might as well import these too...

ftdm_offset_of() - Get offset of member in structure.

ftdm_container_of() - Get pointer to enclosing structure from pointer to structure member.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
14 years agoftmod_misdn: Drop custom MIN(),MAX(),CLAMP() macros and use the common ones.
Stefan Knoblich [Wed, 25 Jul 2012 14:08:51 +0000 (16:08 +0200)] 
ftmod_misdn: Drop custom MIN(),MAX(),CLAMP() macros and use the common ones.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
14 years agoftmod_libpri: Drop custom MIN() macro and use common ftdm_min()
Stefan Knoblich [Wed, 25 Jul 2012 14:07:39 +0000 (16:07 +0200)] 
ftmod_libpri: Drop custom MIN() macro and use common ftdm_min()

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
14 years agoFreeTDM: Add convenience macros ftdm_min(), ftdm_max() and ftdm_clamp().
Stefan Knoblich [Wed, 25 Jul 2012 11:54:32 +0000 (13:54 +0200)] 
FreeTDM: Add convenience macros ftdm_min(), ftdm_max() and ftdm_clamp().

ftdm_min(x,y) - Returns the smaller of the two values x and y.

ftdm_max(x,y) - Returns the larger of the two values x and y.

ftdm_clamp(val, min, max) - Returns value that is in the range [vmin,vmax].

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
14 years agoftmod_misdn: Rework mISDN channel de-/activation.
Stefan Knoblich [Wed, 25 Jul 2012 09:21:29 +0000 (11:21 +0200)] 
ftmod_misdn: Rework mISDN channel de-/activation.

Remove the 'state' variable of per-channel data, use active flag exclusively to track
open/close state.

Add misdn_activate_channel()/misdn_deactivate_channel() helper functions, rename old
one to _misdn_toggle_channel() (internal).

Add _nowait variant of channel de-/activation function, that just sends the mISDN request message.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
14 years agoftmod_isdn: Use span trunk_mode to select default mode and print warning if final...
Stefan Knoblich [Wed, 25 Jul 2012 09:03:41 +0000 (11:03 +0200)] 
ftmod_isdn: Use span trunk_mode to select default mode and print warning if final modes do not match.

Same as ftmod_libpri.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
14 years agoftmod_isdn: Use ftmod_log_chan(_msg)() and ftdm_strlen_zero().
Stefan Knoblich [Wed, 25 Jul 2012 09:01:43 +0000 (11:01 +0200)] 
ftmod_isdn: Use ftmod_log_chan(_msg)() and ftdm_strlen_zero().

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>