Luigi Rizzo [Mon, 10 Dec 2007 08:40:59 +0000 (08:40 +0000)]
remove relative paths and use ASTTOPDIR instead.
Give a default value to ASTTOPDIR if unset so we can at least
do a 'make clean' without too much trouble.
The proper fix, however, is to partition the top level
Makefile in a 'setup' and a 'main' part, in a way that the
'setup' part can be included from subdirs' Makefiles and
allow targets to be built without going through the
top level Makefile.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92104
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Mon, 10 Dec 2007 08:35:35 +0000 (08:35 +0000)]
simplify this file
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92103
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Mon, 10 Dec 2007 04:38:49 +0000 (04:38 +0000)]
add a bit of info on the build infrastructure
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92084
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Mon, 10 Dec 2007 04:18:07 +0000 (04:18 +0000)]
Fix the detection of modules installed from this build.
You can now add the path of local module subdirs from the command line with
make LOCAL_MOD_SUBDIRS= ....
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92083
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Mon, 10 Dec 2007 03:50:38 +0000 (03:50 +0000)]
Put into Makefile.moddir_rules the common instructions used to
generate loadable and embedded module lists.
Individual Makefiles now are a lot simpler, possibly as simple as this:
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
MODULE_PREFIX=cdr_
all: _all
include $(ASTTOPDIR)/Makefile.moddir_rules
and also more flexible because in a single directory we can combine
various types of modules (app_, cdr_, func_, ... ) by simply
listing them in the MODULE_PREFIX variable.
The individual Makefiles can also create list of modules to be
excluded by listing them in the variablel MODULE_EXCLUDE (see an
example in channels/Makefile).
With this change it becomes trivial to integrate a directory with
locally created/modified sources into the main build.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92082
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Mon, 10 Dec 2007 02:06:40 +0000 (02:06 +0000)]
make the install target a bit less noisy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92063
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Mon, 10 Dec 2007 01:54:40 +0000 (01:54 +0000)]
document usage of several exported variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92062
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sun, 9 Dec 2007 22:55:58 +0000 (22:55 +0000)]
add hashtab.c to the list of files deleted
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92042
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sun, 9 Dec 2007 21:32:30 +0000 (21:32 +0000)]
another place where ../ should have been ASTTOPDIR
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92023
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sun, 9 Dec 2007 21:29:37 +0000 (21:29 +0000)]
normalize subdirs' Makefile by using ASTTOPDIR and not .. to reference
the top level directory.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92022
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sun, 9 Dec 2007 16:47:25 +0000 (16:47 +0000)]
Implement the outcome of a discussion on the -dev list re. the use
of DESTDIR and INSTALL_PATH - many thanks to Tzafrir Cohen and
Simon Perreault for extremely useful feedback:
1. comment out the [directories] section the created asterisk.conf ;
you can set the correct defaults at build time using INSTALL_PATH,
so the repetition here is redundant and often wrong.
(The next step now is move asterisk.conf outside the Makefile to
asterisk.conf.sample, because there is little if anything here
that needs to be constructed at build/install time).
2. use DESTDIR?=$(INSTALL_PATH) so you only need to specify a path
once if the two coincide. This should have no ill side effects,
because if you don't specify DESTDIR, you really need
INSTALL_PATH="" to set the correct defaults, and if you specify
DESTDIR the value is not overridden.
The second part required moving the 'export DESTDIR' right after
the assignment to prevent DESTDIR getting set by the export
(this is documented in the Makefile).o hopefully avoid the mistake)$
With this change you can now do something like this from your source tree:
make INSTALL_PATH=/some/place install samples
and then
main/asterisk -vdc
which will pick up the correct config files and libraries from
/some/place - i.e. great for developers!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92002
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sat, 8 Dec 2007 19:06:01 +0000 (19:06 +0000)]
remove unused code, and simplify the logic for #include/#exec
(still a lot of cleanup needed here).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91983
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sat, 8 Dec 2007 18:50:32 +0000 (18:50 +0000)]
Implement comment_buffer and lline_buffer in terms of the ast_str_*() API.
I don't know if comment_buffers etc are actually used at all...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91962
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sat, 8 Dec 2007 18:18:28 +0000 (18:18 +0000)]
unify some common code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91953
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sat, 8 Dec 2007 18:05:42 +0000 (18:05 +0000)]
normalize formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91952
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sat, 8 Dec 2007 17:58:08 +0000 (17:58 +0000)]
document a nice technique to exit from a block in case of errors.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91951
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sat, 8 Dec 2007 03:47:19 +0000 (03:47 +0000)]
a little bit of documentation on how lines are parsed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91931
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sat, 8 Dec 2007 03:27:16 +0000 (03:27 +0000)]
normalize header order, and add a comment on the need
to clean up this file.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91930
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Sat, 8 Dec 2007 03:26:09 +0000 (03:26 +0000)]
some platforms (e.g. FreeBSD4) need netinet/in.h to be included
before arpa/inet.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91929
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Fri, 7 Dec 2007 23:32:09 +0000 (23:32 +0000)]
Merged revisions 91890 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
(closes issue #11273)
........
r91890 | qwell | 2007-12-07 17:29:01 -0600 (Fri, 07 Dec 2007) | 4 lines
We need to make sure we free the input frame if we return a different frame in ast_dsp_process.
Issue 11273, pointed out by dimas, with a patch by eliel.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91891
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Fri, 7 Dec 2007 21:28:49 +0000 (21:28 +0000)]
Update documentation for pbx_lua.
Closes issue #11492, patch by mnicholson.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91832
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 7 Dec 2007 21:25:03 +0000 (21:25 +0000)]
Merged revisions 91830 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91830 | russell | 2007-12-07 15:24:33 -0600 (Fri, 07 Dec 2007) | 5 lines
Make the lock protecting each thread's list of locks it currently holds
recursive. I think that this will fix the situation where some people have
said that "core show locks" locks up the CLI.
(related to issue #11080)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91831
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 7 Dec 2007 21:17:52 +0000 (21:17 +0000)]
Merged revisions 91828 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91828 | russell | 2007-12-07 15:17:24 -0600 (Fri, 07 Dec 2007) | 6 lines
Fix another bug in the DEBUG_THREADS code. The ast_mutex_init() function had
the mutex attribute object marked as static. This means that multiple threads
initializing locks at the same time could step on each other and end up with
improperly initialized locks.
(found when tracking down locking issues related to issue #11080)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91829
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 7 Dec 2007 21:11:44 +0000 (21:11 +0000)]
Merged revisions 91826 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91826 | russell | 2007-12-07 15:11:08 -0600 (Fri, 07 Dec 2007) | 6 lines
I love fixing lock related errors in the lock debugging code. That's about as
ironic as it gets in Asterisk programming land. Anyway, I spotted this bug while
trying to track down why systems are locking up and acting weird in issue #11080.
The mutex attribute object was marked as static in this function when it should
not have been.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91827
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 7 Dec 2007 16:40:41 +0000 (16:40 +0000)]
Merged revisions 91783 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91783 | russell | 2007-12-07 10:38:48 -0600 (Fri, 07 Dec 2007) | 6 lines
* Add channel locking around datastore operations that expect the channel
to be locked.
* Document why we don't record Local channels in the dialed interfaces list.
* Remove the dialed variable as it isn't needed.
* Restructure some code for clarity and coding guidelines stuff
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91784
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Fri, 7 Dec 2007 16:37:36 +0000 (16:37 +0000)]
Fix a small typo in a comment.
Closes issue #11490
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91782
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 7 Dec 2007 16:28:36 +0000 (16:28 +0000)]
Merged revisions 91780 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91780 | russell | 2007-12-07 10:25:25 -0600 (Fri, 07 Dec 2007) | 7 lines
* Add channel locking around datastore operations that expect the channel
to be locked.
* Document why we don't record Local channels in the dialed interfaces list.
* Handle memory allocation failure.
* Remove the dialed variable, as it wasn't actually needed.
* Tweak some formatting to conform to coding guidelines.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91781
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Fri, 7 Dec 2007 16:11:05 +0000 (16:11 +0000)]
Add count of total number of calls processed by asterisk during it's lifetime.
Add number of total calls and current calls to SNMP.
Closes issue #10057, patch by jcmoore.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91779
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 7 Dec 2007 16:11:00 +0000 (16:11 +0000)]
Merged revisions 91777 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91777 | russell | 2007-12-07 10:08:35 -0600 (Fri, 07 Dec 2007) | 6 lines
* Add a bit more of a verbose comment as to why a hangup frame needs to be
queued up if autoservice gets a NULL return from ast_read().
* Make the process of queueing the hangup frame more efficient by putting the
frame where it is going to end up and avoiding some locking and extra memory
allocations and freeing.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91778
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 7 Dec 2007 15:40:59 +0000 (15:40 +0000)]
Merged revisions 91737 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91737 | mmichelson | 2007-12-07 09:39:58 -0600 (Fri, 07 Dec 2007) | 7 lines
Hangups that happen during autoservice were not processed appropriately. This is
because a hangup actually causes a NULL frame to be received, not a hangup frame.
Queueing a hangup if we receive a NULL frame during autoservice corrects this problem
(closes issue #11467, reported by jmls, patched by me)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91738
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 7 Dec 2007 02:52:38 +0000 (02:52 +0000)]
Merged revisions 91693 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91693 | russell | 2007-12-06 20:51:22 -0600 (Thu, 06 Dec 2007) | 2 lines
Don't unlock the dialed_interfaces list until we're done messing with the iterator.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91700
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 7 Dec 2007 02:43:21 +0000 (02:43 +0000)]
Merged revisions 91677 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91677 | russell | 2007-12-06 20:38:40 -0600 (Thu, 06 Dec 2007) | 4 lines
Allow dialing local channels from Queue() and Dial() again. There was a slight
flaw in the code to prevent call forwards from looping that caused this problem.
(related to issue #11486)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91678
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 7 Dec 2007 02:21:07 +0000 (02:21 +0000)]
Merged revisions 91675 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91675 | russell | 2007-12-06 20:19:45 -0600 (Thu, 06 Dec 2007) | 7 lines
Fix in an issue in the call forwarding handling code that was causing crashes
on every call into a queue. I'm not entirely sure about the logic in this part
of the code, so I want to look at it some more tomorrow. However, this makes
it safe and keeps it from crashing.
(closes issue #11486, reported by adamg, patched by me)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91676
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 7 Dec 2007 00:58:52 +0000 (00:58 +0000)]
Merged revisions 91637 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91637 | tilghman | 2007-12-06 18:52:17 -0600 (Thu, 06 Dec 2007) | 5 lines
At the end of a call, when we're reporting, RTCP may already be partially torn down, so check for NULL dereference
Reported by: blitzrage
Patch by: tilghman
(Closes issue #11450)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91638
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 6 Dec 2007 23:47:07 +0000 (23:47 +0000)]
Add a manager event for PRI events: this will help manager users detect when a D-channel goes down
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91618
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 6 Dec 2007 23:27:46 +0000 (23:27 +0000)]
If duration or billsec are not yet calculated, calculate them on demand.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91617
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Thu, 6 Dec 2007 21:57:28 +0000 (21:57 +0000)]
Fix a problem with quoting in sqlite3 cdr module..
Closes issue #11070, patch by seanbright.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91598
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 6 Dec 2007 21:03:15 +0000 (21:03 +0000)]
Handle allocation failure of the heard and deleted arrays of the vm_state.
(closes issue #11408, reported and patched by jaroth)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91579
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 6 Dec 2007 20:52:26 +0000 (20:52 +0000)]
Merged revisions 90166,90736,90753 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r90166 | tilghman | 2007-11-29 13:48:10 -0600 (Thu, 29 Nov 2007) | 3 lines
Properly escape cdr->src and cdr->dst and ensure we use thread-safe escaping
(Fixes AST-2007-026)
........
r90736 | tilghman | 2007-12-03 17:23:55 -0600 (Mon, 03 Dec 2007) | 5 lines
If both dbhost and dbsock were not set, a NULL deref could result
Reported by: xrg
Patch by: tilghman
(Closes issue #11387)
........
r90753 | tilghman | 2007-12-03 17:50:51 -0600 (Mon, 03 Dec 2007) | 5 lines
Solaris requires the inclusion of sys/loadavg.h for getloadavg().
Reported by: snuffy
Patch by: snuffy,tilghman
(Closes issue #11430)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91561
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 6 Dec 2007 19:12:54 +0000 (19:12 +0000)]
Blocked revisions 91501 via svnmerge
........
r91501 | russell | 2007-12-06 13:11:35 -0600 (Thu, 06 Dec 2007) | 5 lines
Add a new module flag to indicate that a build sum is present. Modules built
against older Asterisk 1.4 headers will now load properly with just a warning
indicating that they are old and may cause problems.
(patch by paravoid)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91502
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Fredrickson [Thu, 6 Dec 2007 16:54:08 +0000 (16:54 +0000)]
Make sure we clear these flags when libpri is not installed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91472
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 6 Dec 2007 16:51:09 +0000 (16:51 +0000)]
Merged revisions 91450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91450 | file | 2007-12-06 12:49:42 -0400 (Thu, 06 Dec 2007) | 6 lines
Fix various in the udptl implementation. It could return empty modem frames, have an incorrect sequence number on packets, and display the wrong sequence number in the debug messages.
(closes issue #11228)
Reported by: Cache
Patches:
udptl-4.patch uploaded by dimas (license 88)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91458
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 6 Dec 2007 16:18:49 +0000 (16:18 +0000)]
Merged revisions 91439 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91439 | file | 2007-12-06 12:14:26 -0400 (Thu, 06 Dec 2007) | 4 lines
Add support for accepting and sending T.38 in the initial INVITE.
(closes issue #9402)
Reported by: thdei
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91440
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 15:56:58 +0000 (15:56 +0000)]
Adding documentation for the massive manager changes to manager
version 1.1 - hopefully a more consistent manager interface.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91438
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 15:50:43 +0000 (15:50 +0000)]
- The Ping Action
- Now use Response: success
- New header "Ping: pong" :-)
- The Events action
- Now use Response: Success
- The new status is reported as "Events: On" or "Events: Off"
- Report if manager is enabled in the reload event
Small cleanups...
From moremanager
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91420
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 15:29:05 +0000 (15:29 +0000)]
Changes to manager events in channel.c
- Newstate event
- Now has "CalleridNum" for numeric caller id, like Newchannel
- The event does not send "<unknown>" for unknown caller IDs just an empty field
- Newstate and Newchannel events
- these have changed headers
"State" -> ChannelStateDesc Text based channel state
-> ChannelState Numeric channel state
- The events does not send "<unknown>" for unknown caller IDs just an empty field
- Newstate event
- Now has "CalleridNum" for numeric caller id, like Newchannel
- The event does not send "<unknown>" for unknown caller IDs just an empty field
- Link and Unlink events
- The "Link" and "Unlink" bridge events in channel.c are now renamed to "Bridge"
- The link state is in the bridgestate: header as "Link" or "Unlink"
- For channel.c bridges, "Bridgetype: core" is added. This opens up for
bridge events in rtp.c and channel drivers
- The "Rename" manager event has a renamed header, to use the same
terminology for the current channel as other events
- Oldname -> Channel
(Moremanager)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91409
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 15:12:18 +0000 (15:12 +0000)]
New manager event when a channel changes account code.
Maybe belongs in the new cdr category?
---moremanager---
Event: NewAccountCode
Modules: cdr.c
Purpose: To report a change in account code for a live channel
Example:
Event: NewAccountCode
Privilege: call,all
Channel: SIP/olle-
01844600
Uniqueid:
1177530895.2
AccountCode: Stinas account
1234848484
OldAccountCode: Olles Account 12345
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91408
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 15:04:34 +0000 (15:04 +0000)]
- Dial event
- Event Dial has new headers, to comply with other events
- Source -> Channel Channel name (caller)
- SrcUniqueID -> UniqueID Uniqueid
(new) -> Dialstring Dialstring in app data
(moremanager)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91407
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 14:55:31 +0000 (14:55 +0000)]
Adding small missing but important comma...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91406
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 14:40:44 +0000 (14:40 +0000)]
A big oops...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91388
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 14:36:54 +0000 (14:36 +0000)]
The MeetmeJoin now has caller ID name and Caller ID number fields (like MeetMeLeave)
(Moremanager)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91387
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 14:33:14 +0000 (14:33 +0000)]
Update ZapShowChannels so that you can specify one channel.
Action ZapShowChannels
Header changes
- Channel: -> ZapChannel
For active channels, the Channel: and Uniqueid: headers are added
You can now add a "ZapChannel: " argument to zapshowchannels actions
to only get information about one channel.
From the moremanager branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91386
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 14:29:20 +0000 (14:29 +0000)]
Doxygen updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91385
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 14:23:12 +0000 (14:23 +0000)]
Merged revisions 91366 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91366 | oej | 2007-12-06 13:54:11 +0100 (Tor, 06 Dec 2007) | 4 lines
Make sure logger is reloaded at general reload in the cli.
(Discovered during Asterisk training in Portugal)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91384
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 10:29:02 +0000 (10:29 +0000)]
Change description of new manager command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91348
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 6 Dec 2007 10:27:54 +0000 (10:27 +0000)]
Add manager command for showing all current channels.
Thanks, eliel, for writing the original patch. Modified by me to follow
other manager events and the new "moremanager" style.
(closes issue #11478)
Reported by: eliel
Patches:
manager.c.patch uploaded by eliel (license 64)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91347
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 6 Dec 2007 04:37:36 +0000 (04:37 +0000)]
Instead of iterating through the entire epoll events array just look at the ones that will actually contain data. (props to eliel on IRC for this)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91328
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Wed, 5 Dec 2007 22:57:57 +0000 (22:57 +0000)]
Merged revisions 91292 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91292 | mmichelson | 2007-12-05 16:57:13 -0600 (Wed, 05 Dec 2007) | 3 lines
Reverting extra stuff I didn't mean to commit
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91293
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Wed, 5 Dec 2007 22:55:49 +0000 (22:55 +0000)]
Merged revisions 91273 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91273 | mmichelson | 2007-12-05 16:35:52 -0600 (Wed, 05 Dec 2007) | 11 lines
The 'G' option for Dial() did not properly handle the case where only a label was
provided. This was due to the fact that the answering channel did not have an extension
set, so ast_parseable_goto would fail. This fix eliminates the call to ast_parseable_goto
on the answering channel since it is a wasteful call. The answering channel and the calling
channel are both directed to the same extension and context, just different priorities, so
we can just copy the values from the calling channel to the answering channel and increment
the answering channel's priority.
(closes issue #11382, reported by jon, patch by me with correction by jon)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91291
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 5 Dec 2007 21:46:42 +0000 (21:46 +0000)]
Merged revisions 91237 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91237 | tilghman | 2007-12-05 15:38:13 -0600 (Wed, 05 Dec 2007) | 2 lines
Upgrade to the latest version of extra sounds
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91238
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 5 Dec 2007 17:49:03 +0000 (17:49 +0000)]
Merged revisions 91192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91192 | russell | 2007-12-05 11:31:42 -0600 (Wed, 05 Dec 2007) | 10 lines
Make the lock in the threadstorage debugging code untracked to avoid a deadlock
on thread destruction.
(closes issue #11207)
Reported by: ys
Patches:
threadstorage.c.diff uploaded by ys (license 281)
Also fixes an open bug report: (closes issue #11446)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91197
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 5 Dec 2007 17:44:59 +0000 (17:44 +0000)]
Resolve compiler warnings.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91193
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 5 Dec 2007 16:46:47 +0000 (16:46 +0000)]
Change cdr_manager to use a "CDR" level, rather than the (overcrowded) "call" level.
(Closes issue #11015)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91173
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 5 Dec 2007 16:25:52 +0000 (16:25 +0000)]
Added multiple name listing. (Closes issue #10413)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91172
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 5 Dec 2007 16:14:06 +0000 (16:14 +0000)]
Remove second prefix line. Only need it documented once in the same file.
(closes issue #11472)
Reported by: eserra
Patches:
http.conf.sample.diff uploaded by eserra (license 45)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91171
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 5 Dec 2007 13:09:47 +0000 (13:09 +0000)]
Rename "username" to "defaultuser" to match with "defaultip".
"Username" still works, but is deprecated.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91152
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 5 Dec 2007 12:58:12 +0000 (12:58 +0000)]
Remove the cseqs from "sip show channel" and make more place for the call ID.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91151
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Wed, 5 Dec 2007 03:48:53 +0000 (03:48 +0000)]
revert part of my changes from earlier today since this code is no longer dependent on libpri.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91133
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 5 Dec 2007 03:34:51 +0000 (03:34 +0000)]
Use ast_free() instead of free().
(closes issue #11309)
Reported by: Laureano
Patches:
res_odbc.c.patch uploaded by Laureano (license 265)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91131
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 5 Dec 2007 01:59:32 +0000 (01:59 +0000)]
Merged revisions 91070 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91070 | russell | 2007-12-04 18:35:31 -0600 (Tue, 04 Dec 2007) | 11 lines
Fix some crashes in chan_iax2 that were reported as happening on Mac systems.
It turns out that the problem was the Mac version of the ast_atomic_fetchadd_int()
function. The Mac atomic add function returns the _new_ value, while this function
is supposed to return the old value. So, the crashes happened on unreferencing
objects. If the reference count was decreased to 1, ao2_ref() thought that it
had been decreased to zero, and called the destructor. However, there was still
an outstanding reference around.
(closes issue #11176)
(closes issue #11289)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91114
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 5 Dec 2007 00:49:19 +0000 (00:49 +0000)]
Merged revisions 91074 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r91074 | russell | 2007-12-04 18:48:47 -0600 (Tue, 04 Dec 2007) | 4 lines
When DEBUG_THREADS is enabled, we only have the details about who is holding
a lock that we are waiting on for a mutex, not rwlocks. This should fix the
problem where people have reported "core show locks" crashing sometimes.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91077
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 4 Dec 2007 23:57:31 +0000 (23:57 +0000)]
Fix mwimonitornotify on reload ... again. This option was only read at startup
so a reload would erase it and not reset it. (pointed out by tzafrir)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91069
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 4 Dec 2007 23:47:28 +0000 (23:47 +0000)]
Blocked revisions 91032 via svnmerge
........
r91032 | russell | 2007-12-04 17:46:40 -0600 (Tue, 04 Dec 2007) | 5 lines
Modify file.h to maintain API compatibility with earlier versions. If a recent
compiler is being used, then a warning will show up for any modules still using
the old name "private" instead of "_private".
(patch suggested by paravoid)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91033
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 4 Dec 2007 23:01:15 +0000 (23:01 +0000)]
Fix the build of astman. Any file that includes any asterisk sub-headers
needs to first include asterisk.h.
(closes issue #11394)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91029
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Fredrickson [Tue, 4 Dec 2007 22:44:01 +0000 (22:44 +0000)]
Don't error when we don't have libpri installed with libss7 support. Also, print the debug message anyway if we can't find the right PRI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91012
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 4 Dec 2007 22:07:35 +0000 (22:07 +0000)]
Merged revisions 90967 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r90967 | russell | 2007-12-04 13:57:39 -0600 (Tue, 04 Dec 2007) | 7 lines
Make some changes to some additions I made recently for doing channel autoservice
when looking up extensions. This code was added to handle the case where a
dialplan switch was in use that could block for a long time. However, the way
that I added it, it did this for all extension lookups. However, lookups in the
in-memory tree of extensions should _not_ take long enough to matter. So, move
the autoservice stuff to be only around executing a switch.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91011
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 4 Dec 2007 22:02:48 +0000 (22:02 +0000)]
Fix resetting mwimonitornotify on reload. I guess I only added this line in my head.
(thanks to tzafrir for pointing it out)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91010
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 4 Dec 2007 21:46:27 +0000 (21:46 +0000)]
Coding guidelines fixups
(Closes issue #11412)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90993
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 4 Dec 2007 21:23:30 +0000 (21:23 +0000)]
Add manager action 'sipshowregistry'.
Closes issue #11464, patch by eliel.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90991
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 4 Dec 2007 19:08:30 +0000 (19:08 +0000)]
Add support for monitoring MWI on FXO lines.
This introduces two new options for zapata.conf: mwimonitor and mwimonitornotify.
The mwimonitor option enables MWI monitoring. When the MWI state on a line changes,
then the script specified by mwimonitornotify will be executed for custom handling
of the state change, similar to the externnotify option of voicemail.conf.
Also, when the MWI state on an FXO line changes, an internal Asterisk event is
generated to indicate the new state of the associated mailbox. That may, any
module that cares about MWI information will get notified and can handle it
just as if app_voicemail had sent this notification.
(BE-253, original patch from markster, with some minor modifications by me to
add comments, documentation, and internal event support)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90949
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 4 Dec 2007 18:29:35 +0000 (18:29 +0000)]
Kevin suggested doing the reverse of my last commit, since imap_retrieve_file
does not modify the contents of the "mailbox" string. In other words, I'm changing
the imap_retrieve_file function to take a const char* as the third argument so that I
don't need to cast const char*'s as char*'s to suppress compiler warnings.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90930
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 4 Dec 2007 18:15:17 +0000 (18:15 +0000)]
Add Makefile alias target 'pdf' which does the same thing as asterisk.pdf.
Issue 11452, reported by blitzrage.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90929
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 4 Dec 2007 18:14:08 +0000 (18:14 +0000)]
Suppress a compiler warning due to discarding a "const" qualifier
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90928
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 4 Dec 2007 18:09:28 +0000 (18:09 +0000)]
Fix build, that some people aren't seeing for some reason.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90927
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 4 Dec 2007 17:51:59 +0000 (17:51 +0000)]
Wrong locking style got merged from 1.4 to trunk. My mistake.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90899
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 4 Dec 2007 17:40:29 +0000 (17:40 +0000)]
fix build of this module when libpri and/or libss7 are or are not present
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90880
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 4 Dec 2007 17:38:51 +0000 (17:38 +0000)]
Merged revisions 90876 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
(closes issue #11454)
........
r90876 | qwell | 2007-12-04 11:28:08 -0600 (Tue, 04 Dec 2007) | 4 lines
If we fail to create a channel after allocating a timing fd, we need to make sure to close it.
Issue 11454, patch by eliel.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90879
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 4 Dec 2007 17:36:59 +0000 (17:36 +0000)]
Fix a silly little typo :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90878
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 4 Dec 2007 17:35:40 +0000 (17:35 +0000)]
Fix build in trunk. This was fixed in 1.4, but blocked in trunk since this hadn't been merged yet.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90877
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 4 Dec 2007 17:08:36 +0000 (17:08 +0000)]
Merged revisions 90735 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r90735 | mmichelson | 2007-12-03 17:12:17 -0600 (Mon, 03 Dec 2007) | 22 lines
A big one...
This is the merge of the forward-loop branch. The main change here is that call-forwards can no longer loop.
This is accomplished by creating a datastore on the calling channel which has a linked list of all devices
dialed. If a forward happens, then the local channel which is created inherits the datastore. If, through this
progression of forwards and datastore inheritance, a device is attempted to be dialed a second time, it will simply
be skipped and a warning message will be printed to the CLI. After the dialing has been completed, the datastore
is detached from the channel and destroyed.
This change also introduces some side effects to the code which I shall enumerate here:
1. Datastore inheritance has been backported from trunk into 1.4
2. A large chunk of code has been removed from app_dial. This chunk is the section of code
which handles the call forward case after the channel has been requested but before it has
been called. This was removed because call-forwarding still works fine without it, it makes the
code less error-prone should it need changing, and it made this set of changes much less painful
to just have the forwarding handled in one place in each module.
3. Two new files, global_datastores.h and .c have been added. These are necessary since the datastore
which is attached to the channel may be created and attached in either app_dial or app_queue, so they
need a common place to find the datastore info. This approach was taken in case similar datastores are
needed in the future, there will be a common place to add them.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90873
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 4 Dec 2007 15:16:03 +0000 (15:16 +0000)]
(closes issue #11431)
Reported by: Laureano
Patches:
app_queue.c.patch uploaded by Laureano (license 265)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90854
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 4 Dec 2007 15:07:53 +0000 (15:07 +0000)]
(closes issue #11422)
Reported by: eliel
Patches:
core.show.hint.patch uploaded by eliel (license 64)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90853
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 4 Dec 2007 15:02:48 +0000 (15:02 +0000)]
(closes issue #11462)
Reported by: eliel
Patches:
CHANGES.patch uploaded by eliel (license 64)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90852
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 4 Dec 2007 15:01:57 +0000 (15:01 +0000)]
Pass the Asterisk version to AGI scripts as part of the initial dump of info
Reported by: acunningham
Patch by: acunningham
(Closes issue #11398)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90851
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Tue, 4 Dec 2007 11:50:05 +0000 (11:50 +0000)]
fix build on cygwin
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90834
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 4 Dec 2007 05:31:00 +0000 (05:31 +0000)]
Blocked revisions 90798 via svnmerge
........
r90798 | file | 2007-12-04 01:29:33 -0400 (Tue, 04 Dec 2007) | 2 lines
Fix build issue on the build cluster.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90799
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 3 Dec 2007 23:52:23 +0000 (23:52 +0000)]
Merged revisions 90753 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r90753 | tilghman | 2007-12-03 17:50:51 -0600 (Mon, 03 Dec 2007) | 5 lines
Solaris requires the inclusion of sys/loadavg.h for getloadavg().
Reported by: snuffy
Patch by: snuffy,tilghman
(Closes issue #11430)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90760
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Mon, 3 Dec 2007 23:49:40 +0000 (23:49 +0000)]
A small fix from snuffy
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90746
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Mon, 3 Dec 2007 23:48:04 +0000 (23:48 +0000)]
Add manager events for when a monitor is started or stopped.
Closes issue #10191, patch by dgradecak.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90738
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 3 Dec 2007 23:29:57 +0000 (23:29 +0000)]
Merged revisions 90736 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r90736 | tilghman | 2007-12-03 17:23:55 -0600 (Mon, 03 Dec 2007) | 5 lines
If both dbhost and dbsock were not set, a NULL deref could result
Reported by: xrg
Patch by: tilghman
(Closes issue #11387)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90737
65c4cc65-6c06-0410-ace0-
fbb531ad65f3