Matthew Fredrickson
33ddb53663
Various updates from PCadach's chan_h323-live branch
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-19 21:07:49 +00:00
Kevin P. Fleming
fcb999c01c
merge qwell's CLI verbification work
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-18 19:54:18 +00:00
Kevin P. Fleming
c2c4f86c72
merge markster's usersconf branch with some slight changes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-16 23:53:58 +00:00
Mark Spencer
e887127bf3
Fix the dtmf dialtone thing
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-16 21:45:35 +00:00
Tilghman Lesher
c35b1df605
Merged revisions 42946 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42946 | tilghman | 2006-09-14 17:16:31 -0500 (Thu, 14 Sep 2006) | 2 lines
Error message references wrong argument (Issue 7951)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-14 22:18:07 +00:00
Mark Spencer
59c861bc5e
Uhm, make Zap actually work again. Did anybody actually test that code?
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-09-10 20:28:03 +00:00
Matt O'Gorman
05a695af72
everything that loads a config that needs a config file to run
...
now reports AST_MODULE_LOAD_DECLINE when loading if config file
is not there, also fixed an error in res_config_pgsql where it
had a non static function when it should.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 21:00:20 +00:00
Joshua Colp
c6977b9983
Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-31 01:59:02 +00:00
Kevin P. Fleming
3f189742f6
make menuselect configure process be silent when possible
...
don't use #ifdef inside a macro call... it appears various versions of gcc have bugs related to this
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-29 23:33:59 +00:00
Russell Bryant
f7e7161607
Merge team/russell/frame_caching
...
There are some situations in Asterisk where ast_frame and/or iax_frame
structures are rapidly allocatted and freed (at least 50 times per second
for one call).
This code significantly improves the performance of ast_frame_header_new(),
ast_frdup(), ast_frfree(), iax_frame_new(), and iax_frame_free() by keeping
a thread-local cache of these structures and using frames from the cache
whenever possible instead of calling malloc/free every time.
This commit also converts the ast_frame and iax_frame structures to use the
linked list macros.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-29 20:50:36 +00:00
Matthew Fredrickson
b56d1a76ce
Note to self, always compile before committing.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-25 15:20:16 +00:00
Matthew Fredrickson
3113f07570
Don't send proceeding twice ( #7800 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-25 15:14:42 +00:00
Kevin P. Fleming
0a27d8bfe5
merge new_loader_completion branch, including (at least):
...
- restructured build tree and makefiles to eliminate recursion problems
- support for embedded modules
- support for static builds
- simpler cross-compilation support
- simpler module/loader interface (no exported symbols)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 02:11:39 +00:00
Russell Bryant
1de65767f2
This bug existed in one extra place that is not also in 1.2 ... So, fix it!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-09 04:12:10 +00:00
Russell Bryant
12b3d4a49e
Merged revisions 39081 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r39081 | russell | 2006-08-06 21:28:29 -0400 (Sun, 06 Aug 2006) | 7 lines
Fix a crash reported to me by hads on IRC. This crash would occur with the use
of the "distinctiveringaftercid" option. Also, on this user's system, the crash
would only occur when built without optimizations. This is because the bug is
that the code would write past the end of an array that was allocated on the
stack, and the structure of the stack is different with or without optimizations
enabled.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-07 01:32:51 +00:00
Russell Bryant
954ed66a0a
minor cleanups
...
- use appropriate types in some assignments
- use ast_strlen_zero()
- don't manually free cid fields since ast_set_callerid() will handle it
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-07 00:26:11 +00:00
Russell Bryant
663adb2b0e
Merged revisions 38903-38904 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r38903 | russell | 2006-08-05 01:07:39 -0400 (Sat, 05 Aug 2006) | 2 lines
suppress a compiler warning about the usage of a potentially uninitialized variable
........
r38904 | russell | 2006-08-05 01:08:50 -0400 (Sat, 05 Aug 2006) | 10 lines
Fix an issue that would cause a NewCallerID manager event to be generated
before the channel's NewChannel event. This was due to a somewhat recent
change that included using ast_set_callerid() where it wasn't before. This
function should not be used in the channel driver "new" functions.
(issue #7654 , fixed by me)
Also, fix a couple minor bugs in usecount handling. chan_iax2 could have
increased the usecount but then returned an error. The place where chan_sip
increased the usecount did not call ast_update_usecount()
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38905 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 05:26:29 +00:00
Russell Bryant
d86d8ebdff
This exact deadlock situation that I observed can't happen in trunk due to the
...
recent hold changes so that MOH is not started on the bridged channel directly.
However, the change is still not a bad idea.
Merged revisions 38200 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r38200 | russell | 2006-07-25 15:43:38 -0400 (Tue, 25 Jul 2006) | 6 lines
This resolves a deadlock that a tech support customer was getting frequently
when his users would answer call waiting. If another thread is currently
holding the zt_pvt lock for the first channel, unlock both channels and let
asterisk retry the native bridge, just like what is done for the second channel
directly below these changes.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-25 19:51:31 +00:00
Russell Bryant
d897bd41c2
use ast_atomic_fetchadd_int in chan_zap, sip, and iax2 for usecount handling
...
and fix a couple little things in passing
- usecnt was not initialized in chan_iax2
- ast_update_use_count() was not called after incrementing the count in chan_sip
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-22 00:33:56 +00:00
Kevin P. Fleming
6d0742fc16
merge Russell's 'hold_handling' branch, finally implementing music-on-hold handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19 20:44:39 +00:00
Russell Bryant
ee4840acdf
add missing unregistration of a manager action on module unload
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-14 21:02:55 +00:00
Kevin P. Fleming
acfa035afe
Merged revisions 37417 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r37417 | kpfleming | 2006-07-12 08:18:21 -0500 (Wed, 12 Jul 2006) | 2 lines
get rid of some more printf's (although most of these were ifdef-ed out)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37418 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-12 13:29:10 +00:00
Mark Spencer
4c90cf59b7
Support hold/unhold in Zap, update IAX2 parser to know about modern commands, forward hold/unhold in dial, add hold device state
...
and implement holding in the SLA.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-08 02:24:07 +00:00
Matthew Fredrickson
de03118578
Asterisk portion of the T309 patch. ( #7271 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-06 21:51:51 +00:00
Kevin P. Fleming
dae3eedb34
make chan_zap use proper test for libpri support
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-06 13:07:47 +00:00
Kevin P. Fleming
dbf099cdb8
update dependency information to match new names for dependencies
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-05 20:12:29 +00:00
Kevin P. Fleming
f761d2f6f0
prepare Asterisk for new zaptel.h/tonezone.h installation locations
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-05 16:44:41 +00:00
Kevin P. Fleming
e61d3d91f3
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)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-24 19:43:31 +00:00
Kevin P. Fleming
df0ba5ff8b
search for Zaptel and libtonezone separately in the configure script
...
various other minor fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-24 08:45:49 +00:00
Russell Bryant
c8ceb92a4f
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.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-23 16:49:12 +00:00
Russell Bryant
84c37e0c58
reduce indentation
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-23 02:08:10 +00:00
Russell Bryant
46018d5032
- 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
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-22 17:05:17 +00:00
Kevin P. Fleming
472c1ca282
simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-07 18:54:56 +00:00
Russell Bryant
739385e761
remove the WITH_SMDI define
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-07 18:28:29 +00:00
Russell Bryant
efd1fd9829
revert my changes to convert fields of zt_pvt to use stringfields. When I did
...
this, I was not keeping in mind the fact that after a stringfield is overwritten
by another string, the memory used by the old string can not be recovered. I
would like to go back through these changes and make sure that stringfields are
not used for fields that are written to many times before these changes are
committed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-06 23:22:12 +00:00
Matthew Fredrickson
f809fde426
Add q.921 state information. ( #7260 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-06 22:19:19 +00:00
Russell Bryant
fa595a8d82
don't return -1 if zapata.conf is not present (part of the patch from
...
issue #7290 , tzafrir)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-06 14:24:59 +00:00
Russell Bryant
80a153af79
- use stringfields in a bunch of the fields of the zt_pvt structure in chan_zap
...
- constify some arguments to functions in callerid.c / callerid.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-06 01:22:47 +00:00
Russell Bryant
4c76028de9
- add the ability to configure forced jitterbuffers on h323, jingle,
...
and mgcp channels
- remove the jitterbuffer configuration from the pvt structures in
the sip, zap, and skinny channel drivers, as copying the same global
configuration into each pvt structure has no benefit.
- update and fix some typos in jitterbuffer related documentation
(issue #7257 , north, with additional updates and modifications)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-01 16:47:28 +00:00
Russell Bryant
78ec9a057c
clean up various whitespace issues (issue #7236 , casper)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-31 20:19:50 +00:00
Russell Bryant
414106a3a6
move the includes of abstract_jb.h to be with the rest of the asterisk includes.
...
These used to be wrapped in a #ifdef
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-31 17:29:12 +00:00
Russell Bryant
bb7dd96cfe
Add support for using a jitterbuffer for RTP on bridged calls. This includes
...
a new implementation of a fixed size jitterbuffer, as well as support for the
existing adaptive jitterbuffer implementation. (issue #3854 , Slav Klenov)
Thank you very much to Slav Klenov of Securax and all of the people involved
in the testing of this feature for all of your hard work!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-31 16:56:50 +00:00
Kevin P. Fleming
11d13e1d4b
Merged revisions 29969 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r29969 | kpfleming | 2006-05-24 11:17:26 -0500 (Wed, 24 May 2006) | 2 lines
respect 'usecallingpres' in zapata.conf even if CLID has not been set for the channel (issue #7123 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-24 16:19:57 +00:00
Matthew Fredrickson
547c6ebd86
Bump up the echo tail length option
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-23 21:10:55 +00:00
Joshua Colp
ebc762c82e
Clean up some chan_zap code to make it more readable. (issue #6834 reported by ppyy)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 17:15:29 +00:00
Joshua Colp
fa13a5f113
Merged revisions 28698 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r28698 | file | 2006-05-19 14:04:02 -0300 (Fri, 19 May 2006) | 2 lines
Make the minidle option actually exist as documented (issue #7159 reported by imran)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 17:05:22 +00:00
Russell Bryant
5d24426e40
fix up a patch that did not merge properly from 1.2 ... weird
...
(issue #6866 , flefoll)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-19 14:51:08 +00:00
Joshua Colp
15358932ec
Add distinctive ring detection with Caller ID for Australia, New Zealand, and other countries. (issue #3596 reported by deon patch by dbowerman with minor mods by moi)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-17 16:51:47 +00:00
Matthew Fredrickson
99648dd713
Add option for enabling and disabling echo cancellation
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-16 21:43:20 +00:00
Russell Bryant
19ca8dc7c1
remove some chekc sof the result of ast_mutex_lock (issue #7119 , Mithraen)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-10 15:41:23 +00:00
Kevin P. Fleming
fdcfd6469b
ensure that control frames with payload can be sent to channel drivers via ->indicate()
...
update iax2_indicate to pass control frame payload to the connected channel
add an API call for sending an indication with payload, and use it for control frames with payload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-10 12:24:11 +00:00
Russell Bryant
3b43ddac78
Merged revisions 25123 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r25123 | russell | 2006-05-05 20:05:27 -0400 (Fri, 05 May 2006) | 3 lines
ensure that the appropriate manager events are sent in all of the places where
alarms are detected or cleared (issue #6866 , flefoll)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-06 00:06:58 +00:00
BJ Weschke
a7b1476058
Provide the ability to adjust txgain/rxgain on a channel level via the CHANNEL() function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-03 22:02:50 +00:00
Luigi Rizzo
072e1b8a83
move some code used only --with-pri in the proper
...
conditionally-compiled area.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-01 00:51:38 +00:00
Kevin P. Fleming
26753f77b0
remove unusable MFC/R2 support
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23670 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-30 14:09:13 +00:00
Matt O'Gorman
d830dbabf8
allows for chan_zap to have all channels reloaded
...
via zap restart patch from bug 6955
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-27 18:53:47 +00:00
Matthew Fredrickson
173e8b14cd
Make sure we use the correct event type when we're moving channels around :-)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22867 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-27 16:20:39 +00:00
Kevin P. Fleming
574e14cbea
Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-24 17:11:45 +00:00
Jim Dixon
a83297d85f
Added "Operator Services" connection mode for Zap channels, and the 'O' option
...
in app_dial to support the use of this mode.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-22 11:30:06 +00:00
Luigi Rizzo
e43bc6634d
This rather large commit changes the way modules are loaded.
...
As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely. Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.
Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.
I am just sorry that this change missed SVN version number 20000!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-14 14:08:19 +00:00
Kevin P. Fleming
f10f427d49
since the module API is changing, it's a good time to const-ify the description() and key() return values
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-08 22:01:19 +00:00
Tilghman Lesher
756c7cbb12
Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05 17:44:44 +00:00
Olle Johansson
42fddfa075
Formatting cleanup
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 18:34:21 +00:00
Olle Johansson
0a1898d8d6
Issue #6878 - Manager event DNDstate hidden under verbose option (casper)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-04 18:26:24 +00:00
Luigi Rizzo
b94f6a6df4
normalize/simplify a bit of the command completion code.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 23:20:13 +00:00
Luigi Rizzo
e9b7424737
The condition to check the zaptel version was too strict.
...
If you are compiling with WITHOUT_ZAPTEL=1, you can also
work with older version of zaptel, and there is no reason
not to allow that.
This should help various people mentioning on the -dev
list that there were issues with newer zaptel versions
on FreeBSD, and so they had to use older version.
(This includes me, btw!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 21:24:48 +00:00
Kevin P. Fleming
f7c2eed26a
ensure that 'zap show channel' will indicate that the echo canceler has been disabled when CED has been detected on the channel
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 19:00:21 +00:00
Matt O'Gorman
a5ece3388a
Janitor work converting !ast_strlen_zero(a)?a:b
...
to S_OR functions. from bug note 6805 with minor
modifications.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27 19:31:54 +00:00
Mark Spencer
9164eac21a
Add micro-http server and abstract manager interface, make snmp not die
...
on reload.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-25 23:50:09 +00:00
Matthew Fredrickson
ba8f7b8819
Allow channels to be moved if channel change is requested in SETUP_ACK, also add a WAY cool new field to the nsf option
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-23 21:41:23 +00:00
Jim Dixon
7cfb9b3515
Added separate outsignalling specification, and fixed FEATDMF to allow for
...
international inbound calls.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-21 22:31:36 +00:00
Russell Bryant
4c49c78e2e
Merged revisions 13237 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r13237 | russell | 2006-03-16 12:42:46 -0500 (Thu, 16 Mar 2006) | 3 lines
always use the callerid signalling method set in the zt_pvt strucutre as
opposed to the last one read from the config file (issue #6734 , with mods)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-16 17:46:15 +00:00
Mark Spencer
24c1501690
Fix some whitespace issues
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-04 18:12:02 +00:00
Tilghman Lesher
f2be8b518d
Bug 6554 - Show all spans statuses with a single command
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-21 05:41:37 +00:00
Tilghman Lesher
159711c838
Bug 6552 - Be a little more descriptive about which span has the PRI error
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-21 05:34:52 +00:00
Kevin P. Fleming
7b2988821a
clean up SMDI support commit:
...
copyright header format and dates
code formatting and guidelines conformance
use of timeval wrapper functions
use of memory allocation wrappers
propery unref created interface objects during config load
document new variable set by chan_zap in doc/channelvariables.txt
remove useless 'extern' on function prototypes and definitions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 23:55:47 +00:00
Matthew Fredrickson
5dd0b76b2d
Minor bugfix for #6386
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 22:45:03 +00:00
Matthew Fredrickson
af07dc8883
Add smdi support for asterisk (see doc/smdi.txt for config info) ( #5945 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10 21:50:56 +00:00
Russell Bryant
7529e12ab4
remove unnecessary format check in zt_request so that we will actually accept
...
a requested format of ALAW (issue #6421 , different patch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-09 02:21:57 +00:00
Russell Bryant
a8d24df108
clarify return value (issue #6434 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-09 01:52:09 +00:00
Matthew Fredrickson
556ec7c940
Make sure we output the APDU debug on pri debug commands
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-07 18:00:42 +00:00
Matthew Fredrickson
7bed7d9048
Fix w/ string field updates #6397
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 21:02:19 +00:00
Matthew Fredrickson
d65e912816
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 20:50:29 +00:00
Matthew Fredrickson
35edaf57d6
Fix so that hardhdlc works w/ chan_zap
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-02 16:09:38 +00:00
Kevin P. Fleming
a16ae226b6
use string fields for some stuff in ast_channel
...
const-ify some more APIs
remove 'type' field from ast_channel, in favor of the one in the channel's tech structure
allow string field module users to specify the 'chunk size' for pool allocations
update chan_alsa to be compatible with recent const-ification patches
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-01 23:05:28 +00:00
Russell Bryant
a228af1dd9
remove some more local declarations of null frames
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-31 17:57:12 +00:00
Kevin P. Fleming
d819679da0
Yes Virginia, Zaptel does support native ALAW
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-31 03:45:09 +00:00
Kevin P. Fleming
257212b930
Merged revisions 8905 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8905 | kpfleming | 2006-01-30 11:08:28 -0600 (Mon, 30 Jan 2006) | 2 lines
disable buggy PRI user-user code until it can be fixed
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-30 17:09:55 +00:00
Kevin P. Fleming
cde6058aef
make ast_read() able to handle channel read()/exception() methods that return a chain of frames
...
cleanup code in ast_read()
add AST_FRAME_DTMF_BEGIN and AST_FRAME_DTMF_END so that variable-length DTMF events can be supported
teach chan_zap to send DTMF_BEGIN and DTMF_END when appropriate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-29 05:07:04 +00:00
Russell Bryant
99abd45d01
Merged revisions 8729 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8729 | russell | 2006-01-26 14:42:35 -0500 (Thu, 26 Jan 2006) | 2 lines
fix problem with dtmf on e&m (issue #6364 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8730 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-26 19:44:16 +00:00
Kevin P. Fleming
1992ffbdb0
eliminate compiler warnings from recent const-ification
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-20 17:27:51 +00:00
Olle Johansson
3d456ce4f0
Add support for "musicclass" instead of "musiconhold" to make chan_zap compatible
...
with other channels.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-19 22:41:55 +00:00
Matthew Fredrickson
6ba6a2be1c
Fix answeronpolarityswitch and hanguponpolarityswitch when both are yes ( #6229 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-17 23:13:42 +00:00
Kevin P. Fleming
21347757ef
don't generate any message for native bridge attempts unless all the basic checks have passed and we're actually going to try it
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-17 05:15:33 +00:00
Russell Bryant
466a062b09
convert some channels to use the memory allocation wrappers.
...
(This is being added to the janitor projects list.)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11 01:20:29 +00:00
Mark Spencer
1b57ae8b6c
Fix build if RINGBEGIN is not defined (bug #6166 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-07 20:38:40 +00:00
Matthew Fredrickson
4401b7e67f
Changes to allow receiving japanese callerid (Bug #5928 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-06 20:03:20 +00:00
Matthew Fredrickson
a14916bfa5
Fixes for bug #6125
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-04 14:46:41 +00:00
Russell Bryant
a725468381
update doxygen docs to specify authors
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-30 21:18:06 +00:00
Mark Spencer
63ed37defd
Don't do DTMF detect on pseudo's!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-26 23:56:44 +00:00
Jim Dixon
a945b5598e
Added support for Feature Group C CAMA trunks (both DP and MF), and support
...
for Feature Group D Tamdem trunks inbound (outbound was already there)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-26 20:01:35 +00:00
BJ Weschke
8ef327b3f5
Bug #5877
...
Make sure the digit string from E&M wink DNIS collection is properly null terminated as it grows.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-10 18:05:00 +00:00
Russell Bryant
0ff48b4681
clean up some compiler warnings
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-04 15:28:48 +00:00
Tilghman Lesher
870f98f02d
Bug 5858 - Make the chanvars.c functions return a 'const char *'
...
This should prevent us from unintentionally changing variable
values when they're returned from pbx_builtin_getvar_helper.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-03 19:25:33 +00:00
Matthew Fredrickson
6a6b88c0e3
Fix all the warnings and errors for PRI to go to more logical places
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-02 23:52:00 +00:00
Matthew Fredrickson
39c7f262a0
Add app to send pri keypad facility digits during a call
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-01 18:52:24 +00:00
Kevin P. Fleming
2c65582b66
remove extraneous svn:executable properties
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29 18:24:39 +00:00
Mark Spencer
a7d794a0ac
Fix DTMF issue with 3-way native zap
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-11 18:00:07 +00:00
Kevin P. Fleming
bdda6254f4
correct logic for group-match CONGESTION checking
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-09 01:42:38 +00:00
Kevin P. Fleming
cdf4031963
issue #3360 plus related fix
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-09 00:48:38 +00:00
Mark Spencer
c5f0a6db6f
Fix three-way issue
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-08 19:36:20 +00:00
Russell Bryant
31a804b97c
issue #5605
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-06 15:09:47 +00:00
Mark Spencer
3d473eebbc
Fix chan_zap build on non-PRI (bug #5620 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6965 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-06 04:38:39 +00:00
Mark Spencer
994b9db081
Handle DTMF properly when combined with other events
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-05 22:30:31 +00:00
Russell Bryant
9ddf0e4dce
Remove unnecessary checks before calls to ast_strlen_zero. Also, change
...
some places where strlen is used instead of ast_strlen_zero
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-27 02:19:37 +00:00
Russell Bryant
3453e3efa5
Doxygen documentation update from oej (issue #5505 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-24 20:12:06 +00:00
Russell Bryant
4cc2618bd1
fix output of 'zap show status' to line up properly (issue #5491 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-22 12:15:07 +00:00
Matthew Fredrickson
0f850c2ffb
Add user to user ie transmission support in chan_zap.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-21 21:23:16 +00:00
Russell Bryant
56135f210f
silence compiler warnings when ZT_TONEDETECT is not defined (issue #5470 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-20 16:50:18 +00:00
Mark Spencer
141d9f7156
Make sure when the timeout occurs that we actually break the bridge (bug #5252 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 17:02:20 +00:00
Mark Spencer
dd11afca42
Fix call timeouts with rtp bridge etc (bug #5252 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 18:27:54 +00:00
Matthew Fredrickson
1406f660b6
Rewrite of PRI progress and message handling. Fixes bugs #5266 and #4468
...
(Early media related digit passing and passing early media progress between
channels)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-04 17:00:01 +00:00
Kevin P. Fleming
13519f72e7
support both regular and Feature Group D dialing syntax on EM_WINK trunks (issue #5323 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 03:25:25 +00:00
Mark Spencer
ea215f5b7d
Remove possibility of manager deadlocks from manager actions
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 23:10:14 +00:00
Kevin P. Fleming
4287cb7f42
more whitespace fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 21:29:40 +00:00
Kevin P. Fleming
b450a235b2
more whitespace cleanup
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 21:23:54 +00:00
Kevin P. Fleming
f8f7d21252
whitespace fix
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:46:43 +00:00
Kevin P. Fleming
eb91322494
fix comment typo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:40:24 +00:00
Kevin P. Fleming
2685a48e37
missed a line...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:35:47 +00:00
Kevin P. Fleming
35c4afd0fd
code cleanup
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:34:11 +00:00
Kevin P. Fleming
b40ba965d6
minor fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:26:41 +00:00
Kevin P. Fleming
b5e6b8af98
clean up formatting, use the same flag bit for both GR-303 modes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 20:06:22 +00:00
Russell Bryant
380005fea4
fix variable name (issue #5302 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 19:24:30 +00:00
Russell Bryant
3c020accfd
don't declare the priority inside of the for loop so that the priority
...
can actually be switched at each iteration (issue #5319 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 19:18:48 +00:00
Kevin P. Fleming
24cdb73f92
handle polarity reversal hangup indication during an incoming call that is still ringing (issue #5191 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 03:14:44 +00:00
Mark Spencer
cfabcabae8
Null out call number on release complete when number is unallocated (bug #4633 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-25 02:28:31 +00:00
Mark Spencer
a21c9058e0
Fix cut/paste error (bug #5282 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-24 14:19:59 +00:00
Kevin P. Fleming
d6ef44afe0
revert an optimization that didn't work (issue #5222 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-15 15:01:23 +00:00
Kevin P. Fleming
5da915dcfd
update MANY more files with proper copyright/license info (thanks Ian!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 20:46:50 +00:00
Kevin P. Fleming
77ed1394b6
ensure that exten field is cleared when incoming number is not matched to an extension (issue #5203 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 02:41:05 +00:00
Kevin P. Fleming
72437b1dba
more BSD portability fixes (issue #5155 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 01:10:20 +00:00
Mark Spencer
41bf6b42fd
Try a more generally correct solution, for NFAS (bug #5179 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-13 02:27:32 +00:00
Mark Spencer
04e4a54ae8
Restart PRI when we come out of alarm if we're not already up...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-13 02:20:37 +00:00
Mark Spencer
961cd50bba
Don't allow callwait to happen during initial ringdown (bug #5188 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-11 17:01:10 +00:00
Mark Spencer
a2b177fcbb
Increase PRI buffers just in case
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-09 18:41:17 +00:00
Matthew Fredrickson
f49370c82f
Fix 'w' to correctly send sending complete on PRI
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-09 16:07:06 +00:00
Jim Dixon
4794638c99
Fixed signalling problem with pciradio
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-08 17:29:49 +00:00
Matthew Fredrickson
6f78afbe00
Revert change that removed q931_call structure too soon
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 20:52:17 +00:00
Kevin P. Fleming
5fdc070109
add new channel option (via ast_channel_setoption()) to let channel drivers adjust txgain/rxgain if they are able (only Zap channels at this time)
...
modify app_chanspy to use new gain option
reformat app_chanspy to match coding guidelines
add user-controlled volume adjustment to app_meetme (issue #4170 , heavily modified to actually work on Zap channels)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 01:30:01 +00:00
Matthew Fredrickson
7348cba9c7
Fixed possible hangup race condition that would lead to segfualt with hangups.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-06 17:50:55 +00:00
Kevin P. Fleming
aa6883aba6
revert unnecessary change
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 19:38:08 +00:00
Mark Spencer
0602837f4e
Fix vidupdate for chan_zap to eliminate sillyl warning
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 18:43:36 +00:00
Kevin P. Fleming
5f6431a75a
factor calling-plan-apply logic into a separate function
...
apply calling plan to RDNIS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 18:37:53 +00:00
Kevin P. Fleming
8fc8505607
don't send warnings for unhandled indications, let ast_indicate() deal with them (issue #5097 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 21:56:39 +00:00
Matthew Fredrickson
c88ab78d47
New, more robust way of doing e&m digit collection. Bug #3805
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 19:02:37 +00:00
Matthew Fredrickson
25d9051633
Make sure we enable echo cancellation on incoming overlapdial calls
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 17:38:25 +00:00
Kevin P. Fleming
050d6c7d34
ensure revents fields are initialized before calling poll()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 22:12:23 +00:00
Mark Spencer
ac0eaaf1f2
Add support for ring begin event and configurable ringtimeout.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 05:02:33 +00:00
Matthew Fredrickson
98047ff61d
Add support for override of the default pri exclusive/preferred channel
...
selection behavior
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 15:39:43 +00:00
Kevin P. Fleming
3ac4417753
eliminate warning when !ZAPATA_PRI
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 21:18:20 +00:00
Mark Spencer
47334c3193
Fix language in d-channel (bug #4979 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-19 04:23:23 +00:00
Kevin P. Fleming
8a2b540f0a
protect PRI-specific code with ifdefs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-17 17:52:14 +00:00
Matthew Fredrickson
d39d277ada
Don't catch digits from zaptel during overlap dialing
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-16 16:12:22 +00:00
Mark Spencer
3b12e18473
Fix PRI against masquerade
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-15 14:57:58 +00:00
Mark Spencer
f2c72aca7b
Fix potential deadlock in asterisk
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-11 16:43:36 +00:00
Kevin P. Fleming
ce7a1e4768
bridging code cleanups:
...
code style, formatting
use enum/symbolic constants for return codes
efficiency improvements
(zaptel) only disable DTMF detection once per bridge, not every frame
(zaptel) ensure VPM DTMF detector is turned off during native bridge
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09 01:59:59 +00:00
Mark Spencer
13a0bec612
Merge steve's busy detect stuff (bug #4830 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 00:08:48 +00:00
Mark Spencer
f4a1a05205
Revert improperly applied patch from bug #4771
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 04:56:39 +00:00
Kevin P. Fleming
9b8ee1f3e4
set the 'number complete' bit properly (bug #4771 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 22:16:35 +00:00
Matthew Fredrickson
6eb0ec533e
More minor cleanups
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6183 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-22 18:28:19 +00:00
Matthew Fredrickson
0577cdd35f
Fixed little oops with DTMF tone duration
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-22 18:07:53 +00:00
Matthew Fredrickson
23d05a2ebb
Get rid of DSP after we don't need it anymore in MF mode
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-21 15:06:50 +00:00
Matthew Fredrickson
0a4dd9a6b3
Fix for DSP code on 411/406. (Bug 4712). Also a settable tone length
...
option.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 13:30:37 +00:00
Kevin P. Fleming
22b0f5d306
add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 23:00:47 +00:00
Kevin P. Fleming
904beec507
ensure that format string macros are undef'd after use (bug #4716 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:13:26 +00:00
Kevin P. Fleming
17fee8dc68
various code formatting changes and cleanups related to bug #4706
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:03:02 +00:00
Kevin P. Fleming
f50c27c355
don't ignore hardcoded CLID from zapata.conf when usecallerid=no
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 20:22:29 +00:00
Matthew Fredrickson
91f84f9098
Update variable name to match docs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 15:13:12 +00:00
Kevin P. Fleming
a803ef7af0
pick up calling ANI information from libpri (bug #4571 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6097 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:33:57 +00:00
Matthew Fredrickson
e67bc60c40
Make PRI debug easier to read if you're not using NFAS
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 19:23:02 +00:00
Russell Bryant
4c531ca8c0
define an AST_MAX_CONTEXT for use instead of AST_MAX_EXTENSION
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:49:57 +00:00
Mark Spencer
80f67ad1fa
Pass along proceeding and progress even when overlap mode is not on
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 16:05:59 +00:00
Russell Bryant
52ef5c7d30
add function to convert a cause code to a string
...
create MAX_MUSICCLASS instead of using MAX_LANGUAGE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-05 17:16:17 +00:00
Matthew Fredrickson
cb8ba75284
Fix for bug 4347. Also breaking redirectingreason interpretation routine into function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-29 21:47:44 +00:00
Kevin P. Fleming
3ddc33f674
un-break three-way calling
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 19:15:51 +00:00
Kevin P. Fleming
9f4ad3363d
ensure that 'zap show status' always generates output, even when there are no interfaces present (bug #3585 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 02:37:32 +00:00
Kevin P. Fleming
4803ab0bb2
don't use locks when reading usecounts (reading only, not writing)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-24 02:15:04 +00:00
Kevin P. Fleming
442f3b15a1
make 'transfer to busy' support a configurable option, and make it _only_ short-circuit AST_STATE_BUSY
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-23 14:51:52 +00:00
Kevin P. Fleming
4d102efb7a
make incoming overlap calls with no number specified use the 's' extension (bug #4317 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5893 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 22:34:29 +00:00
Kevin P. Fleming
439002c898
make zap-transfers to busy/congestion channels behave more reasonably (bug #4495 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 22:23:21 +00:00
Kevin P. Fleming
178842ec27
save 168 bytes per zaptel channel private structure (using bitfields)
...
save 28 bytes per zaptel subchannel structure (using bitfields)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 21:13:35 +00:00
Kevin P. Fleming
2b8338cb52
more file version tags
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 22:12:19 +00:00
Kevin P. Fleming
005e436b57
another round of version tag updates, along with 'show version files' pattern filtering
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 21:09:59 +00:00
Kevin P. Fleming
8726967435
handle going to 'fax' extension when inside a macro properly (bug #4368 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 03:18:51 +00:00
Kevin P. Fleming
6107dfe927
use ast_cli_register_multiple() for chan_zap CLI commands
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 03:24:37 +00:00
Mark Spencer
7b03b102c9
Setup transfer capability properly for outbound calls (bug #4434 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-02 17:16:49 +00:00
Mark Spencer
41e7cc8154
Use defined AST_MAX_ACCOUNT_CODE (bug #4350 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 17:18:05 +00:00
Russell Bryant
9644f1dcfe
various code cleanups (bug #4353 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25 10:57:15 +00:00
Matthew Fredrickson
c055fcc9a7
(Hopefully!) last remaining changes for NFAS.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-24 15:30:10 +00:00
Matthew Fredrickson
e92b07d372
More updates for NFAS span/channel mapping
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5760 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-24 14:19:27 +00:00