Commit Graph

6397 Commits

Author SHA1 Message Date
Stefan Knoblich 2bb859e2b4 ftmod_misdn: Fix brown paperbag logic bug in handle_b_channel_event()
Yeah, right, discard the incoming audio data when the b-channel is active...

Reverse the check, so ftdm_read() on an active mISDN b-channel will
be able to read audio data from the RX socketpair and not kill
the call from repeatedly timing out in poll().

Fixes:
    [WARNING] mod_freetdm.c:775 Too many timeouts while waiting I/O in channel FreeTDM/1:1/XX device 1:1!
    [ERR] mod_freetdm.c:820 clearing IO in channel FreeTDM/1:1/XX device 1:1!

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-01-07 18:04:00 +01:00
Stefan Knoblich 95ac0ecc2f ftmod_misdn: Retry recvfrom() in case of EAGAIN
epoll_wait() on the B-channel socket may indicate pending messages, but
recvfrom() returns EAGAIN. Retry a few more times (up to 5 retries)
to get the pending message.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2013-01-07 13:35:38 +01:00
Stefan Knoblich f2c325bf3e ftmod_misdn: Fix %lx vs.__u64 format string error
Fixes:
      src/ftmod/ftmod_misdn/ftmod_misdn.c:924:3: error: format '%lx' expects
      argument of type 'long unsigned int', but argument 13 has type '__u64'
      [-Werror=format]

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
Reported-by: hyper_ch #freetdm @ irc.freenode.net
2013-01-06 13:47:06 +01:00
Jeff Lenk 6d4e0862bc FS-4768 update windows to mpg123-1.14.4 2013-01-05 15:48:07 -06:00
Jeff Lenk 40cbc5c0e5 FS-4768 rest of garmts changes mostly cosmetic 2013-01-04 14:10:51 -06:00
Jeff Lenk dd25e7ea36 FS-4768 part of garmts changes 2013-01-04 13:53:05 -06:00
Jeff Lenk e381422fc0 FS-4768 download changes for openssl 2013-01-04 07:22:40 -06:00
Jeff Lenk 99a8052096 FS-4768 windows fix long term initial build problem 2013-01-02 16:11:34 -06:00
Steve Underwood f9d4e290cf Tiny mismatch with current code 2013-01-02 22:44:14 +08:00
Steve Underwood c6c03827b8 T.31 now has basically functional T.38 mode - needs more testing, though
Various modules which lacked routines to get at the sub-structures now
have them.
The tests have been tweaked so they only access internals where essential.
2013-01-01 23:07:55 +08:00
Jeff Lenk 5788195fd7 FS-4768 fix compile error on other platforms 2012-12-30 08:58:44 -06:00
Jeff Lenk dc2c11f13f FS-4768 initial add of vs2012 build support 2012-12-29 14:57:15 -06:00
Steve Underwood e22ce3e611 Improved detection of machines that need fixed point support 2012-12-25 03:14:59 +08:00
Brian West 1ea1773b5d clean up my mess now 2012-12-20 20:21:43 -06:00
Brian West 68913681a4 git status -u, learn something new every day. 2012-12-20 20:17:20 -06:00
Brian West 59205c7678 sigh... git you failed 2012-12-20 20:15:24 -06:00
Brian West 17294cb608 grr more 2012-12-20 20:14:35 -06:00
Brian West c7005ef138 woops 2012-12-20 20:13:58 -06:00
Brian West d67b96af8a i've tested, now you can too 2012-12-20 20:08:42 -06:00
Moises Silva 56846c02c6 freetdm: ftmod_analog_em: If the destination number DTMF was already generated, do not generate it again
This bug was cause when answer-supervision is used because now we do not move from DIALING to UP
         as soon as the line is ringing, but instead we wait for the CAS bit change
2012-12-20 12:18:24 -05:00
Jeff Lenk ca78de0192 FS-4950 --resolve vs2008 project 2012-12-20 08:34:57 -06:00
Moises Silva 27a8ec93de freetdm: Added Analog E&M outbound call answer supervision
You must add answer-supervision=yes in your freetdm.conf.xml
         Also added dial-timeout parameter which was previously hard-coded
2012-12-18 22:55:14 -05:00
Moises Silva 6e9dc465cc freetdm: ftmod_analog_em: Fix incorrect read length 2012-12-18 14:24:00 -05:00
Moises Silva 6f5438eded freetdm: ftmod_zt:
Handle driver events while reading media

         ftmod_analog_em:
         Initialize read data len to avoid crashing when
         the freetdm read function does not read anything
2012-12-18 14:23:31 -05:00
Michael Jerris c3e3f818e8 more pedantic standards? 2012-12-18 11:01:51 -05:00
Michael Jerris 216ca57338 missed uncommenting header 2012-12-17 22:53:52 -05:00
Michael Jerris a4923bbe54 add PL_strtok_r 2012-12-17 22:50:49 -05:00
Anthony Minessale 86487ed459 remove listed missing files 2012-12-17 20:12:31 -06:00
Michael Jerris 9d44329b2c builds with warnings, still not linking 2012-12-17 21:28:13 -05:00
Michael Jerris ab3ac5ed99 not building yet 2012-12-17 21:13:00 -05:00
Michael Jerris 0f00946782 add sipcc to tree for sdp parser 2012-12-17 20:15:23 -05:00
Michael Jerris 4773bbbf4f .gitignore 2012-12-17 10:48:21 -05:00
Steve Underwood 4bc10ab1dc T.31 now gets somewhere in T.38 mode, although it still needs more work so
it functions properly in T.38 + ECM mode.
2012-12-12 22:01:58 +08:00
Steve Underwood 68b8f5f2a7 Various tweaks to T.31 modem, prior to getting T.38 really working with T.31 2012-12-12 03:59:51 +08:00
Steve Underwood 38bf6342fa Various tweaks to spandsp, including starting to add some genuine ARM
optimisations.
2012-12-12 03:23:27 +08:00
Anthony Minessale 03c5901c23 FS-4837 --resolve this should work with no addtl patches reopen if it doesn't work 2012-12-07 11:15:33 -06:00
Anthony Minessale 8e78ca69e5 add some missing macros to typically disabled stun code 2012-12-07 08:42:54 -06:00
Raymond Chandler 86862b24af attempt to fix detection of libdl for sqlite 2012-12-03 23:12:55 -05:00
Anthony Minessale 435443c9f6 fix build 2012-11-29 10:40:47 -06:00
Anthony Minessale bce107b5fc FS-4883 --resolve I can add this but if it leads to issues in the loaded code we may not have resoures to investigate 2012-11-29 09:00:03 -06:00
Moises Silva a7f8e4259e OPENZAP-201 --resolve 2012-11-26 14:26:41 -05:00
Moises Silva b64cc02390 freetdm: ftmod_zt - Declare tone mode at the top to avoid compilation errors 2012-11-19 10:24:25 -05:00
Moises Silva db673a043f freetdm: ftmod_zt - Integrated HW DTMF support 2012-11-18 23:57:52 -05:00
Jeff Lenk c7e8dce247 FS-4828 --resolve 2012-11-17 21:38:07 -06:00
Michael Jerris a9017b4d4d FS-4649: --resolve fix ifdefs for opengl headers 2012-11-15 08:39:10 -05:00
Steve Underwood dfce47f26d Relaxed the constraints for declaring a clean end of call on FAX receive. If we
get an EOP, we no longer worry whether the final stages tidy up. This helps
tolerate the increasing number of VoIP calls which hang up before the audio has
flushed down the line.

A few little cleanups.
2012-11-14 21:53:17 +08:00
Anthony Minessale 18f20e24bf fix bad return vals on sending messages when under stress 2012-11-13 17:56:31 -06:00
Matteo Brancaleoni 8c58a10999 ftmod_libpri: Rework handling of peer-initiated hangup events
Use peerhangup flag variable to track whether a hangup has been
initiated by the peer or libpri itself (e.g. Layer 2 timeouts).

These changes fix a couple of problems with hangup events not being
handled properly in some situations:

  - Call abort caused by incoming RESTART on a channel in use
  - T309 timeout after L2 loss
  - Improved hangup handling in libpri-side on_hangup() event handler
    and state_advance() (FreeTDM side)

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-11-12 22:54:27 +01:00
Moises Silva 9bc3dfc874 fretdm: little white lie 2012-11-09 16:53:39 -05:00
Michael Jerris db20df2300 FS-4817: --resolve netbsd portability fixes 2012-11-09 09:27:47 -05:00