Kevin P. Fleming
302c943001
add 'consumed' argument to ast_get_time_t, so callers can know how many characters were used in the parser
...
update pbx_dundi to use ast_get_time_t
eliminate some compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
6204abdae2
merge rizzo's patch to make compiler warnings stop the build, and fix a bunch of warnings found
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Mark Spencer
894c8401d8
Remove gratuitous -1 (bug #6426 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
98d0d296fb
Whitespace cleanup
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
0a9c957764
remove code that does not appear to do anything useful (issue #6059 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
4662d58b01
add API function for parsing strings to time_t (issue #6320 , with mods)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
7616d69a63
Merged revisions 9958 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r9958 | kpfleming | 2006-02-14 12:30:10 -0600 (Tue, 14 Feb 2006) | 2 lines
when answering INVITE, don't send codecs the peer didn't offer (issue #6052 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
4d3c5e39b0
declare function_sipppeer as static (issue #6466 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
46e43a6a90
remove unneeded var (issue #6466 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
7946efea57
set peername after recent function updates
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
96bf384e7d
major dialplan functions update
...
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
452f87a465
Merged revisions 9609 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r9609 | russell | 2006-02-11 14:23:20 -0500 (Sat, 11 Feb 2006) | 2 lines
fix memory leak from not destroying the scheduler context on module unload
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
7a4b31e515
doh!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
cadfcdfe8e
Merged revisions 9404 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r9404 | kpfleming | 2006-02-10 14:38:59 -0600 (Fri, 10 Feb 2006) | 2 lines
don't create monitor threads in detached mode, when we need to be able to pthread_join() them later if the module is unloaded (solve crash-on-unload problem for these channel modules)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
b40bd71a9a
restore 'rfc2833' naming for DTMF mode in chan_sip
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
4d07b89fdd
- Change "rfc2833" to "rtp" in sip.conf. Keeping backwards compatibility.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
f1377e3ce1
- Remove "frame relay" from chan_sip !
...
- Add some comments for the monitoring thread
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
2f4524f1df
- Add doxygen docs on return values on check_user_full()
...
- Simplify code in handle_request_subscribe (mailbox subscription)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Olle Johansson
88e37acdcd
- Make debug logging for each authentication (twice per call) optional
...
- Small update to doxygen comment
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
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