Commit Graph

15424 Commits (01e2bd1e2f774158277621e90c50dbbfd21df8cc)
 

Author SHA1 Message Date
Steve Murphy 5fb4b1bbe5 This is the scariest commit I've done in a long time. This is the astobj2-ification of chan_sip. I've tested a number of scenarios like crazy. It used to have 4x the call setup/teardown performance of trunk, but now it's roughly at parity. I will attempt to find the bottlenecks and get it back to the 4x mark. The changes made were somewhat invasive, but the value to the community of these upgrades outweighs waiting further for more testing. Every change being made to chan_sip was lousing this code up when we tried to merge. Peers, Users, Dialogs, are all now astobj2 objects, indexed via hashtables. Refcounting is used to track objects and free them at the bitter end of their lives. Please file issues on bugs.digium.com, and PLEASE, please, please be patient. One natural advantage to all the hash-table work is that loading large sip.conf files full of thousands of peers now goes much faster. One more please: PLEASE help thrash this code and test it.
17 years ago
Tilghman Lesher 123ac5fd64 Standardized routines for forking processes (keeps all the specialized code in one place).
17 years ago
Steve Murphy 752f6681b1 A small enhancement-- I added the routine log_show_lock to utils.c, which if the mentioned lock has been acquired, this routine will log to the console the normal info about that lock you'd see from the CLI when you do a 'core show locks'. It's solely for debug-- if the lock is NOT acquired, there is no output. I use it to show 'unexpected' locks, to see where/why a lock is pre-locked. This command is to be called from points of interest, like just before a trylock, and helps to spot fleeting, highly temporal locks that normally are not locked...
17 years ago
Kevin P. Fleming a51fb142f9 Merged revisions 114184 via svnmerge from
17 years ago
Steve Murphy 8b6d8da58c Introducing a small optimization to event_unsubscribe; events now use a Doubly-Linked list for events, gives fast deletions, for the sake of channel driver mwi events. From team/murf/bug11210.
17 years ago
Steve Murphy 2b69ec9a38 Introducing a small upgrade to the ast_sched_xxx facility, to keep it from eating up lots of cpu cycles. See CHANGES. From the team/murf/bug11210 branch.
17 years ago
Tilghman Lesher e5ea744e1d Blocked revisions 114180 via svnmerge
17 years ago
Steve Murphy 6138b16995 Introducing various astobj2 enhancements, chief being a refcount tracing feature, and various documentation updates in astobj2.h, and the addition of standalone utility, refcounter, that will filter the trace output for unbalanced, unfreed objects. This comes from the team/murf/bug11210 branch.
17 years ago
Jason Parker e93d417a19 Blocked revisions 114173 via svnmerge
17 years ago
Steve Murphy 27891e6b4b Introducing doubly linked lists to trunk from branch team/murf/bug11210.
17 years ago
Joshua Colp d04ac68dfa Blocked revisions 114167 via svnmerge
17 years ago
Sean Bright 5fbdb4af73 Add the ability to disable channel technology name playback when speaking the current channel name
17 years ago
Tilghman Lesher 369ccdef5e Oops, buffer wasn't long enough for query
17 years ago
Olle Johansson 18866623dc Merged revisions 114148 via svnmerge from
17 years ago
Olle Johansson f239f24580 Adding chanvar to SIPPEER from 1.4 branch
17 years ago
Jason Parker fe65716e15 If somebody enters a digit during ast_stream_and_wait, the return value is the digit, which we need to use later.
17 years ago
Steve Murphy 5b4222c9de These changes:
17 years ago
Sean Bright 98c789ad12 I'm not sure why, but "this" bothers me. Ba dum dum.
17 years ago
Jason Parker b9bb0749d1 Shorten the mac address pattern, since some phones use different identifiers (such as the i2050 softphone).
17 years ago
Jason Parker c2d0b572bf Merged revisions 114138 via svnmerge from
17 years ago
Jason Parker f6cfccbc07 Merged revisions 114133 via svnmerge from
17 years ago
Jason Parker efb767e432 Convert several DEBUG logs into ast_debug.
17 years ago
Terry Wilson 91de4e9cea Need a new buffer for each loop
17 years ago
Terry Wilson 6d34b5fafe Don't unref user twice on failure. Also, when adding sorted list of users, it is best to check the entry already in the list for a "next" entry instead of the newly created entry...
17 years ago
Jason Parker 6e6d6f2e10 Merged revisions 114120 via svnmerge from
17 years ago
Mark Michelson 0270776ca5 Merged revisions 114117 via svnmerge from
17 years ago
Tilghman Lesher e7daf63fd8 Make tab-completion work for all cases
17 years ago
Mark Michelson df7cb6b30b Merged revisions 114112 via svnmerge from
17 years ago
Joshua Colp 6fad8249f5 During hangup it is possible for p->chan or p->owner to be NULL, so just return what the channel is bridged to instead of what they are *really* bridged to. Thanks Matt Nicholson!
17 years ago
Mark Michelson 9ddc843fbe Merged revisions 114106 via svnmerge from
17 years ago
Joshua Colp c5d0ca23f0 Merged revisions 114103 via svnmerge from
17 years ago
Joshua Colp 5fff9c7304 Merged revisions 114100 via svnmerge from
17 years ago
Tilghman Lesher c716e8de53 Add tab command-line completion
17 years ago
Tilghman Lesher dc3e185e96 Use ast_mkdir instead of mkdir
17 years ago
Matthew Fredrickson 5110d3bc69 Make sure linkset is locked exiting ss7_start_call
17 years ago
Matthew Fredrickson f9960bc748 Make sure we start incoming calls on SS7 with echo cancellation enabled. Also make sure when completing a COT we call ss7_start_call with the proper locks held. Lastly, make sure if we fail to get a channel from zt_new that we don't assume it's there.
17 years ago
Tilghman Lesher 7c26320110 If any field is not null, but has no default, then it must be set or the insert will fail.
17 years ago
Tilghman Lesher 0dd46a6bf0 Make the sample config match the contributed LDAP schema
17 years ago
Tilghman Lesher 7128ba0bb8 Use the correct function for free'ing objects, and maybe we won't crash.
17 years ago
Terry Wilson 4bc75c9a55 Merged revisions 114083 via svnmerge from
17 years ago
Terry Wilson ef8007f630 Make sure that ${LINE} is set even if linenumber is not set in users.conf
17 years ago
Doug Bailey 9a1b485100 Change the number of line keys per registration from 2 to 1
17 years ago
Jason Parker c7e913ed3f Blocked revisions 114072 via svnmerge
17 years ago
Terry Wilson e276ccea11 Fix the fact that global_variables 1) weren't being updated on reload (thanks for the report, Doug), and 2) weren't actually being appended to the list of profile variables because build_profile was called before the list was populated. Also needed to free the contents returned by load_file().
17 years ago
Mark Michelson e409a129af Merged revisions 114063 via svnmerge from
17 years ago
Tilghman Lesher d304a88457 Errors are all greater than 0
17 years ago
Mark Michelson 115d5024a1 Merged revisions 114051 via svnmerge from
17 years ago
Joshua Colp a08c4b2064 A 'b' option has been added which causes chan_local to return the actual channel that is behind it when queried. This is useful for transfer scenarios as the actual channel will be transferred, not the Local channel. If you have been using Local channels as queue members and having issues when the agent did a blind transfer this option may solve the issue.
17 years ago
Mark Michelson d13b45564b Merged revisions 114045 via svnmerge from
17 years ago
Tilghman Lesher 954fea4d10 The hydra grows yet another head...
17 years ago