asterisk/asterisk.git
13 years agoBlocked revisions 200037 via svnmerge
Leif Madsen [Thu, 11 Jun 2009 12:13:49 +0000 (12:13 +0000)]
Blocked revisions 200037 via svnmerge

........
  r200037 | lmadsen | 2009-06-11 08:12:06 -0400 (Thu, 11 Jun 2009) | 8 lines

  Fix path for .flavor and .version.

  (issue #14737)
  Reported by: davidw
  Patches:
        flavor.patch uploaded by davidw (license 780)
  Tested by: davidw
........

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

13 years agoRemove some trailing whitespace and steal revision 200000.
Sean Bright [Wed, 10 Jun 2009 20:40:41 +0000 (20:40 +0000)]
Remove some trailing whitespace and steal revision 200000.

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

13 years agoOnly try to use the invite_branch on outgoing INVITEs with auth credentials.
Mark Michelson [Wed, 10 Jun 2009 20:15:48 +0000 (20:15 +0000)]
Only try to use the invite_branch on outgoing INVITEs with auth credentials.

I have added a comment to the code to help ease understanding of the logic here
as well.

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

13 years agoFixes the argument order in definition of new_find_extension().
David Brooks [Wed, 10 Jun 2009 20:00:45 +0000 (20:00 +0000)]
Fixes the argument order in definition of new_find_extension().

In the definition of new_find_extension(), the arguments 'callerid' and
'label' were swapped. The prototype declaration and all calls to the
function are ordered 'callerid' then 'label', but the function itself
was ordered 'label' then 'callerid'.

(closes issue #15303)
Reported by: JimDickenson

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

13 years agoUse ast_channel_unref to instead of ast_free on a newly created channel.
Mark Michelson [Wed, 10 Jun 2009 18:58:12 +0000 (18:58 +0000)]
Use ast_channel_unref to instead of ast_free on a newly created channel.

Also I removed an unnecessary free of a cid_name. This will be freed properly
in the channel destructor.

Reported by mnicholson in #asterisk-dev.

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

13 years agoMerged revisions 199856 via svnmerge from
Sean Bright [Wed, 10 Jun 2009 16:10:23 +0000 (16:10 +0000)]
Merged revisions 199856 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r199856 | seanbright | 2009-06-10 12:08:35 -0400 (Wed, 10 Jun 2009) | 2 lines

  __WORDSIZE is not available on all platforms, so use sizeof(void *) instead.
........

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

13 years agoCLI NOTIFY sending wrong transport type.
David Vossel [Tue, 9 Jun 2009 20:47:57 +0000 (20:47 +0000)]
CLI NOTIFY sending wrong transport type.

SIP's cli NOTIFY command only used UDP rather than copying the transport type from the peer.

(closes issue #15283)
Reported by: jthurman
Patches:
      sip-notify-tcp-svn199728.patch uploaded by jthurman (license 614)
Tested by: jthurman, dvossel

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

13 years agoFix all of the parallel build warnings issued when running make -j#.
Sean Bright [Tue, 9 Jun 2009 18:08:53 +0000 (18:08 +0000)]
Fix all of the parallel build warnings issued when running make -j#.

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

13 years agomodule load priority
David Vossel [Tue, 9 Jun 2009 16:22:04 +0000 (16:22 +0000)]
module load priority

This patch adds the option to give a module a load priority. The value represents the order in which a module's load() function is initialized.  The lower the value, the higher the priority.  The value is only checked if the AST_MODFLAG_LOAD_ORDER flag is set.  If the AST_MODFLAG_LOAD_ORDER flag is not set, the value will never be read and the module will be given the lowest possible priority
on load.  Since some modules are reliant on a timing interface, the timing modules have been given a high load priorty.

(closes issue #15191)
Reported by: alecdavis
Tested by: dvossel

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

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

13 years agoAdd sigaction janitor
Tilghman Lesher [Mon, 8 Jun 2009 22:08:44 +0000 (22:08 +0000)]
Add sigaction janitor

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

13 years agoMerged revisions 199626,199628 via svnmerge from
Sean Bright [Mon, 8 Jun 2009 19:33:09 +0000 (19:33 +0000)]
Merged revisions 199626,199628 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r199626 | seanbright | 2009-06-08 15:24:32 -0400 (Mon, 08 Jun 2009) | 21 lines

  Increase the size of our thread stack on 64 bit processors.

  We were setting the stack size for each thread to 240KB regardless of
  architecture, which meant that in some scenarios we actually had less available
  stack space on 64 bit processors (pointers use 8 bytes instead of 4).  So now we
  calculate the stack size we reserve based on the platform's __WORDSIZE, which
  gives us:

       32 bit -> 240KB
       64 bit -> 496KB
      128 bit -> 1008KB (that's right, we're ready for 128 bit processors)

  Patch typed by me but written by several members of #asterisk-dev, including
  Kevin, Tilghman, and Qwell.

  (closes issue #14932)
  Reported by: jpiszcz
  Patches:
        06052009_issue14932.patch uploaded by seanbright (license 71)
  Tested by: seanbright
........
  r199628 | seanbright | 2009-06-08 15:28:33 -0400 (Mon, 08 Jun 2009) | 2 lines

  Fix a typo in the stack size calculation just introduced.
........

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

13 years agoFix a deadlock that could occur when setting rtp stats on SIP calls.
Mark Michelson [Mon, 8 Jun 2009 17:32:04 +0000 (17:32 +0000)]
Fix a deadlock that could occur when setting rtp stats on SIP calls.

(closes issue #15143)
Reported by: cristiandimache
Patches:
      15143.patch uploaded by mmichelson (license 60)
Tested by: cristiandimache

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

13 years agoMove OSP* applications static documentation to XML.
Eliel C. Sardanons [Sun, 7 Jun 2009 19:15:41 +0000 (19:15 +0000)]
Move OSP* applications static documentation to XML.

Move OSP* applications static documentation to the new AstXML form.

(closes issue #15245)
Reported by: eliel
Patches:
      app_osplookup_static_conversion.txt uploaded by lmadsen (license 10)

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

13 years agoMove application ExternalIVR static documentation to XML.
Eliel C. Sardanons [Sun, 7 Jun 2009 17:29:44 +0000 (17:29 +0000)]
Move application ExternalIVR static documentation to XML.

Move application ExternalIVR static documentation to the new AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      app_externalivr.diff uploaded by eliel (license 64)

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

13 years agoGlobal var cleanup - constification and removing unused vars.
Russell Bryant [Sun, 7 Jun 2009 14:55:51 +0000 (14:55 +0000)]
Global var cleanup - constification and removing unused vars.

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

14 years agoMove AGI command 'gosub' static documentation to XML.
Eliel C. Sardanons [Sat, 6 Jun 2009 23:28:38 +0000 (23:28 +0000)]
Move AGI command 'gosub' static documentation to XML.

Move AGI command 'gosub' statis documentation to the new AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      app_stack_static_conversion.txt uploaded by lmadsen (license 10)
      (with minor changes by me)

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

14 years agoMove music on hold related applications documentation to XML.
Eliel C. Sardanons [Sat, 6 Jun 2009 23:03:15 +0000 (23:03 +0000)]
Move music on hold related applications documentation to XML.

Move MusicOnHold, SetMusicOnHold, StartMusicOnHold, StopMusicOnHold static
documentation to the new AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      res_musiconhold_static_conversion.txt uploaded by lmadsen (license 10)
      (with some fixes and formatting by me)

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

14 years agoMove function PP_EACH_USER and PP_EACH_EXTENSION documentation to XML.
Eliel C. Sardanons [Sat, 6 Jun 2009 22:45:42 +0000 (22:45 +0000)]
Move function PP_EACH_USER and PP_EACH_EXTENSION documentation to XML.

Move function PP_EACH_USER and PP_EACH_EXTENSION documentation to the new
AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      res_phoneprov_static_conversion.txt uploaded by lmadsen (license 10)
(with PP_EACH_USER add by me)

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

14 years agoMove function MEETME_INFO documentation to XML.
Eliel C. Sardanons [Sat, 6 Jun 2009 22:27:48 +0000 (22:27 +0000)]
Move function MEETME_INFO documentation to XML.

Move function MEETME_INFO static documentation to the new AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      app_meetme_static_conversion.txt uploaded by lmadsen (license 10)

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

14 years agoMove function MINIVMACCOUNT and MINIVMCOUNTER static documentation to XML.
Eliel C. Sardanons [Sat, 6 Jun 2009 22:16:47 +0000 (22:16 +0000)]
Move function MINIVMACCOUNT and MINIVMCOUNTER static documentation to XML.

Move function MINIVMACCOUNT and MINIVMCOUNTER statis documentation to the new
AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      app_minivm_static_conversion.txt uploaded by lmadsen (license 10)
      (with minor changes by me)

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

14 years agoMove function SYSINFO documentation to XML.
Eliel C. Sardanons [Sat, 6 Jun 2009 21:56:58 +0000 (21:56 +0000)]
Move function SYSINFO documentation to XML.

Move function SYSINFO static documentation to the new AstXML form.

(issue #15245)
Reported by: eliel
Patches:
      func_sysinfo_static_conversion.txt uploaded by lmadsen (license 10)

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

14 years agominor tweak
Russell Bryant [Sat, 6 Jun 2009 21:42:31 +0000 (21:42 +0000)]
minor tweak

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

14 years agoConstify a string and strip trailing whitespace.
Russell Bryant [Sat, 6 Jun 2009 21:40:56 +0000 (21:40 +0000)]
Constify a string and strip trailing whitespace.

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

14 years agoSwitch from "echo -n" to printf. On my mac, the -n was just getting printed out.
Russell Bryant [Sat, 6 Jun 2009 21:38:54 +0000 (21:38 +0000)]
Switch from "echo -n" to printf.  On my mac, the -n was just getting printed out.

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

14 years agoMerged revisions 199297 via svnmerge from
David Vossel [Fri, 5 Jun 2009 21:21:22 +0000 (21:21 +0000)]
Merged revisions 199297 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r199297 | dvossel | 2009-06-05 16:19:56 -0500 (Fri, 05 Jun 2009) | 14 lines

  Fixes issue with hints giving unexpected results.

  Hints with two or more devices that include ONHOLD gave unexpected results.

  (closes issue #15057)
  Reported by: p_lindheimer
  Patches:
        onhold_trunk.diff uploaded by dvossel (license 671)
        pbx.c.1.4.patch uploaded by p (license 558)
        devicestate.c.trunk.patch uploaded by p (license 671)
  Tested by: p_lindheimer, dvossel

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

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

14 years agoCorrect "dahdi show channels" output when specifying a group.
Mark Michelson [Fri, 5 Jun 2009 13:51:08 +0000 (13:51 +0000)]
Correct "dahdi show channels" output when specifying a group.

Since a DAHDI channel may belong to multiple groups, we need to use
a bitwise and instead of equivalence to determine whether to display
the channel information.

(closes issue #15248)
Reported by: gentian
Patches:
      15248.patch uploaded by mmichelson (license 60)
Tested by: gentian

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

14 years agoMerged revisions 199138 via svnmerge from
David Vossel [Thu, 4 Jun 2009 19:10:16 +0000 (19:10 +0000)]
Merged revisions 199138 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r199138 | dvossel | 2009-06-04 14:00:15 -0500 (Thu, 04 Jun 2009) | 3 lines

  Additional updates to AST-2009-001
........

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

14 years agoMove static docs to the new AstXML form.
Eliel C. Sardanons [Thu, 4 Jun 2009 16:29:50 +0000 (16:29 +0000)]
Move static docs to the new AstXML form.

Move SMDI_MSG and SMDI_MSG_RETRIEVE functions statis documentation
to XML.

(issue #15245)
Reported by: eliel
Patches:
      res_smdi_static_conversion.txt uploaded by lmadsen (license 10)

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

14 years agoMerged revisions 199022 via svnmerge from
Sean Bright [Thu, 4 Jun 2009 14:31:24 +0000 (14:31 +0000)]
Merged revisions 199022 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r199022 | seanbright | 2009-06-04 10:14:57 -0400 (Thu, 04 Jun 2009) | 40 lines

  Safely handle AMI connections/reload requests that occur during startup.

  During asterisk startup, a lock on the list of modules is obtained by the
  primary thread while each module is initialized.  Issue 13778 pointed out a
  problem with this approach, however.  Because the AMI is loaded before other
  modules, it is possible for a module reload to be issued by a connected client
  (via Action: Command), causing a deadlock.

  The resolution for 13778 was to move initialization of the manager to happen
  after the other modules had already been lodaded.  While this fixed this
  particular issue, it caused a problem for users (like FreePBX) who call AMI
  scripts via an #exec in a configuration file (See issue 15189).

  The solution I have come up with is to defer any reload requests that come in
  until after the server is fully booted.  When a call comes in to
  ast_module_reload (from wherever) before we are fully booted, the request is
  added to a queue of pending requests.  Once we are done booting up, we then
  execute these deferred requests in turn.

  Note that I have tried to make this a bit more intelligent in that it will not
  queue up more than 1 request for the same module to be reloaded, and if a
  general reload request comes in ('module reload') the queue is flushed and we
  only issue a single deferred reload for the entire system.

  As for how this will impact existing installations - Before 13778, a reload
  issued before module initialization was completed would result in a deadlock.
  After 13778, you simply couldn't connect to the manager during startup (which
  causes problems with #exec-that-calls-AMI configuration files).  I believe this
  is a good general purpose solution that won't negatively impact existing
  installations.

  (closes issue #15189)
  (closes issue #13778)
  Reported by: p_lindheimer
  Patches:
        06032009_15189_deferred_reloads.diff uploaded by seanbright (license 71)
  Tested by: p_lindheimer, seanbright

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

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

14 years agoBlocked revisions 198957 via svnmerge
Sean Bright [Wed, 3 Jun 2009 20:49:11 +0000 (20:49 +0000)]
Blocked revisions 198957 via svnmerge

........
  r198957 | seanbright | 2009-06-03 16:39:10 -0400 (Wed, 03 Jun 2009) | 11 lines

  Fix a possible crash in pbx_spool.

  We were trying to reference members of a struct that had previously been freed.
  This patch makes sure that we free the struct after it has been removed from
  the spooler queue.

  (closes issue #15072)
  Reported by: garlew
  Patches:
        spool.diff uploaded by garlew (license 376)
........

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

14 years agoast_call_forward() todo notes and originate flag copy.
David Vossel [Wed, 3 Jun 2009 20:30:10 +0000 (20:30 +0000)]
ast_call_forward() todo notes and originate flag copy.

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

14 years agoBlocked revisions 198891 via svnmerge
David Vossel [Wed, 3 Jun 2009 15:51:10 +0000 (15:51 +0000)]
Blocked revisions 198891 via svnmerge

........
  r198891 | dvossel | 2009-06-03 10:49:46 -0500 (Wed, 03 Jun 2009) | 10 lines

  Generic call forward api, ast_call_forward()

  The function ast_call_forward() forwards a call to an extension specified in an ast_channel's call_forward string.  After an ast_channel is called, if the channel's call_forward string is set this function can be used to forward the call to a new channel and terminate the original one.  I have included this api call in both channel.c's ast_request_and_dial() and res_feature.c's feature_request_and_dial().  App_dial and app_queue already contain call forward logic specific for their application and options.

  (closes issue #13630)
  Reported by: festr

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

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

14 years agoGeneric call forward api, ast_call_forward()
David Vossel [Tue, 2 Jun 2009 21:17:49 +0000 (21:17 +0000)]
Generic call forward api, ast_call_forward()

The function ast_call_forward() forwards a call to an extension specified in an ast_channel's call_forward string.  After an ast_channel is called, if the channel's call_forward string is set this function can be used to forward the call to a new channel and terminate the original one.  I have included this api call in both channel.c's ast_request_and_dial() and feature.c's feature_request_and_dial().  App_dial and app_queue already contain call forward logic specific for their application and options.

(closes issue #13630)
Reported by: festr

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

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

14 years agofixes issue with channels not going down after transfer
David Vossel [Tue, 2 Jun 2009 17:55:35 +0000 (17:55 +0000)]
fixes issue with channels not going down after transfer

Iax2 currently does not support native bridging if the timeoutms value is set.  We check for that in iax2_bridge, but then set timeoutms to 0 by default.  If the timeoutms is not provided it is set to -1. By setting timeoutms to 0 it is processed causing a bridging retry loop.

(closes issue #15216)
Reported by: oxymoron
Tested by: dvossel

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

14 years agoCorrect documentation for the register line, specifically where the domain should...
Joshua Colp [Tue, 2 Jun 2009 13:48:06 +0000 (13:48 +0000)]
Correct documentation for the register line, specifically where the domain should be specified.

(closes issue #14367)
Reported by: Nick_Lewis

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

14 years agoFix a bug where we were passing in address information that should remain unmodified...
Joshua Colp [Tue, 2 Jun 2009 13:12:59 +0000 (13:12 +0000)]
Fix a bug where we were passing in address information that should remain unmodified to a function that may modify it.

(closes issue #15243)
Reported by: pj

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

14 years agoTell the IAX2 parser about more control frame types.
Russell Bryant [Mon, 1 Jun 2009 21:03:18 +0000 (21:03 +0000)]
Tell the IAX2 parser about more control frame types.

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

14 years agoAdd the ability to execute connected line interception macros.
Mark Michelson [Mon, 1 Jun 2009 20:57:31 +0000 (20:57 +0000)]
Add the ability to execute connected line interception macros.

When connected line updates are received or generated in the middle
of an application call, it is now possible to execute a macro to
manipulate the connected line data. This way, phone numbers may be
manipulated to be more presentable to users, names may be changed
for...whatever reason, or whatever else needs to be done may be.

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

AST-165

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

14 years agoAdd INCrement and DECrement functions
Tilghman Lesher [Mon, 1 Jun 2009 20:33:50 +0000 (20:33 +0000)]
Add INCrement and DECrement functions
(closes issue #15025)
 Reported by: greenfieldtech
 Patches:
       func_math.c.patch_v4 uploaded by greenfieldtech (license 369)
       slightly modified by me
 Tested by: greenfieldtech, lmadsen

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

14 years agoMinor whitespace fix.
Russell Bryant [Mon, 1 Jun 2009 20:17:50 +0000 (20:17 +0000)]
Minor whitespace fix.

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

14 years agoBlocked revisions 198665 via svnmerge
Tilghman Lesher [Mon, 1 Jun 2009 20:09:56 +0000 (20:09 +0000)]
Blocked revisions 198665 via svnmerge

........
  r198665 | tilghman | 2009-06-01 15:07:04 -0500 (Mon, 01 Jun 2009) | 7 lines

  If using the old deprecated format, a reload would cause the class to disappear.
  (closes issue #14759)
   Reported by: lidocaineus
   Patches:
         20090518__issue14759.diff.txt uploaded by tilghman (license 14)
   Tested by: lmadsen
........

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

14 years agoMoved more static documentation to the new AstXML form.
Eliel C. Sardanons [Mon, 1 Jun 2009 19:37:30 +0000 (19:37 +0000)]
Moved more static documentation to the new AstXML form.

Moved more static docs to XML (pplications and manager actions):
Monitor, StopMonitor, ChangeMonitor, PauseMonitor, UnpauseMonitor.

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

14 years agoAdd information for new meetme realtime fields
Tilghman Lesher [Mon, 1 Jun 2009 18:40:35 +0000 (18:40 +0000)]
Add information for new meetme realtime fields

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

14 years agoDo not add say.o in a separate line.
Eliel C. Sardanons [Mon, 1 Jun 2009 17:53:38 +0000 (17:53 +0000)]
Do not add say.o in a separate line.

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

14 years agoMove JabberSend manager action from static docs to the AstXML form.
Eliel C. Sardanons [Mon, 1 Jun 2009 16:09:42 +0000 (16:09 +0000)]
Move JabberSend manager action from static docs to the AstXML form.

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

14 years agoMove static documentation of E|Dead|AGI() application and manager action to XML.
Eliel C. Sardanons [Mon, 1 Jun 2009 15:38:48 +0000 (15:38 +0000)]
Move static documentation of E|Dead|AGI() application and manager action to XML.

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

14 years agoFixed an issue in the threadstorage cli functions resulting from the constification...
David Vossel [Mon, 1 Jun 2009 15:23:21 +0000 (15:23 +0000)]
Fixed an issue in the threadstorage cli functions resulting from the constification of struct ast_cli_args in r196072.

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

14 years agoRemove extra lock from app_queue.
Mark Michelson [Mon, 1 Jun 2009 14:45:43 +0000 (14:45 +0000)]
Remove extra lock from app_queue.

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

14 years agoRemove extra lock from local_indicate in connected line case.
Mark Michelson [Mon, 1 Jun 2009 14:42:57 +0000 (14:42 +0000)]
Remove extra lock from local_indicate in connected line case.

Oh, and this fixes a deadlock I was seeing.

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

14 years agoAdd missing unlock of local pvt.
Mark Michelson [Mon, 1 Jun 2009 14:19:49 +0000 (14:19 +0000)]
Add missing unlock of local pvt.

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

14 years agoRemove documentation for the 'exten' argument to the AGENT function.
Mark Michelson [Mon, 1 Jun 2009 14:02:05 +0000 (14:02 +0000)]
Remove documentation for the 'exten' argument to the AGENT function.

Since AgentCallbackLogin has been removed, this should not be documented
any more.

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

14 years agoFix a bug where the Event and Content-Type headers were added twice to outgoing SIP...
Joshua Colp [Mon, 1 Jun 2009 13:31:27 +0000 (13:31 +0000)]
Fix a bug where the Event and Content-Type headers were added twice to outgoing SIP NOTIFY messages.

(closes issue #15239)
Reported by: pj

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

14 years agoFix documentation for FIELDQTY.
Tilghman Lesher [Sun, 31 May 2009 17:52:28 +0000 (17:52 +0000)]
Fix documentation for FIELDQTY.

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

14 years agoFilter the say.o object, it is being added later.
Eliel C. Sardanons [Sun, 31 May 2009 02:09:06 +0000 (02:09 +0000)]
Filter the say.o object, it is being added later.

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

14 years agoConstification and remove some unused code.
Russell Bryant [Sun, 31 May 2009 01:40:02 +0000 (01:40 +0000)]
Constification and remove some unused code.

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

14 years agoAvoid a crash when res_timing_dahdi is unloaded but wasn't properly loaded.
Eliel C. Sardanons [Sun, 31 May 2009 01:22:15 +0000 (01:22 +0000)]
Avoid a crash when res_timing_dahdi is unloaded but wasn't properly loaded.

if dahdi_test_timer() fails, timing_funcs_handle remains NULL causing a crash
when calling ast_unregister_timing_interface() with a NULL pointer.

(closes issue #15234)
Reported by: eliel
Patches:
      timing_dahdi1.diff uploaded by eliel (license 64)

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

14 years agoConstify the ast_frame arg to ast_queue_frame().
Russell Bryant [Sun, 31 May 2009 01:19:30 +0000 (01:19 +0000)]
Constify the ast_frame arg to ast_queue_frame().

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

14 years agoProperly terminate the receive buffer before sending to iksemel.
Sean Bright [Sat, 30 May 2009 20:11:33 +0000 (20:11 +0000)]
Properly terminate the receive buffer before sending to iksemel.

aji_io_recv takes the maximum number of bytes to read (instead of the total
buffer size), so we have to subtract 1 from our buffer size.  Without this, when
we receive packets that are larger than our buffer, iksemel will choke and
things get wonky.

(closes issue #15232)
Reported by: lp0
Patches:
      05302009_res_jabber.c.patch uploaded by seanbright (license 71)
Tested by: seanbright, lp0

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

14 years agoMerged revisions 198370 via svnmerge from
Sean Bright [Sat, 30 May 2009 19:38:58 +0000 (19:38 +0000)]
Merged revisions 198370 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r198370 | seanbright | 2009-05-30 15:36:20 -0400 (Sat, 30 May 2009) | 12 lines

  Properly terminate AMI JabberSend response messages.

  The response message (either Error or Success) needs an extra trailing \r\n
  after the fields to inform the client that the message is complete.

  (closes issue #14876)
  Reported by: srt
  Patches:
        05302009_1.4_res_jabber.c.diff uploaded by seanbright (license 71)
        asterisk_14876.patch uploaded by srt (license 378)
        trunk-14876-2.diff uploaded by phsultan (license 73)
........

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

14 years agoMerged revisions 198311 via svnmerge from
Russell Bryant [Sat, 30 May 2009 03:43:23 +0000 (03:43 +0000)]
Merged revisions 198311 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r198311 | russell | 2009-05-29 22:42:46 -0500 (Fri, 29 May 2009) | 5 lines

  Fix a crash that occurred when MWI SMDI messages expired.

  (closes issue #14561)
  Reported by: cmoss28
........

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

14 years agoMerged revisions 198251 via svnmerge from
Sean Bright [Sat, 30 May 2009 03:26:06 +0000 (03:26 +0000)]
Merged revisions 198251 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r198251 | seanbright | 2009-05-29 22:46:41 -0400 (Fri, 29 May 2009) | 8 lines

  Treat an empty FORWARD_CONTEXT the same way we treat a missing one.

  (closes issue #15056)
  Reported by: p_lindheimer
  Patches:
        05292009_bug15056.diff uploaded by seanbright (license 71)
  Tested by: p_lindheimer
........

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

14 years agoWhen removing all packets from a dialog we also need to free the data if present.
Joshua Colp [Sat, 30 May 2009 02:31:48 +0000 (02:31 +0000)]
When removing all packets from a dialog we also need to free the data if present.

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

14 years agoRemove not used code in the Agent channel.
Eliel C. Sardanons [Sat, 30 May 2009 01:04:57 +0000 (01:04 +0000)]
Remove not used code in the Agent channel.

This code was there because of the AgentCallbackLogin() application.
->loginchan[] member was only used by AgentCallbackLogin().
Agent where dumped to astdb if they where logged in using AgentCallbacklogin()
so they are not being dumper anymore.

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

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

14 years agoSuggesting that only a single timing module be loaded is no longer necessary.
Russell Bryant [Fri, 29 May 2009 23:04:31 +0000 (23:04 +0000)]
Suggesting that only a single timing module be loaded is no longer necessary.

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

14 years agoImprove handling of trying to ACK too many timer expirations.
Russell Bryant [Fri, 29 May 2009 22:33:31 +0000 (22:33 +0000)]
Improve handling of trying to ACK too many timer expirations.

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

14 years agoAdd a couple of TODO items so I don't forget
Terry Wilson [Fri, 29 May 2009 22:21:42 +0000 (22:21 +0000)]
Add a couple of TODO items so I don't forget

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

14 years agoResolve issues with choppy sound when using res_timing_pthread.
Russell Bryant [Fri, 29 May 2009 20:06:59 +0000 (20:06 +0000)]
Resolve issues with choppy sound when using res_timing_pthread.

The situation that caused this problem was when continuous mode was being
turned on and off while a rate was set for a timing interface.  A very easy
way to replicate this bug was to do a Playback() from behind a Local channel.
In this scenario, a rate gets set on the channel for doing file playback.
At the same time, continuous mode gets turned on and off about every 20 ms
as frames get queued on to the PBX side channel from the other side of the
Local channel.

Essentially, this module treated continuous mode and a set rate as mutually
exclusive states for the timer to be in.  When I dug deep enough, I observed
the following pattern:

   1) Set timer to tick every 20 ms.
   2) Wait almost 20 ms ...
   3) Continuous mode gets turned on for a queued up frame
   4) Continuous mode gets turned off
   5) The timer goes back to its tick per 20 ms. state but starts counting
      at 0 ms.
   6) Goto step 2.

Sometimes, res_timing_pthread would make it 20 ms and produce a timer tick,
but not most of the time.  This is what produced the choppy sound (or sometimes
no sound at all).

Now, the module treats continuous mode and a set rate as completely independent
timer modes.  They can be enabled and disabled independently of each other and
things work as expected.

(closes issue #14412)
Reported by: dome
Patches:
      issue14412.diff.txt uploaded by russell (license 2)
      issue14412-1.6.1.0.diff.txt uploaded by russell (license 2)
Tested by: DennisD, russell

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

14 years agoSimplify the Makefile and avoid needing to specify each object file.
Eliel C. Sardanons [Fri, 29 May 2009 19:46:07 +0000 (19:46 +0000)]
Simplify the Makefile and avoid needing to specify each object file.

Instead of specifying every object file, use make's magic to generate
it.
This will generate less conflicts in team branches when a new file is
added in trunk.

(closes issue #15226)
Reported by: eliel
Patches:
      makefile uploaded by eliel (license 64)

      Review: http://reviewboard.asterisk.org/r/269/

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

14 years agoNew signaling module to handle analog operations in chan_dahdi
Jeff Peeler [Fri, 29 May 2009 19:19:51 +0000 (19:19 +0000)]
New signaling module to handle analog operations in chan_dahdi

This branch splits all the analog signaling logic out of chan_dahdi.c into
sig_analog.c. Functionality in theory should not change at all. As noted
in the code, there is still some unused code remaining that will be cleaned
up in a later commit.

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

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

14 years agoApply anti-spam obfuscation to an email address.
Eliel C. Sardanons [Fri, 29 May 2009 19:18:35 +0000 (19:18 +0000)]
Apply anti-spam obfuscation to an email address.

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

14 years agoMerged revisions 198068 via svnmerge from
Matthew Nicholson [Fri, 29 May 2009 19:04:24 +0000 (19:04 +0000)]
Merged revisions 198068 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r198068 | mnicholson | 2009-05-29 13:53:01 -0500 (Fri, 29 May 2009) | 15 lines

  Use AST_CDR_NOANSWER instead of AST_CDR_NULL as the default CDR disposition.

  This change also involves the addition of an AST_CDR_FLAG_ORIGINATED flag that is used on originated channels to distinguish: them from dialed channels.

  (closes issue #12946)
  Reported by: meral
  Patches:
        null-cdr2.diff uploaded by mnicholson (license 96)
  Tested by: mnicholson, dbrooks

  (closes issue #15122)
  Reported by: sum
  Tested by: sum
........

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

14 years agoFix a memory leak of the write buffer when writing a file.
Joshua Colp [Fri, 29 May 2009 18:39:04 +0000 (18:39 +0000)]
Fix a memory leak of the write buffer when writing a file.

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

14 years agoMerged revisions 197998 via svnmerge from
Sean Bright [Fri, 29 May 2009 18:15:15 +0000 (18:15 +0000)]
Merged revisions 197998 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r197998 | seanbright | 2009-05-29 14:14:12 -0400 (Fri, 29 May 2009) | 8 lines

  Fix 'make config' target for Slackware.

  There was a missing semi-colon after the echo statement in the Makefile that was
  causing problems for some users.  Fix suggested by reporter.

  (closes issue #15225)
  Reported by: pdavis
........

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

14 years agoFix a bug where the default setting did not perform a remote bridge when it should...
Joshua Colp [Fri, 29 May 2009 17:51:06 +0000 (17:51 +0000)]
Fix a bug where the default setting did not perform a remote bridge when it should have.

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

14 years agoTrim trailing whitespace so that I can work on this bug without it bothering me....
Russell Bryant [Fri, 29 May 2009 16:15:30 +0000 (16:15 +0000)]
Trim trailing whitespace so that I can work on this bug without it bothering me.  :-)

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

14 years agoA few fixes to SIP with regards to connected line updates during transfers.
Mark Michelson [Fri, 29 May 2009 15:48:04 +0000 (15:48 +0000)]
A few fixes to SIP with regards to connected line updates during transfers.

* Set the invitestate to INV_CALLING when we send a connected line reinvite.
This prevents us from potentially rapid-firing reinvites to a single peer.

* Use the astdb to store a peer's allowed methods. This prevents us from sending
an UPDATE during the interval between startup and the peer's first registration
if the peer does not support the UPDATE method.

* Handle Polycom's method of indicating allowed methods in REGISTER. Instead of
using an Allow header, they place the allowed methods in a methods= parameter
in the Contact header.

ABE-1873

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

14 years agoAdd some TeX docs for calendaring.
Terry Wilson [Fri, 29 May 2009 05:15:40 +0000 (05:15 +0000)]
Add some TeX docs for calendaring.

I still need to set up tests to make sure my examples are completely correct,
but I ran out of time tonight and felt that they at least would give an idea as
to how to use calendaring. I will try to test the examples and do some cleanup
on the docs tomorrow night.

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

14 years agoUpdate references to downloads.digium.com to its new URL.
Sean Bright [Thu, 28 May 2009 22:42:27 +0000 (22:42 +0000)]
Update references to downloads.digium.com to its new URL.

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

14 years agoUpdate documentation in MixMonitor.
Leif Madsen [Thu, 28 May 2009 22:04:00 +0000 (22:04 +0000)]
Update documentation in MixMonitor.
Updated the MixMonitor documentation for the 'b' option so that
it is more obvious that you must not optimize away the Local
channel when using this option.

(closes issue #14829)
Reported by: licedey
Tested by: mmichelson, licedey, lmadsen

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

14 years agoUpdate references to bugs.digium.com and reviewboard.digium.com to the new URLs.
Sean Bright [Thu, 28 May 2009 21:50:27 +0000 (21:50 +0000)]
Update references to bugs.digium.com and reviewboard.digium.com to the new URLs.

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

14 years agoMake note of Exchange calendar support limitations
Terry Wilson [Thu, 28 May 2009 20:43:00 +0000 (20:43 +0000)]
Make note of Exchange calendar support limitations

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

14 years agoEnsure that accidental calls to ast_string_field_free_memory() on embedded stringfiel...
Kevin P. Fleming [Thu, 28 May 2009 20:36:49 +0000 (20:36 +0000)]
Ensure that accidental calls to ast_string_field_free_memory() on embedded stringfield pools are safe.

It is possible for a stringfield manager structure (and pool) structure to be allocated
as part of a larger structure allocation (using ast_calloc_with_strinfields()); when
this is done, the stringfield pool cannot be separately freed, but users of the tructure
may not be aware (and shouldn't have to be aware) of whether the pool was embedded.
This patch modifies the behavior so that they can always call ast_string_field_free_memory()
and the function will do the right thing for both embedded and non-embedded situations.

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

14 years agoTreat 405 responses the same way we would a 501.
Mark Michelson [Thu, 28 May 2009 20:17:24 +0000 (20:17 +0000)]
Treat 405 responses the same way we would a 501.

This makes sure that we mark a method as being unallowed if we
receive a 405 response so that we don't continue to try to
send that same type of message.

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

14 years agoAdd Calendaring support for Asterisk
Terry Wilson [Thu, 28 May 2009 19:57:18 +0000 (19:57 +0000)]
Add Calendaring support for Asterisk

This commit add Calendaring support to Asterisk for iCalendar, CalDAV, and MS
Exchange calendars. Exchange support has only been tested on Exchange Server 2k3
and does not support forms-based authentication at this time (patches *very*
welcome). Exchange support is also currently missing the ability to return a
list of a meting's attendees (again, patches are very, very welcome).

Features include:
  Querying a calendar for events over a specific time range
  Checking a calendar's busy status via the dialplan
  Writing calendar events via the dialplan (CalDAV and Exchange only)
  Handling calendar event notifications through the dialplan

(closes issue #14771)
Tested by: lmadsen, twilson, Shivaprakash

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

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

14 years agoAdd missing lock to local_indicate function for connected line frames.
Mark Michelson [Thu, 28 May 2009 18:48:56 +0000 (18:48 +0000)]
Add missing lock to local_indicate function for connected line frames.

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

14 years agoFix a bug where the trunkmtu setting was not set to the default value of 1240 on...
Joshua Colp [Thu, 28 May 2009 18:45:11 +0000 (18:45 +0000)]
Fix a bug where the trunkmtu setting was not set to the default value of 1240 on load but was on reload.

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

14 years agoMerged revisions 197562 via svnmerge from
Eliel C. Sardanons [Thu, 28 May 2009 16:01:48 +0000 (16:01 +0000)]
Merged revisions 197562 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r197562 | eliel | 2009-05-28 11:21:32 -0400 (Thu, 28 May 2009) | 13 lines

  Use the address we already know when reloading a peer with nat=yes.

  If we already have an address for a peer, and we are reloading the sip
  configuration, try to use that address to contact the peer, instead of
  getting it from the Contact.

  (closes issue #15194)
  Reported by: ibc
  Patches:
        sip.patch uploaded by eliel (license 64)
        Tested by: manwe
........

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

14 years agoEliminate several needless checks and fix a few memory leaks
Tilghman Lesher [Thu, 28 May 2009 15:35:23 +0000 (15:35 +0000)]
Eliminate several needless checks and fix a few memory leaks
(closes issue #14833)
 Reported by: contactmayankjain
 Patches:
       all_changes.patch uploaded by contactmayankjain (license 740)
       slightly modified by me

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

14 years agoRecorded merge of revisions 197588 via svnmerge from
Mark Michelson [Thu, 28 May 2009 15:32:19 +0000 (15:32 +0000)]
Recorded merge of revisions 197588 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r197588 | mmichelson | 2009-05-28 10:27:49 -0500 (Thu, 28 May 2009) | 16 lines

  Allow for media to arrive from an alternate source when responding to a reinvite with 491.

  When we receive a SIP reinvite, it is possible that we may not be able to process the
  reinvite immediately since we have also sent a reinvite out ourselves. The problem is
  that whoever sent us the reinvite may have also sent a reinvite out to another party,
  and that reinvite may have succeeded.

  As a result, even though we are not going to accept the reinvite we just received, it
  is important for us to not have problems if we suddenly start receiving RTP from a new
  source. The fix for this is to grab the media source information from the SDP of the
  reinvite that we receive. This information is passed to the RTP layer so that it will
  know about the alternate source for media.

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

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

14 years agoFix an incorrect call to ast_string_field_free_memory which caused a crash in the...
Joshua Colp [Thu, 28 May 2009 15:23:29 +0000 (15:23 +0000)]
Fix an incorrect call to ast_string_field_free_memory which caused a crash in the logger.

Since the message structure is allocated using ast_calloc_with_stringfields we do not need to
free the memory used for the stringfields as it will get freed when the message structure is.

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

14 years agoMerged revisions 197537 via svnmerge from
Mark Michelson [Thu, 28 May 2009 14:58:06 +0000 (14:58 +0000)]
Merged revisions 197537 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r197537 | mmichelson | 2009-05-28 09:49:13 -0500 (Thu, 28 May 2009) | 21 lines

  Add flags to chanspy audiohook so that audio stays in sync.

  There are two flags being added to the chanspy audiohook here. One
  is the pre-existing AST_AUDIOHOOK_TRIGGER_SYNC flag. With this set,
  we ensure that the read and write slinfactories on the audiohook do
  not skew beyond a certain tolerance.

  In addition, there is a new audiohook flag added here,
  AST_AUDIOHOOK_SMALL_QUEUE. With this flag set, we do not allow for
  a slinfactory to build up a substantial amount of audio before
  flushing it. For this particular issue, this means that the person
  spying on the call will hear the conversations in real time with very
  little delay in the audio.

  (closes issue #13745)
  Reported by: geoffs
  Patches:
        13745.patch uploaded by mmichelson (license 60)
  Tested by: snblitz
........

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

14 years agoFix a bug in stringfields where it did not actually free the pools of memory.
Joshua Colp [Thu, 28 May 2009 14:51:43 +0000 (14:51 +0000)]
Fix a bug in stringfields where it did not actually free the pools of memory.

(closes issue #15074)
Reported by: pj

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

14 years agoRemove a bunch of trailing whitespace in preparation for reformatting/cleanup.
Sean Bright [Thu, 28 May 2009 14:39:21 +0000 (14:39 +0000)]
Remove a bunch of trailing whitespace in preparation for reformatting/cleanup.

Let's try that again, this time removing trailing whitespace and not leading
whitespace.  I can't believe no one noticed.

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

14 years agoRemove a bunch of trailing whitespace in preparation for reformatting/cleanup.
Sean Bright [Thu, 28 May 2009 14:32:03 +0000 (14:32 +0000)]
Remove a bunch of trailing whitespace in preparation for reformatting/cleanup.

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

14 years agoMerged revisions 197466 via svnmerge from
Joshua Colp [Thu, 28 May 2009 13:47:45 +0000 (13:47 +0000)]
Merged revisions 197466 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r197466 | file | 2009-05-28 10:44:58 -0300 (Thu, 28 May 2009) | 8 lines

  Fix a bug where the flag indicating the presence of rport would get overwritten by the nat setting.

  The presence of rport is now stored as a separate flag. Once the dialog is setup and authenticated
  (or it passes through unauthenticated) the proper nat flag is set.

  (closes issue #13823)
  Reported by: dimas
........

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

14 years agoAdded AstVoicemailContext
Gavin Henry [Thu, 28 May 2009 11:25:03 +0000 (11:25 +0000)]
Added AstVoicemailContext

Added AstVoicemailContext

(closes issue #15155)
Reported by: scramatte
Tested by: suretec

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

14 years agoNew objectclass AsteriskVoiceMail and AstAccountCallLimit attribute
Gavin Henry [Thu, 28 May 2009 11:18:09 +0000 (11:18 +0000)]
New objectclass AsteriskVoiceMail and AstAccountCallLimit attribute

Added new ObjectClass AsteriskVoiceMail, and AstAccountCallLimit attribute
and cleaned up formatting and tested with OpenLDAP

(closes issue #15155)
Reported by: scramatte
Patches:
      asterisk.schema uploaded by scramatte (license 796)
Tested by: suretec

Review: [full review board URL with trailing slash]

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

14 years agocloses issue #15156
Gavin Henry [Thu, 28 May 2009 10:43:51 +0000 (10:43 +0000)]
closes issue #15156

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

14 years agoRevert commit 192032. This define is needed on Mac OS X.
Tilghman Lesher [Wed, 27 May 2009 23:48:15 +0000 (23:48 +0000)]
Revert commit 192032.  This define is needed on Mac OS X.

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

14 years agoDon't do a pointer comparison before setting the remote address.
Russell Bryant [Wed, 27 May 2009 22:42:15 +0000 (22:42 +0000)]
Don't do a pointer comparison before setting the remote address.

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