Commit Graph

10919 Commits

Author SHA1 Message Date
Joshua Colp e82a8a1d0a Exit from session loop upon error (ie: they disconnected) and don't do any buffer manipulation in do_message. get_input will handle it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-12 18:13:50 +00:00
Joshua Colp c64ced140f Merged revisions 50602 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50602 | file | 2007-01-12 11:42:33 -0500 (Fri, 12 Jan 2007) | 2 lines

We need to check for res being 0 in do_message itself, otherwise our headers will get lost.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-12 16:47:20 +00:00
Kevin P. Fleming 17ea9c930e make the automatic post-answer delay happen only when the answer is 'automatic' (not done by the Answer() dialplan application)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-12 15:01:46 +00:00
Kevin P. Fleming aa3eea042d Merged revisions 50562 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r50562 | kpfleming | 2007-01-12 08:42:24 -0600 (Fri, 12 Jan 2007) | 10 lines

Merged revisions 50561 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r50561 | kpfleming | 2007-01-12 08:34:15 -0600 (Fri, 12 Jan 2007) | 2 lines

minor documentation clarification

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-12 14:45:20 +00:00
Kevin P. Fleming 1439e0fa75 when a channel gets automatically answered by an application, sleep a bit to give the audio path (for VOIP channels) time to be setup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-11 23:42:14 +00:00
Joshua Colp 469cf8ab2a Merged revisions 50468 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50468 | file | 2007-01-11 00:53:09 -0500 (Thu, 11 Jan 2007) | 2 lines

Remove check for channel state as it can definitely be something other then ring, and also clean up the code a bit. This should solve the parking issues and maybe some attended transfer issues people have been seeing.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-11 05:54:14 +00:00
Joshua Colp 4942fd94d2 Merged revisions 50466 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50466 | file | 2007-01-11 00:19:39 -0500 (Thu, 11 Jan 2007) | 2 lines

Add support to see whether NAT was detected (yay symmetric RTP) and also add a check in chan_sip so that if NAT has been detected and the reinvite behind nat option has been turned off, then just do partial bridge. (issue #8655 reported by mnicholson)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-11 05:21:03 +00:00
Joshua Colp 4aba5a78d9 Merged revisions 50433 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50433 | file | 2007-01-10 15:25:44 -0500 (Wed, 10 Jan 2007) | 2 lines

Merge speech-multi branch which adds support for joining multiple sound files together to be played one after another in SpeechBackground.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 20:26:55 +00:00
Joshua Colp 278f2fe4c1 Merged revisions 50405 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50405 | file | 2007-01-10 14:46:29 -0500 (Wed, 10 Jan 2007) | 2 lines

Fix parsing when using something like ldap settings. (done by anthonyl)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 19:49:26 +00:00
Joshua Colp 982c8e1465 Return the useless casts that ensure this file is C++ clean. (issue #8602 reported by mikma)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50397 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 19:02:58 +00:00
Joshua Colp 47c515768c Merged revisions 50377 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50377 | file | 2007-01-10 13:32:29 -0500 (Wed, 10 Jan 2007) | 2 lines

Fix chan_sip not working issue. Let's not prematurely return 0. (issue #8783 reported by st41ker)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 18:34:45 +00:00
Jason Parker fe4208e4ee Merged revisions 50346 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50346 | qwell | 2007-01-10 10:45:36 -0600 (Wed, 10 Jan 2007) | 4 lines

Reverse some logic in cdr_manager, which made it fail to load if the config file existed.

Issue 8777

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 16:47:23 +00:00
Joshua Colp a378353ecc Merged revisions 50298 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r50298 | file | 2007-01-09 23:55:13 -0500 (Tue, 09 Jan 2007) | 10 lines

Merged revisions 50295 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r50295 | file | 2007-01-09 23:51:06 -0500 (Tue, 09 Jan 2007) | 2 lines

Add another return value to dial_exec_full that indicates execution is going to continuing at a new extension/context/priority and to just let it slide. (issue #8598 reported by jon)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 04:56:48 +00:00
Joshua Colp f215636ef3 Allow usedistinctiveringdetection and distinctiveringaftercid to be reset during a reload. (issue #8739 reported by tzafrir)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 04:21:46 +00:00
Joshua Colp fd06f29945 Merged revisions 50266 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50266 | file | 2007-01-09 22:51:29 -0500 (Tue, 09 Jan 2007) | 2 lines

Ensure data's existence before trying to access it. (issue #8774 reported by rcourtna)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 03:53:30 +00:00
Russell Bryant 444acad95b Covert some spaces to tabs, and put a list of defines in an enum.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 02:50:06 +00:00
Russell Bryant 79756a9d6a Merged revisions 50228 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r50228 | russell | 2007-01-09 21:17:46 -0500 (Tue, 09 Jan 2007) | 14 lines

Merged revisions 50227 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r50227 | russell | 2007-01-09 21:16:45 -0500 (Tue, 09 Jan 2007) | 6 lines

Make the number that represents the major version number a single digit instead
of 2.  Using two digits makes it an octal number when put into version.h, which
breaks the compilation of any out of tree module that checks the version for
any version after 1.2.7 (reported by Matteo Brancaleoni on the asterisk-dev
mailing list, who gave credit to vihai for pointing it out)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 02:19:47 +00:00
Jason Parker 0b3cd06c4a Blocked revisions 50186 via svnmerge
........
r50186 | qwell | 2007-01-09 11:11:53 -0600 (Tue, 09 Jan 2007) | 4 lines

Re-add CLI command that should have only been deprecated in 1.4.

Thanks kshumard!  (reported in person, so no associated issue #)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-09 17:12:45 +00:00
Tilghman Lesher 3b3a66e54b Merged revisions 50151 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r50151 | tilghman | 2007-01-09 07:40:45 -0600 (Tue, 09 Jan 2007) | 12 lines

Merged revisions 50150 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r50150 | tilghman | 2007-01-09 07:30:04 -0600 (Tue, 09 Jan 2007) | 4 lines

The advent of realtime has enabled people to use commas in the fullname field.
This could cause an issue with sending voicemails, when the field is unquoted.
(Issue 8595)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-09 13:45:14 +00:00
Olle Johansson 3246ad09a4 Based on the following patch, changed for trunk...
Merged revisions 50124 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50124 | oej | 2007-01-09 12:25:20 +0100 (Tue, 09 Jan 2007) | 3 lines

- handle re-invites properly in sip_hangup()
- Add some invitestate status changes just to be sure

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-09 12:25:33 +00:00
Jason Parker 3a98c6af87 Merged revisions 50098 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50098 | qwell | 2007-01-08 17:39:12 -0600 (Mon, 08 Jan 2007) | 4 lines

Fix an issue with voicemail and users.conf, where it wouldn't ever parse a password, since it was using "secret" instead of "password"

Issue 8761, reported by and patch suggestion from ssokol.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 23:40:28 +00:00
Joshua Colp 5a9d7bb9ad Move channel acquisition to when the translation path is setup, and clean up.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 21:40:45 +00:00
Matt O'Gorman 70b945c4f1 Merged revisions 50073 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.4

........
r50073 | mogorman | 2007-01-08 15:11:16 -0600 (Mon, 08 Jan 2007) | 1 line

we can't unlock a channel if we cant find it. - AnthonyL bug #8741
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 21:17:51 +00:00
Joshua Colp ee137a5eaa Make callback declaration match one used in trunk.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 20:10:23 +00:00
Joshua Colp 3e0d0362e8 Change trylock output for what already has the lock from an error to a warning.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 18:26:50 +00:00
Joshua Colp 91a7ca8df7 Merged revisions 50032 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50032 | file | 2007-01-08 13:21:31 -0500 (Mon, 08 Jan 2007) | 2 lines

Disable the more intense packet2packet bridging until the bugs can be worked out.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50033 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 18:23:39 +00:00
Olle Johansson 5d4f272a90 Merged revisions 50006 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50006 | oej | 2007-01-08 15:26:14 +0100 (Mon, 08 Jan 2007) | 11 lines

Issue #8677 - Handle failure of T.38 re-invite

This is not a fix, but adding an error message to tell the admin that
we have a bad configuration. We should not send T.38 re-invites to devices
that can't handle it (with the current architecture where you have to
hard-code t.38 support per device).

To really fix this, we need to figure out a way to tell the incoming
call that the re-invite failed, so we can signal failure on that
end and go back to the original call.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 14:31:16 +00:00
Olle Johansson 835e2ed684 Merged revisions 49983 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49983 | oej | 2007-01-08 14:28:18 +0100 (Mon, 08 Jan 2007) | 3 lines

Issue #8524, support multiple via header values (tardieu)
	Thanks!

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49984 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 13:34:56 +00:00
Olle Johansson 68ff3c3575 Issue #8663 - Add passthrough support for MPEG4 (neutrino88).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 11:49:23 +00:00
Olle Johansson 975dba04bc Merged revisions 49945 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49945 | oej | 2007-01-08 10:08:10 +0100 (Mon, 08 Jan 2007) | 2 lines

We only need one forward declaration

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 09:22:53 +00:00
Olle Johansson 7158f48a79 Merged revisions 49925 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49925 | oej | 2007-01-08 09:55:03 +0100 (Mon, 08 Jan 2007) | 2 lines

Issue 8735: Terminate state when extension is unavailable for subscription

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 08:57:35 +00:00
Joshua Colp 585e0e3e09 Merged revisions 49890 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r49890 | file | 2007-01-08 00:11:54 -0500 (Mon, 08 Jan 2007) | 10 lines

Merged revisions 49889 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r49889 | file | 2007-01-08 00:10:07 -0500 (Mon, 08 Jan 2007) | 2 lines

Ensure we use the default refresh value of 60 if the remote server does not send one. (issue #8746 reported by maethor)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49891 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 05:13:24 +00:00
Kevin P. Fleming ecfc328d1a Merged revisions 49866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49866 | kpfleming | 2007-01-07 21:53:53 -0600 (Sun, 07 Jan 2007) | 2 lines

since we use AC_PATH_TOOL to find tools, we should use the results it provides for us (reported by Brian Capouch on the asterisk-dev list)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 03:56:06 +00:00
Tilghman Lesher 52ea03bd86 Merged revisions 49834 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r49834 | tilghman | 2007-01-07 15:44:52 -0600 (Sun, 07 Jan 2007) | 10 lines

Merged revisions 49833 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r49833 | tilghman | 2007-01-07 15:43:10 -0600 (Sun, 07 Jan 2007) | 2 lines

If openstream fails, then we crash (Issue 8564)

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-07 21:46:38 +00:00
Tilghman Lesher 4866a44535 Merged revisions 49831 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49831 | tilghman | 2007-01-07 15:24:04 -0600 (Sun, 07 Jan 2007) | 2 lines

Second condition was a subset of the first, so hold was never decremented, thus hint stayed stuck (Issue 8747)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-07 21:26:43 +00:00
Joshua Colp 3c1b9fc508 One const, two const. Let's stick with everything else - one const. Plus older versions of GCC don't support double const either.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-07 19:00:36 +00:00
Tilghman Lesher c4c2c546da When calling the Realtime app more than once, unset fields which were
previously set are erroneously still set (Bug 6701).  After discussion,
it was determined this should only be changed in trunk.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-07 16:21:12 +00:00
Tilghman Lesher 785483f304 Modifications to allow the output of SHELL() to be split per line (Issue 8676)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-07 14:44:49 +00:00
Tilghman Lesher 6b13c4d7d4 Add function to execute a shell command and return the output (Issue 8676)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-07 14:40:48 +00:00
Tilghman Lesher 33d5a8a582 Reduce duplication of code (Issue 6542)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-07 14:32:20 +00:00
Jason Parker 5012135417 Fix a segfault when using "countries" that don't have a matching zone.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-07 07:43:52 +00:00
Jason Parker 5abda34cd9 Merged revisions 49742 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49742 | qwell | 2007-01-05 18:24:38 -0600 (Fri, 05 Jan 2007) | 7 lines

Save 1 whopping byte of allocated memory!

This looks like it may have been a chicken/egg scenario..

You had to call a cleanup func, because everything was allocated.
Then since you had to call a cleanup func, you were forced to allocate - ie; strdup("").

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-06 00:28:16 +00:00
Kevin P. Fleming 37182c873e finish const-ifying ast_func_read()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-06 00:13:33 +00:00
Kevin P. Fleming 4a6ed271f5 probably shouldn't leave the mmap'ed file hanging around in memory
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-06 00:02:06 +00:00
Kevin P. Fleming 04e0ba77b0 Merged revisions 49714-49715 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49714 | kpfleming | 2007-01-05 17:49:52 -0600 (Fri, 05 Jan 2007) | 2 lines

proper fix for r49712

........
r49715 | kpfleming | 2007-01-05 17:51:31 -0600 (Fri, 05 Jan 2007) | 2 lines

one more time...

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49730 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-06 00:00:19 +00:00
Kevin P. Fleming d0f3b18d16 a little more const-ification
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49727 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 23:58:53 +00:00
Joshua Colp 130eb5602f It is possible for framein to get called and no channel be available, so do a check before we increment the count.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 23:51:43 +00:00
Kevin P. Fleming 21df48d4fa Merged revisions 49712 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49712 | kpfleming | 2007-01-05 17:40:29 -0600 (Fri, 05 Jan 2007) | 2 lines

if --with-foo=<path> is specific for a configure option, ensure that it is used for header file checking as well

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 23:41:33 +00:00
Kevin P. Fleming cd73a483f1 const-ify some more APIs, and fix rev 49710 from branch-1.4 in a better way here
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 23:32:42 +00:00
Matt O'Gorman 7cb197a5b7 no need to spam everyone with show transcoder messages
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 23:31:33 +00:00