Archived
14
0
Fork 0
Commit graph

13890 commits

Author SHA1 Message Date
russell
45c611df49 Merged revisions 89844 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89844 | russell | 2007-11-27 17:21:13 -0600 (Tue, 27 Nov 2007) | 3 lines

Instead of depending on the return value of ast_true(), explicitly set the
eventwhencalled variable to 1.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89847 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 23:21:38 +00:00
russell
a84d13a66f Merged revisions 89839 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89839 | russell | 2007-11-27 17:16:00 -0600 (Tue, 27 Nov 2007) | 2 lines

Don't start/stop autoservice in pbx_extension_helper() unless a channel exists

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89840 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 23:17:36 +00:00
mmichelson
c6423f296f Merged revisions 89837 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89837 | mmichelson | 2007-11-27 17:10:05 -0600 (Tue, 27 Nov 2007) | 12 lines

Two changes with regards to the 'eventwhencalled' option of queues.conf

1) Due to some signed vs. unsigned silliness, setting 'eventwhencalled' to 
   'vars' or 'yes' did exactly the same thing. Thus the sign change of the
   ast_true call.

2) The vars2manager function overwrote a \n for every channel variable it parsed, resulting
   in bizarre output for the channel variables. This patch remedies this.

(related to issue #11385, however I'm not sure if this will actually be enough to close it)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89838 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 23:11:12 +00:00
russell
b1c5810c3c Bring in a small change from team/russell/chan_refcount
This replaces tab completion code with the use of a public function that
does the same thing


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89835 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 22:42:57 +00:00
murf
c3b51db06e closes issue #11294; missed the conditional unlock of the contexts when the hash table is used instead; also, used the ast_free_ptr as advised.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89792 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 22:14:55 +00:00
russell
1aa8356019 Merged revisions 89790 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89790 | russell | 2007-11-27 15:45:51 -0600 (Tue, 27 Nov 2007) | 41 lines

Merge changes from team/russell/autoservice_1.4

This set of changes fixes an issue that was reported to me on IRC yesterday.
The user, d1mas, was using chan_zap for incoming calls and was having DTMF
recognition issues in some situations.  Specifically, he noticed that the 
problem occurred when using DISA or WaitExten.  He also noticed that when 
using Read, the problem did not occur.  His system also used DUNDi for 
dialplan lookups.

So, he theorized that if the DUNDi lookups blocked for some period of time,
that audio from the zap channel could get lost.  If the audio got lost, then
it wouldn't be run through the DTMF detector, and digits could get lost.
He was correct, and the following set of changes fixes the problem.  However,
the changes go a little bit further than what was necessary to fix this exact
problem.

1) I updated pbx_extension_helper() to autoservice the associated channel to
   handle cases where extension lookups may take a long time.  This would
   normally be a dialplan switch that does some lookup over the network, such
   as the DUNDi or IAX2 switches.

   This ensures that even while a DUNDi lookup is blocking, the channel will be
   continuously serviced.

2) I made a change to the autoservice code.  This is actually something that
   has bothered me for a long time.  When a channel is in autoservice, _all_
   frames get thrown away.  However, some frames really shouldn't be thrown
   away.  The most notable examples are signalling (CONTROL) frames, and DTMF.

   So, this patch queues up important frames while a channel is in autoservice.
   When autoservice is stopped on the channel, the queued up frames get stuck
   back on the channel so that they can get processed instead of thrown away.

3) I made another change to the autoservice code to handle the case where
   autoservice is started on channels recursively.

   Previously, you could call ast_autoservice_start() multiple times on a
   channel, and it would stop the first time ast_autoservice_stop() gets
   called.  Now, it will ensure that autoservice doesn't actually stop until
   the final call to ast_autoservice_stop().

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89791 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 22:05:36 +00:00
oej
45e9d7c883 A few more "moremanager" fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89772 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 21:10:50 +00:00
oej
fecacc7468 More "moremanager" fixes. Manager commands to check module status.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89771 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 21:04:29 +00:00
oej
dfd2efe50a More "moremanager" changes - doxygen docs and changing manager version (finally)
before making more dramatic changes.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89770 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 20:50:48 +00:00
oej
0e7bb9934a More additions from the "moremanager" branch, this time for IAX2.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89769 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 20:36:59 +00:00
mmichelson
df58e69e55 Blocked revisions 89727 via svnmerge
........
r89727 | mmichelson | 2007-11-27 14:22:59 -0600 (Tue, 27 Nov 2007) | 6 lines

Changing some calls from free() to ast_free() since they were allocated with
ast_calloc().

(closes issue #11390, reported and patched by Laureano)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89733 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 20:24:08 +00:00
kpfleming
4a1b4443f1 Merged revisions 89709 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89709 | kpfleming | 2007-11-27 14:16:56 -0600 (Tue, 27 Nov 2007) | 2 lines

on second thought... revert all the other changes i've made in app options parsing leaving only one: if an empty argument is supplied for an option, set that argument pointer to point to an empty string rather than NULL, so that the application can do normal checks on it without worrying about it being NULL

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89721 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 20:21:57 +00:00
russell
663c870286 remove a duplicate manager event
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89710 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 20:17:36 +00:00
oej
d0bcdac211 Manager events from the "moremanager" branch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89706 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 19:50:12 +00:00
kpfleming
094b009478 Merged revisions 89701 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89701 | kpfleming | 2007-11-27 13:36:55 -0600 (Tue, 27 Nov 2007) | 2 lines

generate a warning when an application option that requires an argument is ignored due to lack of an argument

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89704 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 19:47:19 +00:00
oej
13d6371f2b Starting to merge changes from the "moremanager" branch. Documentation will
follow.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89702 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 19:45:39 +00:00
oej
bb9210c7a9 The following patch with updates for trunk. Works much better in trunk.
Also by accident fixed a bad typo by a previous committer, which actually made video calls
not work fully...

Merged revisions 89630 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89630 | oej | 2007-11-27 16:23:17 +0100 (Tis, 27 Nov 2007) | 12 lines

If we get a codec offer using a well-known payload type, but using it for another
codec that we don't know, Asterisk did not remove that codec from the list.

With this patch, we remove the codec from audio and video rtp objects and
deny it ever existed. Thanks to lasse for testing.

(closes issue #11376)
Reported by: lasse
Patches: 
      bug11376.txt uploaded by oej (license 306)
Tested by: lasse

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89698 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 19:24:17 +00:00
qwell
3db53911ba Add an S_COR macro, which is similar to the existing S_OR macro,
except with an additional boolean arg.

A hack such as:
foo ? S_OR(bar, "baz") : "baz"
becomes:
S_COR(foo, bar, "baz")


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89683 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 19:12:33 +00:00
murf
0c96bd8c5f made AEL 8-bit transparent; mainly the lexer was tossing chars with the hi-order bit set. Not nice. Also, allow @ in extension names, and a backslash, also.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89682 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 18:50:44 +00:00
file
942e20012a Ensure the value returned from ast_random is between 0 and RAND_MAX on 64-bit platforms.
(closes issue #11348)
Reported by: sperreault


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89637 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 17:01:19 +00:00
russell
ba864b3835 Merged revisions 89634 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89634 | russell | 2007-11-27 10:12:33 -0600 (Tue, 27 Nov 2007) | 3 lines

Add a note to the sample voicemail config noting that when using IMAP storage,
only the first format specified will be attached to the message.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89635 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 16:13:14 +00:00
tilghman
2135451113 Merged revisions 89631 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89631 | tilghman | 2007-11-27 09:38:03 -0600 (Tue, 27 Nov 2007) | 3 lines

Default result of STAT should be "0" not "".
Reported via the -users mailing list, fixed by me.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89632 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 15:41:46 +00:00
oej
4c27a322a0 Merged revisions 89624 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89624 | oej | 2007-11-27 08:34:19 +0100 (Tis, 27 Nov 2007) | 6 lines

Clarify limitonpeers=yes

(closes issue #11304)
Reported by: pj


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89625 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 07:36:54 +00:00
murf
5aff21b945 Merged revisions 89622 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89622 | murf | 2007-11-26 23:24:02 -0700 (Mon, 26 Nov 2007) | 1 line

closes issue #11379; OK, this is an attempt to make both sides happy. To the cdr.conf file, I added the option 'unanswered', which defaults to 'no'. In this mode, you will see a cdr for a call, whether it was answered or not. The disposition will be NO ANSWER or ANSWERED, as appropriate. The src is as you'd expect, the destination channel will be one of the channels from the Dial() call, usually the last in the list if more than one chan was specified. With unanswered set to 'yes', you will still see this cdr entry in both cases. But in the case where the dial timed out, you will also see a cdr for each line attempted, marked NO ANSWER, with no destination channel name. The new option defaults to 'no', so you don't see the pesky extra cdr's by default, and you will not see the irritating 'not posted' messages.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89623 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-27 06:47:08 +00:00
mmichelson
3d682ee9e4 Change all instances of "CALLERID(number)" to "CALLERID(num)" for
consistency's sake

(closes issue #11381, reported and patched by jon)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89621 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 23:15:53 +00:00
mmichelson
bbc2a86e79 Merged revisions 89618 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89618 | mmichelson | 2007-11-26 17:10:49 -0600 (Mon, 26 Nov 2007) | 7 lines

After issuing a "say load new", if a caller hangs up during the middle of playback of a number,
app_playback will continue to try to play the remaining files. With this change, no more files will
be played back upon hangup.

(closes issue #11345, reported and patched by IgorG)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89619 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 23:11:29 +00:00
mmichelson
f0367e88b7 Blocked revisions 89616 via svnmerge
........
r89616 | mmichelson | 2007-11-26 17:02:30 -0600 (Mon, 26 Nov 2007) | 5 lines

After issuing a "say load new" tons of warning messages are printed
out to the CLI every time do_say in app_playback is called. Removing these
warnings


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89617 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 23:05:12 +00:00
russell
015c16d770 Update the configure script check for libpri to check for the newest function
that was just added.

Cresl1n, please keep this in mind when making these changes to libpri or libss7.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89615 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 22:52:36 +00:00
oej
4fd45884a2 Rename "limitonpeer" to "counteronpeer" since the call-limit is deprecated.
Both still works in this version.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89613 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 21:23:48 +00:00
file
db19ec718e Merged revisions 89610 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89610 | file | 2007-11-26 17:10:29 -0400 (Mon, 26 Nov 2007) | 2 lines

Fix issues with async dialing with an application executing. The application has to be terminated and control returned to the thread before hanging things up. (issue #BE-252)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89612 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 21:14:07 +00:00
oej
4e62295db7 Formatting, doxygenification
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89611 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 21:12:50 +00:00
oej
812477c1c5 Formatting changes, cleaning up some code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89609 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 20:55:09 +00:00
oej
a6d5c8a789 Start using Doxygen groupings to group variables and defines.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89607 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 20:19:50 +00:00
oej
d33873fade - Mark "concise" as deprecated
- Restructure other changes to UPGRADE.txt and CHANGES

We're still looking for scripts that replace 
	asterisk -rx "show shannels concise"
by using the manager interface, but still produces the same output.
Anyone?


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89606 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 19:24:23 +00:00
file
78ee740bbf Perform some module use counting audits. This is now done outside the scope of the application/dialplan function so they do not need to worry about it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89602 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 18:11:31 +00:00
file
b2469bcae6 Merged revisions 89599 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89599 | file | 2007-11-26 14:02:56 -0400 (Mon, 26 Nov 2007) | 6 lines

Add module counting removal for error conditions.
(closes issue #11333)
Reported by: Laureano
Patches:
      res_features_v2.c.patch uploaded by Laureano (license 265)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89600 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 18:04:46 +00:00
russell
4d2ea03db9 Merged revisions 89594 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89594 | russell | 2007-11-26 11:41:04 -0600 (Mon, 26 Nov 2007) | 3 lines

Add channel locking to a function that needed to be doing it.  This is just a
little something I noticed while working on a completely unrelated issue.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89596 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 17:49:47 +00:00
murf
753634f9ca closes issue #11341; made changes to make utils again right with the MTX_PROFILE world.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89595 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 17:46:41 +00:00
file
6a8e5f1e64 Merged revisions 89592 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89592 | file | 2007-11-26 13:36:45 -0400 (Mon, 26 Nov 2007) | 6 lines

Use ast_free to free memory, or else we shall implode if MALLOC_DEBUG is enabled.
(closes issue #11347)
Reported by: ys
Patches:
      pbx.pbx_config.c.diff uploaded by ys (license 281)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89593 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 17:38:57 +00:00
murf
bbd5a3d02e closes issue #11356; Many thanks to snuffy for his code review and changes to cut down duplication. I tested this against hashtest, and it passes. I reviewed the changes, and they look reasonable. I had to remove a few const decls to make things compile on my workstation,
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89591 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 17:26:01 +00:00
russell
e09e950389 make sure we check to see if the configure script has been executed on a new checkout or after a distclean
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89590 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 17:25:08 +00:00
file
c585cac92c Merged revisions 89587 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89587 | file | 2007-11-26 13:20:58 -0400 (Mon, 26 Nov 2007) | 6 lines

Close the audio file before sending it to the post processing application.
(closes issue #11357)
Reported by: reformed
Patches:
      mixmonitor.patch uploaded by reformed (license 330)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89589 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 17:23:28 +00:00
kpfleming
9af283654a Merged revisions 89586 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89586 | kpfleming | 2007-11-26 11:20:36 -0600 (Mon, 26 Nov 2007) | 2 lines

when parsing application options that take arguments, don't indicate that the option was supplied unless a non-zero-length argument was found for it

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89588 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 17:21:37 +00:00
murf
4f8e82fa2b Thanks to pnlarsson for noting the spelling error in the cli commands. Also, added some verbage about the new algorithm to CHANGES.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89583 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 16:24:27 +00:00
file
60d6d5e6e4 Revert change for 11348 until it can be looked at even more.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89582 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 16:20:04 +00:00
mmichelson
43aebe686f Merged revisions 89580 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89580 | mmichelson | 2007-11-26 09:48:06 -0600 (Mon, 26 Nov 2007) | 6 lines

Revert vmu->email back to an empty string if it was empty when imap_store_file
was called. This prevents sending a duplicate e-mail. 

(closes issue #11204, reported by spditner, patched by me)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89581 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 15:50:37 +00:00
file
532589d879 Merged revisions 89577 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89577 | file | 2007-11-26 11:34:38 -0400 (Mon, 26 Nov 2007) | 6 lines

If channel allocation fails because the alert pipe could not be created also free the scheduler context.
(closes issue #11355)
Reported by: eliel
Patches:
      main.channel.c.patch uploaded by eliel (license 64)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89578 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 15:36:27 +00:00
file
5219dc885e Make the behavior of using /dev/urandom for random numbers the same as random().
(closes issue #11348)
Reported by: sperreault
Patches:
      ast_random2.diff uploaded by sperreault (license 252)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89576 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 15:28:13 +00:00
file
d7b36511c0 Instead of printing out one codec in sip show channels print out all of the native ones (this is for video).
(closes issue #11366)
Reported by: ovi


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89573 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 14:50:51 +00:00
file
8ad982f1ba Merged revisions 89571 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89571 | file | 2007-11-26 10:41:03 -0400 (Mon, 26 Nov 2007) | 4 lines

When unloading app_meetme destroy any auto created contexts created by SLA.
(closes issue #11367)
Reported by: eliel

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89572 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-26 14:42:57 +00:00