]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoEnsure that the file position is not incremented beyond the total number of
Russell Bryant [Thu, 7 Dec 2006 18:14:13 +0000 (18:14 +0000)] 
Ensure that the file position is not incremented beyond the total number of
files available for playback.  (issue #8539, ulogic)

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

18 years agoFix the name of the rtignoreregexpire option in the sample configuration file.
Russell Bryant [Wed, 6 Dec 2006 16:05:54 +0000 (16:05 +0000)] 
Fix the name of the rtignoreregexpire option in the sample configuration file.
(issue #8526, arkadia)

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

18 years agoadded the export and import of the MISDN_ADDRESS_COMPLETE Variable to inidcate wether...
Christian Richter [Wed, 6 Dec 2006 15:48:45 +0000 (15:48 +0000)] 
added the export and import of the MISDN_ADDRESS_COMPLETE Variable to inidcate wether the extension is already completely dialed or if there might come additional digits by information elements. also added some docs for that.

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

18 years agoIssue #8528 - make sure we don't delete the dialog too quickly after receiving
Olle Johansson [Wed, 6 Dec 2006 15:42:41 +0000 (15:42 +0000)] 
Issue #8528 - make sure we don't delete the dialog too quickly after receiving
a 487. Move 487 handling into handle_response_invite where it really
belongs and don't add an ALREADYGONE flag to the dialog.

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

18 years agochanged a few debugs to higher debug levels
Christian Richter [Wed, 6 Dec 2006 14:35:25 +0000 (14:35 +0000)] 
changed a few debugs to higher debug levels

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

18 years agoDon't add Contact header on BYE, CANCEL, MESSAGE requests
Olle Johansson [Wed, 6 Dec 2006 12:14:40 +0000 (12:14 +0000)] 
Don't add Contact header on BYE, CANCEL, MESSAGE requests
(Bye, Cancel backported from 1.4, MESSAGE bug reported to me by Gunnar at Omnitor)

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

18 years agoOnly set the ALREADYGONE flag once in handle_response()
Olle Johansson [Tue, 5 Dec 2006 17:59:15 +0000 (17:59 +0000)] 
Only set the ALREADYGONE flag once in handle_response()

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

18 years agoIf the recording in the database is too large, it will fail to retrieve with
Tilghman Lesher [Tue, 5 Dec 2006 01:26:08 +0000 (01:26 +0000)] 
If the recording in the database is too large, it will fail to retrieve with
an mmap error.  Not too sure why this doesn't happen when we put it in the
database, also, but since that doesn't seem to be broken, I'm not going to fix
it (at least until someone reports it).  Solution is to ask for the file in
smaller chunks.  (Bug 8385)

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

18 years agoRevert change from 8016 - this breaks other stuff... Needs further review.
Jason Parker [Mon, 4 Dec 2006 21:20:34 +0000 (21:20 +0000)] 
Revert change from 8016 - this breaks other stuff...  Needs further review.

Tip: When you've reported a bug about something and somebody has put up a
patch for it..  It's not a good idea to open a completely new bug and say that
something is broken because of the patch in the other bug - PLEASE mention
something in the bug where the patch was actually created.

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

18 years agoFix an issue where a message isn't saved correctly when using ODBC storage and review...
Jason Parker [Mon, 4 Dec 2006 19:06:26 +0000 (19:06 +0000)] 
Fix an issue where a message isn't saved correctly when using ODBC storage and reviewing a message.

Issue 8016 - patch by sokhapkin.

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

18 years agoIf the generic bridge tells us not to retry, and we have a frame to spit out then...
Joshua Colp [Mon, 4 Dec 2006 18:14:46 +0000 (18:14 +0000)] 
If the generic bridge tells us not to retry, and we have a frame to spit out then break the bridge. Props to markit in #asterisk-bugs for bringing this up.

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

18 years agoif Dial() is going to send music-on-hold to the calling party, it has to send PROGRES...
Kevin P. Fleming [Fri, 1 Dec 2006 23:30:59 +0000 (23:30 +0000)] 
if Dial() is going to send music-on-hold to the calling party, it has to send PROGRESS first to ensure that the reverse audio path has been setup first (BE-106)

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

18 years agoFix a small typo - issue 8848, reported by pabelanger
Jason Parker [Fri, 1 Dec 2006 20:19:10 +0000 (20:19 +0000)] 
Fix a small typo - issue 8848, reported by pabelanger

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

18 years agoIssue 8319 - noriyuki - nonce-count updated *after* use
Olle Johansson [Thu, 30 Nov 2006 20:47:53 +0000 (20:47 +0000)] 
Issue 8319 - noriyuki - nonce-count updated *after* use

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

18 years agoDon't write AST_FRAME_NULL or AST_FRAME_IAX frames out to the channel driver. (issue...
Joshua Colp [Thu, 30 Nov 2006 20:27:29 +0000 (20:27 +0000)] 
Don't write AST_FRAME_NULL or AST_FRAME_IAX frames out to the channel driver. (issue #8390 reported by hselasky)

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

18 years agoOnly print out debug message if bridged channel is not NULL. (issue #8412 reported...
Joshua Colp [Thu, 30 Nov 2006 20:06:43 +0000 (20:06 +0000)] 
Only print out debug message if bridged channel is not NULL. (issue #8412 reported by jubilex)

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

18 years agoDo not listen for DTMF on the bridge that comes into existence when ParkedCall is...
Joshua Colp [Thu, 30 Nov 2006 19:04:11 +0000 (19:04 +0000)] 
Do not listen for DTMF on the bridge that comes into existence when ParkedCall is executed. This means native bridging can now occur for this. (issue #8406 reported by kebl0155)

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

18 years agoPrint certain CDR messages out at the NOTICE level versus WARNING since they can...
Joshua Colp [Thu, 30 Nov 2006 18:42:45 +0000 (18:42 +0000)] 
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

18 years agoRemember the pointer to the allocated block of memory so that we can free it and...
Joshua Colp [Thu, 30 Nov 2006 18:17:54 +0000 (18:17 +0000)] 
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

18 years agoDocument 'port' for SIP peers, came up because of the current mailing list thread...
Joshua Colp [Thu, 30 Nov 2006 17:55:23 +0000 (17:55 +0000)] 
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

18 years agoDo proper test and don't leave dialogs hanging...
Olle Johansson [Thu, 30 Nov 2006 09:05:07 +0000 (09:05 +0000)] 
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

18 years agoIf the frame was duplicated before writing out then we need to free it. (issue #8429...
Joshua Colp [Wed, 29 Nov 2006 16:47:10 +0000 (16:47 +0000)] 
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

18 years agoAccording to the research I have done we never needed to include compiler.h in the...
Joshua Colp [Tue, 28 Nov 2006 16:56:01 +0000 (16:56 +0000)] 
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

18 years agoUse the proper function to get the new message count instead of always using the...
Joshua Colp [Mon, 27 Nov 2006 18:03:57 +0000 (18:03 +0000)] 
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

18 years agoRandom MOH wasn't really random (bug 8381)
Tilghman Lesher [Mon, 27 Nov 2006 17:15:54 +0000 (17:15 +0000)] 
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

18 years agoDo not reference the freed outgoing structure in the debug message. (issue #8425...
Joshua Colp [Mon, 27 Nov 2006 15:30:37 +0000 (15:30 +0000)] 
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

18 years agoChange some logging levels. Not having hints is not an ERROR, but still should be...
Olle Johansson [Fri, 24 Nov 2006 14:33:27 +0000 (14:33 +0000)] 
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

18 years agofixed a litle bug regarding HOLD/RETRIEVE. beatufied some logs, changed some loglevel...
Christian Richter [Thu, 23 Nov 2006 16:10:23 +0000 (16:10 +0000)] 
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

18 years agoRemove unused variable (rizzo)
Olle Johansson [Thu, 23 Nov 2006 10:54:40 +0000 (10:54 +0000)] 
Remove unused variable (rizzo)

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

18 years agoThis is the fix for bug 8386, wherein the time-limit args to dial didn't work correctly
Steve Murphy [Wed, 22 Nov 2006 02:19:09 +0000 (02:19 +0000)] 
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

18 years agoFailing to trap -1 error from mmap causes segfault (Issue 8385)
Tilghman Lesher [Mon, 20 Nov 2006 19:59:07 +0000 (19:59 +0000)] 
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

18 years agoDon't forget to byte swap if we are exiting the smoother feed early. (issue #8287...
Joshua Colp [Mon, 20 Nov 2006 19:50:21 +0000 (19:50 +0000)] 
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

18 years agoFree history items at the end of use of the temporary SIP pvt structure. (issue ...
Joshua Colp [Mon, 20 Nov 2006 16:16:22 +0000 (16:16 +0000)] 
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

18 years agoJust to be safe, disable all the scheduled items after deleting a scheduler entry...
Olle Johansson [Mon, 20 Nov 2006 10:17:36 +0000 (10:17 +0000)] 
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

18 years agobackport proper channel_find_locked behavior from 1.4 branch (noted by Steve Davies...
Kevin P. Fleming [Fri, 17 Nov 2006 19:02:09 +0000 (19:02 +0000)] 
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

18 years agoFix a couple of typos in applications.. Initially spotted by mrobinson.
Jason Parker [Thu, 16 Nov 2006 23:16:35 +0000 (23:16 +0000)] 
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

18 years agoupdate clearly wrong documentation regarding cdr_custom
Kevin P. Fleming [Thu, 16 Nov 2006 22:57:31 +0000 (22:57 +0000)] 
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

18 years agoLook for the header file specifically in all cases, not just the existence of the...
Joshua Colp [Thu, 16 Nov 2006 20:29:28 +0000 (20:29 +0000)] 
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

18 years agoBecause of the way chan_local is written we should be extra careful and make sure...
Joshua Colp [Thu, 16 Nov 2006 18:26:50 +0000 (18:26 +0000)] 
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

18 years agoDon't fixup if we haven't got PVT. Suggestion from Martin Vit on -dev mailing list...
Olle Johansson [Thu, 16 Nov 2006 16:44:56 +0000 (16:44 +0000)] 
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

18 years agoMake sure that the pvt structure exists before trying to do fixup on Local channels...
Joshua Colp [Wed, 15 Nov 2006 22:29:30 +0000 (22:29 +0000)] 
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

18 years agoCANCEL requests are never authenticated (according to RFC 3261)
Olle Johansson [Wed, 15 Nov 2006 21:18:47 +0000 (21:18 +0000)] 
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

18 years agocorrect argument name typo that caused global variable to be used instead of the...
Kevin P. Fleming [Wed, 15 Nov 2006 20:30:29 +0000 (20:30 +0000)] 
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

18 years agowhen re-writing the config file, don't repeat the path if it hasn't changed
Kevin P. Fleming [Wed, 15 Nov 2006 19:58:46 +0000 (19:58 +0000)] 
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

18 years agowhen appending a list of variable to a category, ensure the tail pointer points to...
Kevin P. Fleming [Wed, 15 Nov 2006 19:47:43 +0000 (19:47 +0000)] 
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

18 years agoclear the category's variable tail pointer as well when variables are detached from it
Kevin P. Fleming [Wed, 15 Nov 2006 19:42:05 +0000 (19:42 +0000)] 
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

18 years agoouch... don't use printf, use ast_log/ast_verbose
Kevin P. Fleming [Wed, 15 Nov 2006 18:39:47 +0000 (18:39 +0000)] 
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

18 years agoensure that message duration is included in email notifications for forwarded message...
Kevin P. Fleming [Wed, 15 Nov 2006 17:56:42 +0000 (17:56 +0000)] 
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

18 years agoignore this generated file
Kevin P. Fleming [Wed, 15 Nov 2006 17:07:53 +0000 (17:07 +0000)] 
ignore this generated file

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

18 years agoSend error message if we fail to allocate sip socket, possibly caused by too few
Olle Johansson [Wed, 15 Nov 2006 15:17:10 +0000 (15:17 +0000)] 
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

18 years agoSending 200 OK and not getting ACK is considered critical for the call.
Olle Johansson [Wed, 15 Nov 2006 13:08:34 +0000 (13:08 +0000)] 
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

18 years agoUpdate copyright information in the ADSI logo blob.
Joshua Colp [Tue, 14 Nov 2006 22:15:10 +0000 (22:15 +0000)] 
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

18 years agoAvoid collissions between the peerpoke system and the retransmits. Issue #8272.
Olle Johansson [Tue, 14 Nov 2006 11:06:31 +0000 (11:06 +0000)] 
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

18 years agoInitialize global pointers for connection and result to NULL. (issue #8356 reported...
Joshua Colp [Mon, 13 Nov 2006 21:26:36 +0000 (21:26 +0000)] 
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

18 years agoHaving more than 255 old messages caused corruption in the new/old count
Tilghman Lesher [Mon, 13 Nov 2006 20:18:30 +0000 (20:18 +0000)] 
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

18 years agoDon't send 487 if we've already sent 200 OK on invite at time of receiving a BYE...
Olle Johansson [Mon, 13 Nov 2006 19:04:39 +0000 (19:04 +0000)] 
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

18 years agoWhen sending an SMS with a user data header properly set the UDH flag in the first...
Joshua Colp [Mon, 13 Nov 2006 17:05:32 +0000 (17:05 +0000)] 
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

18 years agoIf the execute fails a second time, make sure that we don't pass back a stale handle
Tilghman Lesher [Mon, 13 Nov 2006 05:45:11 +0000 (05:45 +0000)] 
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

18 years agoDon't play dialtone if the seizing the channel fails (Bug 7754)
Tilghman Lesher [Mon, 13 Nov 2006 00:34:44 +0000 (00:34 +0000)] 
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

18 years agoOnly do the check to determine whether the channel calling this function is an
Russell Bryant [Sun, 12 Nov 2006 06:09:03 +0000 (06:09 +0000)] 
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

18 years agoClear dialog on loop (backport from 1.4 by mistake)
Olle Johansson [Fri, 10 Nov 2006 20:46:25 +0000 (20:46 +0000)] 
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

18 years ago- Don't check for ignore in blocks that isn't reached if ignore is on...
Olle Johansson [Fri, 10 Nov 2006 19:37:41 +0000 (19:37 +0000)] 
- 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

18 years agoFix multipart/mixed SDP support (issue 8010, alphaque)
Olle Johansson [Fri, 10 Nov 2006 18:50:08 +0000 (18:50 +0000)] 
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

18 years agoDon't include compiler.h on kernels 2.6.18 and higher as, well, it's apparently going...
Joshua Colp [Thu, 9 Nov 2006 16:48:05 +0000 (16:48 +0000)] 
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

18 years agoFixed segfault when no misdn.conf exists, reported by Igor Neves, thanks.
Christian Richter [Thu, 9 Nov 2006 13:09:10 +0000 (13:09 +0000)] 
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

18 years agoDestroy the proper dialog...
Olle Johansson [Wed, 8 Nov 2006 07:40:38 +0000 (07:40 +0000)] 
Destroy the proper dialog...

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

18 years agoRemove dialog properly at unload of module (rizzo)
Olle Johansson [Wed, 8 Nov 2006 07:31:34 +0000 (07:31 +0000)] 
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

18 years agoThis mod for bug_7506, to make the manager code output the proper event
Steve Murphy [Tue, 7 Nov 2006 18:22:01 +0000 (18:22 +0000)] 
This mod for bug_7506, to make the manager code output the proper event

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

18 years agoDon't ever reply to an ACK. (Issue 8265)
Olle Johansson [Tue, 7 Nov 2006 13:02:30 +0000 (13:02 +0000)] 
Don't ever reply to an ACK. (Issue 8265)

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

18 years agoIf random order is enabled for files mode music on hold, set a random initial
Russell Bryant [Tue, 7 Nov 2006 01:22:58 +0000 (01:22 +0000)] 
If random order is enabled for files mode music on hold, set a random initial
position, instead of always starting at the first file, and doing the random
operation only when switching to the next file.
(bug reported by John Lange on the asterisk-dev mailing list)

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

18 years agoignore files in a music on hold directory that begin with '.'
Russell Bryant [Thu, 2 Nov 2006 17:47:56 +0000 (17:47 +0000)] 
ignore files in a music on hold directory that begin with '.'
(issue #8249, cboie)

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

18 years agoread then commit.... better fix for bug 8083 as
Matt O'Gorman [Thu, 2 Nov 2006 17:12:56 +0000 (17:12 +0000)] 
read then commit.... better fix for bug 8083 as
suggested by my peers

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

18 years agoRepeat after me oej: I will at least make sure my code compiles before I commit it.
Joshua Colp [Thu, 2 Nov 2006 16:02:27 +0000 (16:02 +0000)] 
Repeat after me oej: I will at least make sure my code compiles before I commit it.

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

18 years agoDon't overwrite flags in the packet
Olle Johansson [Thu, 2 Nov 2006 15:15:06 +0000 (15:15 +0000)] 
Don't overwrite flags in the packet

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

18 years agoAdd a missing call to free before returning in an error condition
Russell Bryant [Thu, 2 Nov 2006 13:55:39 +0000 (13:55 +0000)] 
Add a missing call to free before returning in an error condition
(issue #8268, mrness)

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

18 years agofix for bug #8083 crash caused by double free on m->msg
Matt O'Gorman [Wed, 1 Nov 2006 21:20:35 +0000 (21:20 +0000)] 
fix for bug #8083 crash caused by double free on m->msg

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

18 years agoa fix for bug 8251; the var_val needs to accept longer strings or mass confusion...
Steve Murphy [Wed, 1 Nov 2006 19:52:43 +0000 (19:52 +0000)] 
a fix for bug 8251; the var_val needs to accept longer strings or mass confusion and a lot of lost time is the result

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

18 years agosoxmix and Asterisk expect different file extensions for certain formats. This
Russell Bryant [Wed, 1 Nov 2006 18:24:17 +0000 (18:24 +0000)] 
soxmix and Asterisk expect different file extensions for certain formats.  This
was already handled for the wav49 format.  However, it was not handled for
ulaw and alaw.  I fixed this in such a way that using the alternate extensions
for ulaw and alaw will only happen if we know we're calling soxmix, and not a
custom script defined using the MONITOR_EXEC variable.  The wav49 processing
was left alone so that external scripts will see no behavior change.
(issue #7550, reported by mnicholson, proposed patch by junky, committed fix
is a bit different)

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

18 years agoMove thread-unsafe initializer to the module loading code; add the
Tilghman Lesher [Tue, 31 Oct 2006 15:46:04 +0000 (15:46 +0000)] 
Move thread-unsafe initializer to the module loading code; add the
corresponding function to the module unload to fix a memory leak.

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

18 years agoAnother try to fix ;rport NAT traversal support (issue #7473)
Olle Johansson [Tue, 31 Oct 2006 09:49:46 +0000 (09:49 +0000)] 
Another try to fix ;rport NAT traversal support (issue #7473)

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

18 years agoIf peer fails ACL check, fail the REGISTER attempt
Olle Johansson [Tue, 31 Oct 2006 09:13:34 +0000 (09:13 +0000)] 
If peer fails ACL check, fail the REGISTER attempt

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

18 years agoOn the other hand, we already copy the NAT flags... Reverting.
Olle Johansson [Tue, 31 Oct 2006 09:03:37 +0000 (09:03 +0000)] 
On the other hand, we already copy the NAT flags... Reverting.

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

18 years agoIssue 7473 - support ;rport on REGISTER requests too.
Olle Johansson [Tue, 31 Oct 2006 08:52:35 +0000 (08:52 +0000)] 
Issue 7473 - support ;rport on REGISTER requests too.

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

18 years agoWhen handling the case where the hostname is just an IPV4 numeric address,
Russell Bryant [Tue, 31 Oct 2006 06:18:36 +0000 (06:18 +0000)] 
When handling the case where the hostname is just an IPV4 numeric address,
be sure to set the address type.  (issue #8247, alexr)

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

18 years agofix some copy/paste bugs in the checking of arguments for the
Russell Bryant [Tue, 31 Oct 2006 06:13:09 +0000 (06:13 +0000)] 
fix some copy/paste bugs in the checking of arguments for the
"control stream file" AGI command (issue #8255, mnicholson)

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

18 years agoBind rtcp to proper IP address
Olle Johansson [Mon, 30 Oct 2006 16:00:57 +0000 (16:00 +0000)] 
Bind rtcp to proper IP address

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

18 years agoIssue #7869 - Stop sending 302 redirect when not getting an answer...
Olle Johansson [Sun, 29 Oct 2006 19:28:18 +0000 (19:28 +0000)] 
Issue #7869 - Stop sending 302 redirect when not getting an answer...

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

18 years agoissue #7608: Notifications with wrong content-type. Reported by jsiddall.
Olle Johansson [Sun, 29 Oct 2006 19:00:27 +0000 (19:00 +0000)] 
issue #7608: Notifications with wrong content-type. Reported by jsiddall.

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

18 years agoWe should always be using _exit() after a fork() or vfork() instead of exit().
Russell Bryant [Fri, 27 Oct 2006 17:36:07 +0000 (17:36 +0000)] 
We should always be using _exit() after a fork() or vfork() instead of exit().
This is because exit() does some extra cleanup which in some implementations
of vfork(), for example, can actually modify the state of the parent process,
causing very weird bugs or crashes.  (issue #7971, Nick Gavrikov)

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

18 years agofixed a bug which caused chan_misdn to try to allocate 2 times the same channel on...
Christian Richter [Fri, 27 Oct 2006 09:24:01 +0000 (09:24 +0000)] 
fixed a bug which caused chan_misdn to try to allocate 2 times the same channel on high load, which then caused instability of mISDN. removed a useless function from isdn_lib.c

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

18 years agoIssue #7240, by mistake only committed to trunk (now 1.4), reported by
Olle Johansson [Thu, 26 Oct 2006 20:06:55 +0000 (20:06 +0000)] 
Issue #7240, by mistake only committed to trunk (now 1.4), reported by
edgreenberg in Issue #7966. Thanks Ed!

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

18 years agooops - somebody forgot to change this - long ago, probably.
Jason Parker [Thu, 26 Oct 2006 17:47:52 +0000 (17:47 +0000)] 
oops - somebody forgot to change this - long ago, probably.

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

18 years agoRemove a useless ast_mutex_unlock.
Jason Parker [Thu, 26 Oct 2006 17:08:40 +0000 (17:08 +0000)] 
Remove a useless ast_mutex_unlock.
Issue #8186, patch by anthonyl (fix suggested by benh).

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

18 years agoWorking to resolve #7608 - adding debug output
Olle Johansson [Wed, 25 Oct 2006 19:28:48 +0000 (19:28 +0000)] 
Working to resolve #7608 - adding debug output

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

18 years agoFix the attack shield for 1.2 too. REFER and NOTIFY can create dialogs
Olle Johansson [Wed, 25 Oct 2006 15:49:29 +0000 (15:49 +0000)] 
Fix the attack shield for 1.2 too. REFER and NOTIFY can create dialogs
in the world of Asterisk.

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

18 years agoadded nttimeout option to configure wether we disconnect calls on NT timeouts or...
Christian Richter [Wed, 25 Oct 2006 08:41:59 +0000 (08:41 +0000)] 
added nttimeout option to configure wether we disconnect calls on NT timeouts or not during an overlapdial session

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

18 years agoDon't leak memory mmmk?
Joshua Colp [Mon, 23 Oct 2006 00:25:28 +0000 (00:25 +0000)] 
Don't leak memory mmmk?

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

18 years agofixed issue, that if chan_misdn is loaded and couldn't be initialized it would cause...
Christian Richter [Sat, 21 Oct 2006 12:35:13 +0000 (12:35 +0000)] 
fixed issue, that if chan_misdn is loaded and couldn't be initialized it would cause a segfault after 'reload'. Reported by Drew/Matt thx.

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

18 years agoRespect language selection when seeing if the file exists (issue #8178 reported by...
Joshua Colp [Thu, 19 Oct 2006 17:16:37 +0000 (17:16 +0000)] 
Respect language selection when seeing if the file exists (issue #8178 reported by mnicholson)

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

18 years agoDon't create a "real" pvt structure for requests that shouldn't be able to create...
Joshua Colp [Tue, 17 Oct 2006 20:37:17 +0000 (20:37 +0000)] 
Don't create a "real" pvt structure for requests that shouldn't be able to create one. Instead use a temporary pvt and fill it with enough information so we can send a reply.

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