]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
14 years agoMerged revisions 323732 via svnmerge from
Terry Wilson [Wed, 15 Jun 2011 18:13:00 +0000 (18:13 +0000)] 
Merged revisions 323732 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r323732 | twilson | 2011-06-15 13:06:24 -0500 (Wed, 15 Jun 2011) | 9 lines

  Fix DYNAMIC_FEATURES

  DYNAMIC_FEATURES were broken by a recent DTMF change. This patch makes
  sure that dynamic features are also checked when deciding whether or not
  to pass DTMF through or store it for interpreting.

  (closes issue ASTERISK-17914)
  Reported by: vrban
........

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

14 years agoMerged revisions 323559 via svnmerge from
Sean Bright [Wed, 15 Jun 2011 15:22:50 +0000 (15:22 +0000)] 
Merged revisions 323559 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r323559 | seanbright | 2011-06-15 11:15:30 -0400 (Wed, 15 Jun 2011) | 25 lines

  Resolve a segfault/bus error when we try to map memory that falls on a page
  boundary.

  The fix for ASTERISK-15359 was incorrect in that it added 1 to the length of the
  mmap'd region.  The problem with this is that reading/writing to that extra byte
  outside of the bounds of the underlying fd causes a bus error.

  The real issue is that we are working with both a FILE * and the raw fd
  underneath it and not synchronizing between them.  The code that was removed in
  ASTERISK-15359 was correct, but we weren't flushing the FILE * before mapping
  the fd.

  Looking at the manager code in 1.4 reveals that the FILE * in 'struct
  mansession' is never used except to create a temporary file that we immediately
  fdopen.  This means we just need to write a 0 byte to the fd and everything will
  just work.  The other branches require a call to fflush() which, while not a
  guaranteed fix, should reduce the likelihood of a crash.

  This all makes sense in my head.

  (closes issue ASTERISK-16460)
  Reported by: Ravelomanantsoa Hoby (hoby)
  Patches:
   issue17747_1.4_svn_markII.patch uploaded by Sean Bright (license #5060)
........

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

14 years agoUnlock the sip channel during fax detection like chan_dahdi does to prevent a deadloc...
Matthew Nicholson [Fri, 10 Jun 2011 19:15:18 +0000 (19:15 +0000)] 
Unlock the sip channel during fax detection like chan_dahdi does to prevent a deadlock with ast_autoservice_stop.

(closes issue ASTERISK-17798)
tested by mnicholson

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

14 years agoBlocked revisions 322657,322698 via svnmerge
Matthew Nicholson [Thu, 9 Jun 2011 15:37:50 +0000 (15:37 +0000)] 
Blocked revisions 322657,322698 via svnmerge

........
  r322657 | mnicholson | 2011-06-09 10:20:19 -0500 (Thu, 09 Jun 2011) | 2 lines

  whitespace
........
  r322698 | mnicholson | 2011-06-09 10:36:05 -0500 (Thu, 09 Jun 2011) | 2 lines

  unlock pvt when we drop voice frames received in early media when in t.38 mode
........

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

14 years agounlock pvt when we drop voice frames received in early media when in t.38 mode
Matthew Nicholson [Thu, 9 Jun 2011 15:37:04 +0000 (15:37 +0000)] 
unlock pvt when we drop voice frames received in early media when in t.38 mode

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

14 years agofix for previous commit
Matthew Nicholson [Thu, 9 Jun 2011 15:31:36 +0000 (15:31 +0000)] 
fix for previous commit

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

14 years agoMerged revisions 322646 via svnmerge from
Matthew Nicholson [Thu, 9 Jun 2011 15:22:50 +0000 (15:22 +0000)] 
Merged revisions 322646 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r322646 | mnicholson | 2011-06-09 10:10:30 -0500 (Thu, 09 Jun 2011) | 5 lines

  don't drop any voice frames when checking for T.38 during early media

  (closes issue ASTERISK-17705)
  Review: https://reviewboard.asterisk.org/r/1186/
  patch by oej
  reported by oej
........

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

14 years agoFix *8 directed pickup locks system during pickupsound play out
Alec L Davis [Fri, 27 May 2011 08:24:32 +0000 (08:24 +0000)] 
Fix *8 directed pickup locks system during pickupsound play out

move playout from sip_pickup_thread to bridge using BRIDGE_PLAY_SOUND method,
This stop the clash of 2 threads trying to write audio to same channel.
In addition fixes choppy audio beep in issue 19177.

 (issue #18654)
 (issue #19177)
 Reported by: Docent
 Patches:
      review1232-1.6.2.diff.txt uploaded by alecdavis (license 585)
 Tested by: alecdavis

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

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

14 years agoAdds missing part to the ast_tcptls_server_start fails second attempt to bind patch.
David Vossel [Mon, 23 May 2011 16:15:18 +0000 (16:15 +0000)] 
Adds missing part to the ast_tcptls_server_start fails second attempt to bind patch.

(closes issue #19289)
Reported by: wdoekes
Patches:
      issue19289_delay_old_address_setting_tcptls_2.patch uploaded by wdoekes (license 717)

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

14 years agoFixes chanspy enforced mode lacking a channel_unlock.
David Vossel [Mon, 23 May 2011 14:46:17 +0000 (14:46 +0000)] 
Fixes chanspy enforced mode lacking a channel_unlock.

(closes issue #19348)
Reported by: wdoekes
Patches:
      issue19348_chanspy_missing_channel_unlock.patch uploaded by wdoekes (license 717)

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

14 years agoDon't crash when the connection fails.
Tilghman Lesher [Sun, 22 May 2011 23:25:51 +0000 (23:25 +0000)] 
Don't crash when the connection fails.

(closes issue #19250)
 Reported by: seadweller
 Patches:
       20110514__issue19250.diff.txt uploaded by tilghman (license 14)
 Tested by: seadweller, sum

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

14 years agoBlocked revisions 320393 via svnmerge
Paul Belanger [Sat, 21 May 2011 05:10:03 +0000 (05:10 +0000)] 
Blocked revisions 320393 via svnmerge

........
  r320393 | pabelanger | 2011-05-21 01:09:09 -0400 (Sat, 21 May 2011) | 2 lines

  Solaris compatibility fixes
........

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

14 years agoFixes issue with ast_tcptls_server_start failing on second attempt to bind.
David Vossel [Fri, 20 May 2011 21:24:48 +0000 (21:24 +0000)] 
Fixes issue with ast_tcptls_server_start failing on second attempt to bind.

(closes issue #19289)
Reported by: wdoekes
Patches:
      issue19289_delay_old_address_setting_tcptls.patch uploaded by wdoekes (license 717)

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

14 years agoMerged revisions 320235 via svnmerge from
Richard Mudgett [Fri, 20 May 2011 20:44:54 +0000 (20:44 +0000)] 
Merged revisions 320235 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r320235 | rmudgett | 2011-05-20 15:38:22 -0500 (Fri, 20 May 2011) | 13 lines

  The meetme CLI command completion leaves conferences mutex locked.

  When issuing a meetme kick CLI command and an invalid (non-existent)
  conference number is specified, pressing Tab leaves the conferences mutex
  locked and, therefore, all conferences deadlock.

  Add missing unlock.

  (closes issue #19336)
  Reported by: zvision
  Patches:
        app_meetme.diff uploaded by zvision (license 798)
........

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

14 years agoThis commit modifies the way polling is done on TLS sockets.
Matthew Nicholson [Fri, 20 May 2011 18:45:59 +0000 (18:45 +0000)] 
This commit modifies the way polling is done on TLS sockets.

Because of the buffering the TLS layer does, polling is unreliable. If poll is
called while there is data waiting to be read in the TLS layer but not at the
network layer, the messaging processing engine will not proceed until something
else writes data to the socket, which may not occur. This change modifies the
logic around TLS sockets to only poll after a failed read on a non-blocking
socket. This way we know that there is no data waiting to be read from the
buffering layer.

(closes issue #19182)
Reported by: st
Patches:
      ssl-poll-fix3.diff uploaded by mnicholson (license 96)
Tested by: mnicholson

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

14 years agoBlocked revisions 320055 via svnmerge
David Vossel [Fri, 20 May 2011 16:41:12 +0000 (16:41 +0000)] 
Blocked revisions 320055 via svnmerge

........
  r320055 | dvossel | 2011-05-20 11:38:28 -0500 (Fri, 20 May 2011) | 9 lines

  chan_sip: Destroy variables on a sip_pvt before copying vars from the sip_peer.

  (closes issue #19202)
  Reported by: wdoekes
  Patches:
        issue19202_destroy_challenged_invite_chanvars.patch uploaded by wdoekes (license 717)
........

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

14 years agoMerged revisions 319652 via svnmerge from
Terry Wilson [Wed, 18 May 2011 23:11:57 +0000 (23:11 +0000)] 
Merged revisions 319652 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r319652 | twilson | 2011-05-18 16:04:35 -0700 (Wed, 18 May 2011) | 8 lines

  Make sure everyone gets an unhold when a transfer succeeds

  Some phones, like the Snom phones, send a hold to the transfer target after
  before sending the REFER. We need to make sure that we unhold the parties
  that are being connected after the masquerade. If Local channels with the /nm
  option are used when dialing the parties, hold music would still be playing on
  the transfer target, even after being connected with the transferee.
........

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

14 years agoMerged revisions 319527 via svnmerge from
Terry Wilson [Wed, 18 May 2011 20:02:06 +0000 (20:02 +0000)] 
Merged revisions 319527 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r319527 | twilson | 2011-05-18 12:56:08 -0700 (Wed, 18 May 2011) | 10 lines

  Fix app_dial ring groups

  Revert part of r315643. We need to remove the datastore here as well.
  The code in bridging code will catch anything that app_dial might miss.

  (closes issue #19311)
  Reported by: mspuhler
  Patches:
        issue_19311_no_answer.diff uploaded by elguero (license 37)
........

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

14 years agoUnlink a peer from peers_by_ip when expiring a registration
Terry Wilson [Mon, 16 May 2011 18:00:21 +0000 (18:00 +0000)] 
Unlink a peer from peers_by_ip when expiring a registration

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

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

14 years agoFixes issue with peer ref-counting during handle_request_subscribe.
David Vossel [Mon, 16 May 2011 15:56:16 +0000 (15:56 +0000)] 
Fixes issue with peer ref-counting during handle_request_subscribe.

(closes issue #19293)
Reported by: irroot

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

14 years agoMake sure tcptls_session exists before dereferencing it.
Matthew Nicholson [Mon, 16 May 2011 15:51:53 +0000 (15:51 +0000)] 
Make sure tcptls_session exists before dereferencing it.

(closes issue #19192)
Reported by: stknob
Patches:
      10-tcptls-unreachable-peer-segfault.patch uploaded by Chainsaw (license 723)
Tested by: vois, Chainsaw

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

14 years agoMerged revisions 318734 via svnmerge from
Richard Mudgett [Fri, 13 May 2011 01:14:28 +0000 (01:14 +0000)] 
Merged revisions 318734 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
  r318734 | rmudgett | 2011-05-12 20:09:40 -0500 (Thu, 12 May 2011) | 43 lines

  Merged revisions 318671 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.8

  * The applicable fixes for v1.4 are the SIP deadlock and the in progress
  masquerade check for multiple parties trying to pickup the same call.
        issue18654_v1.4.patch uploaded by rmudgett (license 664)

  * Backported to v1.6.2.
        issue18654_v1.6.2.patch uploaded by rmudgett (license 664)

  ........
    r318671 | alecdavis | 2011-05-13 10:52:08 +1200 (Fri, 13 May 2011) | 30 lines

    Fix directed group pickup feature code *8 with pickupsounds enabled

    Since 1.6.2, the new pickupsound and pickupfailsound in features.conf cause many issues.

    1). chan_sip:handle_request_invite() shouldn't be playing out the fail/success audio, as it has 'netlock' locked.
    2). dialplan applications for directed_pickups shouldn't beep.
    3). feature code for directed pickup should beep on success/failure if configured.

    Created a sip_pickup() thread to handle the pickup and playout the audio, spawned from handle_request_invite.

    Moved app_directed:pickup_do() to features:ast_do_pickup().

    Functions below, all now use the new ast_do_pickup()
    app_directed_pickup.c:
       pickup_by_channel()
       pickup_by_exten()
       pickup_by_mark()
       pickup_by_part()
    features.c:
       ast_pickup_call()

    (closes issue #18654)
    Reported by: Docent
    Patches:
          ast_do_pickup_1.8_trunk.diff.txt uploaded by alecdavis (license 585)
    Tested by: lmadsen, francesco_r, amilcar, isis242, alecdavis, irroot, rymkus, loloski, rmudgett

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

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

14 years agoMerged revision 222981 from
Richard Mudgett [Thu, 12 May 2011 21:04:30 +0000 (21:04 +0000)] 
Merged revision 222981 from
https://origsvn.digium.com/svn/asterisk/branches/1.8

Similar deadlock possible when running the Pickup application internally.

------------------------------------------------------------------------
r222981 | dvossel | 2009-10-08 17:04:41 -0500 (Thu, 08 Oct 2009) | 13 lines

Deadlock between ast_cel_report_event and ast_do_masquerade

chan_sip calls pbx_exec on a pvt's owner channel while only the
pvt lock is held.  Since pbx_exec calls ast_cel_report_event which
attempts to lock the channel, invalid locking order occurs.  Channels
should be locked before pvt's.

(closes issue #15512)
Reported by: lmsteffan
Patches:
      ast_cel_deadlock_15512.diff uploaded by dvossel (license 671)

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

14 years agoClean up several chan_sip reference leaks
Terry Wilson [Wed, 11 May 2011 17:15:39 +0000 (17:15 +0000)] 
Clean up several chan_sip reference leaks

Several situations in the code could lead to peers or sip_pvt references
being leaked. This would cause RTP ports to never be destroyed (leading
to exhaustion of all available RTP ports) and memory leaks.

The original patch for this issue from rgagnon was the result of an
obscene amount of testing and hard work, for which I am very grateful. I
did some cleanup and added a few additional refcount fixes that I found.

(closes issue #17255)
Reported by: kvveltho
Patches:
      tag-1.6.2.17-r309252-sip-dos-mem-leak-fix.diff uploaded by rgagnon (license 1202)
Tested by: rgagnon, twilson, wdoekes, loloski

Review: https://reviewboard.asterisk.org/r/1101/
Review: https://reviewboard.asterisk.org/r/1207/

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

14 years agoDon't offer video to directmedia callee unless caller offered it as well
Terry Wilson [Mon, 9 May 2011 20:04:41 +0000 (20:04 +0000)] 
Don't offer video to directmedia callee unless caller offered it as well

Make sure that when directmedia is enabled, that video is not offered to the
callee even if it supports it. p->vrtp will not exist since the caller didn't
offer video.

(closes issue #19195)
Reported by: one47
Patches:
      sip_cant_add_video_rtp uploaded by one47 (license 23)

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

14 years agoFixes cases where sip_set_rtp_peer can return too early during media path reset.
David Vossel [Mon, 9 May 2011 16:51:45 +0000 (16:51 +0000)] 
Fixes cases where sip_set_rtp_peer can return too early during media path reset.

(closes issue #19225)
Reported by: one47
Patches:
      sip_set_rtp_peer.patch uploaded by one47 (license 23)

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

14 years agopbx_lua autoservice fixes
Matthew Nicholson [Fri, 6 May 2011 19:34:00 +0000 (19:34 +0000)] 
pbx_lua autoservice fixes

Don't start an autoservice in pbx_lua if pbx_lua already started one and don't
stop one if we didn't start one.  Also start and stop the autoservice when
transferring control from and to the pbx.

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

14 years agoMerged revisions 317719 via svnmerge from
Richard Mudgett [Fri, 6 May 2011 18:03:09 +0000 (18:03 +0000)] 
Merged revisions 317719 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r317719 | rmudgett | 2011-05-06 12:59:05 -0500 (Fri, 06 May 2011) | 11 lines

  Regression after r297603 (Improve handling of REGISTER requests with multiple contact headers.)

  Uninitialized variable.

  (issue #18640)

  (closes issue #18785)
  Reported by: pnlarsson
  Patches:
        issue18785_enegaard.patch uploaded by enegaard (license 1197)
........

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

14 years agoAdd a datastore fixup to fix a pbx_lua crash.
Matthew Nicholson [Fri, 6 May 2011 15:18:46 +0000 (15:18 +0000)] 
Add a datastore fixup to fix a pbx_lua crash.

(closes issue #19055)
Reported by: jamhed
Patches:
      lua_datastore_fixup1.diff uploaded by mnicholson (license 96)
Tested by: mnicholson, jamhed

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

14 years agoMerged revisions 317574 via svnmerge from
Terry Wilson [Fri, 6 May 2011 08:04:17 +0000 (08:04 +0000)] 
Merged revisions 317574 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r317574 | twilson | 2011-05-06 00:55:21 -0700 (Fri, 06 May 2011) | 6 lines

  Re-fix queue round-robin

  This part of the change for r315596 was incorrect. No bridge occurs
  when doing a roundrobin dial and no one answers, so this code shouldn't
  have been removed.
........

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

14 years agoMerged revisions 317211 via svnmerge from
Russell Bryant [Thu, 5 May 2011 18:29:53 +0000 (18:29 +0000)] 
Merged revisions 317211 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r317211 | russell | 2011-05-05 13:20:29 -0500 (Thu, 05 May 2011) | 15 lines

  chan_sip: fix broken realtime peer count, fix memory leak

  This patch addresses two bugs in chan_sip:

  1) The count of realtime peers and users was off.  The increment checked the
  value of the caching option, while the decrement did not.

  2) Add a missing regfree() for a regex.

  (closes issue #19108)
  Reported by: vrban
  Patches:
        missing_regfree.patch uploaded by vrban (license 756)
        sip_object_counter.patch uploaded by vrban (license 756)
........

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

14 years agoSet SO_KEEPALIVE on SIP TCP sockets so that they eventually go away when a peer
Matthew Nicholson [Thu, 5 May 2011 17:59:13 +0000 (17:59 +0000)] 
Set SO_KEEPALIVE on SIP TCP sockets so that they eventually go away when a peer
abruptly disappears.  This mostly occurs after a successful registration.

(closes issue #17544)
Reported by: marcelloceschia
Patches:
      (modified) tcptls.patch uploaded by st (license 907)

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

14 years agoMerged revisions 317102 via svnmerge from
Leif Madsen [Thu, 5 May 2011 14:56:52 +0000 (14:56 +0000)] 
Merged revisions 317102 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r317102 | lmadsen | 2011-05-05 10:54:46 -0400 (Thu, 05 May 2011) | 8 lines

  Disable console colourization inside safe_asterisk checks.

  (closes issue #19213)
  Reported by: lefoyer
  Patches:
        issue19213_strip_color_in_safe_asterisk-svn.patch uploaded by wdoekes (license 717)
  Tested by: wdoekes, lefoyer
........

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

14 years agoMerged revisions 316707 via svnmerge from
Sean Bright [Wed, 4 May 2011 16:10:59 +0000 (16:10 +0000)] 
Merged revisions 316707 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r316707 | seanbright | 2011-05-04 12:08:50 -0400 (Wed, 04 May 2011) | 8 lines

  If sox fails when processing a voicemail, don't delete the original file.

  (closes issue #18111)
  Reported by: sysreq
  Patches:
        issue18111_trunk.patch uploaded by seanbright (license 71)
  Tested by: seanbright
........

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

14 years agoFixes one-way-audio when chanspy activated with the 'o' option
David Vossel [Wed, 4 May 2011 14:23:39 +0000 (14:23 +0000)] 
Fixes one-way-audio when chanspy activated with the 'o' option

(closes issue #18382)
Reported by: jkister
Patches:
      0001-Bugfix-18382-one-way-audio-when-chanspy-activated.patch.txt uploaded by malin (license )
Tested by: firstsip, Greenlightcrm, malin, wdoekes, boroda, dvossel

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

14 years agoFixes session-timers=refuse not being enforced for *caller*
David Vossel [Wed, 4 May 2011 13:40:41 +0000 (13:40 +0000)] 
Fixes session-timers=refuse not being enforced for *caller*

During handle_request_invite, the session timer mode was retrieved from
a cached variable.  This patch forces a peer lookup of the session timer
mode in the case of an incoming invite.

(closes issue #18804)
Reported by: wdoekes
Patches:
      issue18804_session_timer_refuse_caller.patch uploaded by wdoekes (license 717)
      issue_18804_v2.diff uploaded by dvossel (license 671)

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

14 years agoHonor the C option to MeetMe when L is passed.
Sean Bright [Wed, 4 May 2011 02:23:01 +0000 (02:23 +0000)] 
Honor the C option to MeetMe when L is passed.

This fixes a case that r304773 and friends missed.

(closes issue #17317)
Reported by: var
Patches:
      meetme-continue-on-l_16218.diff uploaded by var (license 1227)
Tested by: seanbright

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

14 years agoMerged revisions 316328 via svnmerge from
David Vossel [Tue, 3 May 2011 21:29:55 +0000 (21:29 +0000)] 
Merged revisions 316328 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r316328 | dvossel | 2011-05-03 16:27:59 -0500 (Tue, 03 May 2011) | 10 lines

  Fixes chan_local crashs in local_fixup()

  Thanks OEJ for tracking down the issue and submitting the patch.

  (closes issue #19053)
  Reported by: oej
  Tested by: oej

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

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

14 years agoMore possible crashes based upon invalid inputs.
Tilghman Lesher [Mon, 2 May 2011 19:04:36 +0000 (19:04 +0000)] 
More possible crashes based upon invalid inputs.

(closes issue #18161)
 Reported by: wdoekes
 Patches:
       20110301__issue18161.diff.txt uploaded by tilghman (license 14)
 Tested by: wdoekes

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

14 years agoMerged revisions 315891 via svnmerge from
Matthew Nicholson [Wed, 27 Apr 2011 19:03:05 +0000 (19:03 +0000)] 
Merged revisions 315891 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r315891 | mnicholson | 2011-04-27 13:57:56 -0500 (Wed, 27 Apr 2011) | 14 lines

  Fix our compliance with RFC 3261 section 18.2.2.

  This change optimizes the free_via() function and removes some redundant null
  checking. It also fixes compliance with RFC 3261 section 18.2.2 by always using
  the port specified in the Via header for routing responses (even when maddr is
  not set). Also the htons() function is now used when setting the port.
  Additional documentation comments have been added in various places to make the
  logic in the code clearer.

  (closes issue #18951)
  Reported by: jmls
  Patches:
        issue18951_set_proper_port_from_via.patch uploaded by wdoekes (license 717) (modified)
........

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

14 years agoMerged revisions 315671 via svnmerge from
Terry Wilson [Tue, 26 Apr 2011 22:52:25 +0000 (22:52 +0000)] 
Merged revisions 315671 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r315671 | twilson | 2011-04-26 15:47:56 -0700 (Tue, 26 Apr 2011) | 11 lines

  Make sure unregistering a peer unlinks it from the peer container

  Instead of mostly copying the code from expire_register, just use the function
  that "does the right thing".

  (closes issue #16033)
  Reported by: kkm
  Patches:
        016033-tilgman-fixed-refcount.diff uploaded by kkm (license 888)
  Tested by: kkm, tilghman, twilson
........

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

14 years agoMerged revisions 315596 via svnmerge from
Terry Wilson [Tue, 26 Apr 2011 21:27:44 +0000 (21:27 +0000)] 
Merged revisions 315596 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r315596 | twilson | 2011-04-26 14:16:10 -0700 (Tue, 26 Apr 2011) | 18 lines

  Allow transfer loops without allowing forwarding loops

  We try to avoid the situation where two phones may be forwarded to each other
  causing an infinite loop by storing each dialed interface in a channel
  datastore and checking the list before dialing out. This works, but currently
  breaks situations like A calls B, A transfers B to C, B transfers C to A, and A
  transfers C to B. Since human interaction is happening here and not an
  automated forwarding loop, it should be allowed.

  This patch removes the dialed_interfaces datastore when a call is bridged (a
  suggestion from the brilliant mmichelson). If a call is being bridged, it
  should be safe to assume that we aren't stuck in a loop.

  Since we are now handling this is the bridge code, the previous attempts at
  handling it in app_dial and app_queue are removed.

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

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

14 years agoMerged revisions 315501 via svnmerge from
Tilghman Lesher [Tue, 26 Apr 2011 19:22:52 +0000 (19:22 +0000)] 
Merged revisions 315501 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r315501 | tilghman | 2011-04-26 14:18:46 -0500 (Tue, 26 Apr 2011) | 14 lines

  Fix the bounds-checking code.

  The code that set the bit within the select bitfield was correct, but the
  bounds-checking code was not.  The change to that line uses the new _bitsize
  macro for clarity.  Also, FD_ZERO macro did not zero-out anything but the
  first word of the bitfield, so this could have caused problems with modules
  using that macro with the expanded bitfield.

  (closes issue #18773)
   Reported by: jamicque
   Patches:
         20110423__issue18773.diff.txt uploaded by tilghman (license 14)
   Tested by: chris-mac
........

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

14 years agoAdd back CLI command 'dialplan save'
Paul Belanger [Tue, 26 Apr 2011 02:17:43 +0000 (02:17 +0000)] 
Add back CLI command 'dialplan save'

(closes issue #19140)
Reported by: lmadsen
Patches:
      __20110419_dialplan_save.patch.txt uploaded by lmadsen (license 10)

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

14 years agoMerged revisions 315257 via svnmerge from
Russell Bryant [Mon, 25 Apr 2011 19:31:44 +0000 (19:31 +0000)] 
Merged revisions 315257 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r315257 | russell | 2011-04-25 14:28:41 -0500 (Mon, 25 Apr 2011) | 10 lines

  Be more flexible with unknown chunks in wav files.

  This patch makes format_wav ignore unknown chunks instead of erroring
  out on them.

  (closes issue #18306)
  Reported by: jhirsch
  Patches:
        wav_skip_unknown_blocks.diff uploaded by jhirsch (license 1156)
........

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

14 years agoDon't link non-cached realtime peers into the peers_by_ip container.
Russell Bryant [Mon, 25 Apr 2011 19:00:24 +0000 (19:00 +0000)] 
Don't link non-cached realtime peers into the peers_by_ip container.

(closes issue #18924)
Reported by: wdoekes
Patches:
      issue18924_uncached_realtime_peers_leak-1.6.2.17.patch uploaded by wdoekes (license 717)

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

14 years agoMerged revisions 315051 via svnmerge from
Alec L Davis [Mon, 25 Apr 2011 07:11:12 +0000 (07:11 +0000)] 
Merged revisions 315051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r315051 | alecdavis | 2011-04-25 19:06:29 +1200 (Mon, 25 Apr 2011) | 11 lines

  chan_local:check_bridge() misplaced misplaced ast_mutex_unlock

  if !p->chan->_bridge->_softhangup path isn't followed, brigde remains locked.

  (closes issue #19176)
  Reported by: alecdavis
  Patches:
        bug19176.diff.txt uploaded by alecdavis (license 585)
........

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

14 years agoMerged revisions 311203,314908 via svnmerge from
Matthew Nicholson [Fri, 22 Apr 2011 20:49:45 +0000 (20:49 +0000)] 
Merged revisions 311203,314908 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r311203 | mnicholson | 2011-03-17 14:14:37 -0500 (Thu, 17 Mar 2011) | 4 lines

  Don't hold the pvt lock while streaming a file.

  ABE-2756
........
  r314908 | mnicholson | 2011-04-22 15:01:48 -0500 (Fri, 22 Apr 2011) | 4 lines

  Prevent the login thread and the app threads from using the asterisk channel at the same time.

  ABE-2756
........

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

14 years agoRecorded merge of revisions 314822 via svnmerge from
Russell Bryant [Fri, 22 Apr 2011 14:35:17 +0000 (14:35 +0000)] 
Recorded merge of revisions 314822 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r314822 | russell | 2011-04-22 09:34:23 -0500 (Fri, 22 Apr 2011) | 11 lines

  Initialize buffers in getvar and getvarfull.

  Initialize the buffers used to hold the result from GET VARIABLE or
  GET VARIABLE FULL.  The bug report shows func_read returning garbage in
  the result.  It assumed that the buffer passed in was initialized, like many
  other functions do.  In the more common code path (through the dialplan), it
  is initialized, so just initialize it here too.

  (closes issue #19050)
  Reported by: johnz
........

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

14 years agoInitialize buffers in getvar and getvarfull.
Russell Bryant [Fri, 22 Apr 2011 13:58:03 +0000 (13:58 +0000)] 
Initialize buffers in getvar and getvarfull.

Initialize the buffers used to hold the result from GET VARIABLE or
GET VARIABLE FULL.  The bug report shows func_read returning garbage in
the result.  It assumed that the buffer passed in was initialized, like many
other functions do.  In the more common code path (through the dialplan), it
is initialized, so just initialize it here too.

(closes issue #19050)
Reported by: johnz

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

14 years agoFix handling of some call parking config options.
Russell Bryant [Fri, 22 Apr 2011 13:35:22 +0000 (13:35 +0000)] 
Fix handling of some call parking config options.

This patch adjusts the handling of some call parking config options to fix some
issues that have already been addressed in 1.8 and trunk.

(closes issue #19167)
Reported by: bluecrow76
Patches:
      asterisk-1.6.2.17.2-fix-build-parkinglot-parked-AST_FEATURE_FLAGS.diff uploaded by bluecrow76 (license 270)

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

14 years agoMerged revisions 314607 via svnmerge from
Matthew Nicholson [Thu, 21 Apr 2011 18:22:19 +0000 (18:22 +0000)] 
Merged revisions 314607 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r314607 | mnicholson | 2011-04-21 13:19:21 -0500 (Thu, 21 Apr 2011) | 14 lines

  Added limits to the number of unauthenticated sessions TCP based protocols are allowed to have open simultaneously.  Also added timeouts for unauthenticated sessions where it made sense to do so.

  Unrelated, the manager interface now properly checks if the user has the "system" privilege before executing shell commands via the Originate action.

  AST-2011-005
  AST-2011-006

  (closes issue #18787)
  Reported by: kobaz

  (related to issue #18996)
  Reported by: tzafrir
........

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

14 years agoDon't allocate more space than necessary for a sip_pkt
Terry Wilson [Thu, 21 Apr 2011 00:17:34 +0000 (00:17 +0000)] 
Don't allocate more space than necessary for a sip_pkt

This extra allocation is a hold-over from when pkt->data was a
character array. Now that it is an allocated string, just allocate
enough for the sip_pkt.

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

14 years agoRemove duplicate documentation from func_channel.c
Leif Madsen [Tue, 19 Apr 2011 14:27:50 +0000 (14:27 +0000)] 
Remove duplicate documentation from func_channel.c

(closes issue #18970)
Reported by: IgorG
Patches:
      func_channel.c.doc.diff uploaded by IgorG (license 20)

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

14 years agoUpdate seconds to milliseconds in ast_verb output.
Leif Madsen [Tue, 19 Apr 2011 14:23:39 +0000 (14:23 +0000)] 
Update seconds to milliseconds in ast_verb output.

(closes issue #19084)
Reported by: smurfix
Patches:
      app_dial.patch uploaded by smurfix (license 547)
Tested by: lmadsen, smurfix

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

14 years agoFix a Tab Completion bug that occurs due to multiple matches on a substring.
Jonathan Rose [Fri, 15 Apr 2011 14:58:37 +0000 (14:58 +0000)] 
Fix a Tab Completion bug that occurs due to multiple matches on a substring.

Makes word_match function in cli.c repeat a search for a command string until
a proper match is found or the string is searched to the last point.

(closes issue #17494)
Reported by: ffossard

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

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

14 years agoMerged revisions 313545 via svnmerge from
Richard Mudgett [Wed, 13 Apr 2011 16:29:49 +0000 (16:29 +0000)] 
Merged revisions 313545 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r313545 | rmudgett | 2011-04-13 11:21:24 -0500 (Wed, 13 Apr 2011) | 41 lines

  Asterisk does not hangup a channel after endpoint hangs up.

  If the call that the dialplan started an AGI script for is hungup while
  the AGI script is in the middle of a command then the AGI script is not
  notified of the hangup.  There are many AGI Exec commands that this can
  happen with.  The reported applications have been: Background, Wait, Read,
  and Dial.  Also the AGI Get Data command.

  * Don't wait on the Asterisk channel after it has hung up.  The channel is
  likely to never need servicing again.

  * Restored the AGI script's ability to return the AGI_RESULT_HANGUP value
  in run_agi().  It previously only could return AGI_RESULT_SUCCESS or
  AGI_RESULT_FAILURE after the DeadAGI and AGI applications were merged.

  (closes issue #17954)
  Reported by: mn3250
  Patches:
        issue17954_v1.8.patch uploaded by rmudgett (license 664)
        issue17954_v1.6.2.patch uploaded by rmudgett (license 664)
        issue17954_v1.4.patch uploaded by rmudgett (license 664)
  Tested by: rmudgett
  JIRA SWP-2171

  (closes issue #18492)
  Reported by: devmod
  Tested by: rmudgett
  JIRA SWP-2761

  (closes issue #18935)
  Reported by: nvitaly
  Tested by: astmiv, rmudgett
  JIRA SWP-3216

  (closes issue #17393)
  Reported by: siby
  Tested by: rmudgett
  JIRA SWP-2727

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

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

14 years agofixing stupid mistake with putting code before variable declaration
Jonathan Rose [Tue, 12 Apr 2011 18:44:44 +0000 (18:44 +0000)] 
fixing stupid mistake with putting code before variable declaration
........

  Merged revisions 313433 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2

  ........

    r313432 | jrose | 2011-04-12 13:12:29 -0500 (Tue, 12 Apr 2011) | 14 lines

reload Chan_dahdi memory leak caused by variables

chan_dahdi reloading with variables set via setvar in chan_dahdi.conf would
stay in the dahdi_pvt structs for individual channels (causing them to just
continue adding the new ones to the list) and also there was a memory leak
causes by the conf objects. This patch resolves both of these by using
ast_variables_destroy during the loading process.

(closes issue #17450)
Reported by: nahuelgreco
Patches:
patch.diff uploaded by jrose (license 1225)
Tested by: tilghman, jrose
Review: https://reviewboard.asterisk.org/r/1170/

  ........

........

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

14 years agowhite space change
Jonathan Rose [Tue, 12 Apr 2011 18:19:41 +0000 (18:19 +0000)] 
white space change

........

  reload Chan_dahdi memory leak caused by variables

  chan_dahdi reloading with variables set via setvar in chan_dahdi.conf would
  stay in the dahdi_pvt structs for individual channels (causing them to just
  continue adding the new ones to the list) and also there was a memory leak
  causes by the conf objects. This patch resolves both of these by using
  ast_variables_destroy during the loading process.

  (closes issue #17450)
  Reported by: nahuelgreco

  Patches:
  patch.diff uploaded by jrose (license 1225)
  Tested by: tilghman, jrose

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

........

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

14 years agofixes reload Chan_dahdi memory leak caused by variables
Jonathan Rose [Tue, 12 Apr 2011 18:12:29 +0000 (18:12 +0000)] 
fixes reload Chan_dahdi memory leak caused by variables

chan_dahdi reloading with variables set via setvar in chan_dahdi.conf would
stay in the dahdi_pvt structs for individual channels (causing them to just
continue adding the new ones to the list) and also there was a memory leak
causes by the conf objects. This patch resolves both of these by using
ast_variables_destroy during the loading process.

(closes issue #17450)
Reported by: nahuelgreco
Patches:
patch.diff uploaded by jrose (license 1225)
Tested by: tilghman, jrose

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

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

14 years agoMerged revisions 313277 via svnmerge from
Leif Madsen [Mon, 11 Apr 2011 19:33:03 +0000 (19:33 +0000)] 
Merged revisions 313277 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r313277 | lmadsen | 2011-04-11 14:30:20 -0500 (Mon, 11 Apr 2011) | 6 lines

  Fix detection of OpenSSL 1.0

  (closes issue #19093)
  Reported by: tzafrir
  Patches:
        detect_openssl_10.diff uploaded by tzafrir (license 46)
........

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

14 years agoMerged revisions 313188 via svnmerge from
Richard Mudgett [Mon, 11 Apr 2011 15:32:53 +0000 (15:32 +0000)] 
Merged revisions 313188 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r313188 | rmudgett | 2011-04-11 10:27:52 -0500 (Mon, 11 Apr 2011) | 25 lines

  Stuck channel using FEATD_MF if caller hangs up at the right time.

  The cause was actually a caller hanging up just at the end of the Feature
  Group D DTMF tones that setup the call.  The reason for this is a "guard
  timer" that's implemented using ast_safe_sleep(100).  If the caller
  happens to hang up AFTER the final tone of the DTMF string but BEFORE the
  end of that ast_safe_sleep(), then ast_safe_sleep() will return non-zero.
  This causes the code to bounce to the end of ss_thread(), but it does NOT
  tear down the call properly.

  This should be a rare occurrence because the caller has to hang up at
  EXACTLY the right time.  Nonetheless, it was happening quite regularly on
  the reporter's system.  It's not easily reproducible, unless you purposely
  increase the guard-time to 2000 or more.  Once you do that, you can
  reproduce it every time by watching the DTMF debug and hanging up just as
  it ends.

  Simply add an ast_hangup() before goto quit.

  (closes issue #15671)
  Reported by: jcromes
  Patches:
        issue15671.patch uploaded by pabelanger (license 224)
  Tested by: jcromes
........

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

14 years agoMakes parking lots clear and rebuild properly when features reload is invoked from CLI
Jonathan Rose [Thu, 7 Apr 2011 13:23:01 +0000 (13:23 +0000)] 
Makes parking lots clear and rebuild properly when features reload is invoked from CLI

Before, default parkinglot in context parkedcalls with ext 700 would always be present and when reload was invoked, the previous parkinglots would not be cleared.

(closes issue #18801)
Reported by: mickecarlsson

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

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

14 years agoapp_voicemail: close_mailbox change LOG_WARNING to LOG_NOTICE
Alec L Davis [Thu, 7 Apr 2011 10:26:13 +0000 (10:26 +0000)] 
app_voicemail: close_mailbox change LOG_WARNING to LOG_NOTICE

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

14 years agoMerged revisions 312761 via svnmerge from
Matthew Nicholson [Tue, 5 Apr 2011 14:13:07 +0000 (14:13 +0000)] 
Merged revisions 312761 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r312761 | mnicholson | 2011-04-05 09:10:34 -0500 (Tue, 05 Apr 2011) | 8 lines

  Limit the number of unauthenticated manager sessions and also limit the time they have to authenticate.

  AST-2011-005

  (closes issue #18996)
  Reported by: tzafrir
  Tested by: mnicholson
........

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

14 years agoBackporting trunk change to add verbosity to 'L' option in meetme
Jonathan Rose [Tue, 5 Apr 2011 14:11:36 +0000 (14:11 +0000)] 
Backporting trunk change to add verbosity to 'L' option in meetme

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

14 years agoMerged revisions 312573 via svnmerge from
Richard Mudgett [Mon, 4 Apr 2011 16:00:02 +0000 (16:00 +0000)] 
Merged revisions 312573 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r312573 | rmudgett | 2011-04-04 10:49:30 -0500 (Mon, 04 Apr 2011) | 38 lines

  Issues with ISDN calls changing B channels during call negotiations.

  The handling of the PROCEEDING message was not using the correct call
  structure if the B channel was changed.  (The same for PROGRESS.) The call
  was also not hungup if the new B channel is not provisioned or is busy.

  * Made all call connection messages (SETUP_ACKNOWLEDGE, PROCEEDING,
  PROGRESS, ALERTING, CONNECT, CONNECT_ACKNOWLEDGE) ensure that they are
  using the correct structure and B channel.  If there is any problem with
  the operations then the call is now hungup with an appropriate cause code.

  * Made miscellaneous messages (INFORMATION, FACILITY, NOTIFY) find the
  correct structure by looking for the call and not using the channel ID.
  NOTIFY is an exception with versions of libpri before v1.4.11 because a
  call pointer is not available for Asterisk to use.

  * Made all hangup messages (DISCONNECT, RELEASE, RELEASE_COMPLETE) find
  the correct structure by looking for the call and not using the channel
  ID.

  (closes issue #18313)
  Reported by: destiny6628
  Tested by: rmudgett
  JIRA SWP-2620

  (closes issue #18231)
  Reported by: destiny6628
  Tested by: rmudgett
  JIRA SWP-2924

  (closes issue #18488)
  Reported by: jpokorny
  JIRA SWP-2929

  JIRA AST-437 (The issues fixed here are most likely causing this JIRA issue.)
  JIRA DAHDI-406
  JIRA LIBPRI-33 (Stuck resetting flag likely fixed)
........

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

14 years agoMerged revisions 312285 via svnmerge from
Tilghman Lesher [Fri, 1 Apr 2011 10:51:24 +0000 (10:51 +0000)] 
Merged revisions 312285 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r312285 | tilghman | 2011-04-01 05:36:42 -0500 (Fri, 01 Apr 2011) | 7 lines

  Found some leaking file descriptors while looking at ast_FD_SETSIZE dead code.

  (issue #18969)
   Reported by: oej
   Patches:
         20110315__issue18969__14.diff.txt uploaded by tilghman (license 14)
........

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

14 years agofix up bad merge46 extra 2 yuck: labels
Alec L Davis [Fri, 1 Apr 2011 09:16:26 +0000 (09:16 +0000)] 
fix up bad merge46 extra 2 yuck: labels

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

14 years agoMerged revisions 312174 via svnmerge from
Alec L Davis [Fri, 1 Apr 2011 08:47:29 +0000 (08:47 +0000)] 
Merged revisions 312174 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r312174 | alecdavis | 2011-04-01 21:29:49 +1300 (Fri, 01 Apr 2011) | 23 lines

  voicemail: get real last_message_index and count_messages, ODBC resequence

  change last_message_index to read the max msgnum stored in the database
  change count_messages to actually count the number of messages.

  last_message_index change:
    This fixed overwriting of the last message if msgnum=0 was missing.
    Previously every incoming message would overwrite msgnum=1.
  count_messages change:
    allows us to detect when requencing is required in opneA_mailbox.
  resequence enabled for ODBC storage:
    Assists with fixing up corrupt databases with gaps, but only when
    a user actively opens there mailboxes.

  (closes issue #18692,#18582,#19032)
  Reported by: elguero
  Patches:
        based on odbc_resequence_mailbox2.1.diff uploaded by elguero (license 37)
  Tested by: elguero, nivek, alecdavis

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

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

14 years agoMerged revisions 312070 via svnmerge from
Alec L Davis [Fri, 1 Apr 2011 07:25:54 +0000 (07:25 +0000)] 
Merged revisions 312070 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r312070 | alecdavis | 2011-04-01 19:46:56 +1300 (Fri, 01 Apr 2011) | 16 lines

  app_voicemail: close_mailbox needs to respect additional messages while mailbox is open.

  close_mailbox leave gaps in message sequence if messages are deleted and new messages
  arrive during this time, this is because the shuffle down to slot 0, only shuffles
  the number of pre-existing messages when mailbox is opened, ignoring new arrivals.

  Fix: in close_mailbox re-evaluate number of messages before the shuffle, this then includes new arrivals.

  Happens on filebased or ODBC storage.

  (issues #19032,#18582,#18692,#18998)
  Reported by: alecdavis,tootai,afosorio

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

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

14 years agoWhen comebacktoorigin=no, Asterisk no longer tries to dial extension <Originating...
Jonathan Rose [Tue, 29 Mar 2011 13:17:01 +0000 (13:17 +0000)] 
When comebacktoorigin=no, Asterisk no longer tries to dial extension <Originating Channe>@parkedcalltimeout and instead dials s without going through fallback.

(closes issue #18650)
Reported by: davidw
Patches:
      patch.diff uploaded by jrose (license 1225)

https://reviewboard.asterisk.org/r/1150/

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

14 years agoFixes memory leak in MeetMe AMI action
David Vossel [Tue, 22 Mar 2011 15:24:45 +0000 (15:24 +0000)] 
Fixes memory leak in MeetMe AMI action

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

14 years agoBlocked revisions 311201 via svnmerge
Matthew Nicholson [Mon, 21 Mar 2011 20:57:00 +0000 (20:57 +0000)] 
Blocked revisions 311201 via svnmerge

........
  r311201 | mnicholson | 2011-03-17 14:09:37 -0500 (Thu, 17 Mar 2011) | 4 lines

  Don't dec the usecount of an eventqent then use it.

  ABE-2756
........

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

14 years agoBlocked revisions 311199 via svnmerge
Matthew Nicholson [Mon, 21 Mar 2011 20:54:09 +0000 (20:54 +0000)] 
Blocked revisions 311199 via svnmerge

........
  r311199 | mnicholson | 2011-03-17 14:06:24 -0500 (Thu, 17 Mar 2011) | 4 lines

  Remove the provisional keepalive scheduler entry's reference to the pvt when we remove the scheduler entry.

  ABE-2756
........

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

14 years agoDon't write items to the manager socket twice.
Matthew Nicholson [Thu, 17 Mar 2011 14:58:52 +0000 (14:58 +0000)] 
Don't write items to the manager socket twice.

AST-2011-003

(closes issue 0018987)
Reported by: ks-steven

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

14 years agoMerged revisions 311048 via svnmerge from
Alec L Davis [Thu, 17 Mar 2011 10:45:47 +0000 (10:45 +0000)] 
Merged revisions 311048 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r311048 | alecdavis | 2011-03-17 23:43:35 +1300 (Thu, 17 Mar 2011) | 12 lines

  Remove extra quote in indications.conf

  Picking low hanging fruit.

  (closes issue #18971)
  Reported by: IgorG
  Patches:
        based on indications.conf.sample.diff uploaded by IgorG (license 20)
  Tested by: IgorG
........

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

14 years agoFix crash on fdopen failure
Terry Wilson [Wed, 16 Mar 2011 19:46:36 +0000 (19:46 +0000)] 
Fix crash on fdopen failure

See security advisory AST-2011-004

(closes issue #18845)
Reported by: cmaj
Patches:
    patch-main-tcptls-1.8.3-rc2-open-session-crash-take2.diff.txt uploaded by cmaj (license 830)
    patch-main-tcptls-1.8.3-rc2-open-session-crash-take3.diff.txt uploaded by cmaj (license 830)
Tested by: cmaj, twilson

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

14 years agoRevert patch with accidental reversion of a previous patch
Terry Wilson [Wed, 16 Mar 2011 19:45:10 +0000 (19:45 +0000)] 
Revert patch with accidental reversion of a previous patch

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

14 years agoFix crash on fdopen failure
Terry Wilson [Wed, 16 Mar 2011 19:37:54 +0000 (19:37 +0000)] 
Fix crash on fdopen failure

See security advisory AST-2011-004

(closes issue #18845)
Reported by: cmaj
Patches:
     patch-main-tcptls-1.8.3-rc2-open-session-crash-take2.diff.txt uploaded by cmaj (license 830)
     patch-main-tcptls-1.8.3-rc2-open-session-crash-take3.diff.txt uploaded by cmaj (license 830)
Tested by: cmaj, twilson

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

14 years agoDon't keep trying to write to a closed connection
Terry Wilson [Wed, 16 Mar 2011 19:23:03 +0000 (19:23 +0000)] 
Don't keep trying to write to a closed connection

See security advisory AST-2011-003.

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

14 years agoMerged revisions 310888 via svnmerge from
Terry Wilson [Wed, 16 Mar 2011 17:03:27 +0000 (17:03 +0000)] 
Merged revisions 310888 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r310888 | twilson | 2011-03-16 11:58:42 -0500 (Wed, 16 Mar 2011) | 29 lines

  Don't delay DTMF in core bridge while listening for DTMF features

  This patch is mostly the work of Olle Johansson. I did some cleanup and
  added the silence generating code if transmit_silence is set.

  When a channel listens for DTMF in the core bridge, the outbound DTMF is not
  sent until we have received DTMF_END. For a long DTMF, this is a disaster. We
  send 4 seconds of DTMF to Asterisk, which sends no audio for those 4 seconds.
  Some products see this delay and the time skew on RTP packets that results and
  start ignoring the audio that is sent afterward.

  With this change, the DTMF_BEGIN frame is inspected and checked. If it matches
  a feature code, we wait for DTMF_END and activate the feature as before. If
  transmit_silence=yes in asterisk.conf, silence is sent if we paritally match a
  multi-digit feature. If it doesn't match a feature, the frame is forwarded
  along with the DTMF_END without delay. By doing it this way, DTMF is not delayed.

  (closes issue #15642)
  Reported by: jasonshugart
  Patches:
        issue_15652_dtmf_ast-1.4.patch.txt uploaded by twilson (license 396)
  Tested by: globalnetinc, jde

  (closes issue #16625)
  Reported by: sharvanek

  Review: https://reviewboard.asterisk.org/r/1092/
  Review: https://reviewboard.asterisk.org/r/1125/
........

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

14 years agoMerged revisions 310779 via svnmerge from
Alec L Davis [Tue, 15 Mar 2011 00:31:56 +0000 (00:31 +0000)] 
Merged revisions 310779 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r310779 | alecdavis | 2011-03-15 13:26:09 +1300 (Tue, 15 Mar 2011) | 10 lines

  core show locks: display ThreadID in hexadecimal

  Allow easier cross referencing of thread ID's with GDB backtraces

  (closes issue #18968)
  Reported by: alecdavis
  Patches:
        bug18968.diff.txt uploaded by alecdavis (license 585)
........

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

14 years agoMerged revisions 310633 via svnmerge from
Richard Mudgett [Mon, 14 Mar 2011 16:47:54 +0000 (16:47 +0000)] 
Merged revisions 310633 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r310633 | rmudgett | 2011-03-14 11:38:24 -0500 (Mon, 14 Mar 2011) | 25 lines

  "Caller*ID failed checksum" on Wildcard TDM2400P and TDM410

  The last character in the caller id message is getting a framing error.

  The checksum is the last character in the message.  A framing error in the
  checksum could be because:
  1) The sender did not send a full stop bit.
  2) The sender cut off the FSK carrier too soon.
  3) The sender opted to send zero of the specified zero to 10 trailing mark
  bits and round-off errors in the code resulted in the code not being where
  it thought it was in the demodulated bit stream.

  Bit 8 of 'b' is set when parity error.
  Bit 9 of 'b' is set when framing error.

  Made ignore the framing and parity error bits if the errored character is
  the checksum.  We can tolerate a framing/parity error there.  The checksum
  character validates the message.

  (closes issue #18474)
  Reported by: nivek
  Patches:
        callerid.c.1.patch uploaded by nivek (license 636) (with modifications)
  Tested by: nivek
........

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

14 years agoAdds 'p' as an option to func_volume. When it is on, the old behavior with DTMF...
Jonathan Rose [Mon, 14 Mar 2011 13:56:22 +0000 (13:56 +0000)] 
Adds 'p' as an option to func_volume.  When it is on, the old behavior with DTMF controlling volume adjustment will be enforced.
When it is off, DTMF will not be processed by the function.

Programmed by Jonathan Rose
Reviewed by David Vossel, Leif Madsen, and Russell Bryant

http://reviewboard.digium.internal/r/93/

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

14 years agoRecorded merge of revisions 310435 via svnmerge from
Tilghman Lesher [Sat, 12 Mar 2011 20:24:54 +0000 (20:24 +0000)] 
Recorded merge of revisions 310435 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r310435 | tilghman | 2011-03-12 14:22:07 -0600 (Sat, 12 Mar 2011) | 31 lines

  Add AELSub, which provides a stable entry point into AEL subroutines.

  This commit needs some explanation, given that we're adding a new application
  into an existing release branch.  This is generally a violation of our release
  policy, except in very limited circumstances, and I believe this is one of
  those circumstances.

  The problem that this solves is one of the sanity of using multiple dialplan
  languages to define a dialplan.  In the case of the reporter, he or she is
  using AEL is define subroutines, while using Realtime extensions to invoke
  those subroutines.  While you can do this, it's based upon the reality of AEL
  using actual dialplan extensions; however, there is no guarantee that the
  details of _how_ AEL is compiled into extensions will remain stable.  In fact,
  at the time of this commit, it has already changed twice, once in a
  fundamental way.

  Now normally, a new application would only be added to trunk.  However, this
  application is explicitly to create a stable user-level API between versions,
  and adding it to trunk only will not solve the user's problem of switching
  between 1.6.2 and 1.8, nor will it help anybody switching from 1.8 to 1.10.
  Therefore, it needs to go into existing release branches.  For the sake of
  consistency, and also because one of the changes was between 1.4 and 1.6.x,
  I am also electing to commit this to 1.4.

  (closes issue #18910)
   Reported by: alexandrekeller
   Patches:
         20110304__issue18919__1.6.2.diff.txt uploaded by tilghman (license 14)
         20110304__issue18919__1.4.diff.txt uploaded by tilghman (license 14)
   Tested by: alexandrekeller
........

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

14 years agoTransactional handles should be used for the insertbuf, if available.
Tilghman Lesher [Sat, 12 Mar 2011 19:51:23 +0000 (19:51 +0000)] 
Transactional handles should be used for the insertbuf, if available.

Also, fix a possible resource leak.

(closes issue #18943)
 Reported by: irroot

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

14 years agoMerged revisions 310140 via svnmerge from
Tilghman Lesher [Thu, 10 Mar 2011 05:51:37 +0000 (05:51 +0000)] 
Merged revisions 310140 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r310140 | tilghman | 2011-03-09 23:38:44 -0600 (Wed, 09 Mar 2011) | 5 lines

  Initialize column size to 0 to deal with a potential UnixODBC bug on 64-bit systems.

  (closes issue #18295)
   Reported by: pruiz
........

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

14 years agoMerged revisions 309856 via svnmerge from
Jonathan Rose [Mon, 7 Mar 2011 22:04:44 +0000 (22:04 +0000)] 
Merged revisions 309856 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r309856 | jrose | 2011-03-07 16:02:12 -0600 (Mon, 07 Mar 2011) | 8 lines

  Bug fix for MixMonitor involving filenames with '.' not in the extension

  Closes issue #18391)
  Reported by: pabelanger
  Patches:
        bugfix.patch uploaded by jrose (license 1225)
  Tested by: jrose
........

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

14 years agoMissed part of the conversion when we started passing ppid to astcanary.
Tilghman Lesher [Sat, 5 Mar 2011 10:28:24 +0000 (10:28 +0000)] 
Missed part of the conversion when we started passing ppid to astcanary.

(closes issue #18850)
 Reported by: viraptor
 Patches:
       canary_ppid.patch uploaded by viraptor (license 543)

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

14 years agoRestore mysterious lua_pushvalue() call removed in r309494. The mystery has been...
Matthew Nicholson [Fri, 4 Mar 2011 19:37:13 +0000 (19:37 +0000)] 
Restore mysterious lua_pushvalue() call removed in r309494.  The mystery has been solved.

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

14 years agoCheck for errors from fseek() when loading config file, properly abort on errors...
Matthew Nicholson [Fri, 4 Mar 2011 18:59:20 +0000 (18:59 +0000)] 
Check for errors from fseek() when loading config file, properly abort on errors from fread(), and supply a traceback for errors generated when loading the config file.

Also, prepend a newline to traceback output so that the main error message is on it's own line.

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

14 years agoremove mysterious lua_pushvalue() that is never used
Matthew Nicholson [Fri, 4 Mar 2011 17:55:57 +0000 (17:55 +0000)] 
remove mysterious lua_pushvalue() that is never used

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

14 years agoMerged revisions 309355 via svnmerge from
David Ruggles [Fri, 4 Mar 2011 00:42:28 +0000 (00:42 +0000)] 
Merged revisions 309355 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r309355 | diruggles | 2011-03-03 19:34:13 -0500 (Thu, 03 Mar 2011) | 9 lines

  fix small memory leak

  fix small memory leak caused by a string allocation that wasn't freed

  (closes issue #18907)
  Reported by: andy11
  Patches:
        asterisk_trunk-app_externalivr-leak.patch uploaded by andy11 (license 1224)
........

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

14 years agoUpdate PickupChan documentation.
Leif Madsen [Thu, 3 Mar 2011 20:13:11 +0000 (20:13 +0000)] 
Update PickupChan documentation.
The PickupChan uses the ampersand as the argument separator.
(closes issue #18905)
Reported by: vmikhnevych
Tested by: vmikhnevych

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

14 years agoFix usage of "hasvoicemail=yes" and "mailbox=" in users.conf for SIP.
Jason Parker [Wed, 2 Mar 2011 19:53:47 +0000 (19:53 +0000)] 
Fix usage of "hasvoicemail=yes" and "mailbox=" in users.conf for SIP.

Since it's a duplicate, nothing is going to be done, so delme doesn't need to
be set at all.  Strangely, when this was added, this was being set to 1 in 1.6,
and 0 in trunk.

(issue AST-439)

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

14 years agoRevert previous 2 commits, and instead conditionally redefine the same macro used...
Tilghman Lesher [Wed, 2 Mar 2011 01:06:02 +0000 (01:06 +0000)] 
Revert previous 2 commits, and instead conditionally redefine the same macro used in flex 2.5.35 that clashed with our workaround.

Not surprisingly, the workaround was exactly the same code as was provided by
the Flex maintainers, albeit in two different places, in different macros.

This should fix the FreeBSD builds, which have an older version of Flex.

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

14 years agoFixes thread blocking issue in the sip TCP/TLS implementation.
David Vossel [Tue, 1 Mar 2011 16:05:25 +0000 (16:05 +0000)] 
Fixes thread blocking issue in the sip TCP/TLS implementation.

(closes issue #18497)
Reported by: vois
Patches:
      issues_18497.diff uploaded by dvossel (license 671)
Tested by: vois, rossbeer, kowalma, Freddi_Fonet

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

14 years agoClarify meaning, removing double negative (stupid!)
Tilghman Lesher [Mon, 28 Feb 2011 11:07:52 +0000 (11:07 +0000)] 
Clarify meaning, removing double negative (stupid!)

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

14 years agoA later version of flex already includes the fwrite workaround code, which if used...
Tilghman Lesher [Mon, 28 Feb 2011 10:43:12 +0000 (10:43 +0000)] 
A later version of flex already includes the fwrite workaround code, which if used twice causes a compilation error.

Detect whether Flex will compile without the workaround; if so, suppress our workaround code.

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