Christian Richter
7716c778e4
when our PTP Partner sends us a SETUP with a preselected channel we just accept it, even when we're NT. added some checks for segfaults.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18 10:19:39 +00:00
Olle Johansson
c3b8d9f510
Issue #8592 - handle 504 as 503 - congestion
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-15 10:51:53 +00:00
Christian Richter
b9bddd3063
removed FIXUP state. added check for channel allocation conflict when we create a setup while the other site creates a setup on the same channel, besides the check we resolve this conflict.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-14 13:03:49 +00:00
Steve Murphy
9cc5b12741
This small patch fixes bug 8541, where the L option to the Dial app wasn't working right. A similar bug (8386) was filed and fixed earlier, but an intervening bug fix to a DTMF problem broke the L() code in a different way. Hopefully, everything is happy now.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-13 04:23:17 +00:00
Kevin P. Fleming
72c5d5a16b
add silence files
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-12 05:11:13 +00:00
Matt O'Gorman
ffdbc25cb9
the english language can be a tricky beast
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 23:00:04 +00:00
Matt O'Gorman
2cbdcb35b1
app_externalivr needs a real silence file, and additional
...
changes to add silence files into core instead of extra
patch provided by bug 8177 with minor additions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 21:55:43 +00:00
Tilghman Lesher
983d09bc21
When doing a fork() and exec(), two problems existed (Issue 8086):
...
1) Ignored signals stayed ignored after the exec().
2) Signals could possibly fire between the fork() and exec(), causing Asterisk
signal handlers within the child to execute, which caused nasty race conditions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 00:33:59 +00:00
Steve Murphy
611a9778bb
This version applies the patch suggested by stevens in bug 7836 (make inbound channel RINGING state consistent with other channels).
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-10 02:14:13 +00:00
Russell Bryant
f2df4138cb
Use locking when accessing the registrations list. This list is not actually
...
used very often, so the likelihood of there being a problem is pretty small,
but still possible. For example, if the CLI command to list the registrations
was called at the same time that a reload was occurring and the registrations
list was getting destroyed and rebuilt, a crash could occur.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-09 15:45:37 +00:00
Russell Bryant
d79533bd94
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
2006-12-07 18:14:13 +00:00
Russell Bryant
26676beff5
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
2006-12-06 16:05:54 +00:00
Christian Richter
6d3c784a84
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
2006-12-06 15:48:45 +00:00
Olle Johansson
d37fee2b0f
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
2006-12-06 15:42:41 +00:00
Christian Richter
95a18631a4
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
2006-12-06 14:35:25 +00:00
Olle Johansson
8eb9c059e5
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
2006-12-06 12:14:40 +00:00
Olle Johansson
c70018c590
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
2006-12-05 17:59:15 +00:00
Tilghman Lesher
31759faca8
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
2006-12-05 01:26:08 +00:00
Jason Parker
9ce01ec196
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
2006-12-04 21:20:34 +00:00
Jason Parker
8c413a42eb
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
2006-12-04 19:06:26 +00:00
Joshua Colp
6502bf97af
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
2006-12-04 18:14:46 +00:00
Kevin P. Fleming
37d6a18db1
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
2006-12-01 23:30:59 +00:00
Jason Parker
49135c3ee5
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
2006-12-01 20:19:10 +00:00
Olle Johansson
e76ee063e6
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
2006-11-30 20:47:53 +00:00
Joshua Colp
37db91a3b8
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
2006-11-30 20:27:29 +00:00
Joshua Colp
1b287f7406
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
2006-11-30 20:06:43 +00:00
Joshua Colp
efe92601c5
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
2006-11-30 19:04:11 +00:00
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