Archived
14
0
Fork 0
Commit graph

16358 commits

Author SHA1 Message Date
mmichelson
f4087e2481 Bump a LOG_NOTICE message to LOG_DEBUG since it appears
once for every bridged call



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136660 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 20:25:43 +00:00
mmichelson
af03e5ed89 Don't allow Answer() to accept a negative argument.
Negative argument means an infinite delay and we
don't want that.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136635 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 19:58:32 +00:00
mmichelson
0be40915ff Fix a calculation error I had made in the poll. The poll
would reset to 500 ms every time a non-voice frame
was received. The total time we poll should be 500 ms, so
now we save the amount of time left after the poll returned
and use that as our argument for the next call to poll



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136633 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 19:54:27 +00:00
mmichelson
c1fae8d7c0 Scrap the 500 ms delay when Asterisk auto-answers a channel.
Instead, poll the channel until receiving a voice frame. The
cap on this poll is 500 ms.

The optional delay is still allowable in the Answer() application,
but the delay has been moved back to its original position, after
the call to the channel's answer callback. The poll for the voice
frame will not happen if a delay is specified when calling Answer().

(closes issue #12708)
Reported by: kactus



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136631 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 19:36:46 +00:00
rmudgett
c93982a3c7 Merged revisions 136241 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r136241 | rmudgett | 2008-08-06 16:18:53 -0500 (Wed, 06 Aug 2008) | 5 lines

*  The allowed_bearers setting in misdn.conf misspelled one
of its options: digital_restricted.
*  Fixed some other spelling errors and typos.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136594 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 19:01:03 +00:00
kpfleming
24e4321fc2 Blocked revisions 136560 via svnmerge
........
r136560 | kpfleming | 2008-08-07 13:25:31 -0500 (Thu, 07 Aug 2008) | 3 lines

change the required dependency for codec_dahdi to only be satisfied by DAHDI and not Zaptel, as the new transcoder interface is only in DAHDI


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136562 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 18:25:52 +00:00
kpfleming
75edfd23ce Merged revisions 136541 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136542 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 17:44:20 +00:00
kpfleming
2bbbc5c33a stop using deprecated API call
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136504 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 17:26:23 +00:00
tilghman
9107af45fc Merged revisions 136488 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r136488 | tilghman | 2008-08-07 11:50:47 -0500 (Thu, 07 Aug 2008) | 7 lines

Update persistent state on all exit conditions.
(closes issue #12916)
 Reported by: sgenyuk
 Patches: 
       app_queue.patch.txt uploaded by neutrino88 (license 297)
 Tested by: sgenyuk, aragon

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136489 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 16:55:57 +00:00
kpfleming
7827c01aa1 Blocked revisions 136458 via svnmerge
........
r136458 | kpfleming | 2008-08-07 11:11:17 -0500 (Thu, 07 Aug 2008) | 3 lines

work around a bug in gcc-4.2.3 that incorrectly ignores the casting away of 'const' for pointers when the developer knows it is safe to do so


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136481 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 16:30:23 +00:00
kpfleming
394e8a3f53 fix some format strings to actually compile without errors
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136477 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 16:29:08 +00:00
seanbright
f21f6ae82a More merges from resolve-shadow warnings:
utils/
  codecs/
  and a change I missed from formats/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136408 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 15:16:48 +00:00
tilghman
777979c9d9 Fix runtime symbol error
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136406 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 15:10:53 +00:00
kpfleming
74e3e06ffb Blocked revisions 136404 via svnmerge
........
r136404 | kpfleming | 2008-08-07 10:07:12 -0500 (Thu, 07 Aug 2008) | 2 lines

remove config.cache during distclean, in case the user is using autoconf caching

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136405 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 15:07:39 +00:00
seanbright
2b497ddbc7 Merge in a few more changes. This time the include/ directory.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136402 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 14:36:59 +00:00
tilghman
946c1d9330 Blocked revisions 136348 via svnmerge
........
r136348 | tilghman | 2008-08-06 20:31:27 -0500 (Wed, 06 Aug 2008) | 3 lines

Also, parse useincomingcalleridonzaptransfer (and add appropriate deprecation
warnings).

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136349 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 01:32:10 +00:00
tilghman
48aeaf434a Blocked revisions 136304 via svnmerge
........
r136304 | tilghman | 2008-08-06 20:17:14 -0500 (Wed, 06 Aug 2008) | 3 lines

For backwards compatibility with previous 1.4 versions which used "zapchan"
in users.conf, ensure that we still support it.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136305 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 01:18:03 +00:00
seanbright
6fee1d1683 Continue merging in changes from resolve-shadow-warnings. funcs/ this time.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136302 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 01:07:40 +00:00
seanbright
4965ac5e36 More from the resolve-shadow-warnings branch. This time the cdr/ directory.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136300 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 00:52:23 +00:00
seanbright
71107a3e7c Start moving in changes from my resolve-shadow-warnings branch. Going to do
this in pieces so the diffs are a little bit smaller and more reviewable.

pbx/ and formats/ first.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136298 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07 00:44:55 +00:00
dhubbard
156764ae98 move taskprocessor CLI commands into the core namespace
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136245 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 21:22:56 +00:00
mmichelson
7e11f61699 Blocked revisions 136238 via svnmerge
........
r136238 | mmichelson | 2008-08-06 15:42:15 -0500 (Wed, 06 Aug 2008) | 4 lines

We only need to unregister the QueueStatus manager
command once on an unload


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136239 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 20:43:58 +00:00
tilghman
be2093ef29 Merged revisions 136190 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r136190 | tilghman | 2008-08-06 15:14:54 -0500 (Wed, 06 Aug 2008) | 4 lines

-C option takes a filename, not a directory path.
(closes issue #13007)
 Reported by: klaus3000

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136191 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 20:15:34 +00:00
tilghman
b81d546b7b Janitor ast_str project
(closes issue #13058)
 Reported by: pputman
 Patches: 
       app_meetme_aststr2.patch uploaded by pputman (license 81)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136141 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 17:33:48 +00:00
tilghman
a9e48cc3f2 Persist DIALGROUP() values in astdb
(closes issue #13138)
 Reported by: Corydon76
 Patches: 
       20080725__bug13138.diff.txt uploaded by Corydon76 (license 14)
 Tested by: pj


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136112 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 16:58:42 +00:00
mmichelson
c96a706021 Merged revisions 136062 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r136062 | mmichelson | 2008-08-06 10:58:40 -0500 (Wed, 06 Aug 2008) | 16 lines

Since adding the AST_CONTROL_SRCUPDATE frame type,
there are places where ast_rtp_new_source may be called
where the tech_pvt of a channel may not yet have an
rtp structure allocated. This caused a crash in chan_skinny,
which was fixed earlier, but now the same crash has been 
reported against chan_h323 as well. It seems that the best 
solution is to modify ast_rtp_new_source to not attempt to 
set the marker bit if the rtp structure passed in is NULL.

This change to ast_rtp_new_source also allows the removal
of what is now a redundant pointer check from chan_skinny.

(closes issue #13247)
Reported by: pj


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136063 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 15:59:29 +00:00
tilghman
c64707ef77 Use a dynamic buffer for rendered SQL, instead of hardcoding 2048 bytes. Also,
switch to using RWLISTs for the linked list of queries.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136034 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 14:51:51 +00:00
oej
59736ea856 - Formatting
- Changing debug messages from VERBOSE to DEBUG channel
- Adding a few todo's
- Adding a few more "XMPP"'s to compliment Jabber...



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136005 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 13:34:08 +00:00
tilghman
c29b0e1c06 Merged revisions 135949 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135949 | tilghman | 2008-08-05 22:53:36 -0500 (Tue, 05 Aug 2008) | 4 lines

Fix a longstanding bug in channel walking logic, and fix the explanation to
make sense.
(Closes issue #13124)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135950 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 03:55:49 +00:00
tilghman
aab2719368 Merged revisions 135915 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135915 | tilghman | 2008-08-05 22:24:56 -0500 (Tue, 05 Aug 2008) | 4 lines

Since powerof() can return an error condition, it's foolhardy not to detect and
deal with that condition.
(Related to issue #13240)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135938 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 03:29:42 +00:00
tilghman
ae6749415a Merged revisions 135899 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135899 | tilghman | 2008-08-05 22:02:59 -0500 (Tue, 05 Aug 2008) | 4 lines

1) Bugfix for debugging code
2) Reduce compiler warnings for another section of debugging code
(Closes issue #13237)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135900 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 03:04:01 +00:00
mmichelson
18d060ec8d Merged revisions 135841,135847,135850 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135841 | mmichelson | 2008-08-05 19:25:10 -0500 (Tue, 05 Aug 2008) | 27 lines

Merging the issue11259 branch.

The purpose of this branch was to take into account
"burps" which could cause jitterbuffers to misbehave.
One such example is if the L option to Dial() were used
to inject audio into a bridged conversation at regular
intervals. Since the audio here was not passed through
the jitterbuffer, it would cause a gap in the jitterbuffer's
timestamps which would cause a frames to be dropped for a 
brief period.

Now ast_generic_bridge will empty and reset the jitterbuffer
each time it is called. This causes injected audio to be handled
properly.

ast_generic_bridge also will empty and reset the jitterbuffer
if it receives an AST_CONTROL_SRCUPDATE frame since the change
in audio source could negatively affect the jitterbuffer.

All of this was made possible by adding a new public API call
to the abstract_jb called ast_jb_empty_and_reset.

(closes issue #11259)
Reported by: plack
Tested by: putnopvut


........
r135847 | mmichelson | 2008-08-05 19:27:54 -0500 (Tue, 05 Aug 2008) | 4 lines

Revert inadvertent changes to app_skel that occurred when
I was testing for a memory leak


........
r135850 | mmichelson | 2008-08-05 19:29:54 -0500 (Tue, 05 Aug 2008) | 3 lines

Remove properties that should not be here


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135851 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-06 00:30:53 +00:00
murf
e44c06e6c5 Merged revisions 135799 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135799 | murf | 2008-08-05 17:13:20 -0600 (Tue, 05 Aug 2008) | 34 lines

(closes issue #12982)
Reported by: bcnit
Tested by: murf

I discovered that also, in the previous bug fixes and changes,
the cdr.conf 'unanswered' option is not being obeyed, so
I fixed this.

And, yes, there are two 'answer' times involved in this
scenario, and I would agree with you, that the first 
answer time is the time that should appear in the CDR.
(the second 'answer' time is the time that the bridge
was begun).

I made the necessary adjustments, recording the first
answer time into the peer cdr, and then using that to
override the bridge cdr's value.

To get the 'unanswered' CDRs to appear, I purposely
output them, using the dial cmd to mark them as
DIALED (with a new flag), and outputting them if
they bear that flag, and you are in the right mode.

I also corrected one small mention of the Zap device
to equally consider the dahdi device.

I heavily tested 10-sec-wait macros in dial, and
without the macro call; I tested hangups while the
macro was running vs. letting the macro complete
and the bridge form. Looks OK. Removed all the
instrumentation and debug.



........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135821 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05 23:45:32 +00:00
tilghman
008db88c65 Merged revisions 135747 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135747 | tilghman | 2008-08-05 16:34:46 -0500 (Tue, 05 Aug 2008) | 9 lines

In a conversion to use ast_strlen_zero, the meaning of the flag IAX_HASCALLERID
was perverted.  This change reverts IAX2 to the original meaning, which was,
that the callerid set on the client should be overridden on the server, even if
that means the resulting callerid is blank.  In other words, if you set
"callerid=" in the IAX config, then the callerid should be overridden to blank,
even if set on the client.  Note that there's a distinction, even on realtime,
between the field not existing (NULL in databases) and the field existing, but
set to blank (override callerid to blank).

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135748 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05 21:37:35 +00:00
tilghman
52a47a16b5 Add '+=' append operator to configuration files.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135717 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05 18:25:16 +00:00
kpfleming
d5a8a002db datastore inheritance is a channel feature, so move this definition back
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135681 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05 17:05:34 +00:00
kpfleming
0891b8a53c make datastore creation and destruction a generic API since it is not really channel related, and add the ability to add/find/remove datastores to manager sessions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135680 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05 16:56:11 +00:00
tilghman
6c7e27ae25 Always output a version string, even when we can't figure out what we are.
(Closes issue #13223)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135648 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05 15:30:23 +00:00
seanbright
4c8b97a037 Merged revisions 135597 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135597 | seanbright | 2008-08-05 09:25:00 -0400 (Tue, 05 Aug 2008) | 1 line

Use PATH_MAX for filenames
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135598 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05 13:26:34 +00:00
russell
d263308ab2 Merged revisions 135536 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135536 | russell | 2008-08-04 15:15:03 -0500 (Mon, 04 Aug 2008) | 2 lines

fix a config sample typo

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135537 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-04 20:15:27 +00:00
tilghman
24dbdf83ca Rename Mandrake scripts to Mandriva
(Closes issue #13221)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135485 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-04 17:12:15 +00:00
tilghman
a764d7e91f Merged revisions 135482 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135482 | tilghman | 2008-08-04 12:07:52 -0500 (Mon, 04 Aug 2008) | 2 lines

Define ASTSBINDIR for script
(Closes issue #13221)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135483 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-04 17:08:42 +00:00
tilghman
cc8c23c149 Merged revisions 135479 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135479 | tilghman | 2008-08-04 11:56:19 -0500 (Mon, 04 Aug 2008) | 6 lines

Memory leak on unload
(closes issue #13231)
 Reported by: eliel
 Patches: 
       app_voicemail.leak.patch uploaded by eliel (license 64)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135480 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-04 16:58:29 +00:00
tilghman
d328d088cf HTTP module memory leaks
(closes issue #13230)
 Reported by: eliel
 Patches: 
       res_http_post_leak.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135476 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-04 16:34:04 +00:00
russell
354a5c2325 Merged revisions 135473 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r135473 | russell | 2008-08-04 11:26:17 -0500 (Mon, 04 Aug 2008) | 2 lines

Add a minor clarification to the documentation of mohinterpret and mohsuggest

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135474 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-04 16:28:07 +00:00
russell
51d91542bb Be explicit that we don't want a result from this callback. The callback would
never indicate a match, so nothing would have been returned anyway, but it was
still a poor example of proper usage.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135439 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-04 15:02:12 +00:00
seanbright
d4ec4c4c3a Merge in changes that allow Asterisk to be built against the Hoard
memory allocator.  See doc/hoard.txt for more details.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135405 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-03 16:14:14 +00:00
mvanbaak
05e481bb17 whitespace fixes only.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135373 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-03 00:03:53 +00:00
mvanbaak
3ee450b738 Dont coredump on register of non-configured devices
(closes issue #13224)
Reported by: mvanbaak
Patches:
      noncon.diff uploaded by wedhorn (license 30) with whitespace fixes by me
Tested by: wedhorn, mvanbaak


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135371 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-03 00:00:06 +00:00
mvanbaak
145c42dfdb make this work again, and not segfault on device registration
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135332 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-02 13:56:00 +00:00