Commit Graph

16655 Commits

Author SHA1 Message Date
Tilghman Lesher
3d71c38287 Merged revisions 173311 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r173311 | tilghman | 2009-02-03 18:43:52 -0600 (Tue, 03 Feb 2009) | 10 lines
  
  Ensure that commas placed in the middle of extension character classes do not
  interfere with correct parsing of the extension.  Also, if an unterminated
  character class DOES make its way into the pbx core (through some other
  method), ensure that it does not crash Asterisk.
  (closes issue #14362)
   Reported by: Nick_Lewis
   Patches: 
         20090129__bug14362.diff.txt uploaded by Corydon76 (license 14)
   Tested by: Corydon76
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@173312 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-04 00:45:32 +00:00
David Vossel
1c73c18e80 Fixes issue with IAX2 transfer not handing of calls.
Fixes issue with IAX2 transfers not taking place.  As it was, a call that was being transfered would never be handed off correctly to the call ends because of how call numbers were stored in a hash table.  The hash table, "iax_peercallno_pvt", storing all the current call numbers did not take into account the complications associated with transferring a call, so a separate hash table was required.  This second hash table "iax_transfercallno_pvt" handles calls being transfered, once the call transfer is complete the call is removed from the transfer hash table and added to the peer hash table resuming normal operations. Addition functions were created to handle storing, removing, and comparing items in the iax_transfercallno_pvt table. 

(issue #13468)
Review: http://reviewboard.digium.com/r/140/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@173250 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-03 23:41:28 +00:00
Tilghman Lesher
0d05f4cd3b Merged revisions 173104 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r173104 | tilghman | 2009-02-02 18:24:52 -0600 (Mon, 02 Feb 2009) | 12 lines
  
  Merged revisions 173070 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r173070 | tilghman | 2009-02-02 18:15:59 -0600 (Mon, 02 Feb 2009) | 5 lines
    
    Add warning to standard config, that globals may be overridden by other
    dialplan configuration files.
    (closes issue #14388)
     Reported by: macli
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@173111 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-03 00:26:08 +00:00
Terry Wilson
6aa5e4f230 Merged revisions 173067 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r173067 | twilson | 2009-02-02 17:57:25 -0600 (Mon, 02 Feb 2009) | 9 lines
  
  Merged revisions 173066 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r173066 | twilson | 2009-02-02 17:48:06 -0600 (Mon, 02 Feb 2009) | 2 lines
    
    Fix a feature inheritance bug I added after code review
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@173068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-02 23:59:46 +00:00
Leif Madsen
b7734870fc Merged revisions 172894 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r172894 | lmadsen | 2009-02-02 13:13:40 -0500 (Mon, 02 Feb 2009) | 7 lines
  
  Update the res_ldap.conf file with a better working example.
  
  (closes issue #13861)
  Reported by: scramatte
  Patches:
        __20080110-res_ldap.conf-2.patch uploaded by blitzrage (license 10)
  Tested by: jcovert
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-02 18:15:51 +00:00
Steve Murphy
20c1047c23 Blocked revisions 172890 via svnmerge
........
  r172890 | murf | 2009-02-02 10:37:15 -0700 (Mon, 02 Feb 2009) | 41 lines
  
  This change allows the disconnect feature (as in "one-touch" in features.c)
  to be used within the dial app, before a call is bridged.
  
  Many thanks to sobomax for submitting this patch. 
  
  Quoting from bug 11582:
  
    "So the goal of the patch was to use the user configured feature code during the 
     call setup phase. The original ast_feature_interpret() function is not well suited 
     for this purpose as it uses much call bridge specific data and doesn't separate a 
     detection of feature from a feature handler call. So a new function ast_feature_detect() 
     has been extracted off the ast_feature_interpret() function but keeping the original 
     logic intact except some insignificant changes to locking.
  
    "Having created the ast_feature_detect() function the possibility to use feature detection 
     in almost any place of the asterisk code. So a call to this function has been added to 
     wait_for_answer() function of app_dial.so module. This code doesn't call the feature handler 
     however and uses old call leg disconnect logic to make the changes as small and simple as 
     possible to prevent unexpected problems. A disconnect feature currently is the only one 
     supported during call setup as other features as call parking and call transfer don't make much 
     sense during call setup. However if need in some of the features would arise it is much easier to 
     implement as the infrastructure changes are already in place with this patch."
  
  I have cleaned up the patch somewhat, and verified that the existing functionality is not
  harmed, and that the new functionality works. Terry has committed his stuff, and there were
  no conflicts (see 14274).
  
  (closes issue #11583)
  Reported by: sobomax
  Patches:
        patch-apps__app_dial.c uploaded by sobomax (license 359)
        patch-include__asterisk__features.h uploaded by sobomax (license 359)
        patch-res__res_features.c uploaded by sobomax (license 359)
        enable-features-during-call-setup.diff uploaded by sobomax (license 359)
        11583.newdiff uploaded by murf (license 17)
        enable-features-during-call-setup-1.diff uploaded by sobomax (license 359)
        11583.latest-patch uploaded by murf (license 17)
  Tested by: sobomax, murf
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-02 17:40:02 +00:00
Tilghman Lesher
66d4b791c8 Merged revisions 172741 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r172741 | tilghman | 2009-01-31 20:44:23 -0600 (Sat, 31 Jan 2009) | 4 lines
  
  Blank argument crashes Asterisk
  (closes issue #14377)
   Reported by: amorsen
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-01 02:45:05 +00:00
Tilghman Lesher
54068a791e Merged revisions 172706 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r172706 | tilghman | 2009-01-31 10:40:59 -0600 (Sat, 31 Jan 2009) | 7 lines
  
  Don't increment the loop, now that incrementing is taken care of by the
  decoder function.
  (closes issue #14363)
   Reported by: andrew53
   Patches: 
         func_strings_filter.patch uploaded by andrew53 (license 519)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-31 16:41:48 +00:00
Terry Wilson
fc3b4491f6 Merged revisions 172581 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r172581 | twilson | 2009-01-30 15:50:03 -0600 (Fri, 30 Jan 2009) | 2 lines
  
  Remove incorret line from sample config
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-31 00:06:27 +00:00
Terry Wilson
af2b34cb56 Merged revisions 172580 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r172580 | twilson | 2009-01-30 15:29:12 -0600 (Fri, 30 Jan 2009) | 44 lines
  
  Merged revisions 172517 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r172517 | twilson | 2009-01-30 11:47:41 -0600 (Fri, 30 Jan 2009) | 37 lines
    
    Fix feature inheritance with builtin features
    
    When using builtin features like parking and transfers, the AST_FEATURE_* flags
    would not be set correctly for all instances when either performing a builtin
    attended transfer, or parking a call and getting the timeout callback.  Also,
    there was no way on a per-call basis to specify what features someone should
    have on picking up a parked call (since that doesn't involve the Dial() command).
    There was a global option for setting whether or not all users who pickup a
    parked call should have AST_FEATURE_REDIRECT set, but nothing for DISCONNECT,
    AUTOMON, or PARKCALL.
    
    This patch:
    1) adds the BRIDGE_FEATURES dialplan variable which can be set either in the
    dialplan or with setvar in channels that support it.  This variable can be set
    to any combination of 't', 'k', 'w', and 'h' (case insensitive matching of the
    equivalent dial options), to set what features should be activated on this
    channel.  The patch moves the setting of the features datastores into the
    bridging code instead of app_dial to help facilitate this.
    
    2) adds global options parkedcallparking, parkedcallhangup, and
    parkedcallrecording to be similar to the parkedcalltransfers option for
    globally setting features.
    
    3) has builtin_atxfer call builtin_parkcall if being transfered to the parking
    extension since tracking everything through multiple masquerades, etc. is
    difficult and error-prone
    
    4) attempts to fix all cases of return calls from parking and completed builtin
    transfers not having the correct permissions
    (closes issue #14274)
    Reported by: aragon
    Patches: 
          fix_feature_inheritence.diff.txt uploaded by otherwiseguy (license 396)
    Tested by: aragon, otherwiseguy
    
    Review http://reviewboard.digium.com/r/138/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-30 23:58:31 +00:00
Mark Michelson
07adec4209 Merged revisions 172598 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r172598 | mmichelson | 2009-01-30 16:22:04 -0600 (Fri, 30 Jan 2009) | 3 lines

Fix redefinition of flag in channel.h


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-30 22:23:11 +00:00
Tilghman Lesher
407d3d8861 Merged revisions 172441 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r172441 | tilghman | 2009-01-29 17:15:40 -0600 (Thu, 29 Jan 2009) | 16 lines
  
  Merged revisions 172438 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r172438 | tilghman | 2009-01-29 16:54:29 -0600 (Thu, 29 Jan 2009) | 9 lines
    
    Lose the CAP_NET_ADMIN at every fork, instead of at startup.  Otherwise, if
    Asterisk runs as a non-root user and the administrator does a 'restart now',
    Asterisk loses the ability to set QOS on packets.
    (closes issue #14004)
     Reported by: nemo
     Patches: 
           20090105__bug14004.diff.txt uploaded by Corydon76 (license 14)
     Tested by: Corydon76
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-29 23:47:00 +00:00
Richard Mudgett
12782036b0 Merged revisions 172400 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r172400 | rmudgett | 2009-01-29 14:38:34 -0600 (Thu, 29 Jan 2009) | 12 lines
  
  channels/chan_dahdi.c
  *  Added doxygen comments to the major dahdi structures.
  *  Fixed PRI and SS7 using an incorrect string value if the extension
  delimiter is not present in the Dial() function.
  *  Fixed SS7 not checking if the dialed extension is at least as long
  as the stripmsd option.
  *  Fixed PRI not handling unknown TON/NPI prefix letters correctly.
  *  Fixed some uninitialized string variables on FXS ports.
  
  configs/chan_dahdi.conf.sample
  *  Updated some documentation.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-29 21:35:18 +00:00
Tilghman Lesher
4b4f6c1497 Merged revisions 172315 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r172315 | tilghman | 2009-01-29 10:48:25 -0600 (Thu, 29 Jan 2009) | 2 lines
  
  Better document mode=multirow, based upon a conversation with Jared.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-29 16:49:27 +00:00
Leif Madsen
148390c562 Merged revisions 172271 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r172271 | lmadsen | 2009-01-29 08:47:27 -0500 (Thu, 29 Jan 2009) | 5 lines
  
  The realtime_pgsql.sql script is missing a couple of fields.
  closes issue #14339)
  Reported by: fiddur
  Patches:
        realtime_pgsql.sql.diff uploaded by fiddur (license 678)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-29 13:51:48 +00:00
Olle Johansson
3873563d82 Merged revisions 172173 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r172173 | oej | 2009-01-29 10:18:01 +0100 (Tor, 29 Jan 2009) | 24 lines

Merged revisions 172169 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r172169 | oej | 2009-01-29 09:48:18 +0100 (Tor, 29 Jan 2009) | 16 lines

Make sure that we always add the hangupcause headers. In some cases, the owner was disconnected before we checked for the cause.
This patch implements a temporary storage in the pvt and use that instead.

The code is based on ideas from code from Adomjan in issue #13385 (Add support for Reason: header)
Thanks to Klaus Darillion for testing!

(closes issue #14294)
related to issue #13385

Reported by: klaus3000 and adomjan
Patches: 
      bug14294b.diff uploaded by oej (license 306)
      Based on 20080829_chan_sip.c-q850reason_header.patch uploaded by adomjan (license 487)
Tested by: oej, klaus3000


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-29 09:56:53 +00:00
Steve Murphy
491c4a9c68 Merged revisions 172063 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r172063 | murf | 2009-01-28 13:31:06 -0700 (Wed, 28 Jan 2009) | 52 lines
  
  Merged revisions 172030 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r172030 | murf | 2009-01-28 11:51:16 -0700 (Wed, 28 Jan 2009) | 46 lines
    
    This patch fixes h-exten running misbehavior in manager-redirected 
    situations.
    
    What it does:
    1. A new Flag value is defined in include/asterisk/channel.h,
     AST_FLAG_BRIDGE_HANGUP_DONT, which used as a messenge to the
     bridge hangup exten code not to run the h-exten there (nor
     publish the bridge cdr there). It will done at the pbx-loop
     level instead.
    2. In the manager Redirect code, I set this flag on the channel
     if the channel has a non-null pbx pointer. I did the same for the
     second (chan2) channel, which gets run if name2 is set...
     and the first succeeds.
    3. I restored the ending of the cdr for the pbx loop h-exten
     running code. Don't know why it was removed in the first place.
    4. The first attempt at the fix for this bug was to place code
       directly in the async_goto routine, which was called from a
       large number of places, and could affect a large number of
       cases, so I tested that fix against a fair number of transfer
       scenarios, both with and without the patch. In the process,
       I saw that putting the fix in async_goto seemed not to affect
       any of the blind or attended scenarios, but still, I was
       was highly concerned that some other scenarios I had not tested
       might be negatively impacted, so I refined the patch to 
       its current scope, and jmls tested both. In the process, tho,
       I saw that blind xfers in one situation, when the one-touch
       blind-xfer feature is used by the peer, we got strange 
       h-exten behavior.  So, I  inserted code to swap CDRs and
       to set the HANGUP_DONT field, to get uniform behavior.
    5. I added code to the bridge to obey the HANGUP_DONT flag,
       skipping both publishing the bridge CDR, and running
       the h-exten; they will be done at the pbx-loop (higher)
       level instead.
    6. I removed all the debug logs from the patch before committing.
    7. I moved the AUTOLOOP set/reset in the h-exten code in res_features
       so it's only done if the h-exten is going to be run. A very
       minor performance improvement, but technically correct.
    
    
    (closes issue #14241)
    Reported by: jmls
    Patches:
          14241_redirect_no_bridgeCDR_or_h_exten_via_transfer uploaded by murf (license 17)
    Tested by: murf, jmls
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@172065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-28 20:41:45 +00:00
Tilghman Lesher
86a664056f Merged revisions 171964 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r171964 | tilghman | 2009-01-28 11:27:40 -0600 (Wed, 28 Jan 2009) | 9 lines
  
  Merged revisions 171963 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r171963 | tilghman | 2009-01-28 11:25:18 -0600 (Wed, 28 Jan 2009) | 2 lines
    
    Clarify log message (suggested by manxpower on #asterisk-dev)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171965 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-28 17:28:37 +00:00
Olle Johansson
d5948d6eda Merged revisions 171838 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r171838 | oej | 2009-01-28 14:11:44 +0100 (Ons, 28 Jan 2009) | 10 lines

Merged revisions 171837 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r171837 | oej | 2009-01-28 14:07:27 +0100 (Ons, 28 Jan 2009) | 2 lines

Add a better explanation of the difference between the device namespace and the dialplan for newbies.

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-28 13:18:54 +00:00
David Vossel
2204a467be Blocked revisions 171757 via svnmerge
........
  r171757 | dvossel | 2009-01-27 16:43:36 -0600 (Tue, 27 Jan 2009) | 7 lines
  
  Adding AES_ENCRYPT and AES_DECRYPT dialplan functions.  
  
  (closes issue #14301)
  Reported by: amorsen
  
  review: http://reviewboard.digium.com/r/128/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-27 22:48:48 +00:00
Mark Michelson
ac8fa4c2c3 Merged revisions 171691 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r171691 | mmichelson | 2009-01-27 15:58:39 -0600 (Tue, 27 Jan 2009) | 47 lines

Merged revisions 171689 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r171689 | mmichelson | 2009-01-27 15:55:08 -0600 (Tue, 27 Jan 2009) | 39 lines

Fix devicestate problems for "always-on" agent channels

A revision to chan_agent attempted to "inherit" the device
state of the underlying channel in order to report the
device state of an agent channel more accurately.

The problem with the logic here is that it makes no sense to
use this for always-on agents. If the agent is logged in, then
to the underlying channel, the agent will always appear to be
"in use," no matter if the agent is on a call or not. The reason
is that to the underlying channel, the channel is currently in use
on a call to the AgentLogin application.

The most common cause that I found for this issue to occur was for
a SIP channel to be the underlying channel type for an Agent channel.
If the SIP phone re-registers, then the registration will cause the
device state core to query the device state of the SIP channel. Since the
SIP channel is in use, the Agent channel would also inherit this status.
Once the agent channel was set to "in use" there was no way that the device
state could change on that channel unless the agent logged out.

The solution for this problem is a bit different in 1.4 than it is in the
other branches. In 1.4, there will be a one-line fix to make sure that only
callback agents will inherit device state from their underlying channel type.
For the other branches of Asterisk, since callback support has been removed, there
is also no need for device state inheritance in chan_agent, so I will simply be
removing it from the code.

In addition, the 1.4 source is getting a new comment to help the next person who
edits chan_agent.c. I'm adding a comment that a agent_pvt's loginchan field may be
used to determine if the agent is a callback agent or not.

(closes issue #14173)
Reported by: nathan
Patches:
      14173.patch uploaded by putnopvut (license 60)
Tested by: nathan, aramirez


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-27 22:00:44 +00:00
Mark Michelson
0a9595289a Merged revisions 171622 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r171622 | mmichelson | 2009-01-27 14:11:30 -0600 (Tue, 27 Jan 2009) | 26 lines

Merged revisions 171621 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r171621 | mmichelson | 2009-01-27 14:06:01 -0600 (Tue, 27 Jan 2009) | 18 lines

Prevent a crash from occurring when a jitter buffer interpolated frame is
removed from a slinfactory

slinfactory used the "samples" field of an ast_frame in order to determine
the amount of data contained within the frame. In certain cases, such as
jitter buffer interpolated frames, the frame would have a non-zero value for
"samples" but have NULL "data"

This caused a problem when a memcpy call in ast_slinfactory_read would attempt
to access invalid memory. The solution in use here is to never feed frames into
the slinfactory if they have NULL "data"

(closes issue #13116)
Reported by: aragon
Patches:
      13116.diff uploaded by putnopvut (license 60)


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-27 20:13:17 +00:00
Mark Michelson
344dfe6f84 Merged revisions 171618 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r171618 | mmichelson | 2009-01-27 13:30:54 -0600 (Tue, 27 Jan 2009) | 24 lines

Fix queue crashes that would occur after the calling channel was masqueraded.

The data passed to the end_bridge_callback was assumed to be data which was
still stack'd. The problem was that with some call features, attended transfers
in particular, a new bridge thread is started once the feature completes, meaning
that when the end_bridge_callback is called, the end_bridge_callback_data was
invalid.

To fix this problem, there are two measures taken

1. Instead of pointing to stacked data, we now used heap-allocated data for
passing to the end_bridge_callback in app_queue
2. Since bridges can end multiple times on a single logical call, we wait until
the final bridge is broken to actually set any queue variables. This is accomplished
through reference-counting and the use of an end_bridge_callback_data_fixup function
in app_queue.c

(closes issue #14260)
Reported by: ccesario
Patches:
      14260.patch uploaded by putnopvut (license 60)
Tested by: ccesario


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-27 19:38:27 +00:00
Matthew Fredrickson
d970de93a6 Revert some changes that shouldn't have made it in
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-27 16:15:40 +00:00
Matthew Fredrickson
38c977d6d0 Make sure we do not go into alarm on PTMP links with non persistent D-channels
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-27 16:14:08 +00:00
Olle Johansson
a43c0e9ad7 Merged revisions 171528 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r171528 | oej | 2009-01-27 16:00:19 +0100 (Tis, 27 Jan 2009) | 23 lines

Solving the same issue, but a bit different in trunk...

Merged revisions 171527 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r171527 | oej | 2009-01-27 15:33:20 +0100 (Tis, 27 Jan 2009) | 13 lines

Use the same branch tag in CANCEL as in INVITE

Originally putnopvut implemented some changes in revision 142079 that according to the bug report seemed to have worked then, but somehow fails now.
I guess code, as humans, get old and forget stuff. Anyway, this bug caused CANCEL not to work with picky systems. 

Thanks Fredrik for pointing out where the bug in the SIP messaging was.

(closes issue #14346)
Reported by: oej
Patches: 
      bug14346.diff uploaded by oej (license 306)
Tested by: oej

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-27 15:13:10 +00:00
Olle Johansson
d23360562f Merged revisions 171326 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r171326 | oej | 2009-01-26 14:44:40 +0100 (MÃ¥n, 26 Jan 2009) | 17 lines

Merged revisions 171264 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r171264 | oej | 2009-01-26 13:51:53 +0100 (MÃ¥n, 26 Jan 2009) | 9 lines

Don't retransmit 401 on REGISTER requests when alwaysauthreject=yes

(closes issue #14284)
Reported by: klaus3000
Patches: 
      patch_chan_sip_unreliable_1.4.23_14284.txt uploaded by klaus3000 (license 65)
Tested by: klaus3000


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-26 14:02:52 +00:00
Tilghman Lesher
ecbccc1bf4 Merged revisions 171188 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r171188 | tilghman | 2009-01-25 17:58:00 -0600 (Sun, 25 Jan 2009) | 13 lines
  
  Merged revisions 171187 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r171187 | tilghman | 2009-01-25 17:44:01 -0600 (Sun, 25 Jan 2009) | 6 lines
    
    Correctly track the hookstate
    (closes issue #13686)
     Reported by: itiliti
     Patches: 
           20081013__bug13686.diff.txt uploaded by Corydon76 (license 14)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-26 00:03:37 +00:00
Michiel van Baak
86566a7ff7 Blocked revisions 171081 via svnmerge
........
  r171081 | mvanbaak | 2009-01-25 17:50:53 +0100 (Sun, 25 Jan 2009) | 2 lines
  
  dont segfault when a MWI event occurs on a line without a registered device
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-25 16:53:23 +00:00
Michiel van Baak
b5160951d2 Blocked revisions 171043 via svnmerge
........
  r171043 | mvanbaak | 2009-01-25 15:35:17 +0100 (Sun, 25 Jan 2009) | 7 lines
  
  Make the sample skinny.conf work
  
  (closes issue #14325)
  Reported by: DEA
  Patches:
        skinny.conf.sample-trunk.txt uploaded by DEA (license 3)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@171044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-25 14:37:07 +00:00
Sean Bright
ecaaf9ca05 Merged revisions 170980 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170980 | seanbright | 2009-01-25 08:35:48 -0500 (Sun, 25 Jan 2009) | 16 lines
  
  Merged revisions 170979 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170979 | seanbright | 2009-01-25 08:33:20 -0500 (Sun, 25 Jan 2009) | 9 lines
    
    Resolve a logic error that was causing Page() to crash when more than one
    channel was specified.
    
    (closes issue #14308)
    Reported by: bluefox
    Patches:
          20090124__bug14308.diff.txt uploaded by seanbright (license 71)
    Tested by: kc0bvu
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-25 13:38:38 +00:00
Russell Bryant
d6ff97e30d Merged revisions 170943 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r170943 | russell | 2009-01-24 20:49:30 -0600 (Sat, 24 Jan 2009) | 6 lines

Change ARRAY_LEN() to be more C++ safe.

When the second part of this macro is written as 0[a] instead of a[0], it will
force a failure if the macro is used on a C++ object that overloads the []
operator.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-25 02:50:24 +00:00
Russell Bryant
05b0390b1a Blocked revisions 170902 via svnmerge
........
r170902 | russell | 2009-01-24 13:33:15 -0600 (Sat, 24 Jan 2009) | 2 lines

Add a todo to finish the XML docs in this module

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-24 19:42:11 +00:00
Tilghman Lesher
f53607a8b4 Merged revisions 170837 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170837 | tilghman | 2009-01-24 07:55:53 -0600 (Sat, 24 Jan 2009) | 9 lines
  
  Merged revisions 170836 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170836 | tilghman | 2009-01-24 07:55:02 -0600 (Sat, 24 Jan 2009) | 2 lines
    
    Remove superfluous implementation note (closes issue #14319)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-24 13:56:42 +00:00
Richard Mudgett
4348840980 Merged revisions 170794 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r170794 | rmudgett | 2009-01-23 17:10:34 -0600 (Fri, 23 Jan 2009) | 1 line
  
  Fix asterisk.pdf generation if branch name has an underscore in it.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 23:52:12 +00:00
Russell Bryant
1809456ab1 Merged revisions 170790 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r170790 | russell | 2009-01-23 16:58:37 -0600 (Fri, 23 Jan 2009) | 2 lines

Don't blow up if a branch name has an underscore in it

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 22:59:03 +00:00
Mark Michelson
dab84b73bf Merged revisions 170720 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r170720 | mmichelson | 2009-01-23 14:56:07 -0600 (Fri, 23 Jan 2009) | 16 lines

Merged revisions 170719 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r170719 | mmichelson | 2009-01-23 14:55:26 -0600 (Fri, 23 Jan 2009) | 8 lines

Add notes to the idlecheck explanation in res_odbc.conf.sample

(closes issue #14319)
Reported by: klaus3000
Patches:
      patch_idlecheck_res_odbc.conf.sample.txt uploaded by klaus3000 (license 65)


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 20:56:32 +00:00
Mark Michelson
29a89da943 Merged revisions 170677 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r170677 | mmichelson | 2009-01-23 14:23:00 -0600 (Fri, 23 Jan 2009) | 22 lines

Merged revisions 170671 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r170671 | mmichelson | 2009-01-23 14:21:51 -0600 (Fri, 23 Jan 2009) | 14 lines

Update contrib/i18n.testsuite.conf to not use deprecated syntax

* Convert Wait,1 to Wait(1)
* Convert SetLanguage to Set(CHANNEL(language))
* Use 'n' for all priorities beyond the first

Also added test for Chinese numbers, too.

(closes issue #14320)
Reported by: dant
Patches:
      i18n.testsuite.conf.issue14320.v2.diff uploaded by dant (license 670)


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 20:24:18 +00:00
Joshua Colp
d59c77dc20 Merged revisions 170652 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170652 | file | 2009-01-23 16:18:05 -0400 (Fri, 23 Jan 2009) | 11 lines
  
  Merged revisions 170648 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170648 | file | 2009-01-23 16:16:39 -0400 (Fri, 23 Jan 2009) | 4 lines
    
    When a channel is answered make sure any indications currently playing stop. Usually the phone would do this but if the channel was already answered then they are being generated by Asterisk and we darn well need to stop them.
    (closes issue #14249)
    Reported by: RadicAlish
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 20:19:37 +00:00
Tilghman Lesher
0698a4ee31 Merged revisions 170608 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170608 | tilghman | 2009-01-23 13:25:10 -0600 (Fri, 23 Jan 2009) | 9 lines
  
  Merged revisions 170588 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170588 | tilghman | 2009-01-23 13:20:44 -0600 (Fri, 23 Jan 2009) | 2 lines
    
    Additions to AST-2009-001
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 19:33:10 +00:00
Joshua Colp
d00bc0014d Merged revisions 170569 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170569 | file | 2009-01-23 15:09:18 -0400 (Fri, 23 Jan 2009) | 11 lines
  
  Merged revisions 170568 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170568 | file | 2009-01-23 15:06:54 -0400 (Fri, 23 Jan 2009) | 4 lines
    
    When a call is forwarded stop any active indications. The new channel will provide an indication, if need be, itself.
    (closes issue #14310)
    Reported by: RadicAlish
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 19:10:00 +00:00
Joshua Colp
9382891b4e Merged revisions 170505 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170505 | file | 2009-01-23 14:09:45 -0400 (Fri, 23 Jan 2009) | 11 lines
  
  Merged revisions 170504 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170504 | file | 2009-01-23 14:04:08 -0400 (Fri, 23 Jan 2009) | 4 lines
    
    Use the on hold flag to see if the call is on hold or not. It is possible that our address for them will still be valid even though they are on hold.
    (closes issue #14295)
    Reported by: klaus3000
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 18:10:41 +00:00
Michiel van Baak
a9bff352f9 Merged revisions 170501 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r170501 | mvanbaak | 2009-01-23 18:46:02 +0100 (Fri, 23 Jan 2009) | 1 line
  
  let's use SENTINEL^Wa correct sentinel where needed
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 17:52:04 +00:00
Joshua Colp
a8294dfa4f Blocked revisions 170498 via svnmerge
........
  r170498 | file | 2009-01-23 13:32:26 -0400 (Fri, 23 Jan 2009) | 4 lines
  
  Reset the ast_str used for escape substitution. We need to do this since it is a thread local variable that may contain the value of a previous substitution.
  (closes issue #14312)
  Reported by: pj
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170499 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 17:33:02 +00:00
Michiel van Baak
10f14fc12c Blocked revisions 170460 via svnmerge
........
  r170460 | mvanbaak | 2009-01-23 17:57:07 +0100 (Fri, 23 Jan 2009) | 8 lines
  
  Dont clear the display of skinny phones when not needed.
  
  (closes issue #13182)
  Reported by: pj
  Patches:
        2009011901_dontcleardisplay.diff.txt uploaded by mvanbaak (license 7)
  Tested by: mvanbaak, pj
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 16:58:35 +00:00
Mark Michelson
d57e63c0f1 Merged revisions 170393 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r170393 | mmichelson | 2009-01-23 09:44:27 -0600 (Fri, 23 Jan 2009) | 36 lines

Merged revisions 170392 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r170392 | mmichelson | 2009-01-23 09:40:39 -0600 (Fri, 23 Jan 2009) | 28 lines

Fix broken call pickup

There was a subtle change in ast_do_masquerade which
resulted in failed attempts to pickup calls. The problem
was that the value of the AST_FLAG_OUTGOING flag was
copied from the clone to the original channel. In the case
of call pickup, this meant that the AST_FLAG_OUTGOING flag
ended up being cleared on the channel that was attempting
to execute the pickup.

Because this flag was not set, when ast_read came across
an answer frame, it ignored it. The result of this was that
the calling channel was never properly answered.

This fix changes the behavior in ast_do_masquerade to set
the flags on the original channel to the union of the flags
on the clone channel. This way, if the AST_FLAG_OUTGOING
flag is set on either of the two channels involved in the
masquerade, the resulting channel will have the flag set
as well.

(closes issue #14206)
Reported by: francesco_r
Patches:
      14206.patch uploaded by putnopvut (license 60)
Tested by: francesco_r, aragon, putnopvut


........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 15:49:50 +00:00
Joshua Colp
ebdd169c19 Merged revisions 170240 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170240 | file | 2009-01-22 16:04:39 -0400 (Thu, 22 Jan 2009) | 14 lines
  
  Merged revisions 170239 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170239 | file | 2009-01-22 16:02:35 -0400 (Thu, 22 Jan 2009) | 7 lines
    
    Don't crash if RTCP is not enabled on an RTP structure but statistics are output.
    (closes issue #14234)
    Reported by: jcovert
    Patches:
          rtp.c.patch-1.6.0.3 uploaded by jcovert (license 551)
          rtp.c.patch-svn-165599 uploaded by jcovert (license 551)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-22 20:05:24 +00:00
Tilghman Lesher
7455e58b3f Merged revisions 170165 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170165 | tilghman | 2009-01-22 11:19:28 -0600 (Thu, 22 Jan 2009) | 13 lines
  
  Merged revisions 170158 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170158 | tilghman | 2009-01-22 11:18:07 -0600 (Thu, 22 Jan 2009) | 6 lines
    
    Allow global variables after substitution to be as long as other variables.
    (closes issue #14263)
     Reported by: markd
     Patches: 
           20090120__bug14263.diff.txt uploaded by Corydon76 (license 14)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-22 17:20:45 +00:00
Joshua Colp
cb0c483da0 Merged revisions 170148 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170148 | file | 2009-01-22 12:52:21 -0400 (Thu, 22 Jan 2009) | 11 lines
  
  Merged revisions 170147 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170147 | file | 2009-01-22 12:50:54 -0400 (Thu, 22 Jan 2009) | 4 lines
    
    If we are unable to request a DAHDI pseudo channel and we are using the user introduction without review option make sure it gets unset so other code does not blindly assume a DAHDI pseudo channel exists.
    (closes issue #14282)
    Reported by: cheesegrits
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-22 16:53:12 +00:00
Joshua Colp
1f843fc79d Merged revisions 170051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r170051 | file | 2009-01-22 11:14:50 -0400 (Thu, 22 Jan 2009) | 13 lines
  
  Merged revisions 170050 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r170050 | file | 2009-01-22 11:13:56 -0400 (Thu, 22 Jan 2009) | 6 lines
    
    Do a string comparison instead of pointer comparison since some people specify the context they are actually in as an argument to get around some funkiness.
    (closes issue #14011)
    Reported by: dveiga
    Patches:
          pbx.c.patch uploaded by dveiga (license 665)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@170052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-22 15:15:35 +00:00