asterisk/asterisk.git
14 years agoMerged revisions 42148 via svnmerge from
Joshua Colp [Wed, 6 Sep 2006 20:04:17 +0000 (20:04 +0000)]
Merged revisions 42148 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r42148 | file | 2006-09-06 16:02:59 -0400 (Wed, 06 Sep 2006) | 2 lines

Don't close the second file descriptor if it's the same as the first one, as it will have already been closed elsewhere and could cause massive panic. (issue #7699 reported by bn999)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42149 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agofixed pipe consuming bug when using chanIsAvail (#7878), also moved a debug log to...
Christian Richter [Wed, 6 Sep 2006 18:02:25 +0000 (18:02 +0000)]
fixed pipe consuming bug when using chanIsAvail (#7878), also moved a debug log to the very begining of misdn_hangup.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42126 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoThese small app documentation changes to app_dial and app_read will hopefully avert...
Steve Murphy [Wed, 6 Sep 2006 17:14:50 +0000 (17:14 +0000)]
These small app documentation changes to app_dial and app_read will hopefully avert any more 7544 type bug reports\!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42111 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMake this module fit the guidelines better
Joshua Colp [Wed, 6 Sep 2006 17:05:48 +0000 (17:05 +0000)]
Make this module fit the guidelines better

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42109 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMerged revisions 42086 via svnmerge from
Joshua Colp [Wed, 6 Sep 2006 15:58:21 +0000 (15:58 +0000)]
Merged revisions 42086 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r42086 | file | 2006-09-06 11:55:20 -0400 (Wed, 06 Sep 2006) | 2 lines

Make realtime regseconds work as people expected (0 on registration expiration or release, and actual on normal state) (issue #7684 reported by kshumard)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42087 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years ago- Free allocated memory before returning from function
Olle Johansson [Tue, 5 Sep 2006 20:36:27 +0000 (20:36 +0000)]
- Free allocated memory before returning from function
- Fix bad formatting
- Add some comments (more needed to understand what's going on)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42058 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoBlocked revisions 42054 via svnmerge
Joshua Colp [Tue, 5 Sep 2006 20:03:53 +0000 (20:03 +0000)]
Blocked revisions 42054 via svnmerge

........
r42054 | file | 2006-09-05 16:02:48 -0400 (Tue, 05 Sep 2006) | 2 lines

Merge in last round of spy fixes. This should hopefully eliminate all the issues people have been seeing by distinctly separating what each component (core/spy) is responsible for. Core is responsible for adding a spy to a channel, feeding frames to the spy, removing the spy from a channel, and telling the spy to stop. Spy is responsible for reading frames in, and cleaning up after itself.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42055 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMissing field terminator
Tilghman Lesher [Tue, 5 Sep 2006 17:23:50 +0000 (17:23 +0000)]
Missing field terminator

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42034 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMinor tweak - we need to lock the channel when we are removing the spy from it.
Joshua Colp [Tue, 5 Sep 2006 17:01:02 +0000 (17:01 +0000)]
Minor tweak - we need to lock the channel when we are removing the spy from it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42021 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMerged revisions 42014 via svnmerge from
Jason Parker [Tue, 5 Sep 2006 16:38:22 +0000 (16:38 +0000)]
Merged revisions 42014 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r42014 | qwell | 2006-09-05 09:27:46 -0700 (Tue, 05 Sep 2006) | 4 lines

Small typo in zapata.conf.sample

Reported by ppyy in 7881

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42015 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMake sure we handle CANCEL/ACK properly (imported with mods from 1.2)
Olle Johansson [Mon, 4 Sep 2006 15:57:26 +0000 (15:57 +0000)]
Make sure we handle CANCEL/ACK properly (imported with mods from 1.2)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41990 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoRemove old unused functions
Joshua Colp [Mon, 4 Sep 2006 03:18:12 +0000 (03:18 +0000)]
Remove old unused functions

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41974 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoUse tabs instead of spaces (I <3 tabs -- this is for you Qwell)
Joshua Colp [Sun, 3 Sep 2006 23:45:03 +0000 (23:45 +0000)]
Use tabs instead of spaces (I <3 tabs -- this is for you Qwell)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41960 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoMake the difference clear about what the responsibilities of the core and a spy are...
Joshua Colp [Sun, 3 Sep 2006 23:30:37 +0000 (23:30 +0000)]
Make the difference clear about what the responsibilities of the core and a spy are when it comes to spying on a channel. The core is responsible for adding a spy to a channel, feeding frames into the spy, removing the spy from the channel, and notifying the spy that is has been detached. The spy is responsible for reading frames in, and cleaning itself up. Each side will not try to do the other's job.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41959 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agoAdd the ability to specify that a frame should not be considered for caching
Russell Bryant [Sun, 3 Sep 2006 23:14:54 +0000 (23:14 +0000)]
Add the ability to specify that a frame should not be considered for caching
for uses in cases where you *know* that it will do no good.  This patch was
inspired by file for use in some work of his on mixmonitor/chanspy.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41958 65c4cc65-6c06-0410-ace0-fbb531ad65f3

14 years agowhen calling this function to append to a dynamic string and the buffer was not
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

14 years ago Provide a little more protection to make sure that a MOH class is specified when...
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

14 years ago Fix enum indexing problem with m() in WaitExten. Reported by Pavel J, in asterisk...
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

14 years ago Changes/fixes to the app_waitforsilence app to make it behave more the way the autho...
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

14 years ago This was added to app_dial a while back, and now it's in app_queue as well. Provide...
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

14 years ago Some changes/fixes for func_curl. curl_global_init is only supposed to be called...
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

14 years agoMerged revisions 41882 via svnmerge from
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

14 years ago Blocking 41880 from coming into /trunk since I already patched it in /trunk first...
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

14 years ago Don't keep trying the same member in certain strategies when members of the queue...
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

14 years agoTweak the if statement a bit
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

14 years agoDon't use ast_frdup() in the AST_LIST_INSERT_TAIL macro directly. That was a
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

14 years ago We don't spy on Zap/psuedo channels. Not at all. Never. (#7871 - sxpert reporting)
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

14 years agoremove leading space in Packet manager event header
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

14 years ago r41830 isn't going to merge cleanly into /trunk so it is blocked.
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

14 years agoMerged revisions 41827 via svnmerge from
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

14 years ago Block 30546 from coming into /trunk. Some old cleanup.
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

14 years ago With the somewhat recent addition (from one of the Astridevcon Europe sessions)...
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

14 years agoIt was pointed out to me, that using two frames is silly.
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

14 years agofix some module loader breakage
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

14 years agoFix VLDTMF issues.
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

14 years agoMerged revisions 41768 via svnmerge from
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

14 years agoget rid of some useless debug messages and raise debug level of others
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

14 years agomore staticness, and syntax cleaning
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

14 years agoUnbridge the RTP streams at the correct place
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

14 years agoIf we are doing video and we can't reinvite, then resort to generic bridging instead...
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

14 years agoblock this rev... fix is already present in this branch
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

14 years agowhitespace clean up
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

14 years agoYou see nothing...
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

14 years agoAnother formatting update for PCadach.
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

14 years ago0 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)
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

14 years agoMerged revisions 41690 via svnmerge from
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

14 years agoPCadach wanted better formatting of those 'if' conditions for 7859.
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

14 years agoIf no number is specified in the SIP_HEADER dialplan function, then just use the...
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

14 years agoThis small tweek will hopefully fix 7859, and silence all possible others
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

14 years agofix some breakage, MOG DID IT!!!
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

14 years agothere is no need for __iax_frame_free ...
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

14 years agospacing update
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

14 years agosmall typo
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

14 years agoeverything that loads a config that needs a config file to run
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

14 years agoTweak the DTMF muting stuff a bit to take into account VLDTMF and compensation.
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

14 years agofix for bugid: 0007830
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

14 years agothere is no need to use iax_frame_free here, as it will actually just end up
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

14 years agoIgnore DTMF begin frames in the waitstream core so that we don't get duplicate digits...
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

14 years agoDon't fail the write if they try to write a NULL or IAX frame as we just ignore these.
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

14 years agoAdd new frame types for DTMF
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

14 years agoOnly write a received packet out if we are actually bridged to something
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

14 years agoUse GLOBAL() in dialplan examples
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

14 years agooops.
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

14 years agoThe behavior of REGEX when it did not match was not defined by the docs, so
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

14 years agoThis commit is a basic AEL enhancement: c-style comments
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

14 years agoForce a rebuild since we mucked with enough stuff to justify it
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

14 years agoMerge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla Russell...
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

14 years agoUpdate configure script to check for Zaptel VLDTMF support since this will now be...
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

14 years agochange default setting for autofallthrough
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

14 years agoWhy check bridgepeer twice?
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

14 years agoupdate docs
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

14 years agoDon't add headers to an uninitialized eq (from issue 7694 garyhai, but not
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

14 years agoNote to myself: Remember Russell's note: Always compile first...
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

14 years agoMark ALERT_INFO as deprecated. This can now be done with the sipaddheader() applicati...
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

14 years agoadd a note about behavior of the "clid" field in the CDR
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

14 years agoIssue #7572 (Boesl) - hangup channel that get buggy 487 response (imported from 1.2)
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

14 years agoBlocked revisions 41411 via svnmerge
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

14 years agoMerged revisions 41390 via svnmerge from
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

14 years agofix a bug introduced when I merged my frame caching branch. Queue the
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

14 years agoClarify what show translations is displaying a bit more (issue #7772 reported by...
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

14 years agoPrint what read-only variable is being set so that the user doesn't have to guess...
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

14 years agoOnly feed a DTMF frame into the core if we need to
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

14 years agoIssue #7822 - don't issue SRV lookups if it's disabled. (barthek)
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

14 years agoFix transcoding performance issue
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

14 years agoOnly switch the second alert fd (which is RTCP) to callback mode if it is in use
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

14 years agoUse an API call (ast_rtp_get_bridged) to return the RTP stream we are bridged to...
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

14 years agoIf the RTP stack is already being operated in callback mode, then suspend it upon...
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

14 years agoThis is the last round of RTP bridge optimizations. Basically it introduces a way...
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

14 years agoMove the direct bridge write to after the NAT handling code
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

14 years agomake menuselect configure process be silent when possible
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

14 years agoThis change fixes bug 7820. Way back in April this bug was reintroduced, it appears...
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

14 years agoKevins last commit made me spot a typo.
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

14 years agoadd one remaining bit of functionality to the features.conf applicationmap (from...
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

14 years agoLimit challenges to 9 digits in length
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

14 years agoMerge team/russell/frame_caching
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

14 years agosuppress compiler warning
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

14 years agoupdate to reflect recent rtp changes
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

14 years agosuppress compiler warning
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

14 years agoMerged revisions 41269 via svnmerge from
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

14 years agoCommitted a fix for 7731, suggested by mnehauser.
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