asterisk/asterisk.git
15 years agoSome more cosmetic changes.
Joshua Colp [Thu, 24 Jan 2008 03:34:57 +0000 (03:34 +0000)]
Some more cosmetic changes.

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

15 years agoAdd some spacing.
Joshua Colp [Thu, 24 Jan 2008 03:30:56 +0000 (03:30 +0000)]
Add some spacing.

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

15 years agoTest hopefully over.
Joshua Colp [Thu, 24 Jan 2008 03:25:52 +0000 (03:25 +0000)]
Test hopefully over.

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

15 years agoTesting something...
Joshua Colp [Thu, 24 Jan 2008 03:07:34 +0000 (03:07 +0000)]
Testing something...

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

15 years agofix flag bit definitions to make code from issue #11049 actually work; along the...
Kevin P. Fleming [Thu, 24 Jan 2008 00:04:35 +0000 (00:04 +0000)]
fix flag bit definitions to make code from issue #11049 actually work; along the way, clarify comments and add some dummy flag definitions for other multi-bit flags to hopefully stop this from happening in the future

(closes issue #11049)

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

15 years agoMove code from res_features into (new file) main/features.c
Jason Parker [Wed, 23 Jan 2008 23:09:11 +0000 (23:09 +0000)]
Move code from res_features into (new file) main/features.c

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

15 years agoAdd Sergey Tamkovich to CREDITS. Thank you for your contributions!
Russell Bryant [Wed, 23 Jan 2008 22:00:35 +0000 (22:00 +0000)]
Add Sergey Tamkovich to CREDITS.  Thank you for your contributions!

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

15 years agoMerged revisions 99978 via svnmerge from
Olle Johansson [Wed, 23 Jan 2008 21:11:55 +0000 (21:11 +0000)]
Merged revisions 99978 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99978 | oej | 2008-01-23 22:07:16 +0100 (Ons, 23 Jan 2008) | 7 lines

Second attempt. Don't change invitestate when receiving 18x messages in CANCEL state.

(issue #11736)
Reported by: MVF

Patch by oej.

........

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

15 years agoMerged revisions 99977 via svnmerge from
Olle Johansson [Wed, 23 Jan 2008 21:09:56 +0000 (21:09 +0000)]
Merged revisions 99977 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99977 | oej | 2008-01-23 21:58:20 +0100 (Ons, 23 Jan 2008) | 9 lines

Make sure we don't cancel destruction on calls in CANCEL state, even if we
get 183 while waiting for answer on our CANCEL.

(issue #11736)
Reported by: MVF
Patches:
      bug11736.txt uploaded by oej (license 306)
Tested by: MVF

........

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

15 years agoMerged revisions 99975 via svnmerge from
Mark Michelson [Wed, 23 Jan 2008 20:26:19 +0000 (20:26 +0000)]
Merged revisions 99975 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99975 | mmichelson | 2008-01-23 14:25:00 -0600 (Wed, 23 Jan 2008) | 3 lines

Fixing a typo.

........

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

15 years agoMerged revisions 99923 via svnmerge from
Russell Bryant [Wed, 23 Jan 2008 17:48:08 +0000 (17:48 +0000)]
Merged revisions 99923 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99923 | russell | 2008-01-23 11:46:55 -0600 (Wed, 23 Jan 2008) | 8 lines

ChanSpy issues a beep when it starts at the beginning of a list of channels to
potentially spy on.  However, if there were no matching channels, it would beep
at you over and over, which is pretty annoying.  Now, it will only beep once in
the case that there are no channels to spy on, but it will still beep again once
it reaches the beginning of the channel list again.

(closes issue #11738, patched by me)

........

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

15 years agoFix tcptls build when openssl isn't installed
Russell Bryant [Wed, 23 Jan 2008 17:35:54 +0000 (17:35 +0000)]
Fix tcptls build when openssl isn't installed

(closes issue #11813)
Reported by: tzafrir
Patches:
      asterisk-tcptls.diff.txt uploaded by jamesgolovich (license 176)

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

15 years agosince echo canceler parameters in Zaptel are now signed integers, allow them during...
Kevin P. Fleming [Wed, 23 Jan 2008 17:27:05 +0000 (17:27 +0000)]
since echo canceler parameters in Zaptel are now signed integers, allow them during parsing

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

15 years agoBlocked revisions 99878 via svnmerge
Mark Michelson [Wed, 23 Jan 2008 16:21:13 +0000 (16:21 +0000)]
Blocked revisions 99878 via svnmerge

........
r99878 | mmichelson | 2008-01-23 10:18:04 -0600 (Wed, 23 Jan 2008) | 4 lines

These flag tests were illogical. They were testing sip_peer flags on a sip_pvt.
Thanks to Russell for helping to get this odd problem figured out.

........

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

15 years agoProgress messages don't work
Tilghman Lesher [Wed, 23 Jan 2008 15:23:51 +0000 (15:23 +0000)]
Progress messages don't work
(closes issue #10497)
 Reported by: pj
 Patches:
       h323-announces-r99483.diff uploaded by sergee (license 138)
 Tested by: pj

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

15 years ago- Add a few comments to sip_xmit
Olle Johansson [Wed, 23 Jan 2008 10:18:13 +0000 (10:18 +0000)]
- Add a few comments to sip_xmit
- Make sure that we are aware of a pending INVITE even if we're using TCP

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

15 years agoCoding guidelines fixups
Tilghman Lesher [Wed, 23 Jan 2008 05:29:28 +0000 (05:29 +0000)]
Coding guidelines fixups

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

15 years agoMerged revisions 99777 via svnmerge from
Tilghman Lesher [Wed, 23 Jan 2008 04:35:04 +0000 (04:35 +0000)]
Merged revisions 99777 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99777 | tilghman | 2008-01-22 22:31:51 -0600 (Tue, 22 Jan 2008) | 8 lines

When we reset the password via an external command, we should also reset the
password stored in the in-memory list, too (otherwise it doesn't really take
effect).
(closes issue #11809)
 Reported by: davetroy
 Patches:
       fix_externpass.diff uploaded by davetroy (license 384)

........

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

15 years agoMerged revisions 99775 via svnmerge from
Tilghman Lesher [Wed, 23 Jan 2008 04:25:33 +0000 (04:25 +0000)]
Merged revisions 99775 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99775 | tilghman | 2008-01-22 22:20:15 -0600 (Tue, 22 Jan 2008) | 2 lines

Oops, should have checked for a NULL obj, here, too

........

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

15 years agoCoding guidelines cleanup
Tilghman Lesher [Wed, 23 Jan 2008 03:57:31 +0000 (03:57 +0000)]
Coding guidelines cleanup

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

15 years agoMerged revisions 99718 via svnmerge from
Tilghman Lesher [Wed, 23 Jan 2008 01:06:27 +0000 (01:06 +0000)]
Merged revisions 99718 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99718 | tilghman | 2008-01-22 18:56:06 -0600 (Tue, 22 Jan 2008) | 2 lines

Just confirmed that all current platforms need this header file

........

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

15 years agoOops
Tilghman Lesher [Wed, 23 Jan 2008 00:10:45 +0000 (00:10 +0000)]
Oops

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

15 years agoAdd res_config_ldap for realtime LDAP engine.
Tilghman Lesher [Tue, 22 Jan 2008 22:33:20 +0000 (22:33 +0000)]
Add res_config_ldap for realtime LDAP engine.
(closes issue #5768)
 Reported by: mguesdon
 Patches:
       res_config_ldap-v0.7.tar.gz uploaded by mguesdon (license 121)
       res_ldap.conf.sample uploaded by suretec (license 70)
       asterisk-v3.1.4.ldif uploaded by suretec (license 70)
       asterisk-v3.1.4.schema uploaded by suretec (license 70)
 Tested by: oej, mguesdon, suretec, cthorner

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

15 years agoMerged revisions 99652 via svnmerge from
Olle Johansson [Tue, 22 Jan 2008 21:09:37 +0000 (21:09 +0000)]
Merged revisions 99652 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99652 | oej | 2008-01-22 21:56:09 +0100 (Tis, 22 Jan 2008) | 4 lines

Thanks to Russell's education I realize that BUFSIZ has changed since I learned the C language
over 20 years ago... Resetting chan_sip to the size of BUFSIZ that I expected in my old
head to avoid too heavy memory allocations on some systems.

........

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

15 years agoDocumentation updates for BRIDGEPVTCALLID
Olle Johansson [Tue, 22 Jan 2008 20:44:56 +0000 (20:44 +0000)]
Documentation updates for BRIDGEPVTCALLID

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

15 years agoMerged revisions 99643 via svnmerge from
Tilghman Lesher [Tue, 22 Jan 2008 20:42:47 +0000 (20:42 +0000)]
Merged revisions 99643 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99643 | tilghman | 2008-01-22 14:34:55 -0600 (Tue, 22 Jan 2008) | 2 lines

Fix the defines for OS X (and Solaris, too)

........

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

15 years agoMake sure the command is not just present but is also configured to be executed
Russell Bryant [Tue, 22 Jan 2008 20:41:05 +0000 (20:41 +0000)]
Make sure the command is not just present but is also configured to be executed

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

15 years agoAdd a generic function to set the bridged call PVT unique id string
Olle Johansson [Tue, 22 Jan 2008 20:35:10 +0000 (20:35 +0000)]
Add a generic function to set the bridged call PVT unique id string
as a channel variable BRIDGEPVTCALLID

This is important for call tracing in log files and CDRs, so that
the SIP callID can be traced along servers.

The CHANNEL dialplan function won't work here, since the outbound
channel is gone when we need the Call-ID.

Other channel drivers may now implement the same function :-),
but this patch only supports chan_sip.so.

Inspired by (issue #11816)
Reported by: ctooley

Patch by oej

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

15 years agoChange the Asterisk CLI startup commands feature to read commands to run from cli...
Russell Bryant [Tue, 22 Jan 2008 20:33:16 +0000 (20:33 +0000)]
Change the Asterisk CLI startup commands feature to read commands to run from cli.conf
after a discussion on the -dev list.

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

15 years agoMerged revisions 99594 via svnmerge from
Olle Johansson [Tue, 22 Jan 2008 17:46:43 +0000 (17:46 +0000)]
Merged revisions 99594 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99594 | oej | 2008-01-22 18:41:57 +0100 (Tis, 22 Jan 2008) | 3 lines

Add more dependencies on chan_local and add a note to the description of chan_local
so that people don't disable it in menuselect just to clean up.

........

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

15 years agoMerged revisions 99592 via svnmerge from
Olle Johansson [Tue, 22 Jan 2008 17:42:27 +0000 (17:42 +0000)]
Merged revisions 99592 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99592 | oej | 2008-01-22 18:31:17 +0100 (Tis, 22 Jan 2008) | 5 lines

Add dependency on chan_local to app_dial.

Dial still runs without chan_local, but will be missing forwarding functionality.

........

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

15 years agoMerged revisions 99540 via svnmerge from
Tilghman Lesher [Tue, 22 Jan 2008 17:15:08 +0000 (17:15 +0000)]
Merged revisions 99540 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99540 | tilghman | 2008-01-22 10:54:06 -0600 (Tue, 22 Jan 2008) | 7 lines

Ensure that we can get an address even when we don't have a default route.
(closes issue #9225)
 Reported by: junky
 Patches:
       20080122__bug9225.diff.txt uploaded by Corydon76 (license 14)
 Tested by: oej, loloski, sergee

........

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

15 years agoPoint out a bug in some debug counter handling
Russell Bryant [Tue, 22 Jan 2008 16:55:55 +0000 (16:55 +0000)]
Point out a bug in some debug counter handling

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

15 years agoAdd authentication options to the SIP dialstring.
Olle Johansson [Tue, 22 Jan 2008 15:25:43 +0000 (15:25 +0000)]
Add authentication options to the SIP dialstring.
Documentation follows separately

(issue #11587)
Reported by: sobomax
Patches:
      chan_sip.c-trunk.diff uploaded by sobomax (license 359)

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

15 years agoDocumentation updates
Olle Johansson [Tue, 22 Jan 2008 09:57:16 +0000 (09:57 +0000)]
Documentation updates

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

15 years agoSmall fixes
Olle Johansson [Tue, 22 Jan 2008 09:46:28 +0000 (09:46 +0000)]
Small fixes

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

15 years agoDoxygen updates
Olle Johansson [Tue, 22 Jan 2008 08:58:46 +0000 (08:58 +0000)]
Doxygen updates

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

15 years agoMerged revisions 99426 via svnmerge from
Mark Michelson [Mon, 21 Jan 2008 23:56:40 +0000 (23:56 +0000)]
Merged revisions 99426 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99426 | mmichelson | 2008-01-21 17:55:26 -0600 (Mon, 21 Jan 2008) | 12 lines

Fixing an issue wherein monitoring local channels was not possible. During a channel
masquerade, the monitors on the two channels involved are swapped. In 99% of the cases
this results in the desired effect. However, if monitoring a local channel, this caused
the monitor which was on the local channel to get moved onto a channel which is immediately
hung up after the masquerade has completed. By swapping the monitors prior to the masquerade,
we avoid the problem by tricking the masquerade into placing the monitor back onto the channel
where we want it.

During the investigation of the issue, the channel's monitor was the only thing that was swapped
in such a manner which did not make sense to have done. All other variable swapping made sense.

........

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

15 years agoFix distinctive ring detection.
Jason Parker [Mon, 21 Jan 2008 23:25:42 +0000 (23:25 +0000)]
Fix distinctive ring detection.

Reported by: milazzo
Patches:
      drings.diff uploaded by milazzo (license 383)

Closes issue #11799

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

15 years agoAdding the QUEUENAME variable to the variables set using the setqueuevar option
Mark Michelson [Mon, 21 Jan 2008 22:32:13 +0000 (22:32 +0000)]
Adding the QUEUENAME variable to the variables set using the setqueuevar option
in queues.conf.

Suggestion comes from Shaun2222 on IRC.

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

15 years agoRemove compiler warning for uninitialized variable
Olle Johansson [Mon, 21 Jan 2008 21:11:58 +0000 (21:11 +0000)]
Remove compiler warning for uninitialized variable

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

15 years agoDoxygen updates.
Olle Johansson [Mon, 21 Jan 2008 21:10:07 +0000 (21:10 +0000)]
Doxygen updates.

The TCP/TLS code was committed without any doxygen obviously. Tss tss.

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

15 years agoUpdating doxygen
Olle Johansson [Mon, 21 Jan 2008 20:41:15 +0000 (20:41 +0000)]
Updating doxygen

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

15 years agoMerged revisions 99341 via svnmerge from
Tilghman Lesher [Mon, 21 Jan 2008 18:15:57 +0000 (18:15 +0000)]
Merged revisions 99341 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99341 | tilghman | 2008-01-21 12:11:07 -0600 (Mon, 21 Jan 2008) | 8 lines

Permit the user to specify number of seconds that a connection may remain idle,
which fixes a crash on reconnect with the MyODBC driver.
(closes issue #11798)
 Reported by: Corydon76
 Patches:
       20080119__res_odbc__idlecheck.diff.txt uploaded by Corydon76 (license 14)
 Tested by: mvanbaak

........

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

15 years agoMerged revisions 99301 via svnmerge from
Joshua Colp [Mon, 21 Jan 2008 16:02:06 +0000 (16:02 +0000)]
Merged revisions 99301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99301 | file | 2008-01-21 12:01:00 -0400 (Mon, 21 Jan 2008) | 4 lines

Bump the buffer size for Via headers up to 512. There are some exceptionally large Via headers out there.
(closes issue #11783)
Reported by: ofirroval

........

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

15 years agoUpdate
Olle Johansson [Mon, 21 Jan 2008 07:02:08 +0000 (07:02 +0000)]
Update

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

15 years agoChange over to using ast_debug so these debug messages don't always show up.
Joshua Colp [Mon, 21 Jan 2008 03:54:47 +0000 (03:54 +0000)]
Change over to using ast_debug so these debug messages don't always show up.

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

15 years agoAdd a "console active" CLI command, which lets you find out which console device
Russell Bryant [Sun, 20 Jan 2008 07:28:23 +0000 (07:28 +0000)]
Add a "console active" CLI command, which lets you find out which console device
is currently active for the Asterisk CLI, or to set it.  Also, knock multiple device
support off of the to-do list.

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

15 years agocorrect the name of a CLI command for getting available device names
Russell Bryant [Sun, 20 Jan 2008 06:13:22 +0000 (06:13 +0000)]
correct the name of a CLI command for getting available device names

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

15 years agoMerge changes from team/russell/console_devices
Russell Bryant [Sun, 20 Jan 2008 06:11:49 +0000 (06:11 +0000)]
Merge changes from team/russell/console_devices

 - Add support for multiple devices.  All devices are configured in console.conf.
 - Add "console list devices" CLI command to show configured devices.  Also, changed
 the old "list devices" to be "list available", which queries PortAudio for all
 audio devices that are available for use.

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

15 years agoMerged revisions 99187 via svnmerge from
Russell Bryant [Sat, 19 Jan 2008 10:06:02 +0000 (10:06 +0000)]
Merged revisions 99187 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99187 | russell | 2008-01-19 04:05:27 -0600 (Sat, 19 Jan 2008) | 4 lines

Fix a couple of memory leaks with frame handling.  Specifically,
ast_frame_free() needed to be called on the frame that came from the translator
to signed linear.

........

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

15 years agoAdd Cygwin as an "other" platform that is supported
Russell Bryant [Sat, 19 Jan 2008 05:28:33 +0000 (05:28 +0000)]
Add Cygwin as an "other" platform that is supported

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

15 years agoVarious README updates
Russell Bryant [Sat, 19 Jan 2008 05:26:46 +0000 (05:26 +0000)]
Various README updates

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

15 years agoBlocked revisions 99127 via svnmerge
Joshua Colp [Fri, 18 Jan 2008 22:58:50 +0000 (22:58 +0000)]
Blocked revisions 99127 via svnmerge

........
r99127 | file | 2008-01-18 18:57:15 -0400 (Fri, 18 Jan 2008) | 2 lines

Remove the __ in front of the unused variable. This causes some compilers to freak out.

........

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

15 years agoMerge changes from team/group/sip-tcptls
Russell Bryant [Fri, 18 Jan 2008 22:04:33 +0000 (22:04 +0000)]
Merge changes from team/group/sip-tcptls

This set of changes introduces TCP and TLS support for chan_sip.  There are various
new options in configs/sip.conf.sample that are used to enable these features.  Also,
there is a document, doc/siptls.txt that describes some things in more detail.

This code was implemented by Brett Bryant and James Golovich.  It was reviewed
by Joshua Colp and myself.  A number of other people participated in the testing
of this code, but since it was done outside of the bug tracker, I do not have their
names.  If you were one of them, thanks a lot for the help!

(closes issue #4903, but with completely different code that what exists there.)

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

15 years agoMerged revisions 99081 via svnmerge from
Russell Bryant [Fri, 18 Jan 2008 21:38:01 +0000 (21:38 +0000)]
Merged revisions 99081 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99081 | russell | 2008-01-18 15:37:21 -0600 (Fri, 18 Jan 2008) | 9 lines

Revert adding the packed attribute, as it really doesn't make sense why that
would do any good.  Fix the real bug, which is to do the check to see if the
frame came from a translator at the beginning of ast_frame_free(), instead of
at the end.  This ensures that it always gets checked, even if none of the
parts of the frame are malloc'd, and also ensures that we aren't looking at
free'd memory in the case that it is a malloc'd frame.

(closes issue #11792, reported by explidous, patched by me)

........

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

15 years agoMerged revisions 99079 via svnmerge from
Russell Bryant [Fri, 18 Jan 2008 21:24:05 +0000 (21:24 +0000)]
Merged revisions 99079 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99079 | russell | 2008-01-18 15:22:21 -0600 (Fri, 18 Jan 2008) | 4 lines

Since we're relying on the offset between the frame and the beginning of the translator
pvt struct, set the packed attribute to make sure we get to the right place.
(potential fix for issue #11792)

........

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

15 years agoThis should at least temporarily fix a problem where the 't' Dial
Terry Wilson [Fri, 18 Jan 2008 16:58:50 +0000 (16:58 +0000)]
This should at least temporarily fix a problem where the 't' Dial
option is incorrectly passed to the transferee when built-in
attended transfers are used.  There is still a problem with 'T',
but better to fix some problems than no problems while we work
on it.

(closes issue #7904)
Reported by: k-egg
Patches:
      transfer-fix-trunk-r97657.diff uploaded by sergee (license 138)
Tested by: sergee, otherwiseguy

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

15 years agoConvert func_odbc to use SQLExecDirect for speed
Tilghman Lesher [Fri, 18 Jan 2008 06:58:35 +0000 (06:58 +0000)]
Convert func_odbc to use SQLExecDirect for speed
(closes issue #10723)
 Reported by: mnicholson
 Patches:
       func-odbc-direct-execute1.diff uploaded by mnicholson (license 96)
 Tested by: Corydon76, mnicholson, falves11

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

15 years agoPermit username and password to be NULL (which enables pass-through from the layer...
Tilghman Lesher [Fri, 18 Jan 2008 06:52:18 +0000 (06:52 +0000)]
Permit username and password to be NULL (which enables pass-through from the layer above).
Reported by: lurcher
Patch by: tilghman
(Closes issue #11739)

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

15 years agoReset default CUT delimiter back to '-'
Tilghman Lesher [Fri, 18 Jan 2008 02:06:27 +0000 (02:06 +0000)]
Reset default CUT delimiter back to '-'

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

15 years agoMake the output of "console list devices" a bit prettier.
Russell Bryant [Thu, 17 Jan 2008 23:28:16 +0000 (23:28 +0000)]
Make the output of "console list devices" a bit prettier.

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

15 years agoList which devices are inputs and outputs in "console list devices"
Russell Bryant [Thu, 17 Jan 2008 23:21:30 +0000 (23:21 +0000)]
List which devices are inputs and outputs in "console list devices"

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

15 years agoAdd AST_FORMAT_SLINEAR16 to the list for ast_best_codec()
Russell Bryant [Thu, 17 Jan 2008 23:20:37 +0000 (23:20 +0000)]
Add AST_FORMAT_SLINEAR16 to the list for ast_best_codec()

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

15 years agoMerged revisions 99004 via svnmerge from
Russell Bryant [Thu, 17 Jan 2008 22:50:13 +0000 (22:50 +0000)]
Merged revisions 99004 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r99004 | russell | 2008-01-17 16:37:22 -0600 (Thu, 17 Jan 2008) | 10 lines

Have IAX2 optimize the codec translation path just like chan_sip does it.  If
the caller's codec is in our codec list, move it to the top to avoid transcoding.

(closes issue #10500)
Reported by: stevedavies
Patches:
      iax-prefer-current-codec.patch uploaded by stevedavies (license 184)
      iax-prefer-current-codec.1.4.patch uploaded by stevedavies (license 184)
Tested by: stevedavies, pj, sheldonh

........

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

15 years agoFixing trunk IMAP build
Mark Michelson [Thu, 17 Jan 2008 22:22:02 +0000 (22:22 +0000)]
Fixing trunk IMAP build

(closes issue #11788)
Reported by: DEA
Patches:
      vm-imap-build-fix.txt uploaded by DEA (license 3)

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

15 years agoAdd several busy detection related defines to menuselect.
Jason Parker [Thu, 17 Jan 2008 20:51:26 +0000 (20:51 +0000)]
Add several busy detection related defines to menuselect.
Allow better busy detect debugging (with BUSYDETECT_DEBUG).

Remove very old BUSYDETECT and BUSY_DETECT_MARTIN defines.

(closes issue #11107)
Patches:
      busydetect_enhancement.patch uploaded by agx (license 298)
      busydetect-r94975.diff uploaded by sergee (license 138)

Additional changes/cleanup by me.

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

15 years agostate_interface could be NULL, so use the never-NULL cur->state_interface for this...
Mark Michelson [Thu, 17 Jan 2008 16:33:24 +0000 (16:33 +0000)]
state_interface could be NULL, so use the never-NULL cur->state_interface for this check

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

15 years agoGet the device state of the state interface instead of the interface when creating...
Mark Michelson [Thu, 17 Jan 2008 16:26:41 +0000 (16:26 +0000)]
Get the device state of the state interface instead of the interface when creating a new queue member.
Thanks to Atis Lezdins for bringing this up on the Asterisk-Dev mailing list.

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

15 years agoMerged revisions 98991 via svnmerge from
Jason Parker [Thu, 17 Jan 2008 16:21:38 +0000 (16:21 +0000)]
Merged revisions 98991 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(Closes issue #11784)
........
r98991 | qwell | 2008-01-17 10:19:46 -0600 (Thu, 17 Jan 2008) | 4 lines

Add a clarification about the immediate= option of zapata.conf

Issue 11784, patch by klaus3000.

........

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

15 years agomajor reliability and performance improvement in VWMI monitoring for FXO ports (code...
Kevin P. Fleming [Thu, 17 Jan 2008 16:17:52 +0000 (16:17 +0000)]
major reliability and performance improvement in VWMI monitoring for FXO ports (code by markster, me and dbailey)

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

15 years agoresolve (valid) compiler warning about variable that could be used before being initi...
Kevin P. Fleming [Thu, 17 Jan 2008 15:04:54 +0000 (15:04 +0000)]
resolve (valid) compiler warning about variable that could be used before being initialized

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

15 years agoUpdate res_phoneprov to default to setting the SERVER variable to the IP
Terry Wilson [Thu, 17 Jan 2008 03:09:32 +0000 (03:09 +0000)]
Update res_phoneprov to default to setting the SERVER variable to the IP
the HTTP request for the config came in on and the SERVER_PORT to the
bindport setting in sip.conf.  I've left in the ability to override these
options, because I can't always guess how someone might decide to do something
weird with what is available to them--although needing to is pretty unlikely.

Documentation was updated to reflect preference for not setting serveraddr,
serveriface, or serverport.  Tested on Linux and OS X.

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

15 years agoChange the way the new filter feature works, by allowing it to be a column NOT
Tilghman Lesher [Thu, 17 Jan 2008 00:13:32 +0000 (00:13 +0000)]
Change the way the new filter feature works, by allowing it to be a column NOT
logged into the database.  This will allow more granularity of a decision
evaluated in the dialplan, then takes effect when posting the CDR.

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

15 years agoAdd support for an easy way to automatically execute some Asterisk CLI commands
Russell Bryant [Thu, 17 Jan 2008 00:05:13 +0000 (00:05 +0000)]
Add support for an easy way to automatically execute some Asterisk CLI commands
immediately at startup.  Any commands in the startup_commands file in the Asterisk
config diretory will get executed.

(closes issue #11781)
Reported by: jamesgolovich
Patches:
      asterisk-startupcmds.diff.txt uploaded by jamesgolovich (license 176)
    -- With some changes by me.

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

15 years agoChange AST_EXT_TOOL_CHECK to attempt to build against <package>_LIB, per recommendati...
Jason Parker [Wed, 16 Jan 2008 23:08:11 +0000 (23:08 +0000)]
Change AST_EXT_TOOL_CHECK to attempt to build against <package>_LIB, per recommendations from Russell.

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

15 years agoInfo about res_config_curl
Tilghman Lesher [Wed, 16 Jan 2008 22:36:58 +0000 (22:36 +0000)]
Info about res_config_curl

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

15 years agoBlocked revisions 98982 via svnmerge
Russell Bryant [Wed, 16 Jan 2008 22:36:47 +0000 (22:36 +0000)]
Blocked revisions 98982 via svnmerge

........
r98982 | russell | 2008-01-16 16:36:24 -0600 (Wed, 16 Jan 2008) | 5 lines

Add an unused pointer to the ast_channel struct.  This makes the ast_channel structure
retain the same size as it had in previous 1.4 releases.  Also, all of the offsets for
members in the structure are still the same (except for the two pointers that got replaced
for the new spy/whisper architecture.)

........

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

15 years agoNew module res_config_curl (closes issue #11747)
Tilghman Lesher [Wed, 16 Jan 2008 22:20:45 +0000 (22:20 +0000)]
New module res_config_curl (closes issue #11747)
 Reported by: Corydon76
 Patches:
       res_config_curl.c uploaded by Corydon76 (license 14)
       20080116__bug11747.diff.txt uploaded by Corydon76 (license 14)
 Tested by: jmls

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

15 years agoMerge the changes from issue #10665 from the team/group/sip_session_timers branch.
Russell Bryant [Wed, 16 Jan 2008 21:53:10 +0000 (21:53 +0000)]
Merge the changes from issue #10665 from the team/group/sip_session_timers branch.

This set of changes introduces SIP session timers support (RFC 4028).  In short,
this prevents stuck SIP sessions that were not properly torn down due to network
or endpoint failures during an established SIP session.

To quote some of the documentation supplied with the patch:
"The SIP Session-Timers is an extension of the SIP protocol that allows end-points and proxies to
refresh a session periodically. The sessions are kept alive by sending a RE-INVITE or UPDATE
request at a negotiated interval. If a session refresh fails then all the entities that support Session-
Timers clear their internal session state. In addition, UAs generate a BYE request in order to clear
the state in the proxies and the remote UA (this is done for the benefit of SIP entities in the path
that do not support Session-Timers)."

(closes issue #10665)
Reported by: rjain
Patches:
      chan_sip.c.1.diff uploaded by rjain (license 226)
      chan_sip.c.diff uploaded by rjain (license 226)
      sip.conf.sample.diff uploaded by rjain (license 226)
      proc_422_rsp_comment.diff uploaded by rjain (license 226)
      chan_sip.c.cache.diff uploaded by rjain (license 226)
      chan_sip.memalloc uploaded by rjain (license 226)
      chan_sip.memalloc.bugfix uploaded by rjain (license 226)

      Patches tracked in team/group/sip_session_timers, with some additional fixes
      by russell and oej.

Tested by: jtodd, rjain, loloski

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

15 years agoBlocked revisions 98973 via svnmerge
Joshua Colp [Wed, 16 Jan 2008 20:36:21 +0000 (20:36 +0000)]
Blocked revisions 98973 via svnmerge

........
r98973 | file | 2008-01-16 16:34:30 -0400 (Wed, 16 Jan 2008) | 2 lines

Bump up cleancount due to previous commit that changed the channel structure.

........

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

15 years agoBlocked revisions 98972 via svnmerge
Joshua Colp [Wed, 16 Jan 2008 20:35:49 +0000 (20:35 +0000)]
Blocked revisions 98972 via svnmerge

........
r98972 | file | 2008-01-16 16:33:47 -0400 (Wed, 16 Jan 2008) | 2 lines

Replace current spy architecture with backport of audiohooks. This should take care of current known spy issues.

........

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

15 years agoPartially revert r93898, because it broke the way netsnmp was being detected.
Jason Parker [Wed, 16 Jan 2008 19:41:25 +0000 (19:41 +0000)]
Partially revert r93898, because it broke the way netsnmp was being detected.

rizzo, do you want to discuss so we can rethink this, or do you have another way?

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

15 years agoAdd note about new update.log to CHANGES, by request of jmls and further prodding...
Jason Parker [Wed, 16 Jan 2008 18:34:19 +0000 (18:34 +0000)]
Add note about new update.log to CHANGES, by request of jmls and further prodding by jsmith.

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

15 years agoAdd logging for 'make update' command (also fixes updates in some places). Issue...
Jason Parker [Wed, 16 Jan 2008 18:06:14 +0000 (18:06 +0000)]
Add logging for 'make update' command (also fixes updates in some places).  Issue #11766, initial patch by jmls.

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

15 years agoMerged revisions 98966 via svnmerge from
Joshua Colp [Wed, 16 Jan 2008 17:51:52 +0000 (17:51 +0000)]
Merged revisions 98966 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98966 | file | 2008-01-16 13:50:10 -0400 (Wed, 16 Jan 2008) | 6 lines

Add missing NULLs at end of two ast_load_realtimes.
(closes issue #11769)
Reported by: tequ
Patches:
      chaniax.patch uploaded by dimas (license 88)

........

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

15 years agoMerged revisions 98964 via svnmerge from
Mark Michelson [Wed, 16 Jan 2008 17:21:49 +0000 (17:21 +0000)]
Merged revisions 98964 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98964 | mmichelson | 2008-01-16 11:20:11 -0600 (Wed, 16 Jan 2008) | 10 lines

Fix a deadlock in chan_local in local_hangup. There was contention because
the local_pvt was held and it was attempting to lock a channel, which is the
incorrect locking order.

(closes issue #11730)
Reported by: UDI-Doug
Patches:
      11730.patch uploaded by putnopvut (license 60)
  Tested by: UDI-Doug

........

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

15 years agoMake users list static
Terry Wilson [Wed, 16 Jan 2008 16:06:06 +0000 (16:06 +0000)]
Make users list static

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

15 years agoMerged revisions 98960 via svnmerge from
Joshua Colp [Wed, 16 Jan 2008 15:09:37 +0000 (15:09 +0000)]
Merged revisions 98960 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98960 | file | 2008-01-16 11:08:24 -0400 (Wed, 16 Jan 2008) | 6 lines

Introduce a lock into the dialing API that protects it when destroying the structure.
(closes issue #11687)
Reported by: callguy
Patches:
      11687.diff uploaded by file (license 11)

........

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

15 years agoMerged revisions 98958 via svnmerge from
Joshua Colp [Wed, 16 Jan 2008 15:04:08 +0000 (15:04 +0000)]
Merged revisions 98958 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98958 | file | 2008-01-16 11:03:14 -0400 (Wed, 16 Jan 2008) | 4 lines

Add two more SDP names for ulaw and alaw.
(closes issue #11777)
Reported by: tootai

........

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

15 years agoMerged revisions 98955 via svnmerge from
Joshua Colp [Wed, 16 Jan 2008 03:09:11 +0000 (03:09 +0000)]
Merged revisions 98955 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98955 | file | 2008-01-15 23:07:24 -0400 (Tue, 15 Jan 2008) | 6 lines

Don't drop the old record route information when dealing with packets related to a reinvite.
(closes issue #11545)
Reported by: kebl0155
Patches:
      reinvite-patch.txt uploaded by kebl0155 (license 356)

........

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

15 years agoRemove DNS lookup from sip_devicestate. This seems to come from way back when and...
Joshua Colp [Wed, 16 Jan 2008 02:30:13 +0000 (02:30 +0000)]
Remove DNS lookup from sip_devicestate. This seems to come from way back when and I can't think of a reason for it being here, plus it could cause needless DNS lookups.
(closes issue #10983)
Reported by: jtodd

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

15 years agoTerry found this problem with running the expr2 parser on OSX. Make the #defines...
Steve Murphy [Wed, 16 Jan 2008 01:35:10 +0000 (01:35 +0000)]
Terry found this problem with running the expr2 parser on OSX. Make the #defines come out the same between the parser & lexer.

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

15 years agoMerged revisions 98951 via svnmerge from
Joshua Colp [Wed, 16 Jan 2008 01:17:25 +0000 (01:17 +0000)]
Merged revisions 98951 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98951 | file | 2008-01-15 21:13:27 -0400 (Tue, 15 Jan 2008) | 4 lines

Add autoconf logic for speexdsp. Later versions use a separate library for some things so we need to use it if present in codec_speex.
(closes issue #11693)
Reported by: yzg

........

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

15 years agoMerged revisions 98946 via svnmerge from
Russell Bryant [Tue, 15 Jan 2008 23:53:28 +0000 (23:53 +0000)]
Merged revisions 98946 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98946 | russell | 2008-01-15 17:50:10 -0600 (Tue, 15 Jan 2008) | 11 lines

Change a buffer in check_auth() to be a thread local dynamically allocated
buffer, instead of a massive buffer on the stack.  This fixes a crash reported
by Qwell due to running out of stack space when building with LOW_MEMORY defined.

On a very related note, the usage of BUFSIZ in various places in chan_sip is
arbitrary and careless.  BUFSIZ is a system specific define.  On my machine,
it is 8192, but by definition (according to google) could be as small as 256.
So, this buffer in check_auth was 16 kB.  We don't even support SIP messages
larger than 4 kB!  Further usage of this define should be avoided, unless it
is used in the proper context.

........

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

15 years agoAdd the "filter" keyword
Tilghman Lesher [Tue, 15 Jan 2008 23:52:11 +0000 (23:52 +0000)]
Add the "filter" keyword

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

15 years agoClean up something I did for ABI compatability in 1.4
Russell Bryant [Tue, 15 Jan 2008 23:35:29 +0000 (23:35 +0000)]
Clean up something I did for ABI compatability in 1.4

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

15 years agoMerged revisions 98943 via svnmerge from
Russell Bryant [Tue, 15 Jan 2008 23:31:53 +0000 (23:31 +0000)]
Merged revisions 98943 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98943 | russell | 2008-01-15 17:26:52 -0600 (Tue, 15 Jan 2008) | 25 lines

Commit a fix for some memory access errors pointed out by the valgrind2.txt
output on issue #11698.

The issue here is that it is possible for an instance of a translator to get
destroyed while the frame allocated as a part of the translator is still being
processed.  Specifically, this is possible anywhere between a call to ast_read()
and ast_frame_free(), which is _a lot_ of places in the code.  The reason this
happens is that the channel might get masqueraded during this time.  During a
masquerade, existing translation paths get destroyed.

So, this patch fixes the issue in an API and ABI compatible way.  (This one is
 for you, paravoid!)

It changes an int in ast_frame to be used as flag bits.  The 1 bit is still used
to indicate that the frame contains timing information.  Also, a second flag has
been added to indicate that the frame came from a translator.  When a frame with
this flag gets released and has this flag, a function is called in translate.c to
let it know that this frame is doing being processed.  At this point, the flag gets
cleared.  Also, if the translator was requested to be destroyed while its internal
frame still had this flag set, its destruction has been deffered until it finds out
that the frame is no longer being processed.

Admittedly, this feels like a hack.  But, it does fix the issue, and I was not able
to think of a better solution ...

........

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

15 years agoMerged revisions 98934 via svnmerge from
Joshua Colp [Tue, 15 Jan 2008 20:10:20 +0000 (20:10 +0000)]
Merged revisions 98934 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98934 | file | 2008-01-15 16:08:43 -0400 (Tue, 15 Jan 2008) | 4 lines

Based on the boundary found move over the correct amount.
(closes issue #11750)
Reported by: tasker

........

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

15 years agoMerged revisions 98894 via svnmerge from
Joshua Colp [Mon, 14 Jan 2008 22:44:20 +0000 (22:44 +0000)]
Merged revisions 98894 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98894 | file | 2008-01-14 18:41:55 -0400 (Mon, 14 Jan 2008) | 4 lines

Accept "; boundary=" not just ";boundary=" in the multipart mixed content type.
(closes issue #11750)
Reported by: tasker

........

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