Commit Graph

7221 Commits

Author SHA1 Message Date
Joshua Colp
274f9027f3 Print certain CDR messages out at the NOTICE level versus WARNING since they can occur when used with the CDR applications and are perfectly fine. (issue #8367 reported by dartvader)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 18:42:45 +00:00
Joshua Colp
6180390206 Remember the pointer to the allocated block of memory so that we can free it and not cause a memory leak. (issue #8449 reported by arkadia)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 18:17:54 +00:00
Joshua Colp
3781699230 Document 'port' for SIP peers, came up because of the current mailing list thread. (issue #8450 reported by blitzrage)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 17:55:23 +00:00
Olle Johansson
faee7ae5f1 Do proper test and don't leave dialogs hanging...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 09:05:07 +00:00
Joshua Colp
d707910edb If the frame was duplicated before writing out then we need to free it. (issue #8429 reported by edguy3)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-29 16:47:10 +00:00
Joshua Colp
b6c058c6c4 According to the research I have done we never needed to include compiler.h in the first place so let's not! (issue #8430 reported by edguy3)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-28 16:56:01 +00:00
Joshua Colp
0c18e0a5e1 Use the proper function to get the new message count instead of always using the filesystem. (issue #8421 reported by slimey)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-27 18:03:57 +00:00
Tilghman Lesher
9bb51868ca Random MOH wasn't really random (bug 8381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-27 17:15:54 +00:00
Joshua Colp
54fc8c75d1 Do not reference the freed outgoing structure in the debug message. (issue #8425 reported by arkadia)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-27 15:30:37 +00:00
Olle Johansson
96a36252b6 Change some logging levels. Not having hints is not an ERROR, but still should be reported.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-24 14:33:27 +00:00
Christian Richter
f4137d1609 fixed a litle bug regarding HOLD/RETRIEVE. beatufied some logs, changed some loglevels. changed the default value of block_on_alarm
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-23 16:10:23 +00:00
Olle Johansson
279ebd00c5 Remove unused variable (rizzo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-23 10:54:40 +00:00
Steve Murphy
e189ffe5b5 This is the fix for bug 8386, wherein the time-limit args to dial didn't work correctly
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-22 02:19:09 +00:00
Tilghman Lesher
0e783db690 Failing to trap -1 error from mmap causes segfault (Issue 8385)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-20 19:59:07 +00:00
Joshua Colp
426bdb3b17 Don't forget to byte swap if we are exiting the smoother feed early. (issue #8287 reported by arturs)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-20 19:50:21 +00:00
Joshua Colp
fea6c62d61 Free history items at the end of use of the temporary SIP pvt structure. (issue #8383 reported by benh)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-20 16:16:22 +00:00
Olle Johansson
0b9a8ee148 Just to be safe, disable all the scheduled items after deleting a scheduler entry (rizzo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47842 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-20 10:17:36 +00:00
Kevin P. Fleming
ad0f8df528 backport proper channel_find_locked behavior from 1.4 branch (noted by Steve Davies on asterisk-dev list)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-17 19:02:09 +00:00
Jason Parker
b5d03cfa96 Fix a couple of typos in applications.. Initially spotted by mrobinson.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-16 23:16:35 +00:00
Kevin P. Fleming
91464b50ab update clearly wrong documentation regarding cdr_custom
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-16 22:57:31 +00:00
Joshua Colp
0127860f60 Look for the header file specifically in all cases, not just the existence of the directory. (issue #8358 reported by mrness)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-16 20:29:28 +00:00
Joshua Colp
e51a0e25f2 Because of the way chan_local is written we should be extra careful and make sure our callback functions have a tech_pvt. (issue #8275 reported by mflorell)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-16 18:26:50 +00:00
Olle Johansson
08570a5080 Don't fixup if we haven't got PVT. Suggestion from Martin Vit on -dev mailing list inspired
by file's commit to chan_local.

"This shouldn't happen" ;-)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-16 16:44:56 +00:00
Joshua Colp
e3de4d3653 Make sure that the pvt structure exists before trying to do fixup on Local channels. (issue #7937 reported by mada123, fix by alamantia with mods by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 22:29:30 +00:00
Olle Johansson
f41333b1c4 CANCEL requests are never authenticated (according to RFC 3261)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 21:18:47 +00:00
Kevin P. Fleming
c446ef9782 correct argument name typo that caused global variable to be used instead of the one for the specified voicemail user
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 20:30:29 +00:00
Kevin P. Fleming
3b2f1f1773 when re-writing the config file, don't repeat the path if it hasn't changed
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 19:58:46 +00:00
Kevin P. Fleming
2d94af17a7 when appending a list of variable to a category, ensure the tail pointer points to the last variable in the list
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 19:47:43 +00:00
Kevin P. Fleming
9c3789a5fd clear the category's variable tail pointer as well when variables are detached from it
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 19:42:05 +00:00
Kevin P. Fleming
f72827b78c ouch... don't use printf, use ast_log/ast_verbose
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 18:39:47 +00:00
Kevin P. Fleming
bedd43d2f9 ensure that message duration is included in email notifications for forwarded messages (BE-96, fix by me after corydon used his clue-bat on me)
ensure that duration in the message metadata is updated if prepending is done during forwarding (related to BE-96)
remove prototype for API call that does not exist


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 17:56:42 +00:00
Kevin P. Fleming
f1d6ccc16f ignore this generated file
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 17:07:53 +00:00
Olle Johansson
618dd887f1 Send error message if we fail to allocate sip socket, possibly caused by too few
file handles (wasn't possible before, but with the new way of sending temp messages, it is).

Found this bug under heavy load testing with SIPP.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 15:17:10 +00:00
Olle Johansson
e49736b059 Sending 200 OK and not getting ACK is considered critical for the call.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-15 13:08:34 +00:00
Joshua Colp
5cea7867b3 Update copyright information in the ADSI logo blob.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-14 22:15:10 +00:00
Olle Johansson
62cb689e89 Avoid collissions between the peerpoke system and the retransmits. Issue #8272.
In some cases, changed timers caused the retransmit system to destroy the dialog before peerpoke_expire
got a chance.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-14 11:06:31 +00:00
Joshua Colp
b640d51d40 Initialize global pointers for connection and result to NULL. (issue #8356 reported by james)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 21:26:36 +00:00
Tilghman Lesher
442781850b Having more than 255 old messages caused corruption in the new/old count
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 20:18:30 +00:00
Olle Johansson
ff0ce011a0 Don't send 487 if we've already sent 200 OK on invite at time of receiving a BYE in the same transaction.
(SIPP testing)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 19:04:39 +00:00
Joshua Colp
0d9602565f When sending an SMS with a user data header properly set the UDH flag in the first byte. (issue #8347 reported by hoffmeis)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 17:05:32 +00:00
Tilghman Lesher
a99b6a1c97 If the execute fails a second time, make sure that we don't pass back a stale handle
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 05:45:11 +00:00
Tilghman Lesher
ec623148c0 Don't play dialtone if the seizing the channel fails (Bug 7754)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 00:34:44 +00:00
Russell Bryant
18f4324baf Only do the check to determine whether the channel calling this function is an
IAX2 channel when getting the IP address using the special argument, 
CURRENTCHANNEL.  (issue #8341, jcovert)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-12 06:09:03 +00:00
Olle Johansson
474abf4656 Clear dialog on loop (backport from 1.4 by mistake)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-10 20:46:25 +00:00
Olle Johansson
55867f295a - Don't check for ignore in blocks that isn't reached if ignore is on...
- return properly after sending reply in handle_request_invite


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-10 19:37:41 +00:00
Olle Johansson
a7e9e0893b Fix multipart/mixed SDP support (issue 8010, alphaque)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-10 18:50:08 +00:00
Joshua Colp
06f51cc52f Don't include compiler.h on kernels 2.6.18 and higher as, well, it's apparently going to be removed. This should make all you FC6 fans happy as your Asterisk will now build without any mods.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 16:48:05 +00:00
Christian Richter
a173aeca9d Fixed segfault when no misdn.conf exists, reported by Igor Neves, thanks.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-09 13:09:10 +00:00
Olle Johansson
e37d7b6682 Destroy the proper dialog...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-08 07:40:38 +00:00
Olle Johansson
735b4cf688 Remove dialog properly at unload of module (rizzo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-08 07:31:34 +00:00