Commit Graph

21873 Commits

Author SHA1 Message Date
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
Stefan Knoblich fc9ea9eab0 ftmod_isdn: Handle zero length read correctly.
ftmod_misdn currently returns len == 0 if the incoming message,
that triggered the read() call, does not contain any data.
Users of ftdm_channel_read() need to handle this case, or they
may possibly end up in an endless loop.

This patch reworks the ftdm_channel_read() handling in ftmod_isdn
and prevents it from entering an endless loop. The read error counter
is reset on first sucessful read w/ data.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-24 00:07:41 +02:00
Anthony Minessale 134973187a FS-4092 --resolve 2012-07-23 14:03:53 -05:00
Anthony Minessale ac7e45400f typo 2012-07-23 13:20:06 -05:00
Stefan Knoblich 9c05387735 ftmod_isdn: Fix format string warning(/error).
Use %p for printing pointer address in hex.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-23 19:45:58 +02:00
Anthony Minessale 524468be7b FS-4373 --resolve this is probably the same issue nobody would file a bug about on the mailing list even after I begged them to from last weekend 2012-07-23 11:36:19 -05:00
Seven Du bd66d7eaa6 show bindings and handlers 2012-07-23 21:15:53 +08:00
Seven Du 49dcd8c889 make erlang log less verbose and add erlang debug on|off to control 2012-07-23 20:26:48 +08:00
Jeff Lenk b2e28d68b5 fix windows build for last spandsp changes - trivial 2012-07-21 10:18:27 -05:00
Steve Underwood be6739e198 Updates to spands test data 2012-07-21 21:46:07 +08:00
Steve Underwood fd8c576c66 Some tidying of the V.17 modem. Brought the modem test programs up to date 2012-07-21 21:17:11 +08:00
Steve Underwood e58b2e7d97 Some modem cleanups, and movement towards efficient fixed point modem
implementations for platforms with slow floating point
2012-07-21 19:47:45 +08:00
Steve Underwood 5922cb59d5 Merge branch 'master' of git.freeswitch.org:freeswitch 2012-07-21 16:07:24 +08:00
Anthony Minessale 6ec4514c68 FS-4450 this is pre-emptive, This is the only way I can see an endless loop here 2012-07-20 19:15:04 -05:00
Steve Underwood e9b4a497cc Tweaks 2012-07-21 07:18:27 +08:00
Steve Underwood b5f7443524 Started introducing T.42 JPEG support for FAXing, but its not plumbed into the
FAX engine yet.
2012-07-21 04:05:40 +08:00
Anthony Minessale 9fe08675a1 add tags to allow crypto in avp 2012-07-20 12:11:02 -05:00
Anthony Minessale e3a6366782 FS-4420 --resolve 2012-07-20 11:17:45 -05:00
Travis Cross a8019d803c Make version output more human-friendly
Our main version string is designed for release engineering purposes:
it matches file name conventions used for versioned tarballs and the
versions sort lexicographically while containing all pertinent
information.

With this commit we add in parentheses a more human-friendly rendering
of the version string: we spell out the meaning of each field and
render the datetime in RFC 822 notation.
2012-07-20 07:43:26 +00:00
Travis Cross cae357e784 gitignore some build products 2012-07-20 05:18:04 +00:00
Travis Cross 5e3c5db727 Don't show unclean in version string for now
Showing whether the git repository is clean at the time of build will
be useful, but currently something in our bootstrap/configure/early
make process is causing the tree to look unclean at just the wrong
moment and clean builds are showing up as unclean.
2012-07-20 05:12:29 +00:00
Seven Du 14cb9af607 add switch_core_file_write_video
open a door to write video data
so it is possible to record a .fsv file
also possible to write to .mp4 with proper file format support
2012-07-20 11:38:20 +08:00
Seven Du 30c009b30e fsv file formate
audio only at this time
video is possible when add a file_write_video interface to core
only tested/working with 8000hz at this time
2012-07-20 11:06:48 +08:00
Daniel Swarbrick 52bf168b56 Abort module load if config can't be opened. Refs FS-4438 2012-07-20 02:38:12 +02:00
Anthony Minessale 42f296de9b FS-4331 FS-4424 --resolve 2 for one sale 2012-07-19 17:39:42 -05:00
Anthony Minessale f50d14a7d1 treate no method as INVITE 2012-07-19 17:03:23 -05:00
Anthony Minessale 4f7122c866 followup 2012-07-19 16:12:33 -05:00
Moises Silva c55ac6c900 freetdm: OPENZAP-187 --resolve Add ability to set called party subaddress 2012-07-19 16:58:25 -04:00
Anthony Minessale b434cac526 wait forever when you call a pickup endpoint by itself 2012-07-19 15:49:39 -05:00