Mark Michelson
0d470a0525
Fix build for non-IMAP builds
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-14 21:03:02 +00:00
Mark Michelson
e70abb4a9e
Fix the new message count if delete=yes when using IMAP storage.
...
(closes issue #11406 )
Reported by: jaroth
Patches:
deleteflag_v2.patch uploaded by jaroth (license 50)
Tested by: jaroth
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-14 20:55:48 +00:00
Jason Parker
f29e9e72ba
swap location for this..
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-14 19:51:39 +00:00
Jason Parker
01b6eae2e5
Document the 'l' option to the CDR() function.
...
(Thanks voipgate for pointing out the option, and Leif for providing text for it.)
Closes issue #11695 .
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-14 19:51:10 +00:00
Tilghman Lesher
e049bdfcfa
We aren't talking to ourselves; we're talking to someone else.
...
(closes issue #11771 )
Reported by: msetim
Patches:
ami_agent_talkingto-1.4.diff uploaded by caio1982 (license 22)
Tested by: caio1982, msetim
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-13 06:25:03 +00:00
Tilghman Lesher
3e014ecd0b
Refuse to load app_voicemail if res_adsi is not loaded (which is a symbol dependency)
...
(closes issue #11760 )
Reported by: non-poster
Patches:
20080114__bug11760.diff.txt uploaded by Corydon76 (license 14)
Tested by: Corydon76, non-poster, jamesgolovich
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-13 00:26:57 +00:00
Jason Parker
335e583040
revert accidental change from last commit. oops
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-12 22:24:03 +00:00
Jason Parker
3bc94a27ca
Remove condition that was impossible.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-12 22:22:54 +00:00
Joshua Colp
f3f663d6fd
Even if no CallerID name or number has been provided by the remote party still use the configured sip.conf ones.
...
(closes issue #11977 )
Reported by: pj
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-12 15:09:24 +00:00
Joshua Colp
0b110bb5e8
If entering a conference with the 'w' option ensure that we can't listen or speak until the marked user appears.
...
(closes issue #11835 )
Reported by: alanmcmillan
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-11 22:09:07 +00:00
Kevin P. Fleming
3071e378bd
improve 2BCT documentation a bit (thanks Jared)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-11 17:05:22 +00:00
Tilghman Lesher
42463c4bb2
Commit fix for being unable to send voicemail from VoiceMailMain
...
Reported by: William F Acker (via the -users mailing list)
Patch by: Corydon76 (license 14)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-09 06:23:49 +00:00
Mark Michelson
cb8ffc789e
Prevent a potential three-thread deadlock. Also added a comment block
...
to explicitly state the locking order necessary inside app_queue.
(closes issue #11862 )
Reported by: flujan
Patches:
11862.patch uploaded by putnopvut (license 60)
Tested by: flujan
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-08 18:48:17 +00:00
Mark Michelson
19f5074cd8
Yield the thread and return -1 if the ioctl fails for Zaptel timing device.
...
(closes issue #11891 )
Reported by: tzafrir
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-08 18:00:38 +00:00
Joshua Colp
5e3cbd6f92
Make sure the presence of dbsecret is factored into user scoring.
...
(closes issue #11952 )
Reported by: bbhoss
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-08 15:08:20 +00:00
Jason Parker
caa961fbcf
Specify which digit string was matched in debug message.
...
(closes issue #11949 )
Reported by: dimas
Patches:
v1-feature-debug.patch uploaded by dimas (license 88)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-07 19:53:55 +00:00
Kevin P. Fleming
ab0a5f3361
document usage of 'transfer' configuration option for ISDN PRI switch-side transfers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-07 16:41:55 +00:00
Joshua Colp
f26bac62e6
Only consider a T.38-only INVITE compatible if we have both a joint capability between us and them and if they provided T.38.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-06 17:59:23 +00:00
Joshua Colp
82db5adb94
Add missing header file and ASTERISK_FILE_VERSION usage.
...
(closes issue #11936 )
Reported by: snuffy
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-06 15:43:38 +00:00
Russell Bryant
c02a439e3b
Clarify setting DYNAMIC_FEATURES so that it gets inherited by outbound channels.
...
(due to a discussion between me and a user via email)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-06 15:19:41 +00:00
Kevin P. Fleming
5b8cef7ecb
ensure that all remaining multi-object modules are built using their proper CFLAGS and include directory paths
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-06 11:48:48 +00:00
Tilghman Lesher
c9bb4fc12a
Move around some defines to unbreak ODBC storage.
...
(closes issue #11932 )
Reported by: snuffy
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-06 00:26:02 +00:00
Mark Michelson
748609f25e
Clear the DTMF buffer on hangup.
...
(closes issue #11919 )
Reported by: eferro
Patches:
mgcp_dtmfclean_on_hangup.diff uploaded by eferro (license 337)
Tested by: eferro
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102453 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-05 20:02:44 +00:00
Joshua Colp
e9c59d95eb
If a REGISTER attempt comes in that is a retransmission of a previous REGISTER do not create a new nonce value.
...
(issue #BE-381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-05 19:52:30 +00:00
Kevin P. Fleming
8a2fd8fdbd
ensure that components of chan_misdn.so are built using any special build options that the configure script generated (reported by Philipp Kempgen on asterisk-dev)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-05 17:15:36 +00:00
Joshua Colp
8dad56f666
Perform dialing asynchronously when using the originate CLI command so the CLI does not appear to block.
...
(closes issue #11927 )
Reported by: bbhoss
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-05 15:09:29 +00:00
Tilghman Lesher
0dafcac660
Cross-platform fix: OS X now deprecates the use of the daemon(3) API.
...
(closes issue #11908 )
Reported by: oej
Patches:
20080204__bug11908.diff.txt uploaded by Corydon76 (license 14)
Tested by: Corydon76
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-04 21:06:09 +00:00
Tilghman Lesher
1dde474916
Missing braces.
...
(closes issue #11912 )
Reported by: dimas
Patches:
sprintf.patch uploaded by dimas (license 88)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-04 05:10:02 +00:00
Olle Johansson
649a083adb
Use the same CSEQ on CANCEL as on INVITE (according to RFC 3261)
...
(closes issue #9492 )
Reported by: kryptolus
Patches:
bug9492.txt uploaded by oej (license 306)
Tested by: oej
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-03 16:38:12 +00:00
Olle Johansson
9a5d78c2c7
Handle ACK and CANCEL in an invite transaction - even if we get INFO transactions during the actual call setup.
...
(closes issue #10567 )
Reported by: jacksch
Tested by: oej
Patch by: oej inspired by suggestions from neutrino88 in the bug tracker
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-03 10:37:32 +00:00
Russell Bryant
26365fdeca
Change the SDP_SAMPLE_RATE macro. It turns out that even though G.722 is 16 kHz,
...
it is supposed to specified as 8 kHz in the RTP, and RTP timestamps are supposed
to be calculated based on 8 kHz. (Apparently this is due to a bug in a spec, but
people follow it anyway, because it's the spec ...)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 23:06:32 +00:00
Tilghman Lesher
5f7afc8678
Fix the VM_DUR variable for forwarded voicemail, and fixed several other bugs
...
while I'm in the area.
(closes issue #11615 )
Reported by: jamessan
Patches:
20071226__bug11615__2.diff.txt uploaded by Corydon76 (license 14)
Tested by: Corydon76, jamessan
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 21:54:28 +00:00
Tilghman Lesher
1191559147
Change detection of getifaddrs to use AST_C_COMPILE_CHECK, backported from trunk (as suggested by kpfleming)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 19:36:12 +00:00
Jason Parker
d80ecba23f
Remove a needless (and incorrect) call to feof() after fgets().
...
This would have exited the loop early if you had an authentication file with no newline at the end.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 17:41:40 +00:00
Russell Bryant
aa58033acb
off by one error
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 17:27:02 +00:00
Russell Bryant
552f2e1b4c
Don't overwrite the last character of a line if it's not a newline. This would
...
happen if the last line in the file doesn't have a newline.
(pointed out by Qwell)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 17:23:47 +00:00
Tilghman Lesher
df1dc7741d
Compatibility fix for OpenWRT (reported by Brian Capouch via the mailing list)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 15:55:58 +00:00
Russell Bryant
fe59cfa7aa
Add some more sanity checking on IAX2 dial strings for the case that no peer
...
or hostname was provided, which is the one part of the dial string that is
absolutely required. If it's not there, bail out.
(closes issue #11897 )
Reported by sokhapkin
Patch by me
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 00:32:49 +00:00
Mark Michelson
a4c24a807c
From bugtracker: "fix totalAnalysisTime to handle periods of no channel activity"
...
(closes issue #9256 )
Reported by: cmaj
Patches:
amd-dont-wait-too-long-for-frames-take3.diff.txt uploaded by cmaj (license 111)
Tested by: cmaj, skygreg, ZX81, rjain
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101649 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-01 00:06:37 +00:00
Russell Bryant
e4ee2274a1
Fix a couple of places where ast_frfree() was not called on a frame that came
...
from a translator. This showed itself by g729 decoders not getting released.
Since the flag inside the translator frame never got unset by freeing the frame
to indicate it was no longer in use, the translators never got destroyed, and
thus the g729 licenses were not released.
(closes issue #11892 )
Reported by: xrg
Patches:
11892.diff uploaded by russell (license 2)
Tested by: xrg, russell
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-31 23:10:06 +00:00
Mark Michelson
bd9a40f98a
1. Prevent the addition of an extra '/' to the beginning of an absolute pathname.
...
2. If ast_monitor_change_fname is called and the new filename is the same as the old, then exit early and don't set the
filename_changed field in the monitor structure. Setting it in this case was causing ast_monitor_stop to erroneously
delete them.
(closes issue #11741 )
Reported by: garlew
Tested by: putnopvut
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-31 21:00:24 +00:00
Jason Parker
9742fb53fe
Solaris compat fixes for struct in_addr funkiness.
...
Issue #11885 , patch by snuffy.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-31 19:52:49 +00:00
Steve Murphy
595ab7340d
closes issue #11845 ; that's the one where there's a 1004 byte cdr leak with every AMI Redirect to a zap channel
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101480 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-31 19:30:37 +00:00
Russell Bryant
0343bf8348
Add more missing locking of the agents list ...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-31 19:17:05 +00:00
Russell Bryant
70200cec77
Move the locking from find_agent() into the agent dialplan function handler to
...
ensure that the agent doesn't disappear while we're looking at it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-31 19:07:46 +00:00
Russell Bryant
c6c7c3bf58
Add missing locking to the find_agent() function.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-31 19:04:52 +00:00
Joshua Colp
7b31f51cf9
Fix an issue where if a frame of higher sample size preceeded a frame of lower sample size and ast_slinfactory_read was called with a sample size of the combined values or higher a crash would happen.
...
(closes issue #11878 )
Reported by: stuarth
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101222 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-30 15:41:04 +00:00
Jason Parker
ebbc70daab
Change default config to use descending channel order of groups, rather than ascending.
...
Fixes a potential source of confusion in glare-type situations.
Issue 11875, reported by JimVanM.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101219 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-30 15:34:37 +00:00
Mark Michelson
2e4650c242
Fix a logic error with regards to autofill. Prior to this change, it was possible
...
for a caller to go out of turn if autofill were enabled and callers ahead in the queue were attempting
to call a member. This change fixes this.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101216 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-30 15:23:00 +00:00
Olle Johansson
5e02b0d76e
Stop musiconhold on attended transfer.
...
(closes issue #11872 )
Reported by: gareth
Patches:
svn-101018.patch uploaded by gareth (license 208)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@101152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-01-30 11:20:31 +00:00