Tilghman Lesher
859c491cd0
When using a Local channel, started by a call file, with a destination of an
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@124315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-20 20:16:02 +00:00
Tilghman Lesher
db334a1edc
It's possible for a hangup to be received, even just after the initial cid
...
spill.
(closes issue #12453 )
Reported by: Alex728
Patches:
20080604__bug12453.diff.txt uploaded by Corydon76 (license 14)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-19 22:53:22 +00:00
Mark Michelson
83efc923de
Fix IMAP forwarding so that messages are sent to the proper mailbox.
...
(closes issue #12897 )
Reported by: jaroth
Patches:
destination_forward.patch uploaded by jaroth (license 50)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-19 20:28:41 +00:00
Brett Bryant
f35ccc37be
Merge revision 124064 from trunk. Add errors that report any locks held by threads when they are being closed.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@124066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-19 19:55:36 +00:00
Tilghman Lesher
64151b28f3
Change informative messages to use the _multiple variant when multiple formats
...
are possible.
(Closes issue #12848 )
Reported by klaus3000
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-19 16:58:19 +00:00
Tilghman Lesher
d5481a1303
Only process 40 arguments (20 files) at once with xargs, because some older
...
shells may force xargs to separate on an odd boundary.
(Closes issue #12883 )
Reported by Nik Soggia
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-19 16:26:03 +00:00
Tilghman Lesher
3841c847a3
Correct description of notifyringing option.
...
(Closes issue #12890 )
Reported by gminet
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123883 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-19 16:20:41 +00:00
Tilghman Lesher
f03638747b
The RDTSC instruction was introduced on the Pentium line of microprocessors,
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@123869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-19 16:07:23 +00:00
Tilghman Lesher
92047fec99
Add support for saying numbers in Hebrew.
...
(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: https://origsvn.digium.com/svn/asterisk/branches/1.4@123769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-18 22:08:30 +00:00
Tilghman Lesher
29261555d4
Set the variables top-down, so that if a script sets a variable more than once,
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@123710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-18 20:22:42 +00:00
Mark Michelson
524f305187
Make chan_sip build under dev mode with compilers >= GCC 4.2
...
Thanks to jpeeler for alerting me of this
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123485 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-17 20:26:38 +00:00
Tilghman Lesher
5b0a9ddd36
Fix 3 more places where not locking the structure could cause the wrong lock to be
...
unlocked. (Closes issue #12795 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-17 18:56:53 +00:00
Mark Michelson
1335983061
Cisco BTS sends SIP responses with a tab between the Cseq number and
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@123333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-17 18:09:16 +00:00
Mark Michelson
d7fbc9aae2
davidw pointed out that the holdtime calculation used by
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@123274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-17 15:56:55 +00:00
Russell Bryant
82cf65f89a
Fix a memory leak in astobj2 that was pointed out by seanbright. When a 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@123271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-17 15:48:31 +00:00
Tilghman Lesher
cc09f7c8ef
Port "hasvoicemail" change from SIP to other channel drivers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-16 19:50:12 +00:00
Tilghman Lesher
b815ecf349
People expect that if "hasvoicemail" is set in users.conf, even if "mailbox"
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@123110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-16 19:21:58 +00:00
Joshua Colp
461020bed4
Only compare the first 15 characters so that even if the charset is 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@122919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-16 12:31:09 +00:00
Joshua Colp
5ce568d24d
Don't send a BYE on a dialog that is already gone during a REFER.
...
(closes issue #12865 )
Reported by: flefoll
Patches:
chan_sip.c.br14.121495.patch-ALREADYGONE uploaded by flefoll (license 244)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-16 12:08:28 +00:00
Mark Michelson
5cc15b3468
Short circuit the loop in autoservice_run if there are no channels to poll.
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@122713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-13 21:44:53 +00:00
Jeff Peeler
a2266547c6
fixed dahdi compatability header from assuming either dahdi or zaptel is installed (may not have either)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-13 18:57:24 +00:00
Terry Wilson
d432d18723
Remove extra option from previous solution attempt
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-13 17:45:55 +00:00
Jeff Peeler
20229139b5
(closes issue #12846 )
...
Reported by: Netview
Tested by: jpeeler
Use correct location to search for tonezone.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-13 17:36:56 +00:00
Terry Wilson
e128c2a314
This should fix the behavior of the 'T' dial feature being passed 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@122589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-13 16:29:07 +00:00
Jeff Peeler
f9818af8dd
Adds DAHDI support alongside Zaptel. DAHDI usage favored, but all Zap stuff should continue working. Release announcement to follow.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-12 19:08:20 +00:00
Mark Michelson
9f669a3a09
Properly play a holdtime message if the announce-holdtime option is
...
set to "once."
(closes issue #12842 )
Reported by: ramonpeek
Patches:
patch001.diff uploaded by ramonpeek (license 266)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-12 18:50:58 +00:00
Russell Bryant
836d5c5afa
Fix some race conditions that cause ast_assert() to report that chan_iax2 tried
...
to remove an entry that wasn't in the scheduler
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-12 18:22:44 +00:00
Jeff Peeler
0c0a5cdc73
(closes issue #12193 )
...
Reported by: davidw
Patch by: Corydon76, modified by me to work properly with ParkAndAnnounce app
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-12 15:46:08 +00:00
Tilghman Lesher
3ca503066a
Flipflop the sections for two options, since the section for 'X' (exit context)
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@122137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-12 15:18:39 +00:00
Tilghman Lesher
4767c11e8b
Occasionally, the alertpipe loses its nonblocking status, so detect and correct
...
that situation before it causes a deadlock. (Reported and tested by ctooley
via #asterisk-dev)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@122130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-12 15:11:30 +00:00
Steve Murphy
50449140e8
Arkadia tried to warn me, but the code added to ast_cdr_busy, _failed, and _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: https://origsvn.digium.com/svn/asterisk/branches/1.4@122127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-12 14:51:44 +00:00
Steve Murphy
5c2cf0f3c0
(closes issue #10668 )
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@122046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-12 13:47:34 +00:00
Terry Wilson
c340004d76
Backport fix for 11520--for some reason I didn't do this back in February when I patched for trunk.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-11 23:47:23 +00:00
Tilghman Lesher
1c7d9e4c9a
Make calls to ast_assert() actually test something, so that the error message
...
printed is not nonsensical (reported by mvanbaak via #asterisk-bugs).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-11 18:18:16 +00:00
Jeff Peeler
28bb6bf00c
add instructions for logging gdb output via set logging on
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-11 16:11:09 +00:00
Christian Richter
21152f98f8
fixed issue with previous commit, the find_free_channel test for channels which where inuse was broken.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-11 09:28:04 +00:00
Sean Bright
43505344ad
Fixes a problem with some buggy versions of GNU awk (3.1.3) not liking carriage returns in scripts.
...
(closes issue #12749 )
Reported by: alinux
Tested by: Laureano (on #asterisk-dev), juggie
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-10 18:34:45 +00:00
Joshua Colp
fb87cc02f9
If we are destroying a dialog only set the MWI dialog pointer on the related peer to NULL if it is the dialog currently being destroyed.
...
(closes issue #12828 )
Reported by: ramonpeek
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-10 13:34:27 +00:00
Joshua Colp
88f21bd666
Update BRIDGEPEER variable before we do a generic bridge in case we just broke out of a native bridge and fell through to generic.
...
(closes issue #12815 )
Reported by: ramonpeek
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-10 12:52:06 +00:00
Russell Bryant
a3e4233c7d
Do not attempt to do emulation if an END digit is received and the length is
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@121280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-09 16:35:40 +00:00
Mark Michelson
c9915a8f27
A unique situation of timeouts brought forth a failure situation for
...
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@121229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-09 15:02:37 +00:00
Russell Bryant
7e3b1dc9ac
Don't run LIST_HEAD_DESTROY on a STATIC list
...
(closes issue #12807 )
Reported by: ys
Patches:
chan_agent_local.diff uploaded by ys (license 281)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-07 14:10:56 +00:00
Jeff Peeler
4162c566ad
add another LOW_MEMORY define I forgot
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-06 18:29:14 +00:00
Jeff Peeler
b9eb1170df
only define thread storage variable if necessary for LOW_MEMORY
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-06 18:05:15 +00:00
Jeff Peeler
a8281b2bcc
Correction to commmit 120863, make sure proper destructor function is called as well define two thread storage local variables.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-06 16:39:20 +00:00
Jeff Peeler
6d12307629
This fixes a crash when LOW_MEMORY is turned on. Two allocations of the ast_rtp struct that were previously allocated on the stack have been modified to use thread local storage instead.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-06 15:33:15 +00:00
Russell Bryant
47e3de10cf
fix filename
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-05 18:03:45 +00:00
Russell Bryant
4d8b50486d
Add the UPGRADE.txt file from Asterisk 1.2, for handy reference.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-05 18:01:25 +00:00
Philippe Sultan
d9ad9cc1e4
Ignore appended resource when comparing JIDs.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-05 16:56:15 +00:00
Russell Bryant
dae683eb3f
It turns out that searching on the forwarding station isn't very useful for
...
most people, so pull in the changes that allow searching for SMDI messages
based on other components of the SMDI message. Also, update the SMDI
documentation.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120671 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-05 16:38:52 +00:00