Russell Bryant [Sun, 3 Sep 2006 22:56:01 +0000 (22:56 +0000)]
when calling this function to append to a dynamic string and the buffer was not
large enough and had to be reallocated, cut off the partially appended data.
Otherwise, the function will get called over and over again appending to the
end every time and never thinking it has enough room.
Thanks to jmls for access to his machine for debugging!
(issue #7691)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41944
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 21:26:04 +0000 (21:26 +0000)]
Provide a little more protection to make sure that a MOH class is specified when using the 'm' option with WaitExten, and prevent a segfault in the process.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41930
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 20:44:14 +0000 (20:44 +0000)]
Fix enum indexing problem with m() in WaitExten. Reported by Pavel J, in asterisk-dev.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41916
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 20:23:41 +0000 (20:23 +0000)]
Changes/fixes to the app_waitforsilence app to make it behave more the way the author originally intended for it
to function along with an option to keep backward compatible with "old-style" functionality in 1.2.
(#6595 - davetroy reported and patched w/some very minor mods/corrections)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41915
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 19:32:51 +0000 (19:32 +0000)]
This was added to app_dial a while back, and now it's in app_queue as well. Provide an option to prevent members of the queue from forwarding calls from the queue to somewhere else.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41901
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 19:07:58 +0000 (19:07 +0000)]
Some changes/fixes for func_curl. curl_global_init is only supposed to be called once, and if it returns non-zero, we need to give up on further executions with that instance. Additionally, let's set absolute timeout values for the CURL connections to try and prevent possible Zap (and possibly other channel tech) channel lockouts.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41900
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 17:40:08 +0000 (17:40 +0000)]
Merged revisions 41882 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41882 | bweschke | 2006-09-03 13:38:22 -0400 (Sun, 03 Sep 2006) | 3 lines
Make sure the forwarded channel inherits variables appropriately when we receive a call forward in the queue. (#7867 - raarts reported and patched)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41883
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 17:15:07 +0000 (17:15 +0000)]
Blocking 41880 from coming into /trunk since I already patched it in /trunk first. Ooops!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41881
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 17:12:30 +0000 (17:12 +0000)]
Don't keep trying the same member in certain strategies when members of the queue are unavailable (#7278 - diLLec reported and patched)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41879
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Sun, 3 Sep 2006 16:44:49 +0000 (16:44 +0000)]
Tweak the if statement a bit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41865
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sun, 3 Sep 2006 16:41:02 +0000 (16:41 +0000)]
Don't use ast_frdup() in the AST_LIST_INSERT_TAIL macro directly. That was a
very stupid thing to do. It ends up duplicating the frame twice, linking in
one of them and setting the tail pointer to the other one. Sorry ...
Thanks to file for pointing out the breakage!!! file rocks.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41864
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 15:21:12 +0000 (15:21 +0000)]
We don't spy on Zap/psuedo channels. Not at all. Never. (#7871 - sxpert reporting)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41850
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sun, 3 Sep 2006 15:04:26 +0000 (15:04 +0000)]
remove leading space in Packet manager event header
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41849
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 14:54:02 +0000 (14:54 +0000)]
r41830 isn't going to merge cleanly into /trunk so it is blocked.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41831
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 14:28:25 +0000 (14:28 +0000)]
Merged revisions 41827 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41827 | bweschke | 2006-09-03 10:16:08 -0400 (Sun, 03 Sep 2006) | 3 lines
Setting a retry of 0 is generally not a good idea and shouldn't be allowed. (#7574 - reported by regin)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41829
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sun, 3 Sep 2006 14:26:44 +0000 (14:26 +0000)]
Block 30546 from coming into /trunk. Some old cleanup.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41828
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
BJ Weschke [Sat, 2 Sep 2006 18:36:53 +0000 (18:36 +0000)]
With the somewhat recent addition (from one of the Astridevcon Europe sessions) of more detailed device states, we need to change strategy in app_queue in how we determine whether a queue member is "in use" or not. Basically, instead of specifically looking for that device state as we did previously, now we're going to observe any other device state aside from the two that we know for sure are "not in use" as "in use". This will cause some other states to fall through that we know will never be available (eg - "INVALID","UNAVAILABLE",etc) but there's other code already within to handle those conditions. (#7433 - tgrman reporting)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41810
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Sat, 2 Sep 2006 01:44:50 +0000 (01:44 +0000)]
It was pointed out to me, that using two frames is silly.
Thanks Josh.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41790
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Sat, 2 Sep 2006 01:39:42 +0000 (01:39 +0000)]
fix some module loader breakage
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41789
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Sat, 2 Sep 2006 01:39:15 +0000 (01:39 +0000)]
Fix VLDTMF issues.
It still isn't variable length, but it does let you dial again.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41788
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 22:51:46 +0000 (22:51 +0000)]
Merged revisions 41768 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41768 | file | 2006-09-01 18:49:07 -0400 (Fri, 01 Sep 2006) | 2 lines
Only wipe the redirected audio & video IP/port if it's specified, and trigger a reinvite.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41769
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Fri, 1 Sep 2006 22:03:33 +0000 (22:03 +0000)]
get rid of some useless debug messages and raise debug level of others
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41765
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Fri, 1 Sep 2006 19:23:07 +0000 (19:23 +0000)]
more staticness, and syntax cleaning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41749
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 18:57:10 +0000 (18:57 +0000)]
Unbridge the RTP streams at the correct place
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41735
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 17:54:22 +0000 (17:54 +0000)]
If we are doing video and we can't reinvite, then resort to generic bridging instead of Packet2Packet since video isn't supported there yet. (reported by PCadach in #asterisk-bugs)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41718
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Fri, 1 Sep 2006 17:41:52 +0000 (17:41 +0000)]
block this rev... fix is already present in this branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41717
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Fri, 1 Sep 2006 17:20:48 +0000 (17:20 +0000)]
whitespace clean up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41715
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 16:50:02 +0000 (16:50 +0000)]
You see nothing...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41696
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Fri, 1 Sep 2006 16:48:06 +0000 (16:48 +0000)]
Another formatting update for PCadach.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41695
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 16:40:18 +0000 (16:40 +0000)]
0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41694
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 16:34:57 +0000 (16:34 +0000)]
Merged revisions 41690 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41690 | file | 2006-09-01 12:28:08 -0400 (Fri, 01 Sep 2006) | 2 lines
Don't treat an unexpected control subclass as voice (issue #7858 reported by PCadach)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41693
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Fri, 1 Sep 2006 16:33:22 +0000 (16:33 +0000)]
PCadach wanted better formatting of those 'if' conditions for 7859.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41692
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Fri, 1 Sep 2006 16:19:03 +0000 (16:19 +0000)]
If no number is specified in the SIP_HEADER dialplan function, then just use the first one. (issue #7854 reported by sxpert and issue #7863 reported by hristo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41689
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Fri, 1 Sep 2006 15:57:05 +0000 (15:57 +0000)]
This small tweek will hopefully fix 7859, and silence all possible others
along that line.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41674
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 31 Aug 2006 21:50:55 +0000 (21:50 +0000)]
fix some breakage, MOG DID IT!!!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41651
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 31 Aug 2006 21:50:07 +0000 (21:50 +0000)]
there is no need for __iax_frame_free ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41650
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Anthony LaMantia [Thu, 31 Aug 2006 21:12:26 +0000 (21:12 +0000)]
spacing update
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41648
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Anthony LaMantia [Thu, 31 Aug 2006 21:06:07 +0000 (21:06 +0000)]
small typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41647
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matt O'Gorman [Thu, 31 Aug 2006 21:00:20 +0000 (21:00 +0000)]
everything that loads a config that needs a config file to run
now reports AST_MODULE_LOAD_DECLINE when loading if config file
is not there, also fixed an error in res_config_pgsql where it
had a non static function when it should.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41633
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 31 Aug 2006 21:00:16 +0000 (21:00 +0000)]
Tweak the DTMF muting stuff a bit to take into account VLDTMF and compensation.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41632
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Anthony LaMantia [Thu, 31 Aug 2006 20:49:26 +0000 (20:49 +0000)]
fix for bugid: 0007830
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41630
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 31 Aug 2006 20:39:12 +0000 (20:39 +0000)]
there is no need to use iax_frame_free here, as it will actually just end up
having a bunch of erroneous messages about attempting to double free frames
spammed to the console. Problem reported to me by file ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41629
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 31 Aug 2006 19:03:13 +0000 (19:03 +0000)]
Ignore DTMF begin frames in the waitstream core so that we don't get duplicate digits in our extension match
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41611
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 31 Aug 2006 18:47:51 +0000 (18:47 +0000)]
Don't fail the write if they try to write a NULL or IAX frame as we just ignore these.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41596
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 31 Aug 2006 18:21:00 +0000 (18:21 +0000)]
Add new frame types for DTMF
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41595
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 31 Aug 2006 14:46:46 +0000 (14:46 +0000)]
Only write a received packet out if we are actually bridged to something
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41574
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Thu, 31 Aug 2006 10:40:24 +0000 (10:40 +0000)]
Use GLOBAL() in dialplan examples
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41560
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 31 Aug 2006 04:19:54 +0000 (04:19 +0000)]
oops.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41545
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 31 Aug 2006 04:07:35 +0000 (04:07 +0000)]
The behavior of REGEX when it did not match was not defined by the docs, so
define it to provide a result of "0" and change the code appropriately.
(issue #7805)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41544
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Thu, 31 Aug 2006 02:53:15 +0000 (02:53 +0000)]
This commit is a basic AEL enhancement: c-style comments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41527
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 31 Aug 2006 02:03:01 +0000 (02:03 +0000)]
Force a rebuild since we mucked with enough stuff to justify it
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41523
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 31 Aug 2006 01:59:02 +0000 (01:59 +0000)]
Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41507
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 31 Aug 2006 01:48:04 +0000 (01:48 +0000)]
Update configure script to check for Zaptel VLDTMF support since this will now be required. If you build and don't have Zap stuff, upgrade your zaptel copy. As well - change some minor things so that we get "checking for" and not "checking checking for".
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41505
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Wed, 30 Aug 2006 21:44:05 +0000 (21:44 +0000)]
change default setting for autofallthrough
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41475
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 30 Aug 2006 20:24:32 +0000 (20:24 +0000)]
Why check bridgepeer twice?
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41457
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 30 Aug 2006 20:20:52 +0000 (20:20 +0000)]
update docs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41456
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 30 Aug 2006 19:51:31 +0000 (19:51 +0000)]
Don't add headers to an uninitialized eq (from issue 7694 garyhai, but not
a resolution to that bug report)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41437
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 30 Aug 2006 19:20:29 +0000 (19:20 +0000)]
Note to myself: Remember Russell's note: Always compile first...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41436
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 30 Aug 2006 19:16:53 +0000 (19:16 +0000)]
Mark ALERT_INFO as deprecated. This can now be done with the sipaddheader() application and
does not need special code in chan_sip any more.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41435
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 30 Aug 2006 19:07:59 +0000 (19:07 +0000)]
add a note about behavior of the "clid" field in the CDR
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41434
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 30 Aug 2006 19:07:21 +0000 (19:07 +0000)]
Issue #7572 (Boesl) - hangup channel that get buggy 487 response (imported from 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41433
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 30 Aug 2006 19:02:34 +0000 (19:02 +0000)]
Blocked revisions 41411 via svnmerge
........
r41411 | russell | 2006-08-30 14:59:44 -0400 (Wed, 30 Aug 2006) | 6 lines
Restore original functionality of 1.2 in places where ANI was not set, but was
changed to be set. The original change was done to ensure that the behavior of
the "callerid" option in each channel driver was consistent, but it caused an
unexpected behavior change of CDR records for users, so this change is being
reverted in 1.2. (issue #7695)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41429
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 30 Aug 2006 18:02:53 +0000 (18:02 +0000)]
Merged revisions 41390 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41390 | file | 2006-08-30 13:58:31 -0400 (Wed, 30 Aug 2006) | 2 lines
Properly handle an ETIMEDOUT result from pthread_cond_timedwait (issue #7318 reported by arkadia)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41409
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 30 Aug 2006 17:07:07 +0000 (17:07 +0000)]
fix a bug introduced when I merged my frame caching branch. Queue the
translated frame to the spies, *not* the original frame. Thanks PCadach!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41389
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 30 Aug 2006 16:04:24 +0000 (16:04 +0000)]
Clarify what show translations is displaying a bit more (issue #7772 reported by Mithraen)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41373
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 30 Aug 2006 15:15:06 +0000 (15:15 +0000)]
Print what read-only variable is being set so that the user doesn't have to guess and figure it out or look at the list in cdr.c and match it up (issue #7831 reported by sedwards)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41357
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 30 Aug 2006 14:57:06 +0000 (14:57 +0000)]
Only feed a DTMF frame into the core if we need to
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41338
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Wed, 30 Aug 2006 14:36:46 +0000 (14:36 +0000)]
Issue #7822 - don't issue SRV lookups if it's disabled. (barthek)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41335
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Spencer [Wed, 30 Aug 2006 03:20:54 +0000 (03:20 +0000)]
Fix transcoding performance issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41318
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 30 Aug 2006 03:18:04 +0000 (03:18 +0000)]
Only switch the second alert fd (which is RTCP) to callback mode if it is in use
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41317
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 30 Aug 2006 03:16:03 +0000 (03:16 +0000)]
Use an API call (ast_rtp_get_bridged) to return the RTP stream we are bridged to, and also use it in chan_sip so we know to ignore the no RTP activity checking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41316
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 30 Aug 2006 01:29:59 +0000 (01:29 +0000)]
If the RTP stack is already being operated in callback mode, then suspend it upon switching to P2P callback bridging. Once P2P callback bridging has ended, then restore callback mode.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41303
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 30 Aug 2006 01:22:46 +0000 (01:22 +0000)]
This is the last round of RTP bridge optimizations. Basically it introduces a way that under a straight bridge (ie: no transcoding and no DTMF detection) the core is not touched at all and no frames pass through (not even null frames). This is accomplished by stealing the file descriptors from the channel and using the provided IO context with a custom callback. When a channel is placed on hold this bridge is broken so audio can flow from the core to the other side. When a channel is off hold this bridge is re-established.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41302
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 29 Aug 2006 23:41:16 +0000 (23:41 +0000)]
Move the direct bridge write to after the NAT handling code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41285
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 29 Aug 2006 23:33:59 +0000 (23:33 +0000)]
make menuselect configure process be silent when possible
don't use #ifdef inside a macro call... it appears various versions of gcc have bugs related to this
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41284
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Tue, 29 Aug 2006 23:08:42 +0000 (23:08 +0000)]
This change fixes bug 7820. Way back in April this bug was reintroduced, it appears, when a bunch of restructuring was done. This code was basically left out during the restructuring. In the case of the failure in 7820, it is trying to match the extension _x. with _x., and failing, because the 'x' should only match 0 thru 9. I **could** upgrade the code so that that N,Z, and X match not only their intended number ranges, but also N,Z,and X respectively. And, moreover, X could also match N and Z, and Z could also match N. I have no idea why this bug took so long to turn up. I have no idea what a more thorough treatment of the code would do to working code, either. So I left it as it ***was***.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41283
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 29 Aug 2006 21:52:40 +0000 (21:52 +0000)]
Kevins last commit made me spot a typo.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41282
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 29 Aug 2006 21:20:43 +0000 (21:20 +0000)]
add one remaining bit of functionality to the features.conf applicationmap (from Matt Nicholson in Digium Express Services)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41281
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 29 Aug 2006 20:53:27 +0000 (20:53 +0000)]
Limit challenges to 9 digits in length
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41280
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 29 Aug 2006 20:50:36 +0000 (20:50 +0000)]
Merge team/russell/frame_caching
There are some situations in Asterisk where ast_frame and/or iax_frame
structures are rapidly allocatted and freed (at least 50 times per second
for one call).
This code significantly improves the performance of ast_frame_header_new(),
ast_frdup(), ast_frfree(), iax_frame_new(), and iax_frame_free() by keeping
a thread-local cache of these structures and using frames from the cache
whenever possible instead of calling malloc/free every time.
This commit also converts the ast_frame and iax_frame structures to use the
linked list macros.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41278
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 29 Aug 2006 17:31:15 +0000 (17:31 +0000)]
suppress compiler warning
Code shamelessly borrowed from r41271 (it was the same warning/fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41274
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 29 Aug 2006 13:55:54 +0000 (13:55 +0000)]
update to reflect recent rtp changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41272
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 29 Aug 2006 13:48:15 +0000 (13:48 +0000)]
suppress compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41271
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 29 Aug 2006 13:40:04 +0000 (13:40 +0000)]
Merged revisions 41269 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r41269 | russell | 2006-08-29 09:33:34 -0400 (Tue, 29 Aug 2006) | 3 lines
clean up last commit ... most notably, there is no reason to do heap
allocations here, and it also included a potential memory leak
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41270
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Tue, 29 Aug 2006 13:21:47 +0000 (13:21 +0000)]
Committed a fix for 7731, suggested by mnehauser.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41268
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Tue, 29 Aug 2006 12:24:01 +0000 (12:24 +0000)]
Bugfix for 7813 applied to trunk as per patch supplied by stevens
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41267
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Mon, 28 Aug 2006 20:56:52 +0000 (20:56 +0000)]
blocking version 41240 from erasing stuff about complement and matching ops from the trunk version
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41241
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 28 Aug 2006 17:37:56 +0000 (17:37 +0000)]
Merge in RTP-level packet bridging. Packet comes in, packet goes out - that's what RTP-level packet bridging is all about!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41235
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Mon, 28 Aug 2006 15:31:14 +0000 (15:31 +0000)]
My apologies, I missed the compiler warning in a previous commit for the ael_main.c;
I've fixed this.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41230
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Sat, 26 Aug 2006 23:58:47 +0000 (23:58 +0000)]
GNU make already knows how to quietly ignore non-existent files in 'include' directives
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41209
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Sat, 26 Aug 2006 19:45:16 +0000 (19:45 +0000)]
ensure that unload_dynamic_module won't continue dereferencing a module pointer after the module has been unloaded from memory
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41196
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sat, 26 Aug 2006 17:15:38 +0000 (17:15 +0000)]
menuselect doesn't use asterisk's autoconfig.h anymore, so this ifdef can be
removed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41181
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Sat, 26 Aug 2006 17:05:38 +0000 (17:05 +0000)]
ensure that cross-compiler info is removed from the enviroment before configuring menuselect
ensure that the user's LDFLAGS take precedence when linking the final binary
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41178
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Sat, 26 Aug 2006 16:45:35 +0000 (16:45 +0000)]
more optimizations for embedded systems:
when LOADABLE_MODULES is off, don't export symbols from the main binary
when LOADABLE_MODULES is off, and the compiler/linker support it, strip out code not used in the final binary
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41166
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sat, 26 Aug 2006 16:13:45 +0000 (16:13 +0000)]
remove some unneeded variables now that the menuselect build is isolated from
the parent project
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41165
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Fri, 25 Aug 2006 20:43:51 +0000 (20:43 +0000)]
Changes to fix all problems reported in 7804 are included here.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41150
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Luigi Rizzo [Fri, 25 Aug 2006 20:10:56 +0000 (20:10 +0000)]
we really need BSD make here to understand the -V option.
Fix and document this.
(problem introduced in SVN 40753)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41147
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 25 Aug 2006 19:10:15 +0000 (19:10 +0000)]
fix redirect typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41133
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Fri, 25 Aug 2006 18:58:52 +0000 (18:58 +0000)]
fix a typo and clarify something else
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41120
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 25 Aug 2006 18:55:26 +0000 (18:55 +0000)]
remove the make version check, and instead, check for the actual bug that
causes our build system to blow up.
If anyone still sees problems and configure didn't detect a problem with make,
please let me know.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41119
65c4cc65-6c06-0410-ace0-
fbb531ad65f3