Commit Graph

19602 Commits

Author SHA1 Message Date
Anthony Minessale bcd1e14711 add callee_id name/number to xml_cdr 2011-09-09 13:01:10 -05:00
Michael S Collins 3f176c2f51 Merge branch 'master' of ssh://git.freeswitch.org:222/freeswitch 2011-09-09 12:09:24 -07:00
Michael S Collins 4872e6fff0 mod_commands: Add 'presence_data' field to 'show channels like xxx' list of fields. This makes anthm's trick mentioned on the mailing list even more handy. 2011-09-09 12:09:05 -07:00
Anthony Minessale 0c066f063c DTMF stands for Devil Took My Fone 2011-09-09 12:02:15 -05:00
Anthony Minessale be4d36e3c6 OMFG one annoying bang 2011-09-09 11:34:41 -05:00
Michael S Collins d62679df18 Add phrase macros for '<person> has joined/left the conference' 2011-09-09 10:02:52 -07:00
Jeff Lenk 10d2e80819 FS-3454 --resolve 2011-09-08 22:35:20 -05:00
Brian West 06eb4b6ab3 Fix recovery when nat is involved 2011-09-09 02:47:56 -05:00
Brian West 0f9b2cebfb swigall 2011-09-09 00:34:49 -05:00
Anthony Minessale 5154b8819d fix wrong media ip in recover data issue 2011-09-08 17:13:28 -05:00
Anthony Minessale 329e29f69d doh 2011-09-08 16:55:40 -05:00
Anthony Minessale 7d612da440 yield when doing b64 encode to avoid stealing the cpu on single proc crappy hardware 2011-09-08 16:47:21 -05:00
Anthony Minessale 2e6ce02462 fix unlikely failure condition 2011-09-08 16:47:21 -05:00
Michael Jerris 1b9b3456ad add auth username to unreg event 2011-09-08 17:57:17 -04:00
Anthony Minessale 26039c57c2 FS-3548 --resolve 2011-09-08 10:44:44 -05:00
Anthony Minessale 7acddfac95 FS-3549 --resolve This patch will probably make it work but the bug is actually in the phone, the patch is simply tolerating the bad behaviour. You are correct about the a=sendonly missing, this was fixed in a later revision of the polycom firmware. I suggest that even if this patch works, that you update your phones to a newer firmware, preferably the most recent. 2011-09-08 10:24:05 -05:00
Anthony Minessale 74d5a593af revert forgot jira info 2011-09-08 10:23:40 -05:00
Anthony Minessale 361b623937 This patch will probably make it work but the bug is actually in the phone, the patch is simply tolerating the bad behaviour. You are correct about the a=sendonly missing, this was fixed in a later revision of the polycom firmware. I suggest that even if this patch works, that you update your phones to a newer firmware, preferably the most recent. 2011-09-08 10:22:46 -05:00
Anthony Minessale 7d399cce96 don't turn X-FS- headers into variables, they are reserved for FS specific communication and should not be passed on 2011-09-08 10:02:16 -05:00
Moises Silva fb69d37592 freetdm: fix small bug reported in freeswitch-dev where the call_id member of sigmsg
is not being set for SIGEVENT_START event
2011-09-08 12:51:48 -04:00
Anthony Minessale 83a78fbfa0 FS-3545 --resolve no, that was not the intention, I missed a few more spots to hack in the exception for iLBC, (thanks for marring my code iLBC ppl) it should work as expected now even with the m_per_ptime on 2011-09-08 09:48:21 -05:00
Anthony Minessale aea22cd4b7 add RTP_BUG_ACCEPT_ANY_PACKETS to disable dropping invalid packets for interop with Oracle CCA 2011-09-08 08:57:28 -05:00
Anthony Minessale f2099bf999 FS-3529 please try this revision I suspect its related to some uninitilized memory causing flags to be set that are not in the dtmf structure in certian cases 2011-09-08 08:12:16 -05:00
Stefan Knoblich 09a61f5025 [FreeTDM] Add (experimental) ftmod_misdn
Add I/O plugin for mISDN stack that is included in the linux kernel
since version 2.6.27.

The in-kernel mISDN stack uses a socket based interface (AF_ISDN),
data and control commands are exchanged via datagram messages.

This makes writing a driver that doesn't use a separate (per-span)
thread to handle all incoming events a bit tricky, because responses
to control messages and incoming data are mixed and interfacing
with the synchronous FreeTDM I/O API is problematic.

B(*)/D-channel handling:

The current version uses misdn_wait() to poll() for activity on
the non-blocking channel sockets and misdn_read() to receive and
handle all pending events up to the first PH_DATA_IND (data) message
(which is what the caller of the read method is actually after).

In case no data has been received, misdn_read() returns FTDM_SUCCESS
with *datalen = 0, which is OK for all the signalling modules tested
(ftmod_libpri and (out-of-tree) ftmod_isdn).

To send data, misdn_write() is called, which just sends a PH_DATA_REQ
message to the mISDN channel socket.

(*) B-channels use a per-channel timerfd as a timing reference for
'ready-for-write' poll()ing in misdn_wait().

This is a workaround for a limitation of mISDN sockets, which do not
support POLLOUT waiting on b-channel sockets (in a useful way).

Sending/receiving of data works the same way as on d-channels, otherwise.

The module has received some minimal testing using a beronet
single-port HFC E1 and a HFC4-S quad-port BRI card on linux-3.0.x.

--- Limitations ---

 - Only the most basic features have been implemented (alarms,
   sending/receiving data/audio).

 - Spans are limited to E1 and BRI/BRI_PTMP trunk types.

 - D-Channels only work on 16 for PRI and 3 for BRI.

 - NT/TE mode information is not available from freetdm.conf /
   at configure_span()-time so the module assumes TE mode,
   which should be only a problem for cards that can change
   the port configuration (pin-out) from software.

 - Current design (b-channel timerfd / misdn_wait()/_read()/_write())
   should be fine for most SoHo use-cases
   (scalability / cpu usage / timing precision).

--- Requirements ---

 - mISDNif.h header (/usr/include/mISDN/mISDNif.h), provided by mISDNuser
   (http://isdn.eversberg.eu/download/lcr-1.7/mISDNuser-20100525.tar.gz).

 - Linux kernel with mISDN and timerfd enabled (>= 2.6.27)
   and libc with timerfd support.

mISDN options can be found in the:

"Device Drivers" -> "ISDN support" -> "Modular ISDN driver"

section of make menuconfig. Timerfd is usually enabled by default.

The FreeTDM configure script will check for missing mISDNif.h
header and timerfd support and print a message.

You should see the following in the summary screen on success:

	ftmod_misdn........................ yes

NOTE: Forcing mISDN support using the "--with-misdn" configure option,
      will cause the configure script to fail on the first missing
      dependency.

--- Usage ---

To use the module, make sure you have mISDN support in the kernel
(kernel modules loaded or kernel with built-in mISDN running),
the "misdn_info" application shipped with mISDNuser will output
a list of available mISDN ports on your system, e.g.:

Found 5 ports
  Port  0 'hfc-4s.1-1':      TE/NT-mode BRI S/T (for phone lines & phones)
                              2 B-channels: 1-2
                                B-protocols: RAW HDLC X75slp
  ...

  Port  4 'hfc-e1.2':        TE/NT-mode PRI E1  (for phone lines & E1 devices)
                             30 B-channels: 1-15 17-31
                                B-protocols: RAW HDLC X75slp

NOTE: ftmod_misdn will print an error message if mISDN support is not available,
      or if there are no ports installed.

- Example freetdm.conf settings

[span misdn BRI_1]
trunk_type => BRI_PTMP
b-channel => 0:1,2
d-channel => 0:3

[span misdn PRI_1]
trunk_type => E1
b-channel => hfc-e1.2:1-15,17-31
d-channel => hfc-e1.2:16

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2011-09-08 00:16:02 +02:00
Daniel Swarbrick b31ebc9a69 add config file and tweak modules.conf.in for mod_cdr_mongodb 2011-09-07 23:57:44 +02:00
Daniel Swarbrick a91691999d add MongoDB CDR module 2011-09-07 23:50:25 +02:00
Jeff Lenk aff4bcbe12 FS-3080 --resolve better fix for voicemail email key match 2011-09-07 10:50:30 -05:00
Anthony Minessale 247537a959 FS-3545 --resolve this is actually compliant when mixing ptimes in the same sdp but since iLBC uses its own fmtp for ptime I will add this patch to make it beleive its 20 for the sake of arguement. If you have any other problems with this, set the channel or global variable sdp_m_per_ptime=false to completely disable the default correct behaviour 2011-09-07 08:07:04 -05:00
Jeff Lenk 482b319512 FS-3544 --resolve 2011-09-06 21:27:13 -05:00
Anthony Minessale 1c775c3bf0 finish up last commit 2011-09-06 15:07:51 -05:00
Anthony Minessale 391da66cac reswig 2011-09-06 16:30:04 -05:00
Anthony Minessale 2ae688a33b add sendmsg function to esl 2011-09-06 14:53:38 -05:00
Anthony Minessale 96ddc51faa split on space not colon 2011-09-06 13:56:44 -05:00
Anthony Minessale 2b7a830d6d allow duplicate headers to be parsed into events received on the wire 2011-09-06 13:56:21 -05:00
Anthony Minessale fb5f29c2fb speed up restart speed of profiles 2011-09-06 12:53:29 -05:00
Anthony Minessale c6c247d35c FS-3543 --resolve nevermind, found it 2011-09-06 11:30:28 -05:00
Jeff Lenk 698a50298a Revert "FS-3080 --resolve only allow when not playing message"
This reverts commit d2daa44d8c.

Working on a better fix
2011-09-06 11:51:29 -05:00
Jeff Lenk 40990c044c FS-3527 --resolve Syntax Error when using MSSQL in core 2011-09-05 14:40:49 -05:00
Jeff Lenk 2da308c115 correct labor day holiday example 2011-09-05 14:07:49 -05:00
Mathieu Rene 8974f9d62e mod_voicemail: use vm_email as notification address if vm_notify_email isn't set (that behavior was in voicemail_leave_main but not in deliver_vm) 2011-09-05 17:34:39 +02:00
Jeff Lenk a966c2b0ef vs2010 reswig 2011-09-04 11:09:23 -05:00
Anthony Minessale fba22dc7e9 don't parse signals in the set_running_state function to avoid livelock situation 2011-09-02 16:59:59 -05:00
Anthony Minessale 6dd1264d08 add support for global nameseace in chat interface to bind to unhandled messages 2011-09-02 14:41:25 -05:00
Stefan Knoblich d0308aaea2 [SDK] Clean up symbol visibility flags and compiler vendor handling
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2011-09-02 22:48:03 +02:00
Brian West 6d76dda7f5 swigall 2011-09-02 21:03:21 -05:00
Anthony Minessale 798651b8f2 update doc 2011-09-02 10:12:14 -05:00
Anthony Minessale f20b605dfc typo 2011-09-02 09:50:24 -05:00
Anthony Minessale 42b64ccd67 get rid of digit_action_set target and add target,bind_target params to bind_digit_action 2011-09-02 09:34:40 -05:00
Jeff Lenk 2689081bae vs2010 reswig 2011-09-01 21:16:22 -05:00
Anthony Minessale 7efa4fb209 FS-3532 --resolve 2011-09-01 15:10:23 -05:00