Kevin P. Fleming
a16ae226b6
use string fields for some stuff in ast_channel
...
const-ify some more APIs
remove 'type' field from ast_channel, in favor of the one in the channel's tech structure
allow string field module users to specify the 'chunk size' for pool allocations
update chan_alsa to be compatible with recent const-ification patches
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
f0c6fe952e
Optimize settings of defaults for a new peer object and make sure
...
we set the same defaults for autocreated peers and other peers.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
a228af1dd9
remove some more local declarations of null frames
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
e01861fafd
define a global null_frame object so when queueing a null frame, you don't
...
have to allocate one on the stack
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
18eac350af
- Moving two session (PVT) flags to peer PAGE2 (DYNAMIC and SELFDESTRUCT) to make room for more session-related flags
...
This is needed for integrating patches in the bug tracker
- Adding doxygen comments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
ea0ac62a1e
- Change "prefs" to "default_prefs" and move declaration to "default" group
...
- Add doxygen comments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8976 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
19cd118bff
- Doxygen and comments updates
...
- Moving structure declarations to top of file with the rest
- Adding some forward declarations for RTP interface functions
(All these changes to position in file are in preparation for splitting chan_sip up
into several files at some point in the future)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
125fd8446c
Issue 5892: Set a minimum T1 timer for calls. Reporter: twisted
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
f3f9230738
Issue #6035 - Don't send 403 on bad auth (correcting one of my old mistakes...) Reported by maik.
...
Patch inspired by, but not the patch in the bug tracker.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
81813b42a4
Issue #5793
...
- simplification of check_auth
- constifications
- whitespace changes
Rizzo's patch with some changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
7b07bf5fc8
- Remove unused "resetinvite" variable
...
- Use TRUE/FALSE for fastrestart
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
3009e4004c
Change booleans to TRUE/FALSE.
...
(At some point we should implement these as enums to simplify debugging)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
0c687996ad
Doxygen updates
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8826 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
4a63775523
- Moving forward declarations to one block
...
- Moving global variables to one block
- Moving global networking variables to one block
- Small whitespace changes
- Renaming a few more global channel settings to global_ for clarity
(No functional changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
7ac422562e
Simplify code for building Call ID's, create generic random string function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
6fafc9d4f0
Merged revisions 8785 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8785 | oej | 2006-01-27 09:02:16 +0100 (Fri, 27 Jan 2006) | 2 lines
Issue 6362 - Register without Contact: and Expires: fails (reporter: op)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
1a484607a3
- Move two functions to static that wasn't for some reason
...
- Add doxygen comments
- Remove un-needed assignment at declaration of variable
- Formatting fixes (whitespace)
- Add optin_debug in front of complex debugging output
- Move forward declarations of functions to top of file
- Fix error message for bad allocation in sip registry
(Note: Review to line 6050 in this too large file)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
09e357e013
Formatting fixes, speling eror fiksd ;-)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
25ad6f6ec3
Issue #5954 revisited. Thanks rizzo.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
db97a8d9ce
Code clean up, inspired by rizzo's comments in issue 5978.
...
- Don't check for ignore if ignore is always negative
- Add comments to explain what's going on
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8728 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
0f4b7a78f6
Add some debugging output when reloading, to be able to follow progress at high debug levels
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
ca81ac1a02
Merged revisions 8710 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8710 | oej | 2006-01-26 15:39:36 +0100 (Thu, 26 Jan 2006) | 2 lines
Issue 5898: Registrations does not get deleted if there's an active SIP dialog
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
c1a2631101
Merged revisions 8677 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8677 | russell | 2006-01-25 14:14:43 -0500 (Wed, 25 Jan 2006) | 3 lines
don't call ast_update_realtime with uninitialized variables if we get a
registration with an expirey of 0 seconds (issue #6173 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
82f8c9d64d
- Remove unused option to transmit_state_notify
...
- Allow for expiry=0 in subscription requests that only wants *one* update and that's it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
b64404e039
From now on, apply maxexpiry and minexpiry to all subscriptions. Thanks to fourcheeze in the IRC channel
...
for pointing this out.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
3fbad3f5d3
Don't reset scheduled ID until we actually end the scheduled event.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
50280803be
Issue 6114: Don't hangup on bye/also if there's no channel. (gst)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
ab04b28196
Issue #6093 : Match realtime non-dynamic peers by IP. (siacali).
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
be28dc1be8
Importing rev #8537 from 1.2, never send response to ACK (issue #6308 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
9434a05dc1
- Report SIP reload in manager (issue 5742 with small changes)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
b90a5b0ebd
- Adding doxygen comments
...
- Changing default values set in reload_config to DEFAULT_ #defines to make it more clear what defaults are
- Cleaning up global_ and default_ variable naming.
- Moving variable and #defines together in the source, adding comments to explain sections
Global_ is used for channel settings that does not apply to peers or users as defaults for their settings
default_ is used both as a channel setting for unknown callers, as well as defaults for peers and users
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
9cda86f4b2
Remove redundant default default/global settings from declaration, settings are done in reload_config()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
4c8b2c62de
Remove more unused defines.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8493 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
c3fcb9eaea
Doxygen updates
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
8b42063108
Finally removing SIPDUMPER that hasn't been used for ages. If anyone needs this for some reason,
...
please tell me and I'll put it back :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
57f0c81518
- Change "call" to "dialog" where use of "call" is confusing, since it may be a register transaction or a subscription.
...
The word dialog is defined as "a peer-to-peer SIP relationship between two UAs that persist for some time" in RFC 3261.
- Whitespace fixes
- Debugging fixes (adding check of option_debug)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
814800008d
- Debug output fixes
...
- Whitespace fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8483 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
e2f477175f
Doxygen update
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
e0fe84d1b2
Re-instate sip_addheader() while waiting for a dialplan function. (Issue 6317)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
50797d7c05
- Adding some white space from my white space reservoir
...
- Fixing some comment formatting (doxygen fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
7df4257dbb
eliminate some compiler warnings
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8443 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
BJ Weschke
0034a39f29
Correct some scenarios where CALL_LIMIT could not be getting adjusted properly allowing chan_sip to send calls when it really shouldn't. Bug #6111
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
4414f45393
on this pass, only remove duplicate log messages
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
9fa6eb5e07
revert my pass through the tree to remove checks of the result of ast_strdupa
...
(revisions 8378 through 8381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
847260bb77
remove some useless checks of the result of ast_strdupa
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
de72ee118b
Enable "musicclass" setting for sip peers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8282 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
6b46e27bb4
Merged revisions 8242 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8242 | russell | 2006-01-18 23:56:48 -0500 (Wed, 18 Jan 2006) | 3 lines
fix Message-Account header to use the ip address if the fromdomain
isn't set (issue #6278 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8243 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
6f71e1178e
constify arguments in more places where strings should not be modified (issue #6286 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
065a368463
remove some more deprecated (pre-1.2) stuff
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
BJ Weschke
46b6488927
Address the condition where X-ClientCode could be NULL or an empty string - from a -dev posting.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago