dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

142 Commits

Author SHA1 Message Date
mogorman c37364c1a8 allow for packetization on rtp channel drivers, need to add
option for setting our own packetization as apposed to just doing 
what is asked.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43243 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18 23:32:57 +00:00
kpfleming 5aacb6a82d merge qwell's CLI verbification work
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18 19:54:18 +00:00
qwell 1880ea345f remove a bit of redundant code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43123 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-17 23:04:48 +00:00
qwell dbd0a09354 Skinny hold support.
Original patch by wedhorn, with modifications by me.
Issue #7588


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43111 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-17 22:24:27 +00:00
qwell 846c494c89 Get rid of all the useless (and confusing) typedefs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43099 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-17 21:58:04 +00:00
qwell 32be9cccdf It was pointed out to me, that using two frames is silly.
Thanks Josh.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41790 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-02 01:44:50 +00:00
qwell 1b95fc2c1e fix some module loader breakage
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41789 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-02 01:39:42 +00:00
qwell 4b4369a6c2 Fix VLDTMF issues.
It still isn't variable length, but it does let you dial again.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41788 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-02 01:39:15 +00:00
mogorman 73925ee14a 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: http://svn.digium.com/svn/asterisk/trunk@41633 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 21:00:20 +00:00
file 3f22aa53af 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: http://svn.digium.com/svn/asterisk/trunk@41507 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 01:59:02 +00:00
file 77be2d9b78 Merge in RTP-level packet bridging. Packet comes in, packet goes out - that's what RTP-level packet bridging is all about!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41235 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-28 17:37:56 +00:00
qwell 766e2cf21b Fix a potential integer signedness problem.
Also fix some locking issues I found at the same time.

Issue 7770, original patch by alamantia


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40757 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21 07:34:59 +00:00
kpfleming 8b0c007ad9 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: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21 02:11:39 +00:00
qwell ddfe54e276 This is just step 1 in taking over the world.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40663 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-20 18:03:24 +00:00
qwell 020e98bef4 Converted device2str and control2str to use thread local storage.
Thanks Russell.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40600 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-20 04:39:57 +00:00
qwell 3e72c0d4ed Make the CIPC device string useful
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40563 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-20 01:27:24 +00:00
qwell 4f276dd765 Fix minor display issues in "skinny show devices".
Patch by wedhorn with minor modifications by me.

Issue 7766


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40561 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-20 01:25:02 +00:00
russell 2dcd94043f move the calls to ast_jb_configure() to before the PBX thread is started on the
channel to remove the theoretical race condition that the channel could get
bridged before the channel's jitterbuffer gets configured.  This was pointed
out by PCadach on IRC.  Thanks!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39964 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-16 03:43:47 +00:00
russell a0ab5e9b80 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: http://svn.digium.com/svn/asterisk/trunk@38905 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-05 05:26:29 +00:00
russell f395a52a02 Merge a new implementation of ast_inet_ntoa, our thread safe replacement for
inet_ntoa, which uses thread specific data (aka thread local storage) instead
of stack allocatted buffers to store the result.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38042 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-21 17:31:28 +00:00
kpfleming 6049bb6539 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: http://svn.digium.com/svn/asterisk/trunk@37988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-19 20:44:39 +00:00
rizzo 3f1dfedf60 move variable declarations to the beginning of a block.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37907 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-18 21:19:59 +00:00
north 668f726c39 Rename a couple variables, to be consistent with the rest of the functions
Abstract out some common code into a single function

With the recent scheduler "issues", it pointed out a few things I might have been missing,
  so I added some rudimentary vrtp and rtcp stuff

General cleanup...


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37629 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-14 20:14:38 +00:00
russell 4c50c16add Blocked revisions 36725 via svnmerge
........
r36725 | russell | 2006-07-03 00:19:09 -0400 (Mon, 03 Jul 2006) | 4 lines

use ast_set_callerid to be more consistent and to make sure that the
"callerid" option in the conf files is always handled the same way and sets ANI
(issue #7285, gkloepfer)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36726 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-03 04:25:21 +00:00
north 427e0172ea It might help if this had the right stimulus name
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36562 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-01 17:59:37 +00:00
russell eb369cb54f 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. :)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35766 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-23 23:22:57 +00:00
russell 604972725d 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: http://svn.digium.com/svn/asterisk/trunk@35746 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-23 16:49:12 +00:00
russell 75865d5802 - 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: http://svn.digium.com/svn/asterisk/trunk@35553 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 17:05:17 +00:00
north 5ea6a4b971 fix an issue with dtmf not being sent sometimes
slightly modify handling of digits


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35032 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-20 08:09:30 +00:00
north 2041b9eb80 No need to have debug enabled by default anymore..
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34717 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-18 23:18:34 +00:00
north d3194224be Finally merge chan_skinny fixes into trunk.
ready...set...GO!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34696 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-18 22:36:39 +00:00
kpfleming 73c525e6e2 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07 18:54:56 +00:00
russell f796193575 - 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: http://svn.digium.com/svn/asterisk/trunk@31413 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01 16:47:28 +00:00
north 3a3886fc27 This is what I get for coding while tired.. sorry ;/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31385 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01 15:44:35 +00:00
north 69e576e357 Nobody saw this coming, I bet.
jitterbuffer!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31250 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-01 04:35:00 +00:00
russell 1266abd232 update the rest of the channel drivers that use RTP so that their channel
tech structures indicate that they create jitter


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31077 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-31 17:21:21 +00:00
tilghman fcce7189b1 As requested by kpfleming, renaming messagecount to inboxcount and messagecount2 to messagecount.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28745 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-19 18:21:31 +00:00
kpfleming 91ad35ce54 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: http://svn.digium.com/svn/asterisk/trunk@26417 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 12:24:11 +00:00
rizzo cab50c6e0f replace some strncpy with ast_copy string,
on passing fix some potential null pointer dereference,
and normalize some loops



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22043 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 18:08:57 +00:00
north b7d5df197a whitespace and spelling (recieve instead of receive) fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20759 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-17 01:17:03 +00:00
rizzo 3664249356 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: http://svn.digium.com/svn/asterisk/trunk@20003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 14:08:19 +00:00
rizzo a0068b36ea staticize a function, and normalize code in preparation to module changes.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19188 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 10:00:24 +00:00
kpfleming e4880150b1 since the module API is changing, it's a good time to const-ify the description() and key() return values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08 22:01:19 +00:00
north 58301f693a skinny debug/verbose cleanup.
Thanks casper!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17903 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06 16:50:33 +00:00
north e018d37d8b Changed some "register" methods to the proper "unregister" method. This is in a #if 0 block, but it may still be useful someday.
Thanks eliel.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15319 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-27 21:13:54 +00:00
north 53b2bdeb7d More whitespace and typo fixes for chan_skinny - yay!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14188 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-22 20:45:00 +00:00
russell 152d1eec4d spelling and formatting fixes (issue #6760)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13850 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-21 15:12:41 +00:00
kpfleming 21d21f89c0 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: http://svn.digium.com/svn/asterisk/trunk@9060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01 23:05:28 +00:00
kpfleming 24c1e3c222 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b 2005-11-29 18:24:39 +00:00
jeremy 5320de2094 don't register channel type until we are ready, coding format updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7124 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-16 21:07:52 +00:00