dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

20674 Commits

Author SHA1 Message Date
lmadsen aa41ae9434 Merged revisions 292787 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r292787 | lmadsen | 2010-10-22 16:28:43 -0500 (Fri, 22 Oct 2010) | 21 lines
  
  Merged revisions 292786 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r292786 | lmadsen | 2010-10-22 16:16:12 -0500 (Fri, 22 Oct 2010) | 13 lines
    
    Update the LDIF file for LDAP.
    The LDIF file asterisk.ldif was quite a bit out of date from the asterisk.ldap-schema file, so I've
    now updated that to be in sync. The asterisk.ldif file being out of sync was a problem on my systems
    where I was doing an ldapadd to import the schema into the LDAP database, and the existing file
    would cause problems and ERROR messages when registering.
    
    Additional documention has been added based on feedback in the issue I'm closing.
    
    (closes issue #13861)
    Reported by: scramatte
    Patches:
          ldap-update.txt uploaded by lmadsen (license 10)
    Tested by: lmadsen, jcovert, suretec, rgenthner
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292788 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-22 21:29:20 +00:00
twilson 6aee3da4e4 Merged revisions 292740 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292740 | twilson | 2010-10-22 09:49:34 -0700 (Fri, 22 Oct 2010) | 45 lines
  
  Add TLS cert helper script
  
  This script is useful for quickly generating self-signed CA, server, and client
  certificates for use with Asterisk. It is still recommended to obtain
  certificates from a recognized Certificate Authority and to develop an
  understanding how SSL certificates work. Real security is hard work.
  
  OPTIONS:
    -h  Show this message
    -m  Type of cert "client" or "server". Defaults to server.
    -f  Config filename (openssl config file format)
    -c  CA cert filename (creates new CA cert/key as ca.crt/ca.key if not passed)
    -k  CA key filename
    -C  Common name (cert field)
          For a server cert, this should be the same address that clients
          attempt to connect to. Usually this will be the Fully Qualified
          Domain Name, but might be the IP of the server. For a CA or client
          cert, it is merely informational. Make sure your certs have unique
          common names.
    -O  Org name (cert field)
          An informational string (company name)
    -o  Output filename base (defaults to asterisk) 
    -d  Output directory (defaults to the current directory)
  
  Example:
  
  To create a CA and a server (pbx.mycompany.com) cert with output in /tmp:
    ast_tls_cert -C pbx.mycompany.com -O "My Company" -d /tmp
  
  This will create a CA cert and key as well as asterisk.pem and the the two
  files that it is made from: asterisk.crt and asterisk.key. Copy asterisk.pem
  and ca.crt somewhere (like /etc/asterisk) and set tlscertfile=/etc/asterisk.pem
  and tlscafile=/etc/ca.crt. Since this is a self-signed key, many devices will
  require you to import the ca.crt file as a trusted cert.
  
  To create a client cert using the CA cert created by the example above:
    ast_tls_cert -m client -c /tmp/ca.crt -k /tmp/ca.key -C "Joe User" -O \
      "My Company" -d /tmp -o joe_user
  
  This will create client.crt/key/pem in /tmp. Use this if your device supports
  a client certificate. Make sure that you have the ca.crt file set up as
  a tlscafile in the necessary Asterisk configs. Make backups of all .key files
  in case you need them later.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292743 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-22 17:16:57 +00:00
mmichelson 4425611ae5 Merged revisions 292741 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292741 | mmichelson | 2010-10-22 12:09:52 -0500 (Fri, 22 Oct 2010) | 12 lines
  
  Prevent multiple runs of event_sub_test from producing false failure results.
  
  The array of test subscriptions was declared "static," meaning that the
  data.count field would retain its value between runs of the test. After the
  first test run, this would result in false reports of test failures.
  
  I chose to just remove the "static" keyword from the structure since it's not
  a huge deal to construct this structure during each run of the test. Another
  alternative would have been to zero out the data.count fields of each test
  subscription instead.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292742 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-22 17:10:59 +00:00
rmudgett 47b625b9d0 Merged revisions 292704 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292704 | rmudgett | 2010-10-22 10:47:08 -0500 (Fri, 22 Oct 2010) | 19 lines
  
  Connected line is not updated when chan_dahdi/sig_pri or chan_misdn transfers a call.
  
  When a call is transfered by ECT or implicitly by disconnect in sig_pri or
  implicitly by disconnect in chan_misdn, the connected line information is
  not exchanged.  The connected line interception macros also need to be
  executed if defined.
  
  The CALLER interception macro is executed for the held call.
  The CALLEE interception macro is executed for the active/ringing call.
  
  JIRA ABE-2589
  JIRA SWP-2296
  
  Patches:
        abe_2589_c3bier.patch uploaded by rmudgett (license 664)
        abe_2589_v1.8_v2.patch uploaded by rmudgett (license 664)
  
  Review: https://reviewboard.asterisk.org/r/958/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292705 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-22 15:47:56 +00:00
tilghman 81d853ddfc Merged revisions 292667 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292667 | tilghman | 2010-10-21 17:09:25 -0500 (Thu, 21 Oct 2010) | 2 lines
  
  Compile correctly on Linux (asterisk/localtime.h depends upon asterisk/autoconfig.h loading first).
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292668 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-21 22:11:24 +00:00
pabelanger 72a50e9201 Merged revisions 292628 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292628 | pabelanger | 2010-10-21 14:13:18 -0400 (Thu, 21 Oct 2010) | 5 lines
  
  Fix typo in SUSE init script.
  
  Reported by: Dave Cotton on asterisk-users list.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292630 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-21 18:23:41 +00:00
dvossel 32a77a3667 Merged revisions 292595 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292595 | dvossel | 2010-10-21 11:14:33 -0500 (Thu, 21 Oct 2010) | 14 lines
  
  Fixes recursive lock problem in manager.c
  
  It is possible for a AMI session to freeze because of invalid
  use of recursive locks during the EVENT processing.  This
  patch removes the unnecessary locks.
  
  (closes issue #18167)
  Reported by: sustav
  Patches:
        manager_locking_v1.diff uploaded by dvossel (license 671)
  Tested by: sustav
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292597 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-21 16:46:15 +00:00
lmadsen 9bcf3482a4 Merged revisions 292557 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r292557 | lmadsen | 2010-10-21 08:12:19 -0500 (Thu, 21 Oct 2010) | 14 lines
  
  Merged revisions 292556 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r292556 | lmadsen | 2010-10-21 08:11:52 -0500 (Thu, 21 Oct 2010) | 6 lines
    
    Change res_ldap.sample.conf to match the schema.
    
    (closes issue #17376)
    Reported by: jcovert
    Patches:
          res_ldap.conf.sample.patch uploaded by jcovert (license 551)
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292559 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-21 13:17:24 +00:00
russell c393ad47f3 Merged revisions 292523 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292523 | russell | 2010-10-21 06:36:47 -0500 (Thu, 21 Oct 2010) | 4 lines
  
  Add var=value to log message on update failure, and add newline.
  
  ... just for you, Leif.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292524 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-21 11:38:14 +00:00
rmudgett 56becec03c Merged revisions 292489 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292489 | rmudgett | 2010-10-20 20:02:50 -0500 (Wed, 20 Oct 2010) | 7 lines
  
  Send CONNECT_ACKNOWLEDGE for CIS calls too.
  
  The originator of the Q.SIG call completion signaling link was not changed
  to the active state when the CONNECT message came in.  The T309 processing
  would immediately kill the signaling link because it was not in the active
  state.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292490 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-21 01:03:42 +00:00
pabelanger 8c7812416a Merged revisions 292436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292436 | pabelanger | 2010-10-20 20:21:59 -0400 (Wed, 20 Oct 2010) | 8 lines
  
  Application not properly unregister in voicemail
  
  (closes issue #18128)
  Reported by: junky
  Patches: 
        vm_unregister.diff uploaded by junky (license 177)
  Tested by: pabelanger, lmadsen
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292443 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-21 00:23:32 +00:00
pabelanger ae5d0d1ae9 Merged revisions 292413 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r292413 | pabelanger | 2010-10-20 20:07:17 -0400 (Wed, 20 Oct 2010) | 24 lines
  
  Merged revisions 292412 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r292412 | pabelanger | 2010-10-20 20:05:45 -0400 (Wed, 20 Oct 2010) | 17 lines
    
    Merged revisions 292411 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r292411 | pabelanger | 2010-10-20 20:00:51 -0400 (Wed, 20 Oct 2010) | 10 lines
      
      Record priv-recordintro as sln, not gsm
      
      This removes the gsm->sln step when transcoding
      priv-recordintro.
      
      (closes issue #18176)
      Reported by: pabelanger
      Patches: 
            chan_sip.diff uploaded by pabelanger (license 224)
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292414 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-21 00:09:53 +00:00
tilghman fb4449f671 Merged revisions 292376 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292376 | tilghman | 2010-10-19 19:40:29 -0500 (Tue, 19 Oct 2010) | 5 lines
  
  Oops.  This module uses the generic timer and no longer uses DAHDI.
  
  This causes a problem with the Solaris and other system builds that have gcc
  4.1 (where optional_api is non-optional).
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292377 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-20 00:41:49 +00:00
pabelanger b79a530909 Merged revisions 292343 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292343 | pabelanger | 2010-10-19 18:14:23 -0400 (Tue, 19 Oct 2010) | 2 lines
  
  Add resample and imap_tk dependencies.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292345 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-19 22:19:10 +00:00
twilson bce9e87be1 Merged revisions 292309 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292309 | twilson | 2010-10-19 12:27:32 -0700 (Tue, 19 Oct 2010) | 10 lines
  
  Add sip show peer info about crypto and remove dated comment
  
  This patch adds information about the encryption setting to 'sip show
  peers' and removes an out-of-date comment from res_srtp.c and instead
  directs users to the proper documentation.
  
  (closes issue #18140)
  Reported by: chodorenko
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292310 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-19 19:35:24 +00:00
lmadsen 5dfdf6d60c Merged revisions 292225 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r292225 | lmadsen | 2010-10-18 16:51:23 -0500 (Mon, 18 Oct 2010) | 24 lines
  
  Merged revisions 292224 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r292224 | lmadsen | 2010-10-18 16:50:47 -0500 (Mon, 18 Oct 2010) | 17 lines
    
    Merged revisions 292222 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r292222 | lmadsen | 2010-10-18 16:47:25 -0500 (Mon, 18 Oct 2010) | 9 lines
      
      Add support for the new English (Australian Accent) sound files.
      
      
      (closes issue #17426)
      Reported by: camsown
      Patches:
            core-sounds-en_AU.txt uploaded by camsown (license 1050)
            add_AU_sounds.patch.txt uploaded by lmadsen (license 10)
      Tested by: camsown, lmadsen, jtodd, qwell
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292231 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-18 22:14:05 +00:00
jpeeler 9c926f01e3 Merged revisions 292227 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r292227 | jpeeler | 2010-10-18 16:55:46 -0500 (Mon, 18 Oct 2010) | 25 lines
  
  Merged revisions 292226 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r292226 | jpeeler | 2010-10-18 16:54:38 -0500 (Mon, 18 Oct 2010) | 18 lines
    
    Merged revisions 292223 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r292223 | jpeeler | 2010-10-18 16:50:30 -0500 (Mon, 18 Oct 2010) | 11 lines
      
      Fix improper operator key acceptance and clean up temp recording files.
      
      This is a fix for when pressing the operator key after recording an unavailable,
      busy, name, or temporary message in mailbox options. The operator key should not
      be accepted here, but should be allowed during the message recording. If the
      operator key is pressed during ensure the file is saved or deleted as
      apporopriate.  Also, ensure removal of temporary recorded files after an early
      hang up or when message acceptance confirmation times out.
      
      ABE-2518
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292228 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-18 21:56:45 +00:00
russell acc0c5f40b Merged revisions 292188 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292188 | russell | 2010-10-18 14:50:04 -0500 (Mon, 18 Oct 2010) | 9 lines
  
  Resolve some compiler errors in ast_sockaddr_is_any().
  
  These errors came up once this function was used from within netsock2.c.
  The errors were like the following:
  
  netsock2.c:393: error: dereferencing pointer ‘({anonymous})’ does break strict-aliasing rules
  
  The usage of a union here avoids this problem.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292189 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-18 19:52:58 +00:00
dvossel 1e723c7422 Merged revisions 292155 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292155 | dvossel | 2010-10-18 14:16:00 -0500 (Mon, 18 Oct 2010) | 2 lines
  
  Fixes build error for systems not supporting IPV6_TCLASS.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292156 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-18 19:16:48 +00:00
mnicholson d951057e73 Merged revisions 292122 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292122 | mnicholson | 2010-10-18 12:15:24 -0500 (Mon, 18 Oct 2010) | 5 lines
  
  Fix the cmgr parser.
  
  (closes issue 0018152)
  Reported by: menschentier
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292124 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-18 17:18:58 +00:00
dvossel 7aaf91b5ca Merged revisions 292085 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292085 | dvossel | 2010-10-18 11:02:17 -0500 (Mon, 18 Oct 2010) | 7 lines
  
  Fixes qos settings for sockets bound to any IPv6 or IPv4 address.
  
  (closes issue #18099)
  Reported by: jamesnet
  Patches:
        issues_18099_v3.diff uploaded by dvossel (license 671 
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292086 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-18 16:03:24 +00:00
jpeeler 27c43e7b2a Merged revisions 292083 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292083 | jpeeler | 2010-10-18 10:32:40 -0500 (Mon, 18 Oct 2010) | 4 lines
  
  Disable use of inotify for call file handling as it is not working properly.
  
  (related to #18089)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292084 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-18 15:33:35 +00:00
tzafrir d94154314b Merged revisions 292050 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r292050 | tzafrir | 2010-10-16 12:47:00 +0200 (ש', 16 אוק 2010) | 22 lines
  
  Merged revisions 292049 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r292049 | tzafrir | 2010-10-16 12:03:04 +0200 (ש', 16 אוק 2010) | 15 lines
    
    Base directory for MOH should be ASTDATADIR
    
    If the directive 'directory' is relative, make it relative to the
    datadir, rather than to the varlibdir. In the sample configuration
    it is relative ('moh').
    
    This has no effect unless you have actively set the datadir explicitly
    (at build time or at run time).
    
    (closes issue #16906)
    Patches:
          moh_datadir uploaded by tzafrir (license 46)
    
    Review: https://reviewboard.asterisk.org/r/974/
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292052 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-16 11:51:54 +00:00
twilson 7e4f815f5e Merged revisions 292016 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292016 | twilson | 2010-10-15 16:40:56 -0500 (Fri, 15 Oct 2010) | 5 lines
  
  Ref/unref res_srtp when we create/destroy a session
  
  This avoids unhappy crashing when we try to 'core stop gracefully' and res_srtp
  tries to unload before chan_sip does. Thanks, Russell!
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292017 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-15 21:49:49 +00:00
dvossel d6b7279ff3 Merged revisions 291942 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291942 | dvossel | 2010-10-15 15:12:04 -0500 (Fri, 15 Oct 2010) | 8 lines
  
  Fixes peer's host port information being lost on sip reload.
  
  (closes issue #18135)
  Reported by: lmadsen
  Patches:
        crazy_ports_v2.diff uploaded by dvossel (license 671)
  Tested by: lmadsen
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291943 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-15 20:12:46 +00:00
pabelanger 3976b60407 Merged revisions 291940 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291940 | pabelanger | 2010-10-15 15:50:22 -0400 (Fri, 15 Oct 2010) | 16 lines
  
  Merged revisions 291939 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r291939 | pabelanger | 2010-10-15 15:35:20 -0400 (Fri, 15 Oct 2010) | 9 lines
    
    Merged revisions 291938 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r291938 | pabelanger | 2010-10-15 15:30:41 -0400 (Fri, 15 Oct 2010) | 2 lines
      
      Clean up formatting.
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291941 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-15 19:53:06 +00:00
twilson 089b1388ca Merged revisions 291905 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291905 | twilson | 2010-10-15 09:39:58 -0700 (Fri, 15 Oct 2010) | 14 lines
  
  Merged revisions 291904 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r291904 | twilson | 2010-10-15 09:16:57 -0700 (Fri, 15 Oct 2010) | 7 lines
    
    Don't crash or deadlock on module unload
    
    We can't hold the lock while pthread_join is called since aji_log_hook will
    attempt to lock from the other therad. We reorder the pthread_join and
    ast_aji_disconnect so that we don't do an SSL_read() while SSL_shutdown is
    running, causing a crash.
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291906 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-15 16:54:07 +00:00
dvossel 2151e5fd29 Merged revisions 291829 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291829 | dvossel | 2010-10-14 17:09:32 -0500 (Thu, 14 Oct 2010) | 8 lines
  
  Set TCLASS field of IPv6 header when sip qos options are set.
  
  (closes issue #18099)
  Reported by: jamesnet
  Patches:
        issues_18099_v2.diff uploaded by dvossel (license 671)
  Tested by: dvossel, jamesnet
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291830 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-14 22:10:20 +00:00
dvossel aa4083c6cd Merged revisions 291827 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291827 | dvossel | 2010-10-14 16:27:42 -0500 (Thu, 14 Oct 2010) | 18 lines
  
  Safer xml parsing, treat all clients the same, and better local candidate selection.
  
  The gtalk channel driver was doing several unsafe operations
  in regards to how it parsed incoming XML messages.  I have cleaned
  that code up so it should be much safer now.
  
  We now treat all clients types the same.  We have no reason to
  distinguish between GMAIL and GOOGLE VOICE clients anymore because
  they all work the same way.
  
  I also modified how the local ip is found.  If no bindaddress is provided
  in the config file, we attempt to determine the local ip we
  would use to connect to google.com.  If that fails, then
  we fall back to the ast_find_ourip() function as a last resort.
  Using the new method makes it much less likely that we would ever
  advertise a local RTP candidate as a loopback address.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291828 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-14 21:29:04 +00:00
jpeeler 4626f5c932 Merged revisions 291791 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291791 | jpeeler | 2010-10-14 13:45:02 -0500 (Thu, 14 Oct 2010) | 10 lines
  
  Add missing ifdefs for test framework and new locale code.
  
  (closes issue #18137)
  Reported by: ovi
  Patches: 
        18137_test_framework_ifdef.patch uploaded by wdoekes (license 717)
        18137_localelist_warning.patch uploaded by wdoekes (license 717)
  Tested by: ovi
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291792 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-14 18:46:54 +00:00
pabelanger 691cd93663 Merged revisions 291758 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291758 | pabelanger | 2010-10-14 11:15:12 -0400 (Thu, 14 Oct 2010) | 11 lines
  
  Add the ability for ast_find_ourip to return IPv4, IPv6 or both.
  
  While testing chan_gtalk I noticed jabber was using my IPv6 address
  and not IPv4. When using bindaddr=0.0.0.0 it is possible for ast_find_ourip()
  to return both IPv6 and IPv4 results.  Adding a family parameter gives you
  the ablility to choose.
  
  Since jabber/gtalk/h323 do not support IPv6, we should only return IPv4 results.
  
  Review: https://reviewboard.asterisk.org/r/973/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291760 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-14 15:21:42 +00:00
russell 678971f8d9 Merged revisions 291725 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291725 | russell | 2010-10-14 07:08:43 -0500 (Thu, 14 Oct 2010) | 2 lines
  
  Fix a typo - s/seucre/secure/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291726 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-14 12:10:29 +00:00
rmudgett aac0963abc Merged revisions 291656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291656 | rmudgett | 2010-10-13 18:45:11 -0500 (Wed, 13 Oct 2010) | 34 lines
  
  Merged revisions 291655 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r291655 | rmudgett | 2010-10-13 18:36:50 -0500 (Wed, 13 Oct 2010) | 27 lines
    
    Merged revisions 291643 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r291643 | rmudgett | 2010-10-13 18:29:58 -0500 (Wed, 13 Oct 2010) | 20 lines
      
      Deadlock between dahdi_exception() and dahdi_indicate().
      
      There is a deadlock between dahdi_exception() and dahdi_indicate() for
      analog ports.  The call-waiting and three-way-calling feature can
      experience deadlock if these features are trying to do something and an
      event from the bridged channel happens at the same time.
      
      Deadlock avoidance code added to obtain necessary channel locks before
      attemting an operation with call-waiting and three-way-calling.
      
      (closes issue #16847)
      Reported by: shin-shoryuken
      Patches:
            issue_16847_v1.4.patch uploaded by rmudgett (license 664)
            issue_16847_v1.6.2.patch uploaded by rmudgett (license 664)
            issue_16847_v1.8_v2.patch uploaded by rmudgett (license 664)
      Tested by: alecdavis, rmudgett
      
      Review: https://reviewboard.asterisk.org/r/971/
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291658 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-13 23:52:41 +00:00
twilson 2817ddaaa2 Merged revisions 291581 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291581 | twilson | 2010-10-13 16:01:56 -0700 (Wed, 13 Oct 2010) | 35 lines
  
  Merged revisions 291580 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r291580 | twilson | 2010-10-13 15:58:43 -0700 (Wed, 13 Oct 2010) | 28 lines
    
    Merged revisions 291577 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r291577 | twilson | 2010-10-13 15:45:15 -0700 (Wed, 13 Oct 2010) | 21 lines
      
      Don't ignore frames that have been queued when softhangup'd
      
      When an outgoing call is answered and hung up by the far end *very* quickly, we
      may not read any frames and therefor end up with a call that displays the wrong
      disposition/DIALSTATUS. The reason is because ast_queue_hangup() immediately
      sets the _softhangup flag on the channel and then queues the HANGUP control
      frame, but __ast_read refuses to read any frames if ast_check_hangup() indicates
      that a hangup request has been made (which it will if _softhangup is set). So,
      we end up losing control frames.
      
      This change makes __ast_read continue to read frames even if a soft hangup has
      been requested. It queues a hangup frame to make sure that __ast_read() will
      still eventually return NULL.
      
      Much thanks to David Vossel for all of the reviews, discussion, and help!
      
      (closes issue #16946)
      Reported by: davidw
      
      Review: https://reviewboard.asterisk.org/r/740/
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291657 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-13 23:47:10 +00:00
dvossel 4733722e9d Merged revisions 291578 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291578 | dvossel | 2010-10-13 17:46:34 -0500 (Wed, 13 Oct 2010) | 4 lines
  
  More fixup for chan_gtalk.
  
  This patch makes the xml parsing safer.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291579 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-13 22:47:35 +00:00
twilson 995c773ff3 Merged revisions 291575 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291575 | twilson | 2010-10-13 15:24:44 -0700 (Wed, 13 Oct 2010) | 8 lines
  
  Add a simple AMI client web page
  
  This patch uses the XML docs to parse all of the available AMI commands
  and allows you to enter the command name and be presented with a form with
  the available fields. You can then rapidly tab through the fields and submit
  the command and view the response. It is much faster/easier than having to
  use telnet for testing purposes.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291576 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-13 22:34:32 +00:00
rmudgett 55903ffb08 Merged revisions 291541 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291541 | rmudgett | 2010-10-13 15:21:02 -0500 (Wed, 13 Oct 2010) | 26 lines
  
  The chan_dahdi faxdetect option only works for the first FAX call.
  
  The chan_dahdi faxdetect option only works for the first call.  After that
  the option no longer works.  The struct dahdi_pvt.callprogress member is
  the encoded user config setting for the callprogress and faxdetect config
  options.  Changing this value alters the configuration for all following
  calls until the chan_dahdi.conf file is reloaded.
  
  * Fixed the chan_dahdi ast_channel_setoption callback to not change the
  users faxdetect config setting except for the current call.
  
  * Fixed the chan_dahdi ast_channel_queryoption callback to read the active
  DSP setting of the faxdetect option.
  
  * Made actually disable the active faxdetect DSP setting for the current
  call on the analog port.  my_handle_dtmfup() is used for normal analog
  ports.  dahdi_handle_dtmfup() is the legacy code and is no longer used
  unless in a radio mode.
  
  (closes issue #18116)
  Reported by: seandarcy
  Patches:
        issue18116_v1.8.patch uploaded by rmudgett (license 664)
  
  Review: https://reviewboard.asterisk.org/r/972/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291542 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-13 20:24:51 +00:00
rmudgett 3e60d9c63b Merged revisions 291507 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291507 | rmudgett | 2010-10-13 14:01:48 -0500 (Wed, 13 Oct 2010) | 18 lines
  
  Merged revision 291504 from
  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
  
  ..........
    r291504 | rmudgett | 2010-10-13 13:30:21 -0500 (Wed, 13 Oct 2010) | 11 lines
  
    Hold off ast_hangup() from destroying the ast_channel.
  
    Must get the ast_channel lock before proceeding with release_chan() and
    release_chan_early() to hold off ast_hangup() from destroying the
    ast_channel.
  
    Missed this change for -r291468.
  
    JIRA ABE-2598
    JIRA SWP-2317
  ..........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291508 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-13 19:06:55 +00:00
rmudgett ee7189535a Merged revisions 291469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291469 | rmudgett | 2010-10-13 13:10:21 -0500 (Wed, 13 Oct 2010) | 23 lines
  
  Merge revision 291468 from
  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
  
  ..........
    r291468 | rmudgett | 2010-10-13 12:39:02 -0500 (Wed, 13 Oct 2010) | 16 lines
  
    Memory overwrites when releasing mISDN call.
  
    Phone <--> Asterisk
    <-- ALERTING
    --> DISCONNECT
    <-- RELEASE
    --> RELEASE_COMPLETE
  
    * Add lock protection around channel list for find/add/delete operations.
  
    * Protect misdn_hangup() from release_chan() and vise versa using the
    release_lock.
  
    JIRA ABE-2598
    JIRA SWP-2317
  ..........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291470 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-13 18:15:23 +00:00
russell fa34b1e5ce Merged revisions 291394 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291394 | russell | 2010-10-13 10:46:39 -0500 (Wed, 13 Oct 2010) | 20 lines
  
  Merged revisions 291393 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r291393 | russell | 2010-10-13 10:29:21 -0500 (Wed, 13 Oct 2010) | 13 lines
    
    Merged revisions 291392 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r291392 | russell | 2010-10-13 10:23:19 -0500 (Wed, 13 Oct 2010) | 6 lines
      
      Lock pvt so pvt->owner can't disappear when queueing up a frame.
      
      This fixes a crash due to a hangup race condition.
      
      ABE-2601
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291395 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-13 15:51:39 +00:00
schmitds a7ebc84f91 Report what extension called a failed macro
Add the extension and context of the calling channel to the log output if a macro could not be found.

(closes issue #18112)
Reported by: prado
Patches: 
	app_macro-info.diff uploaded by prado (license 510)
Tested by: schmidts



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291361 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-13 08:58:41 +00:00
lmadsen 412309afd8 Merged revisions 291284 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291284 | lmadsen | 2010-10-12 12:20:43 -0500 (Tue, 12 Oct 2010) | 15 lines
  
  Merged revisions 291280 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r291280 | lmadsen | 2010-10-12 12:20:02 -0500 (Tue, 12 Oct 2010) | 7 lines
    
    Add undocumented variables to phoneprov.conf.sample
    
    
    (closes issue #18107)
    Reported by: lathama
    Patches:
          phoneprov.conf.sample.diff uploaded by lathama (license 1028)
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291287 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-12 17:21:15 +00:00
tilghman 836209573d Merged revisions 291265 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291265 | tilghman | 2010-10-12 12:06:23 -0500 (Tue, 12 Oct 2010) | 16 lines
  
  Merged revisions 291264 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r291264 | tilghman | 2010-10-12 12:05:31 -0500 (Tue, 12 Oct 2010) | 9 lines
    
    Merged revisions 291263 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r291263 | tilghman | 2010-10-12 11:55:30 -0500 (Tue, 12 Oct 2010) | 2 lines
      
      Oops, incorrect range (although unallocated at ARIN)
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291266 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-12 17:07:20 +00:00
lmadsen 99e0108b1c Merged revisions 291230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291230 | lmadsen | 2010-10-12 11:08:04 -0500 (Tue, 12 Oct 2010) | 10 lines
  
  Merged revisions 291229 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r291229 | lmadsen | 2010-10-12 11:07:28 -0500 (Tue, 12 Oct 2010) | 2 lines
    
    Add documention that mentions options are defined but not used.
    (Issue #18101)
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291231 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-12 16:08:53 +00:00
dvossel 7152c502d0 Merged revisions 291227 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291227 | dvossel | 2010-10-12 10:58:56 -0500 (Tue, 12 Oct 2010) | 16 lines
  
  Fixes manager.c crash.
  
  This issue was caused by improper use of the mansession lock and
  manession_session lock.  These two structures are confusing to begin
  with so I'm not surprised this occurred.  I fixed this by consistently
  making sure we use each of these locks only to protect the data
  in the corresponding structure.  We had mismatched usage of these
  locks which resulted in no mutual exclusivity occurring at all.
  
  
  (closes issue #17994)
  Reported by: vrban
  Patches:
        mansession_locking_fix.diff uploaded by dvossel (license 671)
  Tested by: vrban
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291228 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-12 16:00:06 +00:00
dvossel bf80784298 Merged revisions 291194 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291194 | dvossel | 2010-10-11 16:44:04 -0500 (Mon, 11 Oct 2010) | 2 lines
  
  Update CHANGES to reflect new gtalk.conf options.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291195 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-11 21:44:34 +00:00
dvossel 59f0ada67e Merged revisions 291192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r291192 | dvossel | 2010-10-11 16:38:39 -0500 (Mon, 11 Oct 2010) | 19 lines
  
  Gtalk enhancements and general code cleanup.
  
  This patch includes several chan_gtalk enhancements.
  Two new gtalk.conf options have been added, externip
  and stunadd.  Setting externip allows us to
  manually specify what the external IP address is
  outside of a NAT environment.  Setting the stunaddr
  option to a valid stun server allows for that external
  ip to be retrieved via a STUN server automatically.  This
  external IP is then advertised during call setup as
  a possible candidate.
  
  I have also attempted to clean up chan_gtalk's code
  so it meets our coding guidelines. During this cleanup
  I noticed several things that need to be done in the
  code and made a TODO section at the top of the file.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291193 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-11 21:39:37 +00:00
rmudgett 3a2d627768 Add todo comment about handle_incoming() calling assumption.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291115 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-11 19:07:59 +00:00
rmudgett b802472fbc Merged revisions 291112-291113 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291112 | rmudgett | 2010-10-11 13:48:15 -0500 (Mon, 11 Oct 2010) | 20 lines
  
  Merged revisions 291110-291111 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r291110 | rmudgett | 2010-10-11 13:34:22 -0500 (Mon, 11 Oct 2010) | 9 lines
    
    Merged revisions 291109 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r291109 | rmudgett | 2010-10-11 13:29:43 -0500 (Mon, 11 Oct 2010) | 1 line
      
      Add missing unlock to an exception condition in reload_config().
    ........
  ................
    r291111 | rmudgett | 2010-10-11 13:39:06 -0500 (Mon, 11 Oct 2010) | 1 line
    
    Make exit from handle_request_do() consistent.
  ................
................
  r291113 | rmudgett | 2010-10-11 13:51:13 -0500 (Mon, 11 Oct 2010) | 1 line
  
  Move declaration closer to where now used.
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291114 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-11 18:58:50 +00:00
rmudgett 7cdc91ac4c Merged revisions 291075 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291075 | rmudgett | 2010-10-11 11:42:54 -0500 (Mon, 11 Oct 2010) | 22 lines
  
  Merged revisions 291073 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r291073 | rmudgett | 2010-10-11 11:39:17 -0500 (Mon, 11 Oct 2010) | 15 lines
    
    Fixed infinite loop in verbose/debug message output.
    
    Setting the module/filename specific message level and then changing it
    resulted in the linked list being looped on itself.  Traversing this
    linked list is an infinite loop if what you are looking for is not in the
    list.
    
    Also plugged some CLI parsing holes in the associated CLI command:
    
    * Removing a nonexistent module from the list actually added it with a
    level of zero.
    
    * Setting the non-module specific level to zero is now equivalent to
    setting it to "off" as documented.
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@291076 f38db490-d61c-443f-a65b-d21fe96a405b
2010-10-11 16:44:32 +00:00