Luigi Rizzo
d0bc6c20a7
- remove an unnecessary cast and recomputation of (timeout - now);
...
- remove useless recomputations of strlen(word) in a loop, and
normalize the form of complete_peer_helper();
- move LOCAL_USER_ADD() to after the verification of arguments,
thus removing the need for one LOCAL_USER_REMOVE() call.
The three chunks of the patch are fully disjoint.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
387d37469d
remove a few unneeded calls to strlen, and replace a while()
...
loop with the equivalent function strchr()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
0159823ede
Use the standard macros to manipulate usecount.
...
This is in preparation to the import of the new loader.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
08df3610a6
update example file
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
59f0e4c7dd
remove trailing whitespace
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
41f8e3728e
disable the http server by default at the request of people on IRC
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
606c7dcb93
remove the long since unused STANDARD_LOCAL_USERS macro
...
so that new apps will not try to use it by mistake.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
45edaa4c3a
optimize a bit name completion by avoiding repeated calls to
...
strlen(word), localize variables and normalize the test
for finding the candidate string.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
bf2ae44338
fix documentation
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
8410e0d681
support subscription-based MWI, and use proper Call-ID on NOTIFY messages (issue #6390 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
0b5f2a5d3f
use proper file name
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
278b8e8fc7
improve IP TOS support for SIP and IAX2 (issue #6355 , code from jcollie plus modifications)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
ddaeaae214
Issue #6736 - use flags for OPTIONs messages
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
2c9ecd7baa
Reverting previous patch. Ok, let's take this from 1.2 instead... :-)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15380 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
e4c8021b7d
Issue #6736 - Enable NAT flags for OPTIONs requests (Thanks casper!)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
0b39c35161
Issue #6597 - Show correct port in "sip show registry" - import from 1.2 branch
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15377 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
450bc8dad6
Issue #6409 - Make calls to URI without username go to "s" extension (imported from 1.2)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
North Antara
e9cf7dbfff
Changed some "register" methods to the proper "unregister" method. This is in a #if 0 block, but it may still be useful someday.
...
Thanks eliel.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Matt O'Gorman
a5ece3388a
Janitor work converting !ast_strlen_zero(a)?a:b
...
to S_OR functions. from bug note 6805 with minor
modifications.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
f274b642aa
fixed bug that we don't allocate the bchan in setup_acknowledge already .. wonder why this wasn't fixed eearlier ..
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Christian Richter
bd4715f3bc
fixed hicom busy bug, we now see if the systemphone is busy, also fixed the immediate=yes does not work anymore issue
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
15873eb39c
simplify flags/page2_flags stuff by using arrays instead
...
enhance handle_common_options to be able to set flags in the second set of flags (what used to be page2_flags)
various other minor fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
767b42b6b6
remove accidentally merged properties
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
83d9331261
Issue #5427
...
- Enable videosupport per device
- Implement maxcallbitrate setting for video calls
Patch by John Martin, thanks!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
18de2b7787
Issue #6705 (oej)
...
- Implement option for allow/disallow subscriptions
- Implement option for allow/disallow overlap dialling
- Set default to disable overlap dialling in sip.conf.sample for new installations
- Remove overlap dialling from subscription logic
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
968af1b45d
rename file to match new application name
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
5c6c266aa9
rename application to have a more logical name
...
various code cleanups
don't steal copyright from author
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
e85d63aa11
use ast_calloc instead of calloc, and do a little bit of tweaking on the code formatting
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
813ab1aff0
fix asterisk header include format and add the doxygen header
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
d0b003a427
conversions to S_OR (issue #6803 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
eaeb8abc59
suppress some compiler warnings on mac
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Mark Spencer
9164eac21a
Add micro-http server and abstract manager interface, make snmp not die
...
on reload.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
b0ac62573a
revert loader changes that have clearly not undergone adequate testing before commit
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
d104a6d622
Bug 6508 - Redirect arbitrary channel to another extension from the dialplan
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
bdd24455b4
Bug 4377 - Round 2 of the loader updates
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
0af770edd1
Bug 6670 - Additional parameters to the CHANNEL func
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
67aa4a721d
Merged revisions 14868 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r14868 | tilghman | 2006-03-24 23:07:52 -0600 (Fri, 24 Mar 2006) | 2 lines
Bug 6601 - More configuration abilities for the RH init script
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
ff9fc4f606
Merged revisions 14830 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r14830 | tilghman | 2006-03-24 23:01:16 -0600 (Fri, 24 Mar 2006) | 2 lines
Fix incorrect size of zeroing (left over from when maxmsg was hardcoded at 100)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14837 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
39a99c65c2
Merged revisions 14821 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r14821 | tilghman | 2006-03-24 22:09:04 -0600 (Fri, 24 Mar 2006) | 2 lines
Bug 6783 - When context is specified, voicemail should look for mailboxes in that context
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
82b0400322
Do the (expensive) LOCAL_USER_ADD only after we are sure
...
that arguments are valid.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
b3ad3a7556
as discussed on the -dev list, introduce a macro to simplify the
...
writing of common constructs like
chan = !ast_strlen_zero(cdr->channel) ? cdr->channel : "<unknown>";
(or the if/then/else form) into
chan = S_OR(cdr->channel, "<unknown>");
The name can be changed if we find a better (and not too long) one;
currently, it is S as String, OR as it mimics the behaviour of
the || operator, but applied to strings.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
574e9ae7a8
Add missing
...
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
to these files.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
b314ed621f
Merged revisions 14704 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r14704 | russell | 2006-03-24 09:48:11 -0500 (Fri, 24 Mar 2006) | 2 lines
use the correct variable in an error message (issue #6791 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
BJ Weschke
6d22be794f
Merged revisions 14659 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r14659 | bweschke | 2006-03-23 22:53:42 -0600 (Thu, 23 Mar 2006) | 3 lines
Fix a typo in the app description
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
BJ Weschke
d09b5ff20b
Doxygen typo fix.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
BJ Weschke
f2aef53f84
Block r14610 from /trunk as it conflicts with sched.h in /trunk
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
322f53d8b8
don't treat timeouts as errors in ast_cond_timedwait
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
c26786fd81
compute scheduler thread timeout properly
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
39464dfe09
commit file's work to convert iax2 multithreading to use pthread conditions instead of signals (with some modifications)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
539f8a6502
Merged revisions 14523 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r14523 | file | 2006-03-23 17:51:50 -0400 (Thu, 23 Mar 2006) | 2 lines
Issue #6764 - Return BUSY signal when other party is busy at Attended Transfer (Reported by mnachev)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago