aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2008-06-25Pvt deadlock causes some channels to get stuck in Reserved status.tilghman1-3/+4
(closes issue #12621) Reported by: fabianoheringer Patches: 20080612__bug12621.diff.txt uploaded by Corydon76 (license 14) Tested by: fabianoheringer git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124965 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-24Occasionally control characters find their way into CallerID. These need totilghman1-12/+37
be stripped prior to placing CallerID in the headers of an email. (closes issue #12759) Reported by: RobH Patches: 20080602__bug12759__2.diff.txt uploaded by Corydon76 (license 14) Tested by: RobH git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124910 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-24Don't access the pvt structure if unable to acquire the lock.tilghman1-7/+18
(closes issue #12162) Reported by: norman Patches: 12162-lockfail.diff uploaded by qwell (license 4) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124908 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-23emit a warning if the old IAX2 call searching code finds a call when the new ↵kpfleming1-1/+16
code did not... so that we can get rid of the old code in 2-3 months git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124743 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-22(closes issue #12910)murf1-3/+3
Reported by: chris-mac Sorry, my testing did not contain the simple case of forkCDR(v), I am much embarrassed to admit. If I had, I would have more solidly initialized the opts element for varset. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124540 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-20usleep with a value over 1,000,000 is nonportable. Changing to use sleep()tilghman1-1/+1
instead. (closes issue #12814) Reported by: pputman Patches: app_rtp_sleep.patch uploaded by pputman (license 81) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124450 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-20If the last character in a string to be parsed is the delimiter, then we shouldtilghman1-2/+6
count that final empty string as an additional argument. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124395 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-20Fix issues in digium-mib.txt and asterisk-mib.txt to placate smilint - bug 12905jeffg2-41/+57
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124372 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-20When using a Local channel, started by a call file, with a destination of antilghman1-0/+3
AGI script, the AGI script does not always get notified of a hangup if the underlying channel hangs up early. (closes issue #11833) Reported by: IgorG Patches: local_hangup-v1.diff uploaded by IgorG (license 20) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124315 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19It's possible for a hangup to be received, even just after the initial cidtilghman1-1/+5
spill. (closes issue #12453) Reported by: Alex728 Patches: 20080604__bug12453.diff.txt uploaded by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124182 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Fix IMAP forwarding so that messages are sent to the proper mailbox.mmichelson1-0/+25
(closes issue #12897) Reported by: jaroth Patches: destination_forward.patch uploaded by jaroth (license 50) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124112 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Merge revision 124064 from trunk. Add errors that report any locks held by ↵bbryant1-0/+14
threads when they are being closed. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124066 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Change informative messages to use the _multiple variant when multiple formatstilghman1-4/+6
are possible. (Closes issue #12848) Reported by klaus3000 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123930 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Only process 40 arguments (20 files) at once with xargs, because some oldertilghman1-1/+1
shells may force xargs to separate on an odd boundary. (Closes issue #12883) Reported by Nik Soggia git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123909 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19Correct description of notifyringing option.tilghman1-1/+2
(Closes issue #12890) Reported by gminet git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123883 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19The RDTSC instruction was introduced on the Pentium line of microprocessors,tilghman1-1/+4
and is not compatible with certain 586 clones, like Cyrix. Hence, asking for i386 compatibility was always incorrect. See http://en.wikipedia.org/wiki/RDTSC (Closes issue #12886) Reported by tecnoxarxa git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123869 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-18Add support for saying numbers in Hebrew.tilghman2-161/+431
(closes issue #11662) Reported by: greenfieldtech Patches: say.c.patch-12042008 uploaded by greenfieldtech (license 369) Hebrew-Sounds.ods uploaded by greenfieldtech (with signficant changes to the spreadsheet by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123769 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-18Set the variables top-down, so that if a script sets a variable more than once,tilghman1-3/+12
the last one will take precedence. (closes issue #12673) Reported by: phber Patches: 20080519__bug12673.diff.txt uploaded by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123710 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17Make chan_sip build under dev mode with compilers >= GCC 4.2mmichelson1-1/+3
Thanks to jpeeler for alerting me of this git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123485 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17Fix 3 more places where not locking the structure could cause the wrong lock ↵tilghman1-12/+15
to be unlocked. (Closes issue #12795) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123391 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17Cisco BTS sends SIP responses with a tab between the Cseq number andmmichelson1-3/+3
SIP request method in the Cseq: header. Asterisk did not handle this properly, but with this patch, all is well. (closes issue #12834) Reported by: tobias_e Patches: 12834.patch uploaded by putnopvut (license 60) Tested by: tobias_e git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123333 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17davidw pointed out that the holdtime calculation used bymmichelson1-2/+2
app_queue does not use "boxcar" filtering as the comments say. The term "boxcar" means that the number of samples used to calculate stays constant, with new samples replacing the oldest ones. The queue holdtime calculation uses all holdtime samples collected since the queue was loaded, so the comment has been changed to be accurate. (closes issue #12781) Reported by: davidw git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123274 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17Fix a memory leak in astobj2 that was pointed out by seanbright. When a ↵russell1-0/+9
container got destroyed, the underlying bucket list entry for each object that was in the container at that time did not get free'd. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123271 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Port "hasvoicemail" change from SIP to other channel driverstilghman5-4/+24
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123113 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16People expect that if "hasvoicemail" is set in users.conf, even if "mailbox"tilghman1-0/+6
isn't set, that SIP will detect a mailbox. (closes issue #12855) Reported by: PLL Patches: 20080614__bug12855__2.diff.txt uploaded by Corydon76 (license 14) Tested by: PLL git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123110 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Only compare the first 15 characters so that even if the charset is ↵file1-1/+1
specified we still accept it as SDP. (closes issue #12803) Reported by: lanzaandrea Patches: chan_sip.c.diff uploaded by lanzaandrea (license 496) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122919 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Don't send a BYE on a dialog that is already gone during a REFER.file1-1/+1
(closes issue #12865) Reported by: flefoll Patches: chan_sip.c.br14.121495.patch-ALREADYGONE uploaded by flefoll (license 244) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122869 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-13Short circuit the loop in autoservice_run if there are no channels to poll.mmichelson1-0/+4
If we continued, then the result would be calling poll() with a NULL pollfd array. While this is fine with POSIX's poll(2) system call, those who use Asterisk's internal poll mechanism (Darwin systems) would have a failed assertion occur when poll is called. (related to issue #10342) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122713 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-13fixed dahdi compatability header from assuming either dahdi or zaptel is ↵jpeeler2-3/+3
installed (may not have either) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122663 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-13Remove extra option from previous solution attempttwilson1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122617 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-13(closes issue #12846)jpeeler2-3/+3
Reported by: Netview Tested by: jpeeler Use correct location to search for tonezone. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122613 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-13This should fix the behavior of the 'T' dial feature being passed ↵twilson2-17/+78
incorrectly to the transferee when builtin_atxfers are used. Also, doing a builtin_atxfer to parking was broken and is fixed here as well. (closes issue #11898) Reported by: sergee Tested by: otherwiseguy git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122589 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Adds DAHDI support alongside Zaptel. DAHDI usage favored, but all Zap stuff ↵jpeeler39-1517/+2104
should continue working. Release announcement to follow. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122314 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Properly play a holdtime message if the announce-holdtime option ismmichelson1-2/+3
set to "once." (closes issue #12842) Reported by: ramonpeek Patches: patch001.diff uploaded by ramonpeek (license 266) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122311 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Fix some race conditions that cause ast_assert() to report that chan_iax2 triedrussell1-0/+18
to remove an entry that wasn't in the scheduler git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122259 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12(closes issue #12193)jpeeler2-21/+38
Reported by: davidw Patch by: Corydon76, modified by me to work properly with ParkAndAnnounce app git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122208 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Flipflop the sections for two options, since the section for 'X' (exit context)tilghman1-15/+19
may otherwise absorb keypresses meant for 's' (admin/user menu). (closes issue #12836) Reported by: blitzrage Patches: 20080611__bug12836.diff.txt uploaded by Corydon76 (license 14) Tested by: blitzrage git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122137 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Occasionally, the alertpipe loses its nonblocking status, so detect and correcttilghman1-3/+26
that situation before it causes a deadlock. (Reported and tested by ctooley via #asterisk-dev) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122130 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Arkadia tried to warn me, but the code added to ast_cdr_busy, _failed, and ↵murf2-13/+1
_noanswer was redundant. Didn't spot it until I was resolving conflicts in trunk. Ugh. Redundant code removed. It wasn't harmful. Just dumb. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122127 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12(closes issue #10668)murf5-31/+160
Reported by: arkadia Tested by: murf, arkadia Options added to forkCDR() app and the CDR() func to remove some roadblocks for CDR applications. The "show application ForkCDR" output was upgraded to more fully explain the inner workings of forkCDR. The A option was added to forkCDR to force the CDR system to NOT change the disposition on the original CDR, after the fork. This involves ast_cdr_answer, _busy, _failed, and so on. The T option was added to forkCDR to force obedience of the cdr LOCKED flag in the ast_cdr_end, all the disposition changing funcs (ast_cdr_answer, etc), and in the ast_cdr_setvar func. The CHANGES file was updated to explain ALL the new options added to satisfy this bug report (and some requests made verbally and via email, irc, etc, over the past months/year) The 's' option was added to the CDR() func, to force it to skip LOCKED cdr's in the chain. Again, the new options should be totally transparent to existing apps! Current behavior of CDR, forkCDR, and the rest of the CDR system should not change one little bit. Until you add the new options, at least! git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122046 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11Backport fix for 11520--for some reason I didn't do this back in February ↵twilson6-7/+146
when I patched for trunk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121992 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11Make calls to ast_assert() actually test something, so that the error messagetilghman4-9/+8
printed is not nonsensical (reported by mvanbaak via #asterisk-bugs). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121861 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11add instructions for logging gdb output via set logging onjpeeler1-2/+8
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121804 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11fixed issue with previous commit, the find_free_channel test for channels ↵crichter1-8/+20
which where inuse was broken. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121751 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10Fixes a problem with some buggy versions of GNU awk (3.1.3) not liking ↵seanbright1-1/+1
carriage returns in scripts. (closes issue #12749) Reported by: alinux Tested by: Laureano (on #asterisk-dev), juggie git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121596 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10If we are destroying a dialog only set the MWI dialog pointer on the related ↵file1-1/+3
peer to NULL if it is the dialog currently being destroyed. (closes issue #12828) Reported by: ramonpeek git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121495 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10Update BRIDGEPEER variable before we do a generic bridge in case we just ↵file1-0/+6
broke out of a native bridge and fell through to generic. (closes issue #12815) Reported by: ramonpeek git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121442 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09Do not attempt to do emulation if an END digit is received and the length isrussell1-1/+4
less than the defined minimum digit length, and the other end only wants END digits (SIP INFO, for example). (closes issue #12778) Reported by: tsearle Patches: 12778.rev1.txt uploaded by russell (license 2) Tested by: tsearle git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121280 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09A unique situation of timeouts brought forth a failure situation formmichelson1-1/+11
autologoff in chan_agent. If using AgentCallbackLogin-style agents, then if the timeout specified by the Dial() to reach the agent's phone was shorter than the timeout specified in queues.conf, then autologoff would only work if the caller hung up while the agent's phone was ringing. This patch allows autologoff to work in this situation when the call in queue transfers to the next available agent (as it would have if the timeout in queues.conf were less than the timeout in the Dial()). (closes issue #12754) Reported by: Rodrigo Patches: 12754.patch uploaded by putnopvut (license 60) Tested by: Rodrigo git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121229 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-07Don't run LIST_HEAD_DESTROY on a STATIC listrussell2-2/+0
(closes issue #12807) Reported by: ys Patches: chan_agent_local.diff uploaded by ys (license 281) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121078 f38db490-d61c-443f-a65b-d21fe96a405b