Commit Graph

1089 Commits

Author SHA1 Message Date
Philippe Sultan
ca5d70859b Merged revisions 125703 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r125703 | phsultan | 2008-06-27 09:28:17 +0200 (Fri, 27 Jun 2008) | 1 line

Fix a compile time error that occurs if OpenSSL is not installed. Reported by Noel Morais on the users mailing list
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@125704 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-27 07:41:54 +00:00
Kevin P. Fleming
d28ea4a844 Merged revisions 125279 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r125279 | kpfleming | 2008-06-26 07:09:24 -0500 (Thu, 26 Jun 2008) | 2 lines

fix compile failure found by buildbot (go, buildbot!)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@125280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-26 12:11:19 +00:00
Kevin P. Fleming
0b30f14b33 Merged revisions 125138 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r125138 | kpfleming | 2008-06-25 18:05:28 -0500 (Wed, 25 Jun 2008) | 18 lines

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

........
r125132 | kpfleming | 2008-06-25 17:21:30 -0500 (Wed, 25 Jun 2008) | 10 lines

allow tonezone to live in a different place than DAHDI/Zaptel, since dahdi-tools and dahdi-linux are now separate packages and can be installed in different places

don't include tonezone.h in dahdi_compat.h, because only a couple of modules need it

get app_rpt building again after the DAHDI changes

(closes issue #12911)
Reported by: tzafrir


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@125146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-25 23:20:35 +00:00
Philippe Sultan
a8231e854e Merged revisions 124872 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r124872 | phsultan | 2008-06-24 19:50:22 +0200 (Tue, 24 Jun 2008) | 6 lines

Subscribe to buddy's presence only if we really need to. That is, if
the corresponding roster item has a subscription value set to "none"
or "from".

Make the code more readable.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@124873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-24 17:52:02 +00:00
Philippe Sultan
4ee5ce0e55 Merged revisions 124870 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r124870 | phsultan | 2008-06-24 19:28:39 +0200 (Tue, 24 Jun 2008) | 1 line

Code simplification
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@124871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-24 17:34:53 +00:00
Tilghman Lesher
5f20127c71 Merged revisions 124505 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r124505 | tilghman | 2008-06-21 07:53:48 -0500 (Sat, 21 Jun 2008) | 4 lines

Reduce warning to debug, otherwise we flood the log when we (legitimately)
can't find a record.
(Closes issue #12908)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@124506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-21 12:54:42 +00:00
Tilghman Lesher
b8690fbe1f Merged revisions 123952 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r123952 | tilghman | 2008-06-19 12:22:27 -0500 (Thu, 19 Jun 2008) | 6 lines

Don't change pointers that need to be later passed back for deallocation.
(closes issue #12572)
 Reported by: flyn
 Patches: 
       20080613__bug12572.diff.txt uploaded by Corydon76 (license 14)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@123958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-19 17:23:22 +00:00
Jeff Peeler
f089bbf663 Goodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. Configuration file and dialplan backwards compatability has been put in place where appropiate. Release announcement to follow.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@123332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-17 18:08:09 +00:00
Philippe Sultan
8c1b4ef44d Merged revisions 120676 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r120676 | phsultan | 2008-06-05 19:02:39 +0200 (Thu, 05 Jun 2008) | 10 lines

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

........
r120675 | phsultan | 2008-06-05 18:56:15 +0200 (Thu, 05 Jun 2008) | 2 lines

Ignore appended resource when comparing JIDs.

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@120677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-05 17:17:28 +00:00
Tilghman Lesher
ca20011d2c Merged revisions 120602 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r120602 | tilghman | 2008-06-05 10:58:11 -0500 (Thu, 05 Jun 2008) | 4 lines

Conditionally load the AGI command gosub, depending on whether or not res_agi
has been loaded, fix a return value in the loader, and ensure that the help
workhorse header does not print on load.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@120603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-05 16:01:32 +00:00
Tilghman Lesher
ac54d54fc5 Merged revisions 120171 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r120171 | tilghman | 2008-06-03 17:05:16 -0500 (Tue, 03 Jun 2008) | 5 lines

Move compatibility options into asterisk.conf, default them to on for upgrades,
and off for new installations.  This includes the translation from pipes to commas
for pbx_realtime and the EXEC command for AGI, as well as the change to the Set
application not to support multiple variables at once.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@120172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-03 22:08:56 +00:00
Steve Murphy
5c1b2dedc5 Merged revisions 119930 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r119930 | murf | 2008-06-03 09:07:20 -0600 (Tue, 03 Jun 2008) | 24 lines

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

........
r119929 | murf | 2008-06-03 08:49:46 -0600 (Tue, 03 Jun 2008) | 16 lines

as per http://lists.digium.com/pipermail/asterisk-users/2008-June/212934.html,
which is a message from Philipp Kempgen, requesting that the WARNING
that an extension is empty be reduced to a NOTICE or less, as empty
extensions are syntactically possible, and no big deal.

With which I agree, and have removed that WARNING message entirely.
I think it is not necessary to see this message. It didn't 
state that a NoOp() was inserted automatically on your behalf,
and really, as users, who cares? Why freak out dialplan writers
with unnecessary warnings? The details of the machinations a compiler goes
thru to produce working assembly code is of little interest
to most programmers-- we will follow the unix principal of
doing our work silently.



........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@119931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-03 15:12:28 +00:00
Philippe Sultan
029ac4cb4d Merged revisions 119741 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r119741 | phsultan | 2008-06-02 16:35:24 +0200 (Mon, 02 Jun 2008) | 13 lines

Do not link the guest account with any configured XMPP client (in
jabber.conf). The actual connection is made when a call comes in
Asterisk.

Apply this fix to Jingle too.

Fix the ast_aji_get_client function that was not able to retrieve an
XMPP client from its JID.

(closes issue #12085)
Reported by: junky
Tested by: phsultan

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@119743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-02 14:40:42 +00:00
Tilghman Lesher
e3dec82d84 Merged revisions 118302 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r118302 | tilghman | 2008-05-27 08:30:10 -0500 (Tue, 27 May 2008) | 6 lines

When binding anonymously, credentials are still needed.
(closes issue #12601)
 Reported by: suretec
 Patches: 
       res_config_ldap.c.patch uploaded by suretec (license 70)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@118303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-27 13:30:59 +00:00
Tilghman Lesher
6ece458a1a Merged revisions 118129 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r118129 | tilghman | 2008-05-23 13:09:14 -0500 (Fri, 23 May 2008) | 3 lines

Protect the object from changing while the 'odbc show' CLI command is running
(Closes issue #12704)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@118130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-23 18:15:41 +00:00
Philippe Sultan
01f7b2b579 Merged revisions 118020 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r118020 | phsultan | 2008-05-23 12:33:21 +0200 (Fri, 23 May 2008) | 15 lines

- remove whitespaces between tags in received XML packets before giving
them to the parser ;
- report Gtalk error messages from a buddy to the console.

This patch makes Asterisk "Google Jingle" (chan_gtalk) implementation
work with Empathy. Note that this is only true for audio streams, not
video.

Thank you to PH for his great help!

(closes issue #12647)
Reported by: PH
Patches:
      trunk-12647-1.diff uploaded by phsultan (license 73)
Tested by: phsultan, PH
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@118021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-23 11:02:21 +00:00
Joshua Colp
5f996f261f Merged revisions 117136 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r117136 | file | 2008-05-19 13:53:33 -0300 (Mon, 19 May 2008) | 14 lines

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

........
r117135 | file | 2008-05-19 13:50:52 -0300 (Mon, 19 May 2008) | 6 lines

Use the right pthread lock and condition when waiting.
(closes issue #12664)
Reported by: tomo1657
Patches:
      res_smdi.c.patch uploaded by tomo1657 (license 484)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@117137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-19 16:58:10 +00:00
Tilghman Lesher
6368b8d86e Merged revisions 116467 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r116467 | tilghman | 2008-05-14 16:39:06 -0500 (Wed, 14 May 2008) | 15 lines

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

........
r116466 | tilghman | 2008-05-14 16:38:09 -0500 (Wed, 14 May 2008) | 7 lines

Avoid zombies when the channel exits before the AGI.
(closes issue #12648)
 Reported by: gkloepfer
 Patches: 
       20080514__bug12648.diff.txt uploaded by Corydon76 (license 14)
 Tested by: gkloepfer

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@116468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-14 21:39:47 +00:00
Joshua Colp
a90f428994 Merged revisions 116350 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r116350 | file | 2008-05-14 15:25:54 -0300 (Wed, 14 May 2008) | 4 lines

Make the ldap version setting work without having both version and protocol set.
(closes issue #12613)
Reported by: suretec

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@116351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-14 18:27:06 +00:00
Russell Bryant
ba49e91504 Merged revisions 115847 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r115847 | russell | 2008-05-13 12:14:22 -0500 (Tue, 13 May 2008) | 2 lines

Initialize the start time in smdi_msg_wait.  Somehow this code got lost in trunk.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-13 17:14:50 +00:00
Russell Bryant
f4eeb3481b Merged revisions 115523 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r115523 | russell | 2008-05-07 13:33:50 -0500 (Wed, 07 May 2008) | 6 lines

Only save a password if a username exists.

(closes issue #12600)
Reported By: suretec
Patch by me

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115524 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-07 18:35:52 +00:00
Russell Bryant
41a4500980 Merged revisions 115521 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r115521 | russell | 2008-05-07 13:30:12 -0500 (Wed, 07 May 2008) | 7 lines

Use the default that the log output claims will be used for the basedn

(closes issue #12599)
Reported by: suretec
Patches:
      12599.patch uploaded by juggie (license 24)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-07 18:30:29 +00:00
Jason Parker
4b4910e35b Merged revisions 115419 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r115419 | qwell | 2008-05-06 14:38:44 -0500 (Tue, 06 May 2008) | 15 lines

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

........
r115418 | qwell | 2008-05-06 14:34:58 -0500 (Tue, 06 May 2008) | 7 lines

Switch to using ast_random() rather than just rand().
This does not fix the bug reported, but I believe it is correct.

(from issue #12446)
Patches:
      bug_12446.diff uploaded by snuffy (license 35)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@115420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-06 19:39:11 +00:00
Jason Parker
fff476985f Merged revisions 114830 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r114830 | qwell | 2008-04-29 12:10:55 -0500 (Tue, 29 Apr 2008) | 9 lines

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

........
r114829 | qwell | 2008-04-29 12:08:55 -0500 (Tue, 29 Apr 2008) | 1 line

Change warning message to debug, since there are cases where 0 results is perfectly fine.
........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-29 17:11:57 +00:00
Jason Parker
9b9c0983eb Merged revisions 114595 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r114595 | qwell | 2008-04-23 13:33:28 -0500 (Wed, 23 Apr 2008) | 16 lines

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

........
r114594 | qwell | 2008-04-23 13:28:44 -0500 (Wed, 23 Apr 2008) | 8 lines

Fix reload/unload for res_musiconhold module.

(closes issue #11575)
Reported by: sunder
Patches:
      M11575_14_rev3.diff uploaded by junky (license 177)
      bug11575_trunk.diff.txt uploaded by jamesgolovich (license 176)

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-23 18:34:50 +00:00
Joshua Colp
6299cfdad7 Merged revisions 114320 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r114320 | file | 2008-04-21 11:34:06 -0300 (Mon, 21 Apr 2008) | 6 lines

Only print out the error message if ldap_modify_ext_s actually returns an error, and not success.
(closes issue #12438)
Reported by: gservat
Patches:
      res_config_ldap.c-patch-code uploaded by gservat (license 466)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-21 14:35:53 +00:00
Joshua Colp
1281ed267b Merged revisions 114254 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r114254 | file | 2008-04-18 13:11:27 -0300 (Fri, 18 Apr 2008) | 4 lines

If the parsing of the config file fails make sure we unlock ldap_lock.
(closes issue #12477)
Reported by: IgorG

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-18 16:12:45 +00:00
Philippe Sultan
c35209317d Merged revisions 114199 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r114199 | phsultan | 2008-04-17 15:46:17 +0200 (Thu, 17 Apr 2008) | 10 lines

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

........
r114198 | phsultan | 2008-04-17 15:42:23 +0200 (Thu, 17 Apr 2008) | 2 lines

Use keepalives effectively in order diagnose bug #12432.

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-17 13:55:10 +00:00
Tilghman Lesher
6c2506be3c Merged revisions 114196 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r114196 | tilghman | 2008-04-17 07:59:04 -0500 (Thu, 17 Apr 2008) | 16 lines

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

........
r114195 | tilghman | 2008-04-17 07:56:38 -0500 (Thu, 17 Apr 2008) | 8 lines

Add special case for when the agi cannot be executed, to comply with the documentation that
we return failure in that case.
(closes issue #12462)
 Reported by: fmueller
 Patches: 
       20080416__bug12462.diff.txt uploaded by Corydon76 (license 14)
 Tested by: fmueller

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-17 12:59:59 +00:00
Tilghman Lesher
50071e070c Merged revisions 114085 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r114085 | tilghman | 2008-04-11 18:12:16 -0500 (Fri, 11 Apr 2008) | 7 lines

Use the correct function for free'ing objects, and maybe we won't crash.
(closes issue #12163)
 Reported by: gservat
 Patches: 
       20080411__bug12163.diff.txt uploaded by Corydon76 (license 14)
 Tested by: gservat

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 23:13:07 +00:00
Tilghman Lesher
f26629cd1e Merged revisions 114061 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r114061 | tilghman | 2008-04-11 09:54:22 -0500 (Fri, 11 Apr 2008) | 6 lines

Errors are all greater than 0
(closes issue #12422)
 Reported by: nito
 Patches: 
       res_config_ldap_result_check_patch.diff uploaded by nito (license 340)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-11 14:56:12 +00:00
Tilghman Lesher
613dcc788b Merged revisions 112972 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r112972 | tilghman | 2008-04-05 08:24:12 -0500 (Sat, 05 Apr 2008) | 6 lines

AsyncAGI should not close the manager session on error.
(closes issue #12370)
 Reported by: srt
 Patches: 
       asterisk-12370.diff uploaded by srt (license 378)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@112975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-05 13:30:54 +00:00
Joshua Colp
e6e67bde76 Merged revisions 111961 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r111961 | file | 2008-03-31 11:20:39 -0300 (Mon, 31 Mar 2008) | 4 lines

Initialize all these here tmp pointers at declaration. They confused some compilers a wee bit.
(closes issue #12333)
Reported by: ovi

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@111962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-31 14:22:27 +00:00
Steve Murphy
c51c46ba7f Merged revisions 111360 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r111360 | murf | 2008-03-26 22:47:12 -0600 (Wed, 26 Mar 2008) | 23 lines

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

........
r111341 | murf | 2008-03-26 21:21:05 -0600 (Wed, 26 Mar 2008) | 15 lines


(closes issue #12302)
Reported by: pj
Tested by: murf

These changes will set a channel variable ~~EXTEN~~ just before generating code
for a switch, with the value of ${EXTEN}. The exten is marked as having a switch, 
and ever after that, till the end of the exten, we substitute any ${EXTEN} 
with ${~~EXTEN~~} instead in application arguments; (and the ${EXTEN: also). 
The reason for this, is that because switches are coded using 
separate extensions to provide pattern matching, and
jumping to/from these switch extensions messes up the ${EXTEN} value, 
which blows the minds of users.


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@111361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-27 05:16:26 +00:00
Russell Bryant
30f7c61f66 Merged revisions 110268 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r110268 | russell | 2008-03-20 12:41:22 -0500 (Thu, 20 Mar 2008) | 27 lines

Add some fixes that I made in regards to wideband codec handling to get
G.722 music on hold working for me.

(issue #12164, reported by milazzo and jsmith, patches by me)

res/res_musiconhold.c:
 - I moved a single line so that the sample queue update happened before
   ast_write().  The reason that this was a bug is that the G.722 frame
   originally says it has 320 samples in it (which is correct).  However,
   when the frame is written to a channel that uses RTP, main/rtp.c modifies
   the frame to cut the number of samples in half before it sends it on
   the wire.  This is to account for the stupid incorrect G.722 spec that
   makes it so we have to lie about the number of samples with RTP.  I should
   probably go and re-work the RTP code so it doesn't modify the frame so
   that a bug like this won't happen in the future.  However, this change to
   MOH is harmless.

main/channel.c:
 - I made two fixes in regards to generator timing.  Generators use samples
   for timing.  However, this code assumed 8 kHz samples.  In one case, it was
   a hard coded 160 samples, that is now written as the sample rate / 50.  The
   other place was dealing with timing a generator based on frames coming from
   the other direction.  However, that would have only worked if the sample
   rates for the formats in both directions were the same.  The code now takes
   into account that the sample rates may differ, and scales the generator
   samples accordingly.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@110269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-20 17:41:45 +00:00
Joshua Colp
38a75f1b82 Merged revisions 110036 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r110036 | file | 2008-03-19 16:13:39 -0300 (Wed, 19 Mar 2008) | 12 lines

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

........
r110035 | file | 2008-03-19 16:11:33 -0300 (Wed, 19 Mar 2008) | 4 lines

Add sanity checking for position resuming. We *have* to make sure that the position does not exceed the total number of files present, and we have to make sure that the position's filename is the same as previous. These values can change if a music class is reloaded and give unpredictable behavior.
(closes issue #11663)
Reported by: junky

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@110037 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-19 19:14:56 +00:00
Tilghman Lesher
276e3411c6 Merged revisions 109775 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r109775 | tilghman | 2008-03-18 18:22:25 -0500 (Tue, 18 Mar 2008) | 3 lines

Change back to using ldap_initialize() and let the user specify a URL directly,
instead of trying to piece it together, badly.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-18 23:23:37 +00:00
Tilghman Lesher
39b162b00c Merged revisions 109683 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r109683 | tilghman | 2008-03-18 15:13:40 -0500 (Tue, 18 Mar 2008) | 4 lines

Set protocol version, port number correctly.
(closes issue #12211, closes issue #12209)
 Reported by: sylvain

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-18 20:14:44 +00:00
Russell Bryant
4af367c3a9 Merged revisions 109447 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r109447 | twilson | 2008-03-18 10:43:34 -0500 (Tue, 18 Mar 2008) | 3 lines

Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
actual problems, per se.  I also added format attributes to any printf wrapper functions I found that didn't have them.  -Wsecurity and -Wmissing-format-attribute added to --enable-dev-mode.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-18 15:58:50 +00:00
Steve Murphy
6c23fca72a Merged revisions 109357 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r109357 | murf | 2008-03-18 08:09:50 -0600 (Tue, 18 Mar 2008) | 25 lines

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

........
r109309 | murf | 2008-03-18 00:37:15 -0600 (Tue, 18 Mar 2008) | 17 lines

(closes issue #11903)
Reported by: atis

Many thanks to atis for spotting this problem and reporting it.
The fix was to straighten out how items are placed on and removed
from the file stack. Regressions as well as the provided test case
helped to straighten out all code paths. valgrind was used to make
sure all memory allocated was freed.

Sorry for not solving this earlier. I got distracted.

Added the ntest23 regression test, which is mainly a copy of ntest22, 
but with a few juicy errors thrown in, to replicate the kind of 
error that atis spotted.



........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@109397 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-18 15:14:22 +00:00
Jason Parker
c6a0820063 Merged revisions 108683 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r108683 | qwell | 2008-03-14 09:32:55 -0500 (Fri, 14 Mar 2008) | 12 lines

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

........
r108682 | qwell | 2008-03-14 09:29:05 -0500 (Fri, 14 Mar 2008) | 4 lines

Fix a potential segfault if chan (or chan->music_state) is NULL.

Closes issue #12210, credit to edantie for pointing this out.

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-14 14:33:33 +00:00
Russell Bryant
967d9d2c40 Merged revisions 108295 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r108295 | russell | 2008-03-12 17:13:18 -0500 (Wed, 12 Mar 2008) | 3 lines

Rename ast_tcptls_server_instance to session_instance, since this pertains to
server and client usage.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@108348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-12 22:50:14 +00:00
Tilghman Lesher
0d5ad6e21c Merged revisions 107791 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r107791 | tilghman | 2008-03-11 17:55:16 -0500 (Tue, 11 Mar 2008) | 5 lines

An offhand comment from Russell made me realize that the configuration file
caching would not work properly for users.conf and any other file read from
more than one place.  I needed to add the filename which requested the config
file to get it to work properly.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@107793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-11 22:59:52 +00:00
Kevin P. Fleming
b2fabfdb4c Merged revisions 107373 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r107373 | kpfleming | 2008-03-11 06:36:51 -0500 (Tue, 11 Mar 2008) | 19 lines

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

........
r107352 | kpfleming | 2008-03-11 06:04:29 -0500 (Tue, 11 Mar 2008) | 11 lines

fix up various compiler warnings found with gcc-4.3:

- the output of flex includes a static function called 'input' that is not used, so for the moment we'll stop having the compiler tell us about unused variables in the flex source files (a better fix would be to improve our flex post-processing to remove the unused function)

- main/stdtime/localtime.c makes assumptions about signed integer overflow, and gcc-4.3's improved optimizer tries to take advantage of handling potential overflow conditions at compile time; for now, suppress these optimizations until we can fiure out if the code needs improvement

- main/udptl.c has some references to uninitialized variables; in one case there was no bug, but in the other it was certainly possibly for unexpected behavior to occur

- main/editline/readline.c had an unused variable


........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@107374 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-11 11:39:32 +00:00
Donny Kavanagh
69b6111450 Merged revisions 106399 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r106399 | juggie | 2008-03-06 14:31:50 -0500 (Thu, 06 Mar 2008) | 9 lines

trivial fix for an agi error when attempting to use EAGI on a dead/hungup channel, we now print an error that makes sense 
given our removal of deadagi as an actual application.

(closes issue #12161)
Reported by: explidous
Patches:
      res_agi_12161.patch uploaded by juggie (license 24)
Tested by: juggie

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@106433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-06 20:39:49 +00:00
Tilghman Lesher
8abd853f7f Merged revisions 106346 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r106346 | tilghman | 2008-03-05 23:21:39 -0600 (Wed, 05 Mar 2008) | 7 lines

Missing braces, fix parsing
(closes issue #12112)
 Reported by: cyrenity
 Patches: 
       res_config_ldap.patch-03-03-2008 uploaded by cyrenity (license 416)
 Tested by: cyrenity, Corydon76

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@106359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-06 05:25:05 +00:00
Russell Bryant
78a863b9a2 Merged revisions 105773 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r105773 | russell | 2008-03-04 16:15:18 -0600 (Tue, 04 Mar 2008) | 2 lines

Rename public object server_instance to ast_tcptls_server_instance

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@106303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-06 00:11:09 +00:00
Russell Bryant
28f18301fd Merged revisions 105733 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r105733 | twilson | 2008-03-04 14:32:55 -0600 (Tue, 04 Mar 2008) | 2 lines

Set username to default to the category name if it isn't overridden by a usernmae= setting in users.conf

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@106301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-06 00:10:08 +00:00
Jason Parker
3c594ab9fa Merged revisions 105572 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r105572 | qwell | 2008-03-03 12:06:52 -0600 (Mon, 03 Mar 2008) | 7 lines

Fix types for astNumChannels and astConfigCallsProcessed.

(closes issue #12114)
Reported by: jeffg
Patches:
      12114.patch uploaded by jeffg (license 192)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@105573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-03 18:08:05 +00:00
Philippe Sultan
6ef8831aab Merged revisions 105326 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r105326 | phsultan | 2008-02-29 15:47:10 +0100 (Fri, 29 Feb 2008) | 1 line

Fix a potential memory leak
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@105327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-02-29 14:50:40 +00:00