Commit Graph

1046 Commits

Author SHA1 Message Date
Olle Johansson 8bb397b439 Import revision 13547 from branch 1.2 - reset global_rtautoclear at reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-19 09:32:36 +00:00
Olle Johansson 7296dd030e - Remove comment about non-existing XML format ;-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-19 09:08:57 +00:00
Olle Johansson dbd3fa49fd - change "regcontext" to "global_regcontext" to mark it as a global setting
- show regexten in "sip show peer <name"


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-19 09:07:29 +00:00
Olle Johansson 1bad801595 Importing "oops" fix from 1.2 branch.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-16 08:40:45 +00:00
Olle Johansson 8864646870 Import of rev 13026 from 1.2 branch: Fix parameters to event: header
in SUBSCRIBE request


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-15 13:06:48 +00:00
Russell Bryant 9bf08efa16 add a missing header to fix building with -Werror (issue #6717)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-14 16:16:14 +00:00
Russell Bryant a6f2a3899b add some missing braces
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-12 21:17:58 +00:00
Olle Johansson 3b67da1362 - Adding some hangupcauses before hangups
- Removing double warning


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-12 16:47:55 +00:00
Olle Johansson 9bbfae80e0 Issue #5937 - Make sure that SIP CANCEL's are retransmitted properly
Importing revision 12495 from 1.2 with changes for svn trunk


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-10 12:18:00 +00:00
Olle Johansson 11126fee1d Implement enum for retransmit options to various functions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-10 12:13:05 +00:00
Olle Johansson b27fa8bfc7 Support SIP_CODEC channel variable for early media. (Imported from 1.2, with a small
change for const char* channel variables)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12478 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-09 17:41:38 +00:00
Olle Johansson 52812c2917 Formatting fix.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-08 20:42:47 +00:00
Olle Johansson 5a2b0d6c2b Issue #6657 - Ignore 183 Session Progress without SDP (imported from 1.2 rev 12458)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-08 10:54:40 +00:00
Olle Johansson 06abc680dd Set SIPDOMAIN on 302 redirects.
This way you can catch 302 redirects in the dial plan and see if
the redirect is to a local extension or a remote URI.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-08 08:36:40 +00:00
Olle Johansson 9a475567bd Issue #6627 - Don't reset port number of active peers at reload
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 20:47:24 +00:00
Olle Johansson e3f05acab2 Add accountcode to sip_peer dialplan function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 09:57:22 +00:00
Tilghman Lesher 9756cec534 Merged revisions 12195 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r12195 | tilghman | 2006-03-06 18:05:27 -0600 (Mon, 06 Mar 2006) | 2 lines

Bug 6020 - Race condition where packet could be lost if first packet on list is acked

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 00:07:27 +00:00
Olle Johansson 5bf234f2ba Fix bad fix.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-05 14:07:06 +00:00
Olle Johansson 13a3c7299a Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-05 13:52:26 +00:00
Olle Johansson 6730f817fd Clear almost all of page2 flags at reload (different fix from 1.2 branch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-05 12:57:34 +00:00
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
2006-02-23 17:13:57 +00:00
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
2006-02-22 22:53:49 +00:00
Mark Spencer 894c8401d8 Remove gratuitous -1 (bug #6426)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-20 06:18:18 +00:00
Olle Johansson 98d0d296fb Whitespace cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-16 08:19:34 +00:00
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
2006-02-15 01:55:20 +00:00
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
2006-02-15 00:24:24 +00:00
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
2006-02-14 18:30:32 +00:00
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
2006-02-13 17:46:34 +00:00
Russell Bryant 46e43a6a90 remove unneeded var (issue #6466)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-13 17:43:38 +00:00
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
2006-02-12 19:19:19 +00:00
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
2006-02-12 04:28:58 +00:00
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
2006-02-11 19:31:11 +00:00
Kevin P. Fleming 7a4b31e515 doh!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11 03:28:59 +00:00
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
2006-02-10 20:40:00 +00:00
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
2006-02-10 16:33:47 +00:00
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
2006-02-09 15:40:53 +00:00
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
2006-02-02 20:51:08 +00:00
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
2006-02-02 20:28:57 +00:00
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
2006-02-02 20:18:31 +00:00
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
2006-02-01 23:05:28 +00:00
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
2006-01-31 18:40:07 +00:00
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
2006-01-31 17:57:12 +00:00
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
2006-01-31 17:18:58 +00:00
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
2006-01-31 16:02:35 +00:00
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
2006-01-31 14:30:09 +00:00
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
2006-01-30 20:36:38 +00:00
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
2006-01-30 19:50:39 +00:00
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
2006-01-30 19:09:08 +00:00
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
2006-01-30 18:51:02 +00:00
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
2006-01-28 17:17:37 +00:00