asterisk/channels
Steve Murphy 161b4abd79 Hopefully, this will resolve the issues that russellb had with this log_show_lock().
I gathered the code that filled the string, and put it in a different func which
I cryptically call "append_lock_information()".
Now, both log_show_lock(), and handle_show_locks() both call this code to do
the work. Tested, seems to work fine. 
Also, log_show_lock was modified to use the ast_str stuff, along with checking
for successful ast_str creation, and freeing the ast_str obj when finished.
A break was inserted to terminate the search for the lock; we should never
see it twice.

An example usage in chan_sip.c was created as a comment, for instructional
purposes.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114520 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-22 14:38:46 +00:00
..
h323 Merged revisions 103823 via svnmerge from 2008-02-19 20:31:15 +00:00
misdn fix up various warnings found via the addition of format string checking... some of these were really, really bad code 2008-03-18 16:23:05 +00:00
xpmr Allow chan_usbradio to compile again. 2007-10-17 16:09:01 +00:00
DialTone.h Doxygen updates, formatting. 2007-12-11 22:20:22 +00:00
Makefile Merged revisions 107713 via svnmerge from 2008-03-11 20:50:57 +00:00
chan_agent.c Merged revisions 109575 via svnmerge from 2008-03-18 17:59:18 +00:00
chan_alsa.c Merged revisions 106235 via svnmerge from 2008-03-05 22:43:22 +00:00
chan_console.c (closes issue #6113) 2008-04-21 23:42:45 +00:00
chan_features.c remove another set of redundant #include "asterisk/options.h" 2007-11-21 23:24:55 +00:00
chan_gtalk.c (closes issue #6113) 2008-04-21 23:42:45 +00:00
chan_h323.c Merged revisions 114120 via svnmerge from 2008-04-14 18:34:17 +00:00
chan_iax2.c (closes issue #6113) 2008-04-21 23:42:45 +00:00
chan_jingle.c (closes issue #6113) 2008-04-21 23:42:45 +00:00
chan_local.c 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! 2008-04-14 15:36:02 +00:00
chan_mgcp.c (closes issue #6113) 2008-04-21 23:42:45 +00:00
chan_misdn.c Make MISDN generate channel rename events when the name changes. 2008-04-02 19:34:52 +00:00
chan_nbs.c remove another set of redundant #include "asterisk/options.h" 2007-11-21 23:24:55 +00:00
chan_oss.c Merged revisions 108796 via svnmerge from 2008-03-14 20:09:37 +00:00
chan_phone.c Merged revisions 106235 via svnmerge from 2008-03-05 22:43:22 +00:00
chan_sip.c Hopefully, this will resolve the issues that russellb had with this log_show_lock(). 2008-04-22 14:38:46 +00:00
chan_skinny.c (closes issue #6113) 2008-04-21 23:42:45 +00:00
chan_unistim.c (closes issue #6113) 2008-04-21 23:42:45 +00:00
chan_usbradio.c I missed a place when this define was changed. 2008-03-31 22:16:34 +00:00
chan_vpb.cc Fix last commit 2008-04-01 18:23:40 +00:00
chan_zap.c (closes issue #6113) 2008-04-21 23:42:45 +00:00
console_board.c The fixes in this commit are mainly to allow compiling of trunk with --enable-dev-mode, mutex profiling, lock debugging, etc. Mainly, the version.c needs to be in the OBJS line; asterisk.h was chosen to have the prototypes for ast_get_version, ast_get_version_num; and the ASTERISK_FILE_VERSION macro needs to be used after including asterisk.h in a few files. I hope I did the right thing. If not, let me know. 2008-01-10 00:50:39 +00:00
console_gui.c Fix minor misuses of snprintf 2008-03-04 23:10:45 +00:00
console_video.c The fixes in this commit are mainly to allow compiling of trunk with --enable-dev-mode, mutex profiling, lock debugging, etc. Mainly, the version.c needs to be in the OBJS line; asterisk.h was chosen to have the prototypes for ast_get_version, ast_get_version_num; and the ASTERISK_FILE_VERSION macro needs to be used after including asterisk.h in a few files. I hope I did the right thing. If not, let me know. 2008-01-10 00:50:39 +00:00
console_video.h Two changes: 2008-01-09 18:03:40 +00:00
iax2-parser.c Start untangling header inclusion in a way that does not affect 2007-11-16 20:04:58 +00:00
iax2-parser.h Merged revisions 75445 via svnmerge from 2007-07-17 20:49:09 +00:00
iax2-provision.c Add the "config reload <conffile>" command, which allows you to tell Asterisk 2008-03-26 18:39:06 +00:00
iax2-provision.h Don't reload a configuration file if nothing has changed. 2007-08-16 21:09:46 +00:00
iax2.h Doxygen updates, formatting. 2007-12-11 22:20:22 +00:00
misdn_config.c Oops, missed one 2008-03-26 20:34:05 +00:00
vcodecs.c prevent a panic when destroying a channel with no incoming video. 2008-01-01 23:54:40 +00:00
vgrabbers.c The fixes in this commit are mainly to allow compiling of trunk with --enable-dev-mode, mutex profiling, lock debugging, etc. Mainly, the version.c needs to be in the OBJS line; asterisk.h was chosen to have the prototypes for ast_get_version, ast_get_version_num; and the ASTERISK_FILE_VERSION macro needs to be used after including asterisk.h in a few files. I hope I did the right thing. If not, let me know. 2008-01-10 00:50:39 +00:00