[svn-commits] phsultan: branch phsultan/jabberreceive r162993 - in /team/phsultan/jabberrec...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Dec 11 04:22:47 CST 2008


Author: phsultan
Date: Thu Dec 11 04:22:46 2008
New Revision: 162993

URL: http://svn.digium.com/view/asterisk?view=rev&rev=162993
Log:
Merged revisions 161218,161252,161288,161349-161350,161427,161493,161536,161571,161604,161637,161679,161721,161726,161787,161790,161830,161869,161911,161947,161951,162016,162079,162140,162197,162203,162205,162266,162271,162275,162291,162342,162355,162414,162418,162466,162488,162542,162583,162619,162656,162660,162664,162667,162672,162675,162687,162739,162805,162891,162922-162923,162927,162930 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
r161218 | eliel | 2008-12-05 11:31:25 +0100 (Fri, 05 Dec 2008) | 8 lines

Janitor, use ARRAY_LEN() when possible.

(closes issue #13990)
Reported by: eliel
Patches:
      array_len.diff uploaded by eliel (license 64)


................
r161252 | russell | 2008-12-05 14:46:01 +0100 (Fri, 05 Dec 2008) | 2 lines

Resolve a compiler warning from buildbot about a NULL format string.

................
r161288 | russell | 2008-12-05 15:16:24 +0100 (Fri, 05 Dec 2008) | 10 lines

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

........
r161287 | russell | 2008-12-05 08:12:14 -0600 (Fri, 05 Dec 2008) | 2 lines

Fix a NULL format string warning found by buildbot.

........

................
r161349 | seanbright | 2008-12-05 16:56:15 +0100 (Fri, 05 Dec 2008) | 5 lines

When using IMAP_STORAGE, it's important to convert bare newlines (\n) in
emailbody and pagerbody to CR-LF so that the IMAP server doesn't spit out an
error.  This was informally reported on #asterisk-dev a few weeks ago.  Reviewed
by Mark M. on IRC.

................
r161350 | seanbright | 2008-12-05 17:04:36 +0100 (Fri, 05 Dec 2008) | 2 lines

Use ast_free() instead of free(), pointed out by eliel on IRC.

................
r161427 | seanbright | 2008-12-05 22:08:43 +0100 (Fri, 05 Dec 2008) | 22 lines

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

................
  r161426 | seanbright | 2008-12-05 16:02:20 -0500 (Fri, 05 Dec 2008) | 15 lines
  
  Merged revisions 161421 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.2
  
  ........
    r161421 | seanbright | 2008-12-05 15:50:23 -0500 (Fri, 05 Dec 2008) | 8 lines
    
    Fix build errors on FreeBSD (uint -> unsigned int).
    
    (closes issue #14006)
    Reported by: alphaque
    Patches:
          astobj2.h-patch uploaded by alphaque (license 259)
          (Slightly modified by seanbright)
  ........
................

................
r161493 | mmichelson | 2008-12-06 00:24:38 +0100 (Sat, 06 Dec 2008) | 8 lines

If the autoloop flag is set on a channel, then we need to 
add 1 to the priority when checking if the extension exists. Otherwise,
gosubs will fail.

This was discovered when investigating an asterisk-users mailing list post
made by Gary Hawkins.


................
r161536 | eliel | 2008-12-06 22:18:51 +0100 (Sat, 06 Dec 2008) | 2 lines

Move Speech* applications and functions documentation to XML.

................
r161571 | eliel | 2008-12-07 23:43:46 +0100 (Sun, 07 Dec 2008) | 2 lines

Introduce SMS() application XML documentation.

................
r161604 | eliel | 2008-12-08 04:35:55 +0100 (Mon, 08 Dec 2008) | 10 lines

Add voicemail related applications and functions XML documentation:
    applications:
      - VoiceMail()
      - VoiceMailMain()
      - MailboxExists()
      - VMAuthenticate()
    functions:
      - MAILBOX_EXISTS()


................
r161637 | eliel | 2008-12-08 05:23:50 +0100 (Mon, 08 Dec 2008) | 4 lines

- Fix a leak while printing an argument description.
- Avoid printing the name of an argument in the [Arguments] tag if there is no description
  for that argument.

................
r161679 | twilson | 2008-12-08 17:02:42 +0100 (Mon, 08 Dec 2008) | 2 lines

Add the ability to play a courtesy tone to the transfer target in a native SIP attended transfer by setting the variable ATTENEDED_TRANSFER_COMPLETE_SOUND.

................
r161721 | mnicholson | 2008-12-08 18:23:41 +0100 (Mon, 08 Dec 2008) | 7 lines

Fix a crash that can occur on a transfer in chan_sip when attempting to collect
rtp stats.

(closes issue #13956)
Reported by: chris-mac
Tested by: chris-mac

................
r161726 | file | 2008-12-08 18:53:32 +0100 (Mon, 08 Dec 2008) | 13 lines

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

........
  r161725 | file | 2008-12-08 13:52:10 -0400 (Mon, 08 Dec 2008) | 6 lines
  
  Make the usereqphone option work again.
  (closes issue #13474)
  Reported by: mmaguire
  Patches:
        20080912_bug13474.diff uploaded by mmaguire (license 571)
........

................
r161787 | file | 2008-12-08 19:47:32 +0100 (Mon, 08 Dec 2008) | 6 lines

Fix a regression introduced when the PBX timeouts were converted to milliseconds. collect_digits now gets milliseconds fed to it, not seconds.
(closes issue #14012)
Reported by: dveiga
Patches:
      14012.patch uploaded by bkruse (license 132)

................
r161790 | tilghman | 2008-12-08 19:49:50 +0100 (Mon, 08 Dec 2008) | 6 lines

Allocate enough space initially for the message.
(closes issue #14027)
 Reported by: junky
 Patches: 
       M14027.diff uploaded by junky (license 177)

................
r161830 | file | 2008-12-08 21:53:50 +0100 (Mon, 08 Dec 2008) | 2 lines

Update autosupport script with a few changes.

................
r161869 | file | 2008-12-08 22:41:50 +0100 (Mon, 08 Dec 2008) | 6 lines

Add alw as a valid file extension for alaw and ulw as a valid file extension for ulaw.
(closes issue #14001)
Reported by: henrikw
Patches:
      alw.diff uploaded by henrikw (license 627)

................
r161911 | bkruse | 2008-12-09 00:04:49 +0100 (Tue, 09 Dec 2008) | 2 lines

Note that the recently changed waittime parameter is in milliseconds.

................
r161947 | eliel | 2008-12-09 15:49:30 +0100 (Tue, 09 Dec 2008) | 8 lines

Avoid allocating memory for a thread that don't need it. Also, this memory was not being freed until the
main thread ends. (That is never).

(closes issue #14040)
Reported by: eliel
Patches:
      func_odbc.c.patch uploaded by eliel (license 64)

................
r161951 | russell | 2008-12-09 15:57:39 +0100 (Tue, 09 Dec 2008) | 23 lines

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

........
r161948 | russell | 2008-12-09 08:52:25 -0600 (Tue, 09 Dec 2008) | 15 lines

Fix a problem with GROUP() settings on a masquerade.

The previous code carried over group settings from the old channel to the new
one.  However, it did nothing with the group settings that were already on the
new channel.  This patch removes all group settings that already existed on the
new channel.

I have a more complicated version of this patch which addresses only the most
blatant problem with this, which is that a channel can end up with multiple
group settings in the same category.  However, I could not think of a use case
for keeping any of the group settings from the old channel, so I went this route
for now.

(closes AST-152)

........

................
r162016 | russell | 2008-12-09 17:47:39 +0100 (Tue, 09 Dec 2008) | 13 lines

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

........
r162014 | russell | 2008-12-09 10:46:53 -0600 (Tue, 09 Dec 2008) | 5 lines

Allow DISA to handle extensions that start with #.

(closes issue #13330)
Reported by: jcovert

........

................
r162079 | murf | 2008-12-09 18:18:03 +0100 (Tue, 09 Dec 2008) | 53 lines

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

........
r162013 | murf | 2008-12-09 09:31:55 -0700 (Tue, 09 Dec 2008) | 45 lines

(closes issue #14019)
Reported by: ckjohnsonme
Patches:
      14019.diff uploaded by murf (license 17)
Tested by: ckjohnsonme, murf

This crash was the result of a few small errors that
would combine in 64-bit land to result in a crash.

32-bit land might have seen these combine to mysteriously
drop the args to an application call, in certain
circumstances.

Also, in trying to find this bug, I spotted
a situation in the flex input, where, in passing
back a 'word' to the parser, it would allocate
a buffer larger than necessary. I changed the
usage in such situations, so that strdup was
not used, but rather, an ast_malloc, followed
by ast_copy_string.

I removed a field from the pval struct, in
u2, that was never getting used, and set in
one spot in the code. I believe it was an
artifact of a previous fix to make switch
cases work invisibly with extens.

And, for goto's I removed a '!' from
before a strcmp, that has been there
since the initial merging of AEL2, that
might prevent the proper target of a 
goto from being found. This was pretty
harmless on its own, as it would just
louse up a consistency check for users.

Many thanks to ckjohnsonme for providing
a simplified and complete set of information
about the bug, that helped considerably in
finding and fixing the problem.

Now, to get aelparse up and running again
in trunk, and out of its "horribly broken" state,
so I can run the regression suite!


........

................
r162140 | murf | 2008-12-09 19:35:35 +0100 (Tue, 09 Dec 2008) | 9 lines

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

........
r162136 | murf | 2008-12-09 11:13:39 -0700 (Tue, 09 Dec 2008) | 1 line

Previous fix used ast_malloc and ast_copy_string and messed up the standalone stuff. Fixed.
........

................
r162197 | file | 2008-12-09 20:08:39 +0100 (Tue, 09 Dec 2008) | 11 lines

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

........
  r162188 | file | 2008-12-09 15:06:14 -0400 (Tue, 09 Dec 2008) | 4 lines
  
  Take video into account when early bridging RTP.
  (closes issue #13535)
  Reported by: davidw
........

................
r162203 | tilghman | 2008-12-09 20:26:08 +0100 (Tue, 09 Dec 2008) | 9 lines

Blocked revisions 162071 via svnmerge

........
  r162071 | tilghman | 2008-12-09 11:07:50 -0600 (Tue, 09 Dec 2008) | 3 lines
  
  For some reason, after a distclean, gcc started returning
  'value computed is not used'.  Fixing (for --enable-dev-mode).
........

................
r162205 | file | 2008-12-09 20:48:35 +0100 (Tue, 09 Dec 2008) | 14 lines

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

........
  r162204 | file | 2008-12-09 15:47:07 -0400 (Tue, 09 Dec 2008) | 7 lines
  
  Make sure that the timestamp for DTMF is not the same as the previous voice frame and do not send audio when transmitting DTMF as this confuses some equipment.
  (closes issue #13209)
  Reported by: ip-rob
  Patches:
        13209.diff uploaded by file (license 11)
  Tested by: ip-rob, bujones
........

................
r162266 | mmichelson | 2008-12-09 21:30:07 +0100 (Tue, 09 Dec 2008) | 14 lines

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

........
r162265 | mmichelson | 2008-12-09 14:28:44 -0600 (Tue, 09 Dec 2008) | 6 lines

If we fail to start a thread for the pbx to run in, we need to
be sure to decrease the number of active calls on the system.

This fix may relate to ABE-1713, but it is not certain yet.


........

................
r162271 | murf | 2008-12-09 21:40:31 +0100 (Tue, 09 Dec 2008) | 9 lines

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

........
r162264 | murf | 2008-12-09 13:20:54 -0700 (Tue, 09 Dec 2008) | 1 line

In discussion with seanbright on #asterisk-dev,  I have added a default rule, and an option to suppress the default rule from being generated in the flex output, for the sake of those OS's where they didn't tweak flex's ECHO macro, and the compiler doesn't like it. The regressions are OK with this.
........

................
r162275 | file | 2008-12-09 21:46:11 +0100 (Tue, 09 Dec 2008) | 11 lines

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

........
  r162273 | file | 2008-12-09 16:44:32 -0400 (Tue, 09 Dec 2008) | 4 lines
  
  Fix double declaration of 'x' on the PPC platform.
  (closes issue #14038)
  Reported by: ffloimair
........

................
r162291 | russell | 2008-12-09 21:59:54 +0100 (Tue, 09 Dec 2008) | 17 lines

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

........
r162286 | russell | 2008-12-09 14:57:35 -0600 (Tue, 09 Dec 2008) | 9 lines

Fix an issue where callers on an incoming call on an SLA trunk would not hear ringback.

We need to make sure that we don't start writing audio to the trunk channel until we're
actually ready to answer it.  Otherwise, the channel driver will treat it as inband
progress, even though all they are getting is silence.

(closes issue #12471)
Reported by: mthomasslo

........

................
r162342 | file | 2008-12-09 22:16:37 +0100 (Tue, 09 Dec 2008) | 11 lines

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

........
  r162341 | file | 2008-12-09 17:14:29 -0400 (Tue, 09 Dec 2008) | 4 lines
  
  Add 'down' as a valid state for directed call pickup. This creeps up when we receive session progress when dialing a device and not ringing.
  (closes issue #14005)
  Reported by: ddl
........

................
r162355 | tilghman | 2008-12-09 22:57:09 +0100 (Tue, 09 Dec 2008) | 11 lines

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

........
  r162348 | tilghman | 2008-12-09 15:53:25 -0600 (Tue, 09 Dec 2008) | 4 lines
  
  We appear to have documented tz= in the [general] section of voicemail.conf,
  without actually having implemented it.  Oops.
  (Reported by Olivier on the -users list)
........

................
r162414 | russell | 2008-12-09 23:25:06 +0100 (Tue, 09 Dec 2008) | 16 lines

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

........
r162413 | russell | 2008-12-09 16:17:39 -0600 (Tue, 09 Dec 2008) | 8 lines

Remove the test_for_thread_safety() function completely.

The test is not valid.  Besides, if we actually suspected that recursive
mutexes were not working, we would get a ton of LOG_ERROR messages when
DEBUG_THREADS is turned on.

(inspired by a discussion on the asterisk-dev list)

........

................
r162418 | russell | 2008-12-09 23:38:41 +0100 (Tue, 09 Dec 2008) | 7 lines

Add some additional Asterisk project developer documentation.  

After the nightly update of the documentation on asterisk.org, I'll post 
an update to asterisk-dev with a pointer to the changes.  This covers some
release branch and commit policy information.  None of this should be a
surprise, since it's just documenting what we have already been doing.

................
r162466 | tilghman | 2008-12-10 00:10:34 +0100 (Wed, 10 Dec 2008) | 9 lines

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

........
  r162463 | tilghman | 2008-12-09 17:08:53 -0600 (Tue, 09 Dec 2008) | 2 lines
  
  Oops, should be "tz", not "zonetag".
........

................
r162488 | kpfleming | 2008-12-10 00:41:02 +0100 (Wed, 10 Dec 2008) | 1 line

it does help if the compiler attribute syntax is correct
................
r162542 | file | 2008-12-10 02:09:06 +0100 (Wed, 10 Dec 2008) | 6 lines

Finish conversion to using ARRAY_LEN and remove it as a janitor project.
(closes issue #14032)
Reported by: bkruse
Patches:
      14032.patch uploaded by bkruse (license 132)

................
r162583 | mvanbaak | 2008-12-10 12:34:09 +0100 (Wed, 10 Dec 2008) | 5 lines

Make res_snmp.so compile on OpenBSD.

OpenBSD uses an old version of gcc which throws an error
if you use a macro that's not #defined

................
r162619 | file | 2008-12-10 16:22:26 +0100 (Wed, 10 Dec 2008) | 4 lines

When transmitting a register set the socket port to the local one for the transport being used, not the port for the remote server.
(closes issue #13633)
Reported by: performer

................
r162656 | file | 2008-12-10 17:06:59 +0100 (Wed, 10 Dec 2008) | 13 lines

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

........
  r162653 | file | 2008-12-10 12:05:29 -0400 (Wed, 10 Dec 2008) | 6 lines
  
  Increment the sequence number on the end packets for RFC2833. After reading the RFC some more and doing some testing I agree with this change.
  (closes issue #12983)
  Reported by: vt
  Patches:
        dtmf_inc_seqnum_on_end_pkts.diff uploaded by vt (license 520)
........

................
r162660 | file | 2008-12-10 17:11:06 +0100 (Wed, 10 Dec 2008) | 6 lines

FreeBSD also needs libgen.h
(closes issue #14051)
Reported by: ys
Patches:
      res_http_post.c.diff uploaded by ys (license 281)

................
r162664 | mmichelson | 2008-12-10 17:34:35 +0100 (Wed, 10 Dec 2008) | 19 lines

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

........
r162663 | mmichelson | 2008-12-10 10:24:56 -0600 (Wed, 10 Dec 2008) | 11 lines

Revert fix for issue 13570. It has caused more problems than
it helped to fix.

(closes issue #13783)
Reported by: navkumar


(closes issue #14025)
Reported by: ffs


........

................
r162667 | mmichelson | 2008-12-10 17:39:10 +0100 (Wed, 10 Dec 2008) | 16 lines

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

........
r162659 | mmichelson | 2008-12-10 10:10:25 -0600 (Wed, 10 Dec 2008) | 8 lines

Add missing documentation to misdn.txt

(closes issue #14052)
Reported by: festr
Patches:
      misdn.txt.patch uploaded by festr (license 443)


........

................
r162672 | mmichelson | 2008-12-10 17:46:51 +0100 (Wed, 10 Dec 2008) | 21 lines

Blocked revisions 162670 via svnmerge

........
r162670 | mmichelson | 2008-12-10 10:44:37 -0600 (Wed, 10 Dec 2008) | 14 lines

Update to stringfield handling so that side-effects on
parameters are not evaluated multiple times.

An example where this caused a problem was in chan_sip.c, with
the line

  ast_string_field_set(p, fromdomain, ++fromdomain);

This patch was originally uploaded to issue #13783 by
jamessan. While the issue was closed for other reasons, this
patch is valid and fixes a separate problem, and is thus
being committed.


........

................
r162675 | murf | 2008-12-10 17:52:05 +0100 (Wed, 10 Dec 2008) | 29 lines

Blocked revisions 162671 via svnmerge

........
r162671 | murf | 2008-12-10 09:45:01 -0700 (Wed, 10 Dec 2008) | 22 lines

(closes issue #14022)
Reported by: wetwired
Tested by: murf

I checked, and I added a mod to the trunk version
of Asterisk that would make it 8-bit transparent
on 27 Nov 2007, but I made no such updates to
1.4. My best guess is that 1.4 was released, and
it was not appropriate to commit an enhancement.

But I'm going to add the same fixes to 1.4 now,
for the following reasons:
1. wetwired is correct; 1.4 is **mostly** 8-bit
   transparent now. This is because the lexical
   token forming rules use . in most 'word'
   state continuances.  It's just the beginning
   of a 'word' that is picky.
2. Accepting 8-bit chars in some places and
   not others leads to bug reports like this.



........

................
r162687 | mvanbaak | 2008-12-10 18:09:15 +0100 (Wed, 10 Dec 2008) | 8 lines

add tab completion for 'core set debug X filename.c'

(closes issue #13969)
Reported by: jtodd
Patches:
      20081205__bug13969.diff.txt uploaded by Corydon76 (license 14)
Tested by: mvanbaak, eliel

................
r162739 | file | 2008-12-10 18:53:09 +0100 (Wed, 10 Dec 2008) | 13 lines

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

........
  r162738 | file | 2008-12-10 13:50:43 -0400 (Wed, 10 Dec 2008) | 6 lines
  
  When a SIP peer unregisters set the expiry time back to 0 so that the 200 OK contains an expires of 0.
  (closes issue #13599)
  Reported by: hjourdain
  Patches:
        chan_sip.c.diff uploaded by hjourdain (license 583)
........

................
r162805 | file | 2008-12-10 20:02:57 +0100 (Wed, 10 Dec 2008) | 13 lines

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

........
  r162804 | file | 2008-12-10 15:01:17 -0400 (Wed, 10 Dec 2008) | 6 lines
  
  Fix subscription based MWI up a bit. We only want to put sip: at the beginning of the URI if it is not already there and revert code to ignore destination check if subscribing for MWI.
  (closes issue #12560)
  Reported by: vsauer
  Patches:
        patch001.diff uploaded by ramonpeek (license 266)
........

................
r162891 | jpeeler | 2008-12-10 23:11:46 +0100 (Wed, 10 Dec 2008) | 13 lines

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

........
r162874 | jpeeler | 2008-12-10 16:04:18 -0600 (Wed, 10 Dec 2008) | 5 lines

(closes issue #13229)
Reported by: clegall_proformatique

Ensure that moh_generate does not return prematurely before local_ast_moh_stop is called. Also, the sleep in mp3_spawn now only occurs for http locations since it seems to have been added originally only for failing media streams.

........

................
r162922 | tilghman | 2008-12-10 23:48:09 +0100 (Wed, 10 Dec 2008) | 7 lines

Checking global variables here actually overwrote the previous substitution by
channel variables, and in any case, was redundant;
pbx_substitute_variables_helper ALREADY does substitution for global
variables.
(closes issue #13327)
 Reported by: pj

................
r162923 | file | 2008-12-10 23:48:58 +0100 (Wed, 10 Dec 2008) | 4 lines

Fix reloads of aliased CLI commands. Due to changes done to turn it into a single memory allocation we can't just use the existing CLI alias structure. We have to destroy all existing ones and then create new ones.
(closes issue #14054)
Reported by: pj

................
r162927 | jpeeler | 2008-12-10 23:53:34 +0100 (Wed, 10 Dec 2008) | 11 lines

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

........
r162926 | jpeeler | 2008-12-10 16:52:51 -0600 (Wed, 10 Dec 2008) | 3 lines

Oops, inverted logic for a strcasecmp check. Pointed out by mmichelson, thanks!


........

................
r162930 | tilghman | 2008-12-11 00:01:14 +0100 (Thu, 11 Dec 2008) | 2 lines

Previously missing line, now the substitution works correctly

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

Modified:
    team/phsultan/jabberreceive/   (props changed)
    team/phsultan/jabberreceive/CHANGES
    team/phsultan/jabberreceive/apps/app_directed_pickup.c
    team/phsultan/jabberreceive/apps/app_disa.c
    team/phsultan/jabberreceive/apps/app_festival.c
    team/phsultan/jabberreceive/apps/app_meetme.c
    team/phsultan/jabberreceive/apps/app_minivm.c
    team/phsultan/jabberreceive/apps/app_mixmonitor.c
    team/phsultan/jabberreceive/apps/app_playback.c
    team/phsultan/jabberreceive/apps/app_queue.c
    team/phsultan/jabberreceive/apps/app_rpt.c
    team/phsultan/jabberreceive/apps/app_sms.c
    team/phsultan/jabberreceive/apps/app_speech_utils.c
    team/phsultan/jabberreceive/apps/app_stack.c
    team/phsultan/jabberreceive/apps/app_voicemail.c
    team/phsultan/jabberreceive/channels/chan_agent.c
    team/phsultan/jabberreceive/channels/chan_alsa.c
    team/phsultan/jabberreceive/channels/chan_dahdi.c
    team/phsultan/jabberreceive/channels/chan_iax2.c
    team/phsultan/jabberreceive/channels/chan_oss.c
    team/phsultan/jabberreceive/channels/chan_sip.c
    team/phsultan/jabberreceive/channels/chan_skinny.c
    team/phsultan/jabberreceive/channels/chan_usbradio.c
    team/phsultan/jabberreceive/channels/iax2-parser.c
    team/phsultan/jabberreceive/contrib/asterisk-ng-doxygen
    team/phsultan/jabberreceive/contrib/scripts/autosupport
    team/phsultan/jabberreceive/contrib/scripts/autosupport.8
    team/phsultan/jabberreceive/doc/janitor-projects.txt
    team/phsultan/jabberreceive/doc/tex/misdn.tex
    team/phsultan/jabberreceive/formats/format_pcm.c
    team/phsultan/jabberreceive/funcs/func_odbc.c
    team/phsultan/jabberreceive/include/asterisk.h
    team/phsultan/jabberreceive/include/asterisk/astobj2.h
    team/phsultan/jabberreceive/include/asterisk/doxyref.h
    team/phsultan/jabberreceive/include/asterisk/pval.h
    team/phsultan/jabberreceive/include/asterisk/stringfields.h
    team/phsultan/jabberreceive/include/asterisk/utils.h
    team/phsultan/jabberreceive/main/app.c
    team/phsultan/jabberreceive/main/asterisk.c
    team/phsultan/jabberreceive/main/astmm.c
    team/phsultan/jabberreceive/main/astobj2.c
    team/phsultan/jabberreceive/main/cli.c
    team/phsultan/jabberreceive/main/config.c
    team/phsultan/jabberreceive/main/db.c
    team/phsultan/jabberreceive/main/features.c
    team/phsultan/jabberreceive/main/file.c
    team/phsultan/jabberreceive/main/frame.c
    team/phsultan/jabberreceive/main/http.c
    team/phsultan/jabberreceive/main/logger.c
    team/phsultan/jabberreceive/main/manager.c
    team/phsultan/jabberreceive/main/pbx.c
    team/phsultan/jabberreceive/main/rtp.c
    team/phsultan/jabberreceive/main/translate.c
    team/phsultan/jabberreceive/main/udptl.c
    team/phsultan/jabberreceive/main/utils.c
    team/phsultan/jabberreceive/main/xmldoc.c
    team/phsultan/jabberreceive/pbx/pbx_ael.c
    team/phsultan/jabberreceive/pbx/pbx_config.c
    team/phsultan/jabberreceive/pbx/pbx_dundi.c
    team/phsultan/jabberreceive/res/ael/ael.flex
    team/phsultan/jabberreceive/res/ael/ael_lex.c
    team/phsultan/jabberreceive/res/ael/pval.c
    team/phsultan/jabberreceive/res/res_agi.c
    team/phsultan/jabberreceive/res/res_clialiases.c
    team/phsultan/jabberreceive/res/res_config_ldap.c
    team/phsultan/jabberreceive/res/res_config_pgsql.c
    team/phsultan/jabberreceive/res/res_config_sqlite.c
    team/phsultan/jabberreceive/res/res_convert.c
    team/phsultan/jabberreceive/res/res_crypto.c
    team/phsultan/jabberreceive/res/res_http_post.c
    team/phsultan/jabberreceive/res/res_indications.c
    team/phsultan/jabberreceive/res/res_jabber.c
    team/phsultan/jabberreceive/res/res_musiconhold.c
    team/phsultan/jabberreceive/res/res_odbc.c
    team/phsultan/jabberreceive/res/res_realtime.c
    team/phsultan/jabberreceive/res/snmp/agent.c

Propchange: team/phsultan/jabberreceive/
------------------------------------------------------------------------------
Binary property 'branch-1.4-blocked' - no diff available.

Propchange: team/phsultan/jabberreceive/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Propchange: team/phsultan/jabberreceive/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Thu Dec 11 04:22:46 2008
@@ -1,1 +1,1 @@
-/trunk:1-161201
+/trunk:1-162992

Modified: team/phsultan/jabberreceive/CHANGES
URL: http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/CHANGES?view=diff&rev=162993&r1=162992&r2=162993
==============================================================================
--- team/phsultan/jabberreceive/CHANGES (original)
+++ team/phsultan/jabberreceive/CHANGES Thu Dec 11 04:22:46 2008
@@ -28,6 +28,8 @@
  * Added a new 'faxdetect=yes|no' configuration option to sip.conf.  When this
    option is enabled, a SIP channel will go to the fax extension (if it exists)
    after T38 is negotiated.  This option is disabled by default.
+ * If ATTENDED_TRANSFER_COMPLETE_SOUND is set, the sound will be played to the
+   target of an attended transfer
 
 Skinny Changes
 --------------

Modified: team/phsultan/jabberreceive/apps/app_directed_pickup.c
URL: http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/apps/app_directed_pickup.c?view=diff&rev=162993&r1=162992&r2=162993
==============================================================================
--- team/phsultan/jabberreceive/apps/app_directed_pickup.c (original)
+++ team/phsultan/jabberreceive/apps/app_directed_pickup.c Thu Dec 11 04:22:46 2008
@@ -115,7 +115,7 @@
 /* Helper function that determines whether a channel is capable of being picked up */
 static int can_pickup(struct ast_channel *chan)
 {
-	if (!chan->pbx && (chan->_state == AST_STATE_RINGING || chan->_state == AST_STATE_RING))
+	if (!chan->pbx && (chan->_state == AST_STATE_RINGING || chan->_state == AST_STATE_RING || chan->_state == AST_STATE_DOWN))
 		return 1;
 	else
 		return 0;

Modified: team/phsultan/jabberreceive/apps/app_disa.c
URL: http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/apps/app_disa.c?view=diff&rev=162993&r1=162992&r2=162993
==============================================================================
--- team/phsultan/jabberreceive/apps/app_disa.c (original)
+++ team/phsultan/jabberreceive/apps/app_disa.c Thu Dec 11 04:22:46 2008
@@ -303,8 +303,14 @@
 					continue;
 				}
 			} else {
-				if (j == '#') { /* end of extension */
-					break;
+				if (j == '#') { /* end of extension .. maybe */
+					if (i == 0 && 
+							(ast_matchmore_extension(chan, args.context, "#", 1, chan->cid.cid_num) ||
+							 ast_exists_extension(chan, args.context, "#", 1, chan->cid.cid_num)) ) {
+						/* Let the # be the part of, or the entire extension */
+					} else {
+						break;
+					}
 				}
 			}
 

Modified: team/phsultan/jabberreceive/apps/app_festival.c
URL: http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/apps/app_festival.c?view=diff&rev=162993&r1=162992&r2=162993
==============================================================================
--- team/phsultan/jabberreceive/apps/app_festival.c (original)
+++ team/phsultan/jabberreceive/apps/app_festival.c Thu Dec 11 04:22:46 2008
@@ -129,7 +129,6 @@
 	int res;
 #ifdef __PPC__ 
 	char c;
-	int x;
 #endif
 
 	res = ast_safe_fork(0);

Modified: team/phsultan/jabberreceive/apps/app_meetme.c
URL: http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/apps/app_meetme.c?view=diff&rev=162993&r1=162992&r2=162993
==============================================================================
--- team/phsultan/jabberreceive/apps/app_meetme.c (original)
+++ team/phsultan/jabberreceive/apps/app_meetme.c Thu Dec 11 04:22:46 2008
@@ -518,6 +518,8 @@
 	CONFFLAG_KICK_CONTINUE = (1 << 28),
 	CONFFLAG_DURATION_STOP = (1 << 29),
 	CONFFLAG_DURATION_LIMIT = (1 << 30),
+	/*! Do not write any audio to this channel until the state is up. */
+	CONFFLAG_NO_AUDIO_UNTIL_UP = (1 << 31),
 };
 
 enum {
@@ -1945,6 +1947,15 @@
 		ao2_ref(current, -1);
 	}
 	return NULL;
+}
+
+static int can_write(struct ast_channel *chan, int confflags)
+{
+	if (!(confflags & CONFFLAG_NO_AUDIO_UNTIL_UP)) {
+		return 1;
+	}
+
+	return (chan->_state == AST_STATE_UP);
 }
 
 static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int confflags, char *optargs[])
@@ -2296,7 +2307,10 @@
 		}
 	}
 
-	ast_indicate(chan, -1);
+	if (!(confflags & CONFFLAG_NO_AUDIO_UNTIL_UP)) {
+		/* We're leaving this alone until the state gets changed to up */
+		ast_indicate(chan, -1);
+	}
 
 	if (ast_set_write_format(chan, AST_FORMAT_SLINEAR) < 0) {
 		ast_log(LOG_WARNING, "Unable to set '%s' to write linear mode\n", chan->name);
@@ -3186,7 +3200,7 @@
 						}
 						if (conf->transframe[idx]) {
  							if (conf->transframe[idx]->frametype != AST_FRAME_NULL) {
-	 							if (ast_write(chan, conf->transframe[idx])) {
+	 							if (can_write(chan, confflags) && ast_write(chan, conf->transframe[idx])) {
 									ast_log(LOG_WARNING, "Unable to write frame to channel %s\n", chan->name);
 								}
 							}
@@ -3200,7 +3214,7 @@
 						if (user->listen.actual) {
 							ast_frame_adjust_volume(&fr, user->listen.actual);
 						}
-						if (ast_write(chan, &fr) < 0) {
+						if (can_write(chan, confflags) && ast_write(chan, &fr) < 0) {
 							ast_log(LOG_WARNING, "Unable to write frame to channel %s\n", chan->name);
 						}
 					}
@@ -4572,6 +4586,12 @@
 	ast_cond_t *cond;
 };
 
+static void answer_trunk_chan(struct ast_channel *chan)
+{
+	ast_answer(chan);
+	ast_indicate(chan, -1);
+}
+
 static void *run_station(void *data)
 {
 	struct sla_station *station;
@@ -4594,7 +4614,7 @@
 	ast_str_set(&conf_name, 0, "SLA_%s", trunk_ref->trunk->name);
 	ast_set_flag(&conf_flags, 
 		CONFFLAG_QUIET | CONFFLAG_MARKEDEXIT | CONFFLAG_PASS_DTMF | CONFFLAG_SLA_STATION);
-	ast_answer(trunk_ref->chan);
+	answer_trunk_chan(trunk_ref->chan);
 	conf = build_conf(conf_name->str, "", "", 0, 0, 1, trunk_ref->chan);
 	if (conf) {
 		conf_run(trunk_ref->chan, conf, conf_flags.flags, NULL);
@@ -4766,7 +4786,7 @@
 			/* Track the channel that answered this trunk */
 			s_trunk_ref->chan = ast_dial_answered(ringing_station->station->dial);
 			/* Actually answer the trunk */
-			ast_answer(ringing_trunk->trunk->chan);
+			answer_trunk_chan(ringing_trunk->trunk->chan);
 			sla_change_trunk_state(ringing_trunk->trunk, SLA_TRUNK_STATE_UP, ALL_TRUNK_REFS, NULL);
 			/* Now, start a thread that will connect this station to the trunk.  The rest of
 			 * the code here sets up the thread and ensures that it is able to save the arguments
@@ -5579,7 +5599,7 @@
 		ast_mutex_unlock(&sla.lock);
 
 		if (ringing_trunk) {
-			ast_answer(ringing_trunk->trunk->chan);
+			answer_trunk_chan(ringing_trunk->trunk->chan);
 			sla_change_trunk_state(ringing_trunk->trunk, SLA_TRUNK_STATE_UP, ALL_TRUNK_REFS, NULL);
 
 			free(ringing_trunk);
@@ -5778,7 +5798,7 @@
 		return 0;
 	}
 	ast_set_flag(&conf_flags, 
-		CONFFLAG_QUIET | CONFFLAG_MARKEDEXIT | CONFFLAG_MARKEDUSER | CONFFLAG_PASS_DTMF);
+		CONFFLAG_QUIET | CONFFLAG_MARKEDEXIT | CONFFLAG_MARKEDUSER | CONFFLAG_PASS_DTMF | CONFFLAG_NO_AUDIO_UNTIL_UP);
 
 	if (ast_test_flag(&opt_flags, SLA_TRUNK_OPT_MOH)) {
 		ast_indicate(chan, -1);

Modified: team/phsultan/jabberreceive/apps/app_minivm.c
URL: http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/apps/app_minivm.c?view=diff&rev=162993&r1=162992&r2=162993
==============================================================================
--- team/phsultan/jabberreceive/apps/app_minivm.c (original)
+++ team/phsultan/jabberreceive/apps/app_minivm.c Thu Dec 11 04:22:46 2008
@@ -1106,7 +1106,7 @@
 		return -1;
 	}
 	/* Allocate channel used for chanvar substitution */
-	ast = ast_channel_alloc(0, AST_STATE_DOWN, 0, 0, "", "", "", 0, 0);
+	ast = ast_channel_alloc(0, AST_STATE_DOWN, 0, 0, "", "", "", 0, "%s", "");
 
 
 	snprintf(dur, sizeof(dur), "%d:%02d", duration / 60, duration % 60);
@@ -3281,7 +3281,7 @@
 	if ((res = load_config(0)))
 		return(res);
 
-	ast_cli_register_multiple(cli_minivm, sizeof(cli_minivm)/sizeof(cli_minivm[0]));
+	ast_cli_register_multiple(cli_minivm, ARRAY_LEN(cli_minivm));
 
 	/* compute the location of the voicemail spool directory */
 	snprintf(MVM_SPOOL_DIR, sizeof(MVM_SPOOL_DIR), "%s/voicemail/", ast_config_AST_SPOOL_DIR);
@@ -3325,7 +3325,7 @@
 	res |= ast_unregister_application(app_minivm_notify);
 	res |= ast_unregister_application(app_minivm_delete);
 	res |= ast_unregister_application(app_minivm_accmess);
-	ast_cli_unregister_multiple(cli_minivm, sizeof(cli_minivm)/sizeof(cli_minivm[0]));
+	ast_cli_unregister_multiple(cli_minivm, ARRAY_LEN(cli_minivm));
 	ast_custom_function_unregister(&minivm_account_function);
 	ast_custom_function_unregister(&minivm_counter_function);
 

Modified: team/phsultan/jabberreceive/apps/app_mixmonitor.c
URL: http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/apps/app_mixmonitor.c?view=diff&rev=162993&r1=162992&r2=162993
==============================================================================
--- team/phsultan/jabberreceive/apps/app_mixmonitor.c (original)
+++ team/phsultan/jabberreceive/apps/app_mixmonitor.c Thu Dec 11 04:22:46 2008
@@ -452,7 +452,7 @@
 {
 	int res;
 
-	ast_cli_unregister_multiple(cli_mixmonitor, sizeof(cli_mixmonitor) / sizeof(struct ast_cli_entry));
+	ast_cli_unregister_multiple(cli_mixmonitor, ARRAY_LEN(cli_mixmonitor));
 	res = ast_unregister_application(stop_app);
 	res |= ast_unregister_application(app);
 	
@@ -463,7 +463,7 @@
 {
 	int res;
 
-	ast_cli_register_multiple(cli_mixmonitor, sizeof(cli_mixmonitor) / sizeof(struct ast_cli_entry));
+	ast_cli_register_multiple(cli_mixmonitor, ARRAY_LEN(cli_mixmonitor));
 	res = ast_register_application_xml(app, mixmonitor_exec);
 	res |= ast_register_application_xml(stop_app, stop_mixmonitor_exec);
 

Modified: team/phsultan/jabberreceive/apps/app_playback.c
URL: http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/apps/app_playback.c?view=diff&rev=162993&r1=162992&r2=162993
==============================================================================
--- team/phsultan/jabberreceive/apps/app_playback.c (original)
+++ team/phsultan/jabberreceive/apps/app_playback.c Thu Dec 11 04:22:46 2008
@@ -519,7 +519,7 @@
 
 	res = ast_unregister_application(app);
 
-	ast_cli_unregister_multiple(cli_playback, sizeof(cli_playback) / sizeof(struct ast_cli_entry));
+	ast_cli_unregister_multiple(cli_playback, ARRAY_LEN(cli_playback));
 
 	if (say_cfg)
 		ast_config_destroy(say_cfg);
@@ -542,7 +542,7 @@
 		}
 	}
 
-	ast_cli_register_multiple(cli_playback, sizeof(cli_playback) / sizeof(struct ast_cli_entry));
+	ast_cli_register_multiple(cli_playback, ARRAY_LEN(cli_playback));
 	return ast_register_application_xml(app, playback_exec);
 }
 

Modified: team/phsultan/jabberreceive/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/apps/app_queue.c?view=diff&rev=162993&r1=162992&r2=162993
==============================================================================
--- team/phsultan/jabberreceive/apps/app_queue.c (original)
+++ team/phsultan/jabberreceive/apps/app_queue.c Thu Dec 11 04:22:46 2008
@@ -6608,7 +6608,7 @@
 	struct ao2_iterator q_iter;
 	struct call_queue *q = NULL;
 
-	ast_cli_unregister_multiple(cli_queue, sizeof(cli_queue) / sizeof(struct ast_cli_entry));
+	ast_cli_unregister_multiple(cli_queue, ARRAY_LEN(cli_queue));
 	res = ast_manager_unregister("QueueStatus");
 	res |= ast_manager_unregister("Queues");
 	res |= ast_manager_unregister("QueueRule");
@@ -6669,7 +6669,7 @@
 	if (queue_persistent_members)
 		reload_queue_members();
 
-	ast_cli_register_multiple(cli_queue, sizeof(cli_queue) / sizeof(struct ast_cli_entry));
+	ast_cli_register_multiple(cli_queue, ARRAY_LEN(cli_queue));
 	res = ast_register_application_xml(app, queue_exec);
 	res |= ast_register_application_xml(app_aqm, aqm_exec);
 	res |= ast_register_application_xml(app_rqm, rqm_exec);

Modified: team/phsultan/jabberreceive/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/team/phsultan/jabberreceive/apps/app_rpt.c?view=diff&rev=162993&r1=162992&r2=162993
==============================================================================
--- team/phsultan/jabberreceive/apps/app_rpt.c (original)
+++ team/phsultan/jabberreceive/apps/app_rpt.c Thu Dec 11 04:22:46 2008
@@ -15108,8 +15108,7 @@
 	res = ast_unregister_application(app);
 
 #ifdef	NEW_ASTERISK
-	ast_cli_unregister_multiple(rpt_cli,sizeof(rpt_cli) / 
-		sizeof(struct ast_cli_entry));
+	ast_cli_unregister_multiple(rpt_cli, ARRAY_LEN(rpt_cli));
 #else
 	/* Unregister cli extensions */
 	ast_cli_unregister(&cli_debug);
@@ -15141,8 +15140,7 @@
 	ast_pthread_create(&rpt_master_thread,NULL,rpt_master,NULL);
 
 #ifdef	NEW_ASTERISK
-	ast_cli_register_multiple(rpt_cli,sizeof(rpt_cli) / 
-		sizeof(struct ast_cli_entry));
+	ast_cli_register_multiple(rpt_cli, ARRAY_LEN(rpt_cli));
 	res = 0;
 #else
 	/* Register cli extensions */

Modified: team/phsultan/jabberreceive/apps/app_sms.c

[... 4847 lines stripped ...]



More information about the svn-commits mailing list