asterisk/asterisk.git
10 years agoMove contact_ha to sip_cfg structure
Olle Johansson [Mon, 7 Sep 2009 16:23:39 +0000 (16:23 +0000)]
Move contact_ha to sip_cfg structure

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

10 years agoDoxygen updates
Olle Johansson [Mon, 7 Sep 2009 16:16:58 +0000 (16:16 +0000)]
Doxygen updates

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

10 years agoSince it's possible to have more than 999 calls, I'm changing the call counter roof...
Olle Johansson [Mon, 7 Sep 2009 16:08:08 +0000 (16:08 +0000)]
Since it's possible to have more than 999 calls, I'm changing the call counter roof to something higher.

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

10 years agoadd doxygen and remove duplicate declaration of variable
Olle Johansson [Mon, 7 Sep 2009 16:00:41 +0000 (16:00 +0000)]
add doxygen and remove duplicate declaration of variable

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

10 years agoAfter many years, remove VOCAL_DATA_HACK definition
Olle Johansson [Mon, 7 Sep 2009 15:48:41 +0000 (15:48 +0000)]
After many years, remove VOCAL_DATA_HACK definition

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

10 years agoRemove unneeded header files (tested on Linux and OS/X)
Olle Johansson [Mon, 7 Sep 2009 15:47:40 +0000 (15:47 +0000)]
Remove unneeded header files (tested on Linux and OS/X)

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

10 years agoDon't send MESSAGE with sendtext() if recepient doesn't allow MESSAGE requests
Olle Johansson [Mon, 7 Sep 2009 14:54:14 +0000 (14:54 +0000)]
Don't send MESSAGE with sendtext() if recepient doesn't allow MESSAGE requests

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

10 years agoAdd some doxygen
Olle Johansson [Mon, 7 Sep 2009 14:21:01 +0000 (14:21 +0000)]
Add some doxygen

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

10 years agoFix typo
Olle Johansson [Mon, 7 Sep 2009 14:04:40 +0000 (14:04 +0000)]
Fix typo

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

10 years agoIf there is no session timer in the INVITE, set it to default value (not unset minimu...
Olle Johansson [Mon, 7 Sep 2009 13:06:19 +0000 (13:06 +0000)]
If there is no session timer in the INVITE, set it to default value (not unset minimum = -1)

Patch by oej

closes issue #15621
Reported by: fnordian
Tested by: atis

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

10 years agoUpdate sip.conf.sample documentation, reorganize a bit
Olle Johansson [Mon, 7 Sep 2009 12:41:08 +0000 (12:41 +0000)]
Update sip.conf.sample documentation, reorganize a bit

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

10 years agoSimplify the code in this function
Olle Johansson [Mon, 7 Sep 2009 11:31:19 +0000 (11:31 +0000)]
Simplify the code in this function

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

10 years agosip peer matching by address only with TCP/TLS
David Vossel [Fri, 4 Sep 2009 19:32:07 +0000 (19:32 +0000)]
sip peer matching by address only with TCP/TLS

This patch removes the contact header matching logic and
adds logic to match all tcp/tls connections by ip only.
Thanks to oej for finding the issue and suggesting solutions.

Review: https://reviewboard.asterisk.org/r/354/

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

10 years agoUse ast_free() instead of free().
Sean Bright [Fri, 4 Sep 2009 19:29:02 +0000 (19:29 +0000)]
Use ast_free() instead of free().

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

10 years agoFix trunk breakage.
Tilghman Lesher [Fri, 4 Sep 2009 17:50:21 +0000 (17:50 +0000)]
Fix trunk breakage.

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

10 years agoEnable turning off the application delimiter warning with the 'dontwarn' option.
Tilghman Lesher [Fri, 4 Sep 2009 17:31:44 +0000 (17:31 +0000)]
Enable turning off the application delimiter warning with the 'dontwarn' option.
Suggested on the -dev list, and implemented in an alternate way by me.

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

10 years agoMerged revisions 216435 via svnmerge from
Michiel van Baak [Fri, 4 Sep 2009 15:05:05 +0000 (15:05 +0000)]
Merged revisions 216435 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r216435 | mvanbaak | 2009-09-04 15:56:10 +0200 (Fri, 04 Sep 2009) | 2 lines

  make asterisk compile under devmode with DEBUG_THREADS enabled on OpenBSD
........

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

10 years agoMerged revisions 216430 via svnmerge from
Olle Johansson [Fri, 4 Sep 2009 14:02:34 +0000 (14:02 +0000)]
Merged revisions 216430 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r216430 | oej | 2009-09-04 15:45:48 +0200 (Fre, 04 Sep 2009) | 27 lines

Make apps send PROGRESS control frame for early media and fix too early media issue in SIP

The issue at hand is that some legacy (dying) PBX systems send empty media frames on PRI
links *before* any call progress. The SIP channel receives these frames and by default
signals 183 Session progress and starts sending media. This will cause phones to
play silence and ignore the later 180 ringing message. A bad user experience.

The fix is twofold:
- We discovered that asterisk apps that support early media ("noanswer") did not send
  any PROGRESS frame to indicate early media. Fixed.
- We introduce a setting in chan_sip so that users can disable any relay of media frames
  before the outbound channel actually indicates any sort of call progress.
  In 1.4, 1.6.0 and 1.6.1, this will be disabled for backward compatibility. In later versions
  of Asterisk, this will be enabled. We don't assume that it will change your Asterisk
  phone experience - only for the better.

We encourage third-party application developers to make sure that if they have applications
that wants to send early media, add a PROGRESS control frame transmission to make sure that
all channel drivers actually will start sending early media. This has not been the default
in Asterisk previous to this patch, so if you got inspiration from our code, you need to
update accordingly. Sorry for the trouble and thanks for your support.

This code has been running for a few months in a large scale installation (over 250
servers with PRI and/or BRI links to old PBX systems).
That's no proof that this is an excellent patch, but, well, it's tested :-)

........

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

10 years agomake sure canlog is set so we can compile with DEBUG_THREADS enabled on OpenBSD
Michiel van Baak [Fri, 4 Sep 2009 14:00:38 +0000 (14:00 +0000)]
make sure canlog is set so we can compile with DEBUG_THREADS enabled on OpenBSD

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

10 years agoRecorded merge of revisions 216432 via svnmerge from
Michiel van Baak [Fri, 4 Sep 2009 13:54:25 +0000 (13:54 +0000)]
Recorded merge of revisions 216432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r216432 | mvanbaak | 2009-09-04 15:53:09 +0200 (Fri, 04 Sep 2009) | 2 lines

  make chan_sip compile under devmode again
........

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

10 years agoRecorded merge of revisions 216369 via svnmerge from
Michiel van Baak [Fri, 4 Sep 2009 13:46:59 +0000 (13:46 +0000)]
Recorded merge of revisions 216369 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r216369 | mvanbaak | 2009-09-04 15:16:29 +0200 (Fri, 04 Sep 2009) | 4 lines

  Make sure 'start' is always initialized.

  This is the same as rev 216222 in trunk but 1.4 is affected as well
........

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

10 years agoDo not treat every SIP peer as if they were configured with insecure=port.
Russell Bryant [Fri, 4 Sep 2009 13:14:25 +0000 (13:14 +0000)]
Do not treat every SIP peer as if they were configured with insecure=port.

There was a problem in the function responsible for doing peer matching by
IP address and port number such that during the second pass for checking for
a peer configured with insecure=port, it would end up treating every peer as
if it had been configured that way.  These changes fix the logic in the peer
IP and port comparison callback to handle insecure=port checking properly.

This problem was introduced when SIP peers were converted to astobj2.  Many
thanks to dvossel for noticing this while working on another peer matching
issue.

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

10 years agoAdding to the janitor list.
Olle Johansson [Fri, 4 Sep 2009 12:05:46 +0000 (12:05 +0000)]
Adding to the janitor list.

For new readers: The janitor list is a list of tasks we need help with in the Asterisk project. Taking up
one of these is often a good way to get into Asterisk development and getting a lot of developers in
the project to be grateful. It's stuff we could spend time on when the bug tracker is empty, when our
employers hasn't filled our task lists and our servers is running bugfree and happily without any issues.

If you want to start working on one of these small projects, feel free to ask for help in the #asterisk-dev
channel on IRC or asterisk-dev mailing list. We'll be more than happy to help you to start and reach
goal.

Thank you for your help.

</end of long commit message>

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

10 years agoMerged revisions 216263 via svnmerge from
Russell Bryant [Fri, 4 Sep 2009 10:48:44 +0000 (10:48 +0000)]
Merged revisions 216263 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
  r216263 | russell | 2009-09-04 05:48:00 -0500 (Fri, 04 Sep 2009) | 9 lines

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

  ........
    r216262 | russell | 2009-09-04 05:47:37 -0500 (Fri, 04 Sep 2009) | 2 lines

    Add a plain text version of the IAX2 security document.
  ........
................

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

10 years agomake sure 'start' is always initialized.
Michiel van Baak [Fri, 4 Sep 2009 06:08:33 +0000 (06:08 +0000)]
make sure 'start' is always initialized.
Makes asterisk compile with --enable-dev-mode

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

10 years agoLets try not to use C++ keywords for variable names.
Richard Mudgett [Thu, 3 Sep 2009 21:09:46 +0000 (21:09 +0000)]
Lets try not to use C++ keywords for variable names.

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

10 years agoAdded detection DTMF CID without polarity change alert.
Doug Bailey [Thu, 3 Sep 2009 19:40:37 +0000 (19:40 +0000)]
Added detection DTMF CID without polarity change alert.

Added detection of DTMF tone energy levels on FXO channels in chan_dahdi
monitoring loop so DTMF CID can be detected without the need of a polarity
change precursor.

(closes issue #9096)
Reported by: fleed
Patches:
      9096-chan_dahdi-trunk.diff uploaded by dbailey (license 819)
Tested by: cyberplant, sum, maturs

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

10 years agoMerged revisions 216085 via svnmerge from
Russell Bryant [Thu, 3 Sep 2009 19:38:35 +0000 (19:38 +0000)]
Merged revisions 216085 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
  r216085 | russell | 2009-09-03 14:36:46 -0500 (Thu, 03 Sep 2009) | 9 lines

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

  ........
    r216080 | russell | 2009-09-03 14:35:23 -0500 (Thu, 03 Sep 2009) | 2 lines

    Add a note about IAX2 to UPGRADE.txt.
  ........
................

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

10 years agoMerged revisions 216008 via svnmerge from
Russell Bryant [Thu, 3 Sep 2009 18:45:54 +0000 (18:45 +0000)]
Merged revisions 216008 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
  r216008 | russell | 2009-09-03 13:44:58 -0500 (Thu, 03 Sep 2009) | 9 lines

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

  ........
    r216005 | russell | 2009-09-03 13:42:24 -0500 (Thu, 03 Sep 2009) | 2 lines

    Add IAX2 security document related to AST-2009-006.
  ........
................

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

10 years agoDocument language prompt submission process.
Kevin P. Fleming [Thu, 3 Sep 2009 18:42:38 +0000 (18:42 +0000)]
Document language prompt submission process.

This patch adds a document describing the language prompt submission process,
licensing terms and other issues related to that process. In addition, it
modifies the sound file searching process to support language codes with
any number of suffices (not limited to just "xx" or "xx_YY"), so that prompts
can be named with gender, customer/company, etc. suffices as well.

(closes issue #15771)
Reported by: jtodd
Patches:
      language-criteria.txt uploaded by jtodd

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

10 years agoBlocked revisions 216000 via svnmerge
David Vossel [Thu, 3 Sep 2009 18:33:52 +0000 (18:33 +0000)]
Blocked revisions 216000 via svnmerge

........
  r216000 | dvossel | 2009-09-03 13:32:32 -0500 (Thu, 03 Sep 2009) | 7 lines

  Merge code associated with AST-2009-006

  (closes issue #12912)
  Reported by: rathaus
  Tested by: tilghman, russell, dvossel, dbrooks
........

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

10 years agoMerge code associated with AST-2009-006
David Vossel [Thu, 3 Sep 2009 16:31:54 +0000 (16:31 +0000)]
Merge code associated with AST-2009-006

(closes issue #12912)
Reported by: rathaus
Tested by: tilghman, russell, dvossel, dbrooks

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

10 years agoAdd known internal IP address when autodomain=yes
Olle Johansson [Thu, 3 Sep 2009 13:02:41 +0000 (13:02 +0000)]
Add known internal IP address when autodomain=yes

(closes issue #14573)
Reported by: pj
Patches:
      sip-internip-autodomain1.diff uploaded by mnicholson (license 96)
modified by oej
Tested by: pj

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

10 years agoDocument that SIPshowpeer and SKINNYshowline now include
Michiel van Baak [Thu, 3 Sep 2009 05:57:23 +0000 (05:57 +0000)]
Document that SIPshowpeer and SKINNYshowline now include
the configured parkinglot in their response.

Prodded by snuff-work on #asterisk-dev IRC channel

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

10 years agoDefault the callback extension to "s". This is a regression.
Tilghman Lesher [Thu, 3 Sep 2009 03:43:51 +0000 (03:43 +0000)]
Default the callback extension to "s".  This is a regression.
(closes issue #15764)
 Reported by: elguero
 Change-type: bugfix

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

10 years agoRevert attempt to standardize with _POSIX_C_SOURCE.
Tilghman Lesher [Thu, 3 Sep 2009 03:30:42 +0000 (03:30 +0000)]
Revert attempt to standardize with _POSIX_C_SOURCE.
This did not function in the way that was intended, causing more compatibility
issues than it solved.  It is best, therefore, that it be simply removed.
(Discussed with kpfleming; agreement to remove was reached.)

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

10 years agoMerged revisions 215682 via svnmerge from
Terry Wilson [Wed, 2 Sep 2009 23:31:04 +0000 (23:31 +0000)]
Merged revisions 215682 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r215682 | twilson | 2009-09-02 16:41:22 -0500 (Wed, 02 Sep 2009) | 18 lines

  Re-send non-100 provisional responses to prevent cancellation

  From section 13.3.1.1 of RFC 3261:

     If the UAS desires an extended period of time to answer the INVITE,
     it will need to ask for an "extension" in order to prevent proxies
     from canceling the transaction. A proxy has the option of canceling
     a transaction when there is a gap of 3 minutes between responses in a
     transaction. To prevent cancellation, the UAS MUST send a non-100
     provisional response at every minute, to handle the possibility of
     lost provisional responses.

  (closes issue #11157)
  Reported by: rjain
  Tested by: twilson

  Review: https://reviewboard.asterisk.org/r/315/
........

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

10 years agoMade chan_dahdi able to ignore incoming calls that are not in a MSN list for ISDN...
Richard Mudgett [Wed, 2 Sep 2009 23:25:33 +0000 (23:25 +0000)]
Made chan_dahdi able to ignore incoming calls that are not in a MSN list for ISDN PTMP CPE spans.

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

10 years agoport string to int conversion using sscanf
David Vossel [Wed, 2 Sep 2009 21:39:31 +0000 (21:39 +0000)]
port string to int conversion using sscanf

There are several instances where a port is parsed
from a uri or some other source and converted to
an int value using atoi(), if for some reason the
port string is empty, then a standard port is used.
This logic is used over and over, so I created a function
to handle it in a safer way using sscanf().

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

10 years agoadd Parkinglot info to sip show peer <foo> and skinny show line <foo>
Michiel van Baak [Wed, 2 Sep 2009 21:23:17 +0000 (21:23 +0000)]
add Parkinglot info to sip show peer <foo> and skinny show line <foo>

If we had this from the start, debugging the 'parking not using configured parkinglot'
bug would have been easier.

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

10 years ago- lock channel before looking for a channel variable
Michiel van Baak [Wed, 2 Sep 2009 20:21:51 +0000 (20:21 +0000)]
- lock channel before looking for a channel variable
- Init the parkings list member of struct parkinglot.
Thanks Sean for the explanation why this should be here.

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

10 years agoFix issue where DTMF CID detect was placing channels into signed linear mode
Doug Bailey [Wed, 2 Sep 2009 19:49:43 +0000 (19:49 +0000)]
Fix issue where DTMF CID detect was placing channels into signed linear mode
made analog_set_linear_mode return back the mode that was being overwritten
so it could be restored later.

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

10 years agoClose up to the soft open file limit (same on Linux, but varies drastically on OS X).
Tilghman Lesher [Wed, 2 Sep 2009 18:37:25 +0000 (18:37 +0000)]
Close up to the soft open file limit (same on Linux, but varies drastically on OS X).
Also, a Makefile fix for Darwin (OS X).
(closes issue #14542)
 Reported by: jtodd
 Patches:
       20090901__issue14542.diff.txt uploaded by tilghman (license 14)
 Tested by: jtodd, tilghman
 Change-type: bugfix

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

10 years agoSIP uri parsing cleanup
David Vossel [Wed, 2 Sep 2009 17:26:40 +0000 (17:26 +0000)]
SIP uri parsing cleanup

Now, the scheme passed to parse_uri can either be a
single scheme, or a list of schemes ',' delimited.
This gets rid of the whole problem of having to create
two buffers and calling parse_uri twice to check for
separate schemes.

Review: https://reviewboard.asterisk.org/r/343/

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

10 years agolike in chan_sip's sip_new skinny should copy the configured parkinglot from a line...
Michiel van Baak [Wed, 2 Sep 2009 16:20:23 +0000 (16:20 +0000)]
like in chan_sip's sip_new skinny should copy the configured parkinglot from a line to the newly created channel.
This makes callparking honor the configured parkinglot for skinny lines as well.

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

10 years agoSIP support for keep-alive event
David Vossel [Wed, 2 Sep 2009 16:08:00 +0000 (16:08 +0000)]
SIP support for keep-alive event

keep-alive events are used by Sipura/Linksys for NAT keepalive.
There currently don't appear to be any problems with NAT, but
everytime a keep-alive event is received, Asterisk responds with a
"489 Bad event".  This error may indicate to a user that NAT
problems exist just because this even is not supported.  Now,
rather than respond with an error, the packet is consumed and
a "200 ok" is sent just to indicate we received the packet.

(issue #15084)
Patches:
      chan_sip.keepalive.v1.diff uploaded by IgorG (license 20)

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

10 years agoHonor configured parkinglot when parking and retrieving parked calls
Michiel van Baak [Wed, 2 Sep 2009 15:56:46 +0000 (15:56 +0000)]
Honor configured parkinglot when parking and retrieving parked calls

Thank oej for pointing out the fact that sip_new did not copy parkinglot from the peer
into the newly created channel.

(closes issue #15538)
Reported by: gracedman
Patches:
      2009090100_sipnewparkinglot-161.diff.txt uploaded by mvanbaak (license 7)
  With mod by me to also fix callparking as well (this uploaded patch only fixed retrieving a parked call)
Tested by: gracedman, mvanbaak

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

10 years agoLet's compile again on OpenBSD
Michiel van Baak [Wed, 2 Sep 2009 10:50:49 +0000 (10:50 +0000)]
Let's compile again on OpenBSD

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

10 years agoAdding MUTEAUDIO() dialplan function and MuteAudio AMI action (pinepeach)
Olle Johansson [Wed, 2 Sep 2009 06:23:05 +0000 (06:23 +0000)]
Adding MUTEAUDIO() dialplan function and MuteAudio AMI action (pinepeach)

Review: https://reviewboard.asterisk.org/r/345/

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

10 years agoMerged revisions 215270 via svnmerge from
Dwayne M. Hubbard [Wed, 2 Sep 2009 01:16:59 +0000 (01:16 +0000)]
Merged revisions 215270 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r215270 | dhubbard | 2009-09-01 18:04:52 -0500 (Tue, 01 Sep 2009) | 12 lines

  Use strrchr() so SoftHangup will correctly truncate multi-hyphen channel names

  In general channel names are in the form Foo/Bar-Z, but the channel name
  could have multiple hyphens and look like Foo/B-a-r-Z.  Use strrchr to
  truncate the channel name at the last hyphen.

  (closes issue #15810)
  Reported by: dhubbard
  Patches:
        dw-softhangup-1.4.patch uploaded by dhubbard (license 733)
........

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

10 years agoAdd MASTER_CHANNEL() dialplan function, as well as a useful usage.
Tilghman Lesher [Tue, 1 Sep 2009 23:41:06 +0000 (23:41 +0000)]
Add MASTER_CHANNEL() dialplan function, as well as a useful usage.
(closes issue #13140)
 Reported by: cpina
 Patches:
       20090807__issue13140.diff.txt uploaded by tilghman (license 14)
 Tested by: lmadsen
 Change-type: feature

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

10 years agoFix register such that lines with a transport string, but without an authuser, parse...
Tilghman Lesher [Tue, 1 Sep 2009 21:19:40 +0000 (21:19 +0000)]
Fix register such that lines with a transport string, but without an authuser, parse correctly.
(AST-228)

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

10 years agoFix memory corruption caused by format_mp3.
Russell Bryant [Tue, 1 Sep 2009 20:44:13 +0000 (20:44 +0000)]
Fix memory corruption caused by format_mp3.

format_mp3 claimed that it provided AST_FRIENDLY_OFFSET in frames returned by
read().  However, it lied.  This means that other parts of the code that
attempted to make use of the offset buffer would end up corrupting the fields
in the ast_filestream structure.  This resulted in quite a few crashes due to
unexpected values for fields in ast_filestream.

This patch closes out quite a few bugs.  However, some of these bugs have been
open for a while and have been an area where more than one bug has been
discussed.  So with that said, anyone that is following one of the issues
closed here, if you still have a problem, please open a new bug report for the
specific problem you are still having.  If you do, please ensure that the bug
report is based on the newest version of Asterisk, and that this patch is
applied if format_mp3 is in use.  Thanks!

(closes issue #15109)
Reported by: jvandal
Tested by: aragon, russell, zerohalo, marhbere, rgj

(closes issue #14958)
Reported by: aragon

(closes issue #15123)
Reported by: axisinternet

(closes issue #15041)
Reported by: maxnuv

(closes issue #15396)
Reported by: aragon

(closes issue #15195)
Reported by: amorsen
Tested by: amorsen

(closes issue #15781)
Reported by: jensvb

(closes issue #15735)
Reported by: thom4fun

(closes issue #15460)
Reported by: marhbere

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

10 years agoEnsure that frame dumps of AST_CONTROL_T38_PARAMETERS frames are properly
Kevin P. Fleming [Tue, 1 Sep 2009 19:50:48 +0000 (19:50 +0000)]
Ensure that frame dumps of AST_CONTROL_T38_PARAMETERS frames are properly
decoded.

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

10 years agoRemoving whitespace that causes red dots in reviewboard
Olle Johansson [Tue, 1 Sep 2009 14:40:42 +0000 (14:40 +0000)]
Removing whitespace that causes red dots in reviewboard

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

10 years agoFix a trunk compilation warning.
Tilghman Lesher [Mon, 31 Aug 2009 22:02:24 +0000 (22:02 +0000)]
Fix a trunk compilation warning.

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

10 years agoProperly initialize the session to prevent a crash.
Tilghman Lesher [Mon, 31 Aug 2009 21:45:00 +0000 (21:45 +0000)]
Properly initialize the session to prevent a crash.
(closes issue #15774)
 Reported by: lasko
 Patches:
       20090831__issue15774.diff.txt uploaded by tilghman (license 14)
 Tested by: lasko

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

10 years agoBy copying this code I got bad comments in reviewboard... Better fix the original.
Olle Johansson [Mon, 31 Aug 2009 18:17:38 +0000 (18:17 +0000)]
By copying this code I got bad comments in reviewboard... Better fix the original.

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

10 years agoMerged revisions 214940 via svnmerge from
Tilghman Lesher [Mon, 31 Aug 2009 16:18:33 +0000 (16:18 +0000)]
Merged revisions 214940 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r214940 | tilghman | 2009-08-31 11:16:52 -0500 (Mon, 31 Aug 2009) | 7 lines

  Also unlock the "other" channel, when returning, due to glare.
  (closes issue #15787)
   Reported by: tim_ringenbach
   Patches:
         chan_local.diff uploaded by tim ringenbach (license 540)
   Tested by: tim_ringenbach
........

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

10 years agoForce Darwin on ppc platforms to compile with a target level that supports aliasing.
Tilghman Lesher [Sun, 30 Aug 2009 22:10:35 +0000 (22:10 +0000)]
Force Darwin on ppc platforms to compile with a target level that supports aliasing.

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

10 years agoVarious patches, to enable Asterisk to once again compile on Mac OS X.
Tilghman Lesher [Sun, 30 Aug 2009 18:37:17 +0000 (18:37 +0000)]
Various patches, to enable Asterisk to once again compile on Mac OS X.

One note on defining _POSIX_C_SOURCE:  while this feature test macro
works to require certain behaviors on Linux, it works differently on *BSD
platforms to REMOVE certain API calls that are not in the POSIX specification,
such as vasprintf(3).  Thus, defining it while depending upon vasprintf (and
other extensions to the POSIX standard) to be defined is a recipe to ensure
that Asterisk is only buildable on Linux.

Hence, this define which was meant to INCREASE portability, effectively
ensures the opposite.

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

10 years agoIf lua is detected with the lua5.1 prefix (or not), adjust the include path accordingly.
Tilghman Lesher [Sun, 30 Aug 2009 06:43:04 +0000 (06:43 +0000)]
If lua is detected with the lua5.1 prefix (or not), adjust the include path accordingly.
Based upon feedback to a release announcement on the -users list.  See
http://lists.digium.com/pipermail/asterisk-users/2009-August/236954.html

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

10 years agoUpdate configure script so that CONFIG_CFLAGS and CONFIG_LDFLAGS doesn't break the...
Russell Bryant [Fri, 28 Aug 2009 22:44:44 +0000 (22:44 +0000)]
Update configure script so that CONFIG_CFLAGS and CONFIG_LDFLAGS doesn't break the build.

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

10 years agoMerged revisions 214701 via svnmerge from
Tilghman Lesher [Fri, 28 Aug 2009 20:14:39 +0000 (20:14 +0000)]
Merged revisions 214701 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r214701 | tilghman | 2009-08-28 15:13:32 -0500 (Fri, 28 Aug 2009) | 8 lines

  Modify comment to be a bit more accurate.
  We have kept this comment around long enough, that it's pretty clear that we're
  keeping the code, because changing the code would require a pretty fundamental
  architectural shift.  We've also taken criticism in some quarters, because it
  was believed that it was referring to the code being nasty.  No, the code isn't
  nasty, just the operation itself is rather odd.  Fixed for eternity (probably
  not).
........

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

10 years agoEnsure that CFLAGS and/or LDFLAGS provided to configure script are preserved.
Kevin P. Fleming [Fri, 28 Aug 2009 20:01:21 +0000 (20:01 +0000)]
Ensure that CFLAGS and/or LDFLAGS provided to configure script are preserved.

Cross-compilation environments want to provide 'defaults' for compiler and
linker options, and frequently do this by specifying CFLAGS and LDFLAGS in the
environment or as command-line arguments to the configure script. This patch
modifies the configure script and Makefile to preserve these settings and
ensure they are used in the build process.

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

10 years agoMove discardremoteholdretrieval test so it applies only to the specific notification...
Richard Mudgett [Fri, 28 Aug 2009 19:13:53 +0000 (19:13 +0000)]
Move discardremoteholdretrieval test so it applies only to the specific notification indicator values.

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

10 years agoFix some incorrect documentation of sched_thread functions.
Mark Michelson [Fri, 28 Aug 2009 18:41:23 +0000 (18:41 +0000)]
Fix some incorrect documentation of sched_thread functions.

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

10 years agoRemove unnecessary define for Solaris
Tilghman Lesher [Fri, 28 Aug 2009 16:50:05 +0000 (16:50 +0000)]
Remove unnecessary define for Solaris
(closes issue #15358)
 Reported by: snuffy
 Patches:
       bug_res_moh_remove_unneeded_include.diff uploaded by snuffy (license 35)

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

10 years agoMerged revisions 214517 via svnmerge from
Tilghman Lesher [Thu, 27 Aug 2009 21:46:46 +0000 (21:46 +0000)]
Merged revisions 214517 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r214517 | tilghman | 2009-08-27 16:45:34 -0500 (Thu, 27 Aug 2009) | 7 lines

  Use autoconf to detect libcurl, as this enables cross-compilation checks, something we didn't allow before.
  (closes issue #15714)
   Reported by: pprindeville
   Patches:
         20090813__issue15714.diff.txt uploaded by tilghman (license 14)
   Tested by: pprindeville
........

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

10 years agoEnsure that we check for the special value CONFIG_STATUS_FILEINVALID.
Tilghman Lesher [Thu, 27 Aug 2009 21:26:37 +0000 (21:26 +0000)]
Ensure that we check for the special value CONFIG_STATUS_FILEINVALID.
(closes issue #15786)
 Reported by: a_villacis
 Patches:
       asterisk-1.6.2.0-beta4-manager-fix-crash-on-include-nonexistent-file.patch uploaded by a villacis (license 660)
       (Plus a few of my own, to catch the remaining places within manager.c where it could have been a problem)

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

10 years agoMerged revisions 214436 via svnmerge from
Tilghman Lesher [Thu, 27 Aug 2009 17:28:01 +0000 (17:28 +0000)]
Merged revisions 214436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r214436 | tilghman | 2009-08-27 11:53:58 -0500 (Thu, 27 Aug 2009) | 2 lines

  One more build system change, to make the descriptions look better, if we have better information.
........

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

10 years agoMerged revisions 214357 via svnmerge from
Tilghman Lesher [Thu, 27 Aug 2009 16:12:03 +0000 (16:12 +0000)]
Merged revisions 214357 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r214357 | tilghman | 2009-08-27 11:03:50 -0500 (Thu, 27 Aug 2009) | 3 lines

  Make autoheader descriptions render correctly in our autoconfig.h file.
  (Figured out while working with issue #14906)
........

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

10 years agoAdd forgotten documentation for new channel variables added in 214309.
Jeff Peeler [Thu, 27 Aug 2009 15:57:47 +0000 (15:57 +0000)]
Add forgotten documentation for new channel variables added in 214309.

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

10 years agoAdd two new dialplan variables when using features
Jeff Peeler [Wed, 26 Aug 2009 23:13:19 +0000 (23:13 +0000)]
Add two new dialplan variables when using features

Added DYNAMIC_FEATURENAME which holds the last triggered dynamic feature.
Added DYNAMIC_PEERNAME which holds the unique channel name on the other side
and is set when a dynamic feature is triggered.

(closes issue #14663)
Reported by: tamiel
Patches:
      20090313_features.diff uploaded by tamiel (license 712)
Tested by: tamiel

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

10 years agoMinor punctuation change.
Richard Mudgett [Wed, 26 Aug 2009 21:56:27 +0000 (21:56 +0000)]
Minor punctuation change.

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

10 years agoTypo fix ("SIP/2.0 XXX" is 11 chars, not 10)
Tilghman Lesher [Wed, 26 Aug 2009 16:53:03 +0000 (16:53 +0000)]
Typo fix ("SIP/2.0 XXX" is 11 chars, not 10)
(closes issue #15362)
 Reported by: klaus3000
 Patches:
       chan_sip.c_logmessagefix_patch.txt uploaded by klaus3000 (license 65)

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

10 years agoMerged revisions 214194 via svnmerge from
David Vossel [Wed, 26 Aug 2009 16:38:53 +0000 (16:38 +0000)]
Merged revisions 214194 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r214194 | dvossel | 2009-08-26 11:36:42 -0500 (Wed, 26 Aug 2009) | 19 lines

  ast_write() ignores ast_audiohook_write() results

  In ast_write(), if a channel has a list of audiohooks, those
  lists are written to and the resulting frame is what ast_write()
  should continue with.  The problem was the returned audiohook frame
  was not being handled at all, and the original frame passed
  into it did not contain the mixed audio, so essentially audio
  was being lost.  One result of this was chan_spy's whisper
  mode no longer worked.  To complicate the issue, frames
  passed into ast_write may either be a single frame, or a list
  of frames.  So, as the list of frames is processed in the
  audiohook_write, the returned frames had to be added to a new
  list.

  (closes issue #15660)
  Reported by: corruptor
  Tested by: dvossel
........

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

10 years agoNot all versions of gnu-linux use glibc, which contains iconv. Some (especially...
Tilghman Lesher [Tue, 25 Aug 2009 22:39:51 +0000 (22:39 +0000)]
Not all versions of gnu-linux use glibc, which contains iconv.  Some (especially embedded systems) don't have iconv at all.
(closes issue #15169)
 Reported by: pprindeville

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

10 years agoMerged revisions 214068-214069 via svnmerge from
Tilghman Lesher [Tue, 25 Aug 2009 19:32:48 +0000 (19:32 +0000)]
Merged revisions 214068-214069 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r214068 | tilghman | 2009-08-25 14:26:50 -0500 (Tue, 25 Aug 2009) | 6 lines

  Fix pronunciation of German dates.
  (closes issue #15273)
   Reported by: Benjamin Kluck
   Patches:
         say_c.patch uploaded by Benjamin Kluck (license 803)
........
  r214069 | tilghman | 2009-08-25 14:28:42 -0500 (Tue, 25 Aug 2009) | 2 lines

  I should always compile before committing...
........

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

10 years agoDUNDILOOKUP function in 1.6 should use comma delimiters.
Tilghman Lesher [Tue, 25 Aug 2009 06:51:12 +0000 (06:51 +0000)]
DUNDILOOKUP function in 1.6 should use comma delimiters.
(closes issue #15322)
 Reported by: chappell
 Patches:
       dundilookup-0015322.patch uploaded by chappell (license 8)

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

10 years agoMerged revisions 213970 via svnmerge from
Tilghman Lesher [Tue, 25 Aug 2009 06:35:37 +0000 (06:35 +0000)]
Merged revisions 213970 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r213970 | tilghman | 2009-08-25 01:34:44 -0500 (Tue, 25 Aug 2009) | 7 lines

  Improve error message by informing user exactly which function is missing a parethesis.
  (closes issue #15242)
   Reported by: Nick_Lewis
   Patches:
         pbx.c-funcparenthesis.patch2 uploaded by dbrooks (license 790)
         pbx.c-funcparenthesis-1.4.diff uploaded by loloski (license 68)
........

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

10 years agoThe DTD should be installed in the same path as the rest of the XML documentation.
Tilghman Lesher [Tue, 25 Aug 2009 02:54:07 +0000 (02:54 +0000)]
The DTD should be installed in the same path as the rest of the XML documentation.
(closes issue #15344)
 Reported by: tzafrir
 Patches:
       makefile_appdocs_dtd.diff uploaded by tzafrir (license 46)

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

10 years agoMerged revisions 213899 via svnmerge from
Tilghman Lesher [Tue, 25 Aug 2009 02:41:17 +0000 (02:41 +0000)]
Merged revisions 213899 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r213899 | tilghman | 2009-08-24 21:40:22 -0500 (Mon, 24 Aug 2009) | 4 lines

  Use the default runlevels for Debian derivatives, instead of making up our own.
  (closes issue #14730)
   Reported by: pkempgen
........

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

10 years agoFix storage of greetings when using IMAP_STORAGE
Jeff Peeler [Mon, 24 Aug 2009 16:43:57 +0000 (16:43 +0000)]
Fix storage of greetings when using IMAP_STORAGE

The store macro was not getting called preventing storage of IMAP greetings
at all. This has been corrected along with fixing checking if the
imapgreetings option is turned on to store the greeting in IMAP. Lastly,
the attachment filename was incorrectly using the full path instead of just
the basename, which was causing problems with retrieval of the greeting.

(closes issue #14950)
Reported by: noahisaac

(closes issue #15729)
Reported by: lmadsen

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

10 years agoimprove handling of openr2_chan_disconnect_call API failure, unlikely, but happened...
Moises Silva [Mon, 24 Aug 2009 04:46:28 +0000 (04:46 +0000)]
improve handling of openr2_chan_disconnect_call API failure, unlikely, but happened on openr2 library bug

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

10 years agoUpdate configure script for libpri COLP feature dependency requirements.
Richard Mudgett [Fri, 21 Aug 2009 23:18:16 +0000 (23:18 +0000)]
Update configure script for libpri COLP feature dependency requirements.

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

10 years agoClarifying comments in sip_register, and removing a dead section
Tilghman Lesher [Fri, 21 Aug 2009 22:36:39 +0000 (22:36 +0000)]
Clarifying comments in sip_register, and removing a dead section

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

10 years agoRegister request line contains wrong address when user domain and register host differ
David Vossel [Fri, 21 Aug 2009 22:22:11 +0000 (22:22 +0000)]
Register request line contains wrong address when user domain and register host differ

(closes issue #15539)
Reported by: Nick_Lewis
Patches:
      chan_sip.c-registraraddr.patch uploaded by Nick (license 657)
      register_domain_fix_1.6.2 uploaded by dvossel (license 671)
Tested by: Nick_Lewis, dvossel

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

10 years agoEnsure that realtime mailboxes properly report status on subscription.
Kevin P. Fleming [Fri, 21 Aug 2009 21:39:51 +0000 (21:39 +0000)]
Ensure that realtime mailboxes properly report status on subscription.

This patch modifies app_voicemail's response to mailbox status subscriptions
(via the internal event system) to ensure that a subscription triggers an
explicit poll of the mailbox, so the subscriber can get an immediate cached
event with that status. Previously, the cache was only populated with the
status of non-realtime mailboxes.

(closes issue #15717)
Reported by: natmlt

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

10 years agofixes sip register parsing when user@domain is used
David Vossel [Fri, 21 Aug 2009 21:02:50 +0000 (21:02 +0000)]
fixes sip register parsing when user@domain is used

(issue #15008)
(issue #15672)

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

10 years agoBlocked revisions 213631 via svnmerge
Kevin P. Fleming [Fri, 21 Aug 2009 20:24:04 +0000 (20:24 +0000)]
Blocked revisions 213631 via svnmerge

........
  r213631 | kpfleming | 2009-08-21 15:23:45 -0500 (Fri, 21 Aug 2009) | 8 lines

  Ensure that T.38 INVITEs generated by Asterisk properly result in T.38 being enabled.

  (closes issue #15373)
  Reported by: dcolombo
  Patches:
        chan_sip.patch uploaded by mbrancaleoni (license 342)
  Tested by: dcolombo, mbrancaleoni
........

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

10 years agoMerged revisions 213559 via svnmerge from
Tilghman Lesher [Fri, 21 Aug 2009 16:53:52 +0000 (16:53 +0000)]
Merged revisions 213559 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r213559 | tilghman | 2009-08-21 11:52:53 -0500 (Fri, 21 Aug 2009) | 7 lines

  Permit DEBUG_FD_LEAKS to be used with C++ source files.
  (closes issue #15698)
   Reported by: slavon
   Patches:
         20090817__issue15698.diff.txt uploaded by tilghman (license 14)
   Tested by: slavon, tilghman
........

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

10 years agoMerged revisions 213493 via svnmerge from
Jason Parker [Fri, 21 Aug 2009 16:04:21 +0000 (16:04 +0000)]
Merged revisions 213493 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r213493 | qwell | 2009-08-21 11:03:21 -0500 (Fri, 21 Aug 2009) | 5 lines

  Clarify queues.conf comments to specify that variables should be set in the dialplan.

  (closes issue #15755)
  Reported by: trendboy
........

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

10 years agoincrement the mfcr2 monitor count when clearing the call request
Moises Silva [Fri, 21 Aug 2009 04:09:26 +0000 (04:09 +0000)]
increment the mfcr2 monitor count when clearing the call request

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

10 years agoMake LOAD_ORDER actually work
Terry Wilson [Fri, 21 Aug 2009 03:48:54 +0000 (03:48 +0000)]
Make LOAD_ORDER actually work

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

10 years agoAdd original position, when logging a caller entering a queue.
Tilghman Lesher [Thu, 20 Aug 2009 22:13:26 +0000 (22:13 +0000)]
Add original position, when logging a caller entering a queue.
(closes issue #15146)
 Reported by: arabe
 Patches:
       asterisk-trunk.patch uploaded by arabe (license 786)

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

10 years agoFix greeting retrieval from IMAP
Jeff Peeler [Thu, 20 Aug 2009 21:33:11 +0000 (21:33 +0000)]
Fix greeting retrieval from IMAP

Properly check for the current voicemail state and if it doesn't exist,
create it.

(closes issue #14597)
Reported by: wtca
Patches:
      14597_v2.patch uploaded by mmichelson (license 60)
Tested by: jpeeler

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

10 years agoBlocked revisions 213339 via svnmerge
Matthew Nicholson [Thu, 20 Aug 2009 20:33:59 +0000 (20:33 +0000)]
Blocked revisions 213339 via svnmerge

........
  r213339 | mnicholson | 2009-08-20 15:33:07 -0500 (Thu, 20 Aug 2009) | 7 lines

  Fix a crash by checking the proper pointer for validity before deferencing it.

  (closes issue #15751)
  Reported by: atis
  Patches:
        ast_bridge_call_peer_cdr.patch uploaded by atis (license 242)
........

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

10 years agoFix a crash by checking the proper pointer for validity before deferencing it.
Matthew Nicholson [Thu, 20 Aug 2009 20:29:32 +0000 (20:29 +0000)]
Fix a crash by checking the proper pointer for validity before deferencing it.

(closes issue #15751)
Reported by: atis
Patches:
      ast_bridge_call_peer_cdr.patch uploaded by atis (license 242)

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

10 years agoMerged revisions 213283 via svnmerge from
Jeff Peeler [Thu, 20 Aug 2009 19:56:14 +0000 (19:56 +0000)]
Merged revisions 213283 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r213283 | jpeeler | 2009-08-20 14:53:34 -0500 (Thu, 20 Aug 2009) | 2 lines

  Make all the symbols for the C-client callbacks global
........

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