Commit Graph

22051 Commits

Author SHA1 Message Date
Steve Underwood e523076274 FAX T.6 decompression fixed for images with black in the last pixel of lines.
Colour and grey images can down be dithered down to bi-level images for transmission as faxes.
More movement towards T.42 support
2012-08-04 03:45:09 +08:00
Steve Underwood e35221b981 Fixed the way T.85/T.85-L0 selection is handled when decoding DCS messages 2012-08-03 20:26:30 +08:00
Stefan Knoblich ac0eec9de4 ftmod_isdn: Fix set-but-unused warning.
Resolves OPENZAP-189

Fixes:
	src/ftmod/ftmod_isdn/ftmod_isdn.c: In function 'ftdm_isdn_931_34':
	src/ftmod/ftmod_isdn/ftmod_isdn.c:902:21: error: variable 'status' set but not used [-Werror=unused-but-set-variable]

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-03 12:33:40 +02:00
Giovanni Maruzzelli ccae5cd6b2 gsmopen and skypopen: better printout from function gsm (or sk) list 2012-08-02 19:13:32 +02:00
Giovanni Maruzzelli 716f89f2d1 gsmopen: indent 2012-08-02 18:47:18 +02:00
Giovanni Maruzzelli c5d72d9bd0 FS-4379 gsmopen: 'gsm remove interface' works now 2012-08-02 18:39:02 +02:00
Anthony Minessale e97da8e20a remove debug 2012-07-31 16:35:56 -05:00
Anthony Minessale beed0336c0 FS-4484 I missed the part about gateways, that is a different story. Try this patch 2012-07-31 15:53:00 -05:00
Anthony Minessale f6ca367fff doh 2012-07-31 15:44:57 -05:00
Anthony Minessale 258afd4704 FS-4480 try this 2012-07-31 15:32:04 -05:00
Anthony Minessale a7b10081c8 send notifies for refer for 4579 2012-07-31 15:26:03 -05:00
Anthony Minessale e40e8696fc update 4579 stuff 2012-07-31 14:01:56 -05:00
Anthony Minessale 1b355edf18 FS-4483 --resolve 2012-07-31 08:03:07 -05:00
Anthony Minessale b3e6730de8 indent 2012-07-31 07:59:58 -05:00
Stefan Knoblich 3b5b59e693 Revert "FreeSWITCH: Fix warn-unused-result error in rtp_common_read()."
*sigh* of course there are two versions of strerror_r():

	char *strerror_r() - GNU
	int strerror_r() - non-GNU

Revert and back the drawing board...

This reverts commit 3c82033e53.
2012-07-31 01:58:48 +02:00
Anthony Minessale 0f4ecab5e9 FS-4481 --resolve seg is fixed but just utf-8 will not work. you need type/subtype format like text/utf-8 2012-07-30 16:36:20 -05:00
Stefan Knoblich 3c82033e53 FreeSWITCH: Fix warn-unused-result error in rtp_common_read().
strerror_r() returns the error message string (and expects you to use it).

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-30 13:56:48 +02:00
Anthony Minessale 293429f78d add api-expansion to switch.conf.xml and fsctl api_expansion command to control allowing apis to be expanded via variable expansion 2012-07-27 18:53:04 -05:00
Anthony Minessale cfb2335406 FS-4462 add log message to point out this problem in the future 2012-07-27 15:27:01 -05:00
Anthony Minessale 365b9feb72 457x tweaks 2012-07-27 15:07:11 -05:00
Anthony Minessale b6de76cb8c tweak 2012-07-27 14:49:08 -05:00
Anthony Minessale aba2b391fb fix seg 2012-07-27 13:23:30 -05:00
Anthony Minessale 71b64412b9 FS-4470 --resolve 2 for one fix 2012-07-27 10:44:16 -05:00
Stefan Knoblich dc1422998a 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>
2012-07-27 14:33:46 +02:00
Anthony Minessale f5af7ae2b1 FS-4471 --resolve 2012-07-26 21:25:50 -05:00
Anthony Minessale 034d3741c1 4569 tweaks 2012-07-26 21:07:10 -05:00
Anthony Minessale 772f60d235 4569 tweaks 2012-07-26 16:47:50 -05:00
Anthony Minessale cd88211d0a 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 2012-07-26 14:33:45 -05:00
Anthony Minessale 696fb9c28b expand vars in hold music variable 2012-07-26 13:17:39 -05:00
Anthony Minessale 93f96addc3 FS-4453 confirm this fixes your problem please 2012-07-26 12:32:51 -05:00
Anthony Minessale 1dd4bd4926 add core-uuid attr to xml cdr tag 2012-07-26 11:45:06 -05:00
Anthony Minessale 1d5b5f218a add core_uuid global variable to expose the runtime uuid 2012-07-26 11:38:02 -05:00
Stefan Knoblich 5ebc68fb51 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>
2012-07-26 09:14:51 +02:00
Anthony Minessale 32b3f3e224 doh 2012-07-25 19:09:03 -05:00
Stefan Knoblich 5367b96153 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>
2012-07-26 01:21:47 +02:00
Anthony Minessale c9e172789c FS-4467 try this patch that will sanity check for dups to catch this case when the ambigous method is used 2012-07-25 16:34:43 -05:00
Stefan Knoblich 7a93ae2d95 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>
2012-07-25 16:10:35 +02:00
Stefan Knoblich fb57605df7 ftmod_misdn: Drop custom MIN(),MAX(),CLAMP() macros and use the common ones.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 16:08:51 +02:00
Stefan Knoblich c3d13d5e00 ftmod_libpri: Drop custom MIN() macro and use common ftdm_min()
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 16:07:39 +02:00
Stefan Knoblich e71bacb2f5 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>
2012-07-25 14:03:22 +02:00
Stefan Knoblich 7d0dcb6175 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>
2012-07-25 14:03:22 +02:00
Stefan Knoblich 890ecc6d45 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>
2012-07-25 14:03:22 +02:00
Stefan Knoblich 200438d18f ftmod_isdn: Use ftmod_log_chan(_msg)() and ftdm_strlen_zero().
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 14:03:21 +02:00
Stefan Knoblich 9883035bec ftmod_isdn: OpenZAP -> FreeTDM API updates.
Store call CRV in caller_data.call_reference and use call private to hold the
FreeTDM channel object.

Remove isdn_data->channels_{local,remote,outbound}_crv arrays.

Allow (and force) inbound call state transition DIALTONE -> DOWN for
incoming RELEASE COMPLETE messages in NT mode.

Dialtone in NT mode works, everything else needs more testing.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-25 14:03:21 +02:00
Brian West 76ad8c549b preserve transport from records lookup 2012-07-24 19:56:48 -05:00
Michael S Collins c1c8ddf0bc Create new demo IVR XML and phrases. (New sound files needed.) Update phrase_en.xml to-be-recorded sound files. 2012-07-24 16:36:45 -07:00
Jeff Lenk 17a85ec467 vs2010 reswig 2012-07-24 14:02:02 -05:00
Anthony Minessale d832b5dfef FS-4453 --resolve this will now cause up to a 20 second timeout waiting for the response and the call will be blocking 2012-07-24 13:45:10 -05:00
Brian West 7f525d5ca9 tcp too yo 2012-07-24 13:24:50 -05:00
Jeff Lenk 44f74eabb4 FS-4455 try this 2012-07-23 21:44:34 -05:00