* fixed the busy state
* fixed tone handling after ast_hangup was called
* optimized the tone_indication function
* removed warnings in favour of log debugs
* improved the round_robin method
* added logs for channel setting/emptying
* fixed channel forgot to set bug
Olle Johansson [Mon, 26 Jun 2006 16:43:21 +0000 (16:43 +0000)]
METERMAIDS:
-----------
- Adding devicestate providers, a new architecture to add non-channel related
device state information, like parking lots, queues, meetmes, vending machines
and Windows 98 reboots (lots of blinking on those lights)
- Adding provider for parking lots, so you can subscribe to the status of a
parking lot
- Adding provider for meetme, so you can have a blinking lamp for a meetme
( Example: exten => edvina,hint,meetme:1234 )
- Adding support for directed parking - set the PARKINGEXTEN before you manually
call Park() and you will be parked on that space. If it's occupied, dialplan
execution will continue.
This work was sponsored by Voop A/S - www.voop.com
Russell Bryant [Mon, 26 Jun 2006 14:38:55 +0000 (14:38 +0000)]
don't let the Makefile blow up in menuselect.makeopts is present but
menuselect.makedeps is not. This would probably only be the case in existing
checkouts ...
Kevin P. Fleming [Sat, 24 Jun 2006 19:43:31 +0000 (19:43 +0000)]
The Eurostar Commit! (it's amazing how much work you can get done on a 150 minute train ride from Paris to London <G>)
support the new location for zaptel.h and tonezone.h
use the dependency information output by menuselect to build Makefile rules for each module for header files and libraries
combine the common rules into a top-level Makefile.rules file
remove all (now) unnecessary stuff from subdir Makefiles
change translator API so that the newpvt() callback returns an int instead of a pointer (it no longer allocates memory)
alphabetize --with-<foo> options in configure script
enhance Net-SNMP support in configure script to provide a --with-netsnmp option
fix support for --with-pq so that if pg-config is not found when --with-pq is specified, an error will be generated
add 'optional package' usage to modules now that menuselect can output it
allow res_snmp to build by default, since the new loader changes coming soon will solve the function naming problem (and users can disable it via menuselect anyway)
Russell Bryant [Fri, 23 Jun 2006 23:22:57 +0000 (23:22 +0000)]
fix some little issues on big endian platforms to resolve compiler warnings
- don't call the byte swapping macros on single byte numbers
- don't do a ++ increment in the argument in the argument to the byte swapping
macros. This gets expanded to incrementing the variable 4 times in a single
operation, which results in undefined (and obviously undesired) behavior. :)
Russell Bryant [Fri, 23 Jun 2006 16:49:12 +0000 (16:49 +0000)]
revert my changes that converted the jb on the channel to be dynamically
allocated. These changes caused crashes when using a channel type that did
not support the jitterbuffer. Instead of fixing why it's crashing, I'm going
to implement this in a better way next week. The way I did it caused a
jitterbuffer to be allocated on every channel where the channel type supported
jitterbuffers, even if they were disabled.
Russell Bryant [Fri, 23 Jun 2006 01:29:41 +0000 (01:29 +0000)]
remove various commands that remove old modules since they have been there a
sufficient amount of time. Even if they happen to be still present, the main
Makefile will spit out a huge warning telling the user that modules not
installed by that run of "make install" are present in the modules directory.
Russell Bryant [Thu, 22 Jun 2006 17:10:16 +0000 (17:10 +0000)]
- move the increase of the use count to be after the possible failures
- if the pbx fails to start, set the owner channel of the pvt strucutre
to be NULL
- return immediately if the pbx fails to start so the loop to set all of
the variables from the "setvar" options aren't set as a bunch of global
variables instead
Russell Bryant [Thu, 22 Jun 2006 17:05:17 +0000 (17:05 +0000)]
- dynamically allocate the ast_jb structure that is on the channel structure
so that channels not using a jitterbuffer don't waste as much memory
- ensure that the channel drivers that use jitterbuffers can handle a failure
from configuring a jitterbuffer on a new channel because of a memory
allocation error
- On passing through these channel drivers, configure the jitterbuffer before
starting the PBX thread instead of afterwards. If the pbx fails to start for
whatever reason, this would have caused a crash.
- Also on passing, move the increase of the usecount to after all of the
possible failure conditions in the function
- fix a place where ast_update_use_count() was not called
- ensure that the owner channel pointer of the channel pvt strcutures is set to
NULL in failure conditions
Russell Bryant [Thu, 22 Jun 2006 15:38:13 +0000 (15:38 +0000)]
- convert the 'uninstall' target to use separate targets to process each
subdirectory instead of a for loop
- remove the FORCE target from the main Makefile and add the couple places
I used it to the .PHONY target. .PHONY does the same thing and is a built-in
more efficient way of doing it.
- add a bunch more targets to .PHONY ...
Russell Bryant [Thu, 22 Jun 2006 14:09:18 +0000 (14:09 +0000)]
- specify that 'all' is a .PHONY target
- add a copyright header to the build_tools Makefile
- remove 'depend' from the 'all' target in agi/ and utils/ since it is handled
by the main Makefile already
Russell Bryant [Thu, 22 Jun 2006 12:55:49 +0000 (12:55 +0000)]
revert my change to use the AC_PREFIX_DEFAULT macro since it is not something
that is expanded inline, so it didn't do what I wanted it to. The --help output
will be wrong again, but that's better than completely breaking it. :)
(Thanks to jcollie for catching this!)
Russell Bryant [Thu, 22 Jun 2006 12:14:29 +0000 (12:14 +0000)]
instead of using a for loop to call make on each subdirectory, use a target for
each subdirectory.
- the shell code in the for loop doesn't have a manually catch errors from
make on a subdirectory
- you can now run something like "make apps" or "make channels" from the root
source directory
- This should allow for better support for parallel instances of make (the -j
option) since make can work on each subdirectory target in parallel
Russell Bryant [Thu, 22 Jun 2006 11:27:03 +0000 (11:27 +0000)]
add the 'clean', 'clean-depend', and 'dist-clean' targets as .PHONY targets
since they are targets that do not have resulting files and are never listed
as prerequisites to real targets. Using .PHONY in this manner improves make
performance by never having to check for resulting files.
Russell Bryant [Thu, 22 Jun 2006 10:30:51 +0000 (10:30 +0000)]
use the AC_PREFIX_DEFAULT macro to set the default prefix instead of setting
the variable directly, so that the configure --help information shows the
correct default prefix
* added support for PID export/import to identify bridging in misdn_call already
* fixed a few inband Alerting issues, sometimes we need to create alerting, some
times it's inband
* beautified the state debugging of misdn_hangup
* removed "real" bchannel activating/deactivating in chan_misdn.c
* fixed "round_robin" bug when there's only 1 port
* added more informative prints when channel could not be created
* changed some warnings to notices
* reworked the whole bchannel state machine stuff,
it is now like in the examples of mISDNuser and therefore a lot easier,
and it is now harder to create bugs
* bchannel_activate/deactivate is now only called in setup/cleanup bc,
they may merge sometime
* it is very important to setup/cleanup the bchannels under the correct
conditions, especially in the NT Side we can only setup the bchannels
when we send a Message!
In the TE side we can only setup the bchannel when we received the channel
of course
Olle Johansson [Tue, 20 Jun 2006 10:34:53 +0000 (10:34 +0000)]
Issue #6820 - SIP channels hang in semi active state
- Block fix from 1.2
- Implement part of that fix that was not already implemented, but in a different way
basically, don't cancel destruction when we receive re-transmits.
Russell Bryant [Tue, 20 Jun 2006 01:06:50 +0000 (01:06 +0000)]
- use $(CC) instead of gcc when building testexpr2
- modify ast_expr2.fl and ast_expr2.y to not try to register the file version
in a STANDALONE build
- add config.status as a dependency on testexpr2 to ensure configure is
executed before building it
- add include/asterisk/buildopts.h as a dependency for testexpr2 as well
- add -Iinclude to the gcc commands for building the testexpr2 objects so that
it can find the local asterisk headers
Russell Bryant [Sun, 18 Jun 2006 21:24:35 +0000 (21:24 +0000)]
bail if ast_calloc fails, this was done before but i accidently removed it when
moving these allocations so duplicate error messages were not produced
(issue #7345)