Commit Graph

644 Commits (fab0bded8cf69bb0c8db732e8e31fa4e59f8fbb4)

Author SHA1 Message Date
Joshua Colp 5d9419304c Merged revisions 37439 via svnmerge from
20 years ago
Kevin P. Fleming 5b639e6135 Merged revisions 37419 via svnmerge from
20 years ago
Joshua Colp ba092c1244 And now the trunk version! Add an option for IAX2 users that allows you to set how many outstanding AUTHREQs chan_iax2 will wait for replies on.
20 years ago
Joshua Colp 022957ce03 Remove BRIDGE_OPTIMIZATION since it is deprecated or obsolete (take your pick)
20 years ago
Russell Bryant 23a4d0be28 eliminate some pointer signedness warnings
20 years ago
Kevin P. Fleming f761d2f6f0 prepare Asterisk for new zaptel.h/tonezone.h installation locations
20 years ago
Russell Bryant 73e8e2ab1f Blocked revisions 36725 via svnmerge
20 years ago
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>)
20 years ago
Russell Bryant 5e282fef07 reduce indentation
20 years ago
Russell Bryant 5941d4d819 - move the increase of the use count to be after the possible failures
20 years ago
Joshua Colp 5ff818f995 Fix timing issue (race) with poke/pong for very close peers that can cause a peer to be declared unreachable (issue #7396 reported by stevedavies)
20 years ago
Russell Bryant 035a8b4278 Merged revisions 34627 via svnmerge from
20 years ago
Joshua Colp 9ebb7c35a2 Merged revisions 34400 via svnmerge from
20 years ago
Kevin P. Fleming 11dac47877 Merged revisions 34159-34160 via svnmerge from
20 years ago
Joshua Colp ce311227ac Change a bit of logic in peer expiry back to the way it used to be
20 years ago
Joshua Colp 6723184a62 Merged revisions 33297 via svnmerge from
20 years ago
Joshua Colp 5349ae6f46 Wait until we have the lock before getting the pvt structure pointer (issue #7313 reported by arkadia)
20 years ago
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
20 years ago
Russell Bryant 66dca5e378 Merged revisions 32818 via svnmerge from
20 years ago
Russell Bryant 39bcaa0773 add an updated patch that adds dnsmgr support for outgoing iax2 registrations
20 years ago
Kevin P. Fleming 22b45aa4d3 Merged revisions 32566 via svnmerge from
20 years ago
Kevin P. Fleming 8a95a1ddc1 Merged revisions 32373 via svnmerge from
20 years ago
Russell Bryant b0260c1039 revert the changes to allow chan_iax2 to use dnsmgr for registrations.
20 years ago
Joshua Colp 2a71835d41 Convert chan_iax2 to use dnsmgr in order to deal with hostnames that can change their resolved IP (aka dynamic dns setups) (issue #6305 reported and fixed by ivanfm)
20 years ago
Olle Johansson 404f8db694 Do not use ':' as a separator between arguments (kept around for 1.4 for backwards compatibility)
20 years ago
Russell Bryant bb7dd96cfe Add support for using a jitterbuffer for RTP on bridged calls. This includes
20 years ago
Kevin P. Fleming 4790dd5d9e when we receive an IAX2 registration request with both a plaintext secret and an MD5 challenge, prefer the MD5 challenge for authentation (reported on asterisk-dev)
20 years ago
Joshua Colp 79161454a3 Few more expire_registry changes
20 years ago
Russell Bryant 730f75cc78 only display a debug message if option_debug is in use
20 years ago
Joshua Colp e0612c9835 Safely traverse the thread lists and wait until each thread is done before moving on to the next.
20 years ago
Joshua Colp 336fd1a2de Only get the low 16 bits if we actually have a message count
20 years ago
Russell Bryant 7370cb3221 Merged revisions 29849 via svnmerge from
20 years ago
Kevin P. Fleming df6767fa52 Merged revisions 28896 via svnmerge from
20 years ago
Tilghman Lesher d0c36296d2 As requested by kpfleming, renaming messagecount to inboxcount and messagecount2 to messagecount.
20 years ago
Joshua Colp 5769ed6ea2 Fix receiving message count information from a remote IAX2 peer. (issue #7163 reported by and fixed by akohlsmith)
20 years ago
Joshua Colp a6480b61b0 Merged revisions 27973 via svnmerge from
20 years ago
Kevin P. Fleming 5fb4e7019f and chan_iax2 gets smaller... remove the old jitterbuffer
20 years ago
Russell Bryant 04ecb29d03 remove almost all of the checks of the result from ast_strdupa() or alloca().
20 years ago
Kevin P. Fleming fdcfd6469b ensure that control frames with payload can be sent to channel drivers via ->indicate()
20 years ago
Mark Spencer 66ed134473 Allow media to go directly between IAX endpoints while signalling still
20 years ago
Kevin P. Fleming c22eb692a1 minor cleanups and removal of duplicate prototypes
20 years ago
Joshua Colp b82b277790 Update chan_iax2 to use linkedlists.h for users and peers. Modify the way get_from_jb and expire_registry works to get rid of certain crash scenarios. Finally - change the way expire_registry works when realtime autoclear is enabled to be a bit more efficient.
20 years ago
Kevin P. Fleming 51382b3712 Merged revisions 23705 via svnmerge from
20 years ago
Kevin P. Fleming 574e14cbea Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
20 years ago
Luigi Rizzo 52ac09f78f simplify logic in iax2_bridge()
20 years ago
Joshua Colp 5c05128777 Move a bit more stuff over to the datadir (issue #6967 reported by tzafrir patch by north)
20 years ago
Luigi Rizzo e43bc6634d This rather large commit changes the way modules are loaded.
20 years ago
Joshua Colp d7f01e051b No need to do this in here any longer since the linkedlists macro is fixed
20 years ago
Joshua Colp afcefc4a68 Convert chan_iax2 to use linked lists for multithreading, and add dynamic threads. These are used when all pool threads are in use, and will stick around until load dies down. The theory is that during high load you'll have more threads available, and during low load you'll only have the normal pool threads sticking around.
20 years ago
Kevin P. Fleming f10f427d49 since the module API is changing, it's a good time to const-ify the description() and key() return values
20 years ago
Tilghman Lesher 756c7cbb12 Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
20 years ago
Matthew Fredrickson a868675e2f chan_iax2 cleanups and optimizations (#6858)
20 years ago
Matt O'Gorman b9e7287ce6 adds manager event when an iax2 peer loses registration.
20 years ago
Russell Bryant e536a9c6df move a NULL check to before the first time the pointer is dereferenced (issue #6832)
20 years ago
Russell Bryant a13ab2f377 - code formatting tweaks
20 years ago
Russell Bryant 813c445686 Merged revisions 16744 via svnmerge from
20 years ago
Joshua Colp 5880a7f513 Do not leave a thread in limbo if an error occurs, or if testing packet loss.
20 years ago
Luigi Rizzo 6c232811c0 as discussed with Mark a few weeks ago, the 'newstack' argument
20 years ago
Joshua Colp 0c134c5cba Fix IAX2 multithreaded scheduling (issue #6840)
20 years ago
Russell Bryant 1caeee1c61 oops! :)
20 years ago
Russell Bryant 6601f4deba conversion from malloc to ast_malloc
20 years ago
Luigi Rizzo 096bf1511f another batch of cli simplifications
20 years ago
Russell Bryant 3de0204481 Merged revisions 15703 via svnmerge from
20 years ago
Russell Bryant 1ddae90e53 only display a debug message if iaxdebug is enabled as well (issue #6673)
20 years ago
Russell Bryant 78f7235d04 store f->callno in a local var (issue #6818)
20 years ago
Kevin P. Fleming 0b5f2a5d3f use proper file name
20 years ago
Kevin P. Fleming 278b8e8fc7 improve IP TOS support for SIP and IAX2 (issue #6355, code from jcollie plus modifications)
20 years ago
Matt O'Gorman a5ece3388a Janitor work converting !ast_strlen_zero(a)?a:b
20 years ago
Mark Spencer 9164eac21a Add micro-http server and abstract manager interface, make snmp not die
20 years ago
Kevin P. Fleming c26786fd81 compute scheduler thread timeout properly
20 years ago
Kevin P. Fleming 39464dfe09 commit file's work to convert iax2 multithreading to use pthread conditions instead of signals (with some modifications)
20 years ago
Olle Johansson 3cb5768016 Don't overwrite ANI if it's already sent with IES (imported from 1.2 branch)
20 years ago
Russell Bryant 9df72acbe9 deprecate the mailboxdetail option and always use its behavior, instead (issue #6665)
20 years ago
Russell Bryant 48c85e83bd fix build without SCHED_MULTITHREADED defined (issue #6719)
20 years ago
Mark Spencer 0752f8e41e Make sure we clear our sched value before we actually schedule the
20 years ago
Mark Spencer 2639b0a397 Handle disappearing calls for registers
20 years ago
Russell Bryant 6cff0b11f0 Merged revisions 11410 via svnmerge from
20 years ago
Russell Bryant f3b1b80b93 fix some build issues on FreeBSD (issue #6614)
20 years ago
Mark Spencer ce263dfb94 Oops
20 years ago
Mark Spencer 6e9d6fdd0f Fix for GCC 3.2.2
20 years ago
Mark Spencer a26b7f3400 Make sure we clear up schedule numbers before we process schedule
20 years ago
Mark Spencer 8913eac229 Keep track of the function we're in the middle of doing
20 years ago
Mark Spencer 16109b9d2c Make IAX2 multithreaded
20 years ago
Kevin P. Fleming 302c943001 add 'consumed' argument to ast_get_time_t, so callers can know how many characters were used in the parser
20 years ago
Mark Spencer 72465ade16 Remove several uses of freed memory
20 years ago
Matt O'Gorman d442f57537 add 'blindtransfer' variable to chan iax2 like chan_sip and res_features bug note 6407
20 years ago
Kevin P. Fleming 4662d58b01 add API function for parsing strings to time_t (issue #6320, with mods)
20 years ago
Kevin P. Fleming 96bf384e7d major dialplan functions update
20 years ago
Russell Bryant 452f87a465 Merged revisions 9609 via svnmerge from
20 years ago
Mark Spencer c74856b173 Make IAX2 not try to authenticate when registration info is not changing
20 years ago
Russell Bryant 14906b3cfc Merged revisions 9246 via svnmerge from
20 years ago
Kevin P. Fleming a16ae226b6 use string fields for some stuff in ast_channel
20 years ago
Russell Bryant a228af1dd9 remove some more local declarations of null frames
20 years ago
Matthew Fredrickson 0296f45bff Add rdnis rx/tx support to chan_iax2 (#6348)
20 years ago
Kevin P. Fleming c767a66da5 don't queue a congestion frame on a channel that will be immediately hung up anyway
20 years ago
Russell Bryant 4414f45393 on this pass, only remove duplicate log messages
20 years ago
Russell Bryant 9fa6eb5e07 revert my pass through the tree to remove checks of the result of ast_strdupa
20 years ago
Russell Bryant 847260bb77 remove some useless checks of the result of ast_strdupa
20 years ago
Matt O'Gorman bc133ed475 Merged revisions 8320 via svnmerge from
20 years ago
Olle Johansson 0fd8b4cb3b Doxygen updates
20 years ago
Russell Bryant 6f71e1178e constify arguments in more places where strings should not be modified (issue #6286)
20 years ago
Russell Bryant 466a062b09 convert some channels to use the memory allocation wrappers.
20 years ago
Kevin P. Fleming 8d17df65ce Merged revisions 7917 via svnmerge from
20 years ago
Kevin P. Fleming a4f8d466e8 update copyright headers for files changed this year
20 years ago
BJ Weschke 7aad650606 Fix compiler warnings.
20 years ago
Russell Bryant a725468381 update doxygen docs to specify authors
20 years ago
Russell Bryant 37e21fc61c avoid unneeded calls to strlen in iax2 completion functions
20 years ago
Russell Bryant ef1ce7aec9 Merged revisions 7634 via svnmerge from
20 years ago
Mark Spencer 6322aaad68 Fix reload of peer contexts (bug #6007)
20 years ago
Tilghman Lesher 870f98f02d Bug 5858 - Make the chanvars.c functions return a 'const char *'
20 years ago
Kevin P. Fleming 2c65582b66 remove extraneous svn:executable properties
20 years ago
Kevin P. Fleming e9cde1fbdb fix port number handling in peer building functions
20 years ago
Kevin P. Fleming 354b7f1a81 fix a bug found during a recent upgrade
20 years ago
Russell Bryant f367620dd9 issue #5815
20 years ago
Russell Bryant 913232e82e issue #5794
20 years ago
Josh Roberson 85d60cf7ab issue #5792
20 years ago
Mark Spencer 2b547e1f9e Fix build on FreeBSD 4.11
20 years ago
Kevin P. Fleming 38c665bd67 fix typo
20 years ago
Kevin P. Fleming 36315b865b issue #5713
20 years ago
Kevin P. Fleming 1740d40182 issue #5693
20 years ago
Kevin P. Fleming 8c9a32bd4b issue #5685
20 years ago
Kevin P. Fleming 6dabdbc7cd eliminate useless warnings generated by IAXy registrations
20 years ago
Kevin P. Fleming cdf4031963 issue #3360 plus related fix
20 years ago
Russell Bryant 31a804b97c issue #5605
20 years ago
Russell Bryant 1781e73435 use enum's for iax user/peer flags, and for pvt state
20 years ago
Russell Bryant 5039ee0965 allow the IAXPEER function to check a peer's status
20 years ago
Kevin P. Fleming e86e9a9fe3 allow netsock objects to be unref'd so they can disappear when needed (issue #5454)
20 years ago
Kevin P. Fleming 0a314b2454 add some additional log output and comment cleanup in the registration process (issue #5534)
20 years ago
Mark Spencer 6b26826bab Remove ancient copy/paste error (bug #5541)
20 years ago
Mark Spencer 6be92affa2 Fix minor iax2 device state issue (bug #5540)
20 years ago
Russell Bryant 9ddf0e4dce Remove unnecessary checks before calls to ast_strlen_zero. Also, change
20 years ago
Russell Bryant d57fb0b655 doxygenify the comments for data structures and defines in chan_iax2
20 years ago
Russell Bryant f1b14773dd use an enum instead of #define'd integers in a couple of places
20 years ago
Russell Bryant 3453e3efa5 Doxygen documentation update from oej (issue #5505)
20 years ago
Mark Spencer c3226a226a Fix segfault when building peer based on IP
20 years ago
Jim Dixon e726a13036 Allow for obtaining IAX2 call peer (endpoint) IP address with IAXPEER(CURRENTCHAN) function
20 years ago
Mark Spencer 4e919f337c Fix queue, iax and sip formatting issues (bug #5449)
20 years ago
Mark Spencer 141d9f7156 Make sure when the timeout occurs that we actually break the bridge (bug #5252)
20 years ago
Kevin P. Fleming 9b69c79a36 fix compile error (%d changed to %n)
20 years ago
Jeremy McNamara 69bc7e0900 add missing new line
20 years ago
Mark Spencer 03eb870f3e Fix naming on realtime peers (bug #5421)
20 years ago
Mark Spencer dd11afca42 Fix call timeouts with rtp bridge etc (bug #5252)
20 years ago
Mark Spencer 4d9210f705 Don't override calling presentation if *name* is present (bug #5405)
20 years ago
Mark Spencer ea215f5b7d Remove possibility of manager deadlocks from manager actions
20 years ago
Mark Spencer da7c542e29 Handle authenticating *to* realtime peers (bug #5269)
20 years ago
Kevin P. Fleming 4fb8ce1fd9 allow minimum/maximum registration intervals to be set on server side (issue #51111)
20 years ago
Kevin P. Fleming fadae17355 don't leave a buffer not filled in when getting a REGACK (issue #5226)
20 years ago
Kevin P. Fleming 5da915dcfd update MANY more files with proper copyright/license info (thanks Ian!)
20 years ago
Kevin P. Fleming 16cd2019b1 ensure that Manager hold/unhold events are generated even for non-bridged channels (issue #4594)
20 years ago
Russell Bryant 943e527d0a don't use a signed buffer for data that the protocol specifies as unsigned.
20 years ago
Kevin P. Fleming a51556ff3e don't reject REGREL requests (issue #5152)
20 years ago
Kevin P. Fleming 1e854ea773 remove useless buffer initializations (issue #5134)
20 years ago
Kevin P. Fleming c70e1d1674 handle no-peer-specified-in-dial-string gracefully (issue #5132)
20 years ago
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)
20 years ago
Kevin P. Fleming 6a260b78fe use unsigned char for data elements and native-signed char for strings (issue #5104)
20 years ago
Kevin P. Fleming a2be145193 make chan_iax2 rtupdate behave the same as chan_sip
20 years ago
Kevin P. Fleming d3a76999d0 various devicestate fixes (issue #5081, take two)
20 years ago
Kevin P. Fleming e86bb70642 stop adding 'username@' to incoming IAX2 channel names, so that they can be properly matched in the device-state system (issue #5081)
20 years ago
Kevin P. Fleming 6d19c704b7 make chan_sip and chan_iax2 less chatty when not in debug mode (issue #5067)
20 years ago
Russell Bryant 14fa6770e4 fix build when NEWJB is not defined (issue #5046)
20 years ago
Kevin P. Fleming d86ce557ef allow more adjustability in peer qualification system (issue #4192 with mods)
20 years ago
Mark Spencer f76171a643 Fix IAX2 Provisioning
20 years ago
Russell Bryant f3c9715947 fix a little oopsie
21 years ago
Mark Spencer 97e1ede292 Centralize and fix tos for IAX (bug #4850 inspired)
21 years ago
Kevin P. Fleming ce7a1e4768 bridging code cleanups:
21 years ago
Russell Bryant 149168f4a5 remove some sillyness
21 years ago
Mark Spencer 51c390db61 Fix timestamp + trunking (bug #4891)
21 years ago
Russell Bryant 7564500552 formatting fixes
21 years ago
Russell Bryant d0cec3dd99 fix seg fault
21 years ago
Russell Bryant c3c496512f 'outgress' should be 'egress'
21 years ago
Russell Bryant 6f312133ac make sure that iaxs gets initialized (bug #4856)
21 years ago
Kevin P. Fleming 8703628608 add explanatory comment about timestamp compensation (bug #4763)
21 years ago
Kevin P. Fleming 3f5035dce4 _really_ fix IAX2 crazy timestamp problem (bug #4747)
21 years ago
Kevin P. Fleming 4dd4428204 split acl and netsock code into separate files, in preparation for new netsock implementation
21 years ago
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)
21 years ago
Mark Spencer 3916b7e41b Fix IAX2 encryption (really, bug #4500 for reference)
21 years ago
Kevin P. Fleming d7e09f233f allow explicit source address/port selection for peers (bug #4257, with minor mods)
21 years ago
Russell Bryant 4c531ca8c0 define an AST_MAX_CONTEXT for use instead of AST_MAX_EXTENSION
21 years ago
Kevin P. Fleming c13d601fb4 queue device state changes and handle them serially in a background thread
21 years ago
Kevin P. Fleming f268ea2b3c make CLI output use singular/plural when appropriate (bug #4654)
21 years ago
Russell Bryant f3e538205b no need to call srand() when it is already called in asterisk.c
21 years ago
Kevin P. Fleming 4803ab0bb2 don't use locks when reading usecounts (reading only, not writing)
21 years ago
Kevin P. Fleming 8db7830293 fix outgoing format selection breakage
21 years ago
Kevin P. Fleming b68ffcd38d fix debug output (bug #4562)
21 years ago
Kevin P. Fleming 54e74ff81b control maximum number of interpolation frames generated during silence by jitterbuffer (bug #4295)
21 years ago
Kevin P. Fleming 5285af5631 separate IAX2 protocol debugging and jitterbuffer debugging (bug #4523)
21 years ago
Mark Spencer fb12b92a43 Various IAX2 fixes
21 years ago
Kevin P. Fleming 5736270107 add 'rtignoreexpire' option to allow Realtime addresses to be used regardless of expiration time (bug #4362)
21 years ago
Kevin P. Fleming ddaa0cc0dd don't call alloca() or alloca()-using functions in parameter lists (bug #4487)
21 years ago
Kevin P. Fleming 706bf6d427 ensure CLI commands produce proper terminating output when used with manager interface (bug #4497)
21 years ago
Kevin P. Fleming 2b8338cb52 more file version tags
21 years ago
Kevin P. Fleming 005e436b57 another round of version tag updates, along with 'show version files' pattern filtering
21 years ago
Kevin P. Fleming 4f299de252 major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116)
21 years ago
Kevin P. Fleming 8a0ade1fd8 don't call reg_source_db() until after the peer has been added to the peer list
21 years ago
Kevin P. Fleming 68668b602d use ast_cli_register_multiple() for CLI commands
21 years ago
Kevin P. Fleming a198e5af5a use ast_strip_quoted to strip brackets from key secrets
21 years ago
Kevin P. Fleming 860d7948ba clean up create_addr, and use a structure instead of a large parameter list
21 years ago
Mark Spencer c01873574a Blindly merge jitter buffer patch of bug #4342)
21 years ago
Mark Spencer 04be319867 Fix small sizeof bug (#4407)
21 years ago
Mark Spencer 41e7cc8154 Use defined AST_MAX_ACCOUNT_CODE (bug #4350)
21 years ago