]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
15 years agoCorrect sip.conf.sample comments for prematuremedia option.
Jeff Peeler [Tue, 6 Jul 2010 22:15:21 +0000 (22:15 +0000)] 
Correct sip.conf.sample comments for prematuremedia option.

(closes issue #17513)
Reported by: festr
Patches:
      patch uploaded by festr (license 443)

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

15 years agoAdd option to not do a call forward on 482 Loop Detected
Terry Wilson [Tue, 6 Jul 2010 22:08:20 +0000 (22:08 +0000)] 
Add option to not do a call forward on 482 Loop Detected

Asterisk has always set up a forwarded call when receiving a 482 Loop Detected.
This prevents handling the call failure by just continuing on in the dialplan.
Since this would be a change in behavior, the new option to disable this
behavior is forwardloopdetected which defaults to 'yes'.

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

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

15 years agoFix problem with RFC 2833 DTMF not being accepted.
Mark Michelson [Tue, 6 Jul 2010 14:29:23 +0000 (14:29 +0000)] 
Fix problem with RFC 2833 DTMF not being accepted.

A recent check was added to ensure that we did not erroneously
detect duplicate DTMF when we received packets out of order.
The problem was that the check did not account for the fact that
the seqno of an RTP stream will roll over back to 0 after hitting
65535. Now, we have a secondary check that will ensure that the
seqno rolling over will not cause us to stop accepting DTMF.

(closes issue #17571)
Reported by: mdeneen
Patches:
      rtp_seqno_rollover.patch uploaded by mmichelson (license 60)
Tested by: richardf, maxochoa, JJCinAZ

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

15 years agoMake get_member_status return QUEUE_NO_MEMBERS instead of QUEUE_NO_REACHABLE_MEMBERS...
Matthew Nicholson [Tue, 6 Jul 2010 13:52:28 +0000 (13:52 +0000)] 
Make get_member_status return QUEUE_NO_MEMBERS instead of QUEUE_NO_REACHABLE_MEMBERS to make joinempty=no work again.  This regression was introduced in 273639.  Also fixed whitespace.

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

15 years agoCommand 'stop gracefully' doesn't.
Tilghman Lesher [Mon, 5 Jul 2010 19:48:42 +0000 (19:48 +0000)] 
Command 'stop gracefully' doesn't.

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

15 years agoRemove extra line breaks from 'core show config mappings'
Paul Belanger [Mon, 5 Jul 2010 13:51:29 +0000 (13:51 +0000)] 
Remove extra line breaks from 'core show config mappings'

(closes issue #17583)
Reported by: pabelanger
Patches:
      issue17583.patch uploaded by pabelanger (license 224)
Tested by: lmadsen

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

15 years agoHave the DEADLOCK_AVOIDANCE macro warn when an unlock fails, to help catch potentiall...
Tilghman Lesher [Fri, 2 Jul 2010 21:36:39 +0000 (21:36 +0000)] 
Have the DEADLOCK_AVOIDANCE macro warn when an unlock fails, to help catch potentially large software bugs.

(closes issue #17407)
 Reported by: pdf
 Patches:
       20100527__issue17407.diff.txt uploaded by tilghman (license 14)

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

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

15 years agoAutoservice loop optimization causes a busy loop, when channels are serviced while...
Tilghman Lesher [Fri, 2 Jul 2010 17:09:47 +0000 (17:09 +0000)] 
Autoservice loop optimization causes a busy loop, when channels are serviced while in hangup.

(closes issue #17564)
 Reported by: ramonpeek
 Patches:
       20100630__issue17564.diff.txt uploaded by tilghman (license 14)
 Tested by: ramonpeek

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

15 years agoFix various typos, reported by Lintian
Tzafrir Cohen [Fri, 2 Jul 2010 15:54:17 +0000 (15:54 +0000)] 
Fix various typos, reported by Lintian

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

15 years agoIf all members are paused, the wrong status is indicated.
Tilghman Lesher [Fri, 2 Jul 2010 15:46:27 +0000 (15:46 +0000)] 
If all members are paused, the wrong status is indicated.

(closes issue #17576)
 Reported by: ramonpeek
 Patches:
       diff.txt uploaded by ramonpeek (license 266)
 Tested by: ramonpeek

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

15 years agoDon't return a partially initialized datastore.
Russell Bryant [Thu, 1 Jul 2010 22:09:19 +0000 (22:09 +0000)] 
Don't return a partially initialized datastore.

If memory allocation fails in ast_strdup(), don't return a partially
initialized datastore.  Bad things may happen.

(related to ABE-2415)

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

15 years agoAllow admin user to join conference without using admin mode and no user pin.
Jeff Peeler [Thu, 1 Jul 2010 20:19:16 +0000 (20:19 +0000)] 
Allow admin user to join conference without using admin mode and no user pin.

Configuring the conference in meetme.conf like the following:
conf => 2345,,6666
did not prompt for pin when used without admin mode. This meant that the
conference could not be joined as an admin even if the user knew the correct
pin. The original bug report was submitted claiming that the blank user pin
should deny entry into the conference. I think a better way to handle this
would be with a feature enhancement that used the following syntax:
conf => 2345,X,6666 - where X denotes no acceptable pin allowed

(closes issue #15704)
Reported by: modelnine

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

15 years agoEnsure channel placed in meetme in ringing state is properly hung up.
Jeff Peeler [Thu, 1 Jul 2010 15:05:43 +0000 (15:05 +0000)] 
Ensure channel placed in meetme in ringing state is properly hung up.

An outgoing channel placed in meetme while still ringing which was then hung up
would not exit meetme and the channel was not properly destroyed. Specifically
checking for this scenario by looking at the appropriate control frames resolves
the issue.

(closes issue #15871)
Reported by: Ivan
Patches:
      meetme_congestion_trunk_v2.patch uploaded by Ivan (license 229)

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

15 years agoAllow the "useragent" value to be restored into memory from the realtime backend.
Tilghman Lesher [Tue, 29 Jun 2010 23:15:28 +0000 (23:15 +0000)] 
Allow the "useragent" value to be restored into memory from the realtime backend.

This value is purely informational.  It does not alter configuration at all.

(closes issue #16029)
 Reported by: Guggemand
 Patches:
       realtime-useragent.patch uploaded by Guggemand (license 897)
 Tested by: Guggemand

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

15 years ago_Really_ skip the channel... don't just retry for another 200 cycles.
Tilghman Lesher [Tue, 29 Jun 2010 22:58:58 +0000 (22:58 +0000)] 
_Really_ skip the channel... don't just retry for another 200 cycles.

(Closes issue SWP-1652, ABE-2240)

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

15 years agoRemove properties that were erroneously merged to 1.4 from one of my branches.
Russell Bryant [Tue, 29 Jun 2010 21:36:41 +0000 (21:36 +0000)] 
Remove properties that were erroneously merged to 1.4 from one of my branches.

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

15 years agoDon't change ownership/group/permissions on run directory, if it already exists.
Tilghman Lesher [Mon, 28 Jun 2010 21:50:02 +0000 (21:50 +0000)] 
Don't change ownership/group/permissions on run directory, if it already exists.

(closes issue #17076)
 Reported by: stuarth
 Patches:
       20100324__issue17076.diff.txt uploaded by tilghman (license 14)
 Tested by: stuarth

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

15 years agoAlso trim trailing blanks on #includes
Tilghman Lesher [Mon, 28 Jun 2010 21:38:49 +0000 (21:38 +0000)] 
Also trim trailing blanks on #includes

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

15 years agoChange the way that we read include files, to accommodate for changes in GCC 4.4.
Tilghman Lesher [Mon, 28 Jun 2010 21:29:27 +0000 (21:29 +0000)] 
Change the way that we read include files, to accommodate for changes in GCC 4.4.

(closes issue #17472)
 Reported by: seandarcy
 Patches:
       config2.patch uploaded by nivan (license 1066)
 Tested by: nivan

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

15 years agoBackport applicable parts of test_astobj2.
Russell Bryant [Mon, 28 Jun 2010 18:47:29 +0000 (18:47 +0000)] 
Backport applicable parts of test_astobj2.

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

15 years agoBackport unit test API to 1.4.
Russell Bryant [Mon, 28 Jun 2010 18:34:18 +0000 (18:34 +0000)] 
Backport unit test API to 1.4.

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

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

15 years agoDecode URI in contact header of 302 response.
Mark Michelson [Mon, 28 Jun 2010 17:31:40 +0000 (17:31 +0000)] 
Decode URI in contact header of 302 response.

ABE-2352

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

15 years agoForce SILENTMAKE where it is needed.
Russell Bryant [Mon, 28 Jun 2010 17:11:01 +0000 (17:11 +0000)] 
Force SILENTMAKE where it is needed.

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

15 years agoBackport method of setting SUBMAKE from trunk.
Russell Bryant [Mon, 28 Jun 2010 15:58:48 +0000 (15:58 +0000)] 
Backport method of setting SUBMAKE from trunk.

By setting the PRINT_DIR variable, SUBMAKE will print out the directories it
descends into, which is important for editors (like vim) that watch the build
output so that they can take you to the file where an error occurred.

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

15 years agoMake the structure of the table specified before match the queries and results.
Tilghman Lesher [Fri, 25 Jun 2010 20:17:37 +0000 (20:17 +0000)] 
Make the structure of the table specified before match the queries and results.

(closes issue #17557)
 Reported by: cmaj

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

15 years agoss_thread calls pri_grab without lock during overlap dial
Richard Mudgett [Thu, 24 Jun 2010 21:58:49 +0000 (21:58 +0000)] 
ss_thread calls pri_grab without lock during overlap dial

Recent changes to chan_dahdi with relation to overlap dialing call
pri_grab without first obtaining a lock.

(closes issue #17414)
Reported by: pdf
Patches:
      bug17414.patch uploaded by jpeeler (license 325)

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

15 years agoSend AgentComplete manager events in the event of blind and attended transfers.
Matthew Nicholson [Wed, 23 Jun 2010 22:33:51 +0000 (22:33 +0000)] 
Send AgentComplete manager events in the event of blind and attended transfers.

(closes issue #16819)
Reported by: elbriga
Patches:
      app_queue.diff uploaded by elbriga (license 482)

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

15 years agoFirst caller into a dynamic conference now enter pin once.
Paul Belanger [Wed, 23 Jun 2010 20:57:01 +0000 (20:57 +0000)] 
First caller into a dynamic conference now enter pin once.

If MeetMe is configured to use dynamic conference
numbers, then the first caller (which creates the
conference) had to enter the PIN number twice.

(closes issue #15878)
Reported by: shawkris
Patches:
      issue15878.patch uploaded by pabelanger (license 224)
Tested by: pabelanger

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

15 years agoBackport part of revision 136715 to fix callerid in voicemail text files (IMAP only).
Tilghman Lesher [Wed, 23 Jun 2010 18:40:28 +0000 (18:40 +0000)] 
Backport part of revision 136715 to fix callerid in voicemail text files (IMAP only).

(closes issue #16945)
 Reported by: mneuhauser

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

15 years agoDecrease the module ref count in sip_hangup when SIP_DEFER_BYE_ON_TRANSFER is set...
Matthew Nicholson [Tue, 22 Jun 2010 17:31:57 +0000 (17:31 +0000)] 
Decrease the module ref count in sip_hangup when SIP_DEFER_BYE_ON_TRANSFER is set.  This is necessary to keep the ref count correct.

(closes issue #16815)
Reported by: rain
Patches:
      chan_sip-unref-fix.diff uploaded by rain (license 327) (modified)
Tested by: rain

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

15 years agoAllow users to specify a port for dundi peers.
Matthew Nicholson [Tue, 22 Jun 2010 14:49:36 +0000 (14:49 +0000)] 
Allow users to specify a port for dundi peers.

(closes issue #17056)
Reported by: klaus3000
Patches:
      dundi-peerport-patch-trunk.txt uploaded by klaus3000 (license 65)
Tested by: klaus3000

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

15 years agoModify chan_sip's packet generation api to automatically calculate the Content-Length...
Matthew Nicholson [Tue, 22 Jun 2010 12:52:27 +0000 (12:52 +0000)] 
Modify chan_sip's packet generation api to automatically calculate the Content-Length.  This is done by storing packet content in a buffer until it is actually time to send the packet, at which time the size of the packet is calculated.  This change was made to ensure that the Content-Length is always correct.

(closes issue #17326)
Reported by: kenner
Tested by: mnicholson, kenner

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

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

15 years agoDo not use sizeof to calculate size of a heap allocated character array.
Jeff Peeler [Mon, 21 Jun 2010 20:37:47 +0000 (20:37 +0000)] 
Do not use sizeof to calculate size of a heap allocated character array.

Change left out from 271399.

(closes issue #16053)
Reported by: diLLec

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

15 years agoCheck for newly added memory allocation failures gracefully during AEL2 parsing.
Jeff Peeler [Fri, 18 Jun 2010 20:52:26 +0000 (20:52 +0000)] 
Check for newly added memory allocation failures gracefully during AEL2 parsing.

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

15 years agoFix crash when parsing some heavily nested statements in AEL on reload.
Jeff Peeler [Fri, 18 Jun 2010 19:28:24 +0000 (19:28 +0000)] 
Fix crash when parsing some heavily nested statements in AEL on reload.

Due to the recursion used when compiling AEL in gen_prios, all the stack space
was being consumed when parsing some AEL that contained nesting 13 levels deep.
Changing a few large buffers to be heap allocated fixed the crash, although I
did not test how many more levels can now be safely used.

(closes issue #16053)
Reported by: diLLec
Tested by: jpeeler

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

15 years agoRemove an unnecessary assignment that causes a DEBUG_THREADS build failure on mac...
Russell Bryant [Fri, 18 Jun 2010 18:54:09 +0000 (18:54 +0000)] 
Remove an unnecessary assignment that causes a DEBUG_THREADS build failure on mac os x.

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

15 years agoFix a build problem on Mac OS X with DEBUG_THREADS enabled.
Russell Bryant [Fri, 18 Jun 2010 18:44:38 +0000 (18:44 +0000)] 
Fix a build problem on Mac OS X with DEBUG_THREADS enabled.

This set of changes was already in trunk.

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

15 years agoEliminate deadlock potential in dahdi_fixup().
Jeff Peeler [Fri, 18 Jun 2010 18:33:17 +0000 (18:33 +0000)] 
Eliminate deadlock potential in dahdi_fixup().

(This is a backport of 269307, committed to trunk by rmudgett.)

Calling dahdi_indicate() when the channel private lock is already
held can cause a deadlock if the PRI lock is needed because
dahdi_indicate() will also get the channel private lock.  The pri_grab()
function assumes that the channel private lock is held once to avoid
deadlock.

(closes issue #17261)
Reported by: aragon

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

15 years agoSet sin_family in ast_get_ip_or_srv() and removed the 'last' member of the ast_dnsmgr...
Matthew Nicholson [Thu, 17 Jun 2010 15:11:27 +0000 (15:11 +0000)] 
Set sin_family in ast_get_ip_or_srv() and removed the 'last' member of the ast_dnsmgr_entry struct.

(closes issue #15827)
Reported by: DennisD
Patches:
      (modified) dnsmgr_15827.patch uploaded by chappell (license 8)

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

15 years agoNeed to lock the agent chan before access its internal bits.
Jason Parker [Wed, 16 Jun 2010 21:10:09 +0000 (21:10 +0000)] 
Need to lock the agent chan before access its internal bits.

Pointed out by russellb on asterisk-dev mailing list.

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

15 years agoFixed typo in macro-page
Paul Belanger [Wed, 16 Jun 2010 21:10:05 +0000 (21:10 +0000)] 
Fixed typo in macro-page

Reported to #asterisk-dev by a student of jsmith.

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

15 years agofixes chan_iax2 race condition
David Vossel [Wed, 16 Jun 2010 17:35:29 +0000 (17:35 +0000)] 
fixes chan_iax2 race condition

There is code in chan_iax2.c that attempts to guarantee that only a single
active thread will handle a call number at a time.  This code works once
the thread is added to an active_list of threads, but we are not currently
guaranteed that a newly activated thread will enter the active_list immediately
because it is left up to the thread to add itself after frames have been
queued to it.  This means that if two frames come in for the same call number
at the same time, it is possible for them to grab two separate threads because
the first thread did not add itself to the active_list fast enough.  This
causes some pretty complex problems.

This patch resolves this race condition by immediately adding an activated
thread to the active_list within the network thread and only depending on
the thread to remove itself once it is done processing the frames queued to
it.  By doing this we are guaranteed that if another frame for the same call
number comes in at the same time, that this thread will immediately be found
in the active_list of threads.

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

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

15 years agoMerged revisions 270658 via svnmerge from
Terry Wilson [Tue, 15 Jun 2010 22:34:30 +0000 (22:34 +0000)] 
Merged revisions 270658 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r270658 | twilson | 2010-06-15 15:18:04 -0500 (Tue, 15 Jun 2010) | 20 lines

  Make contactdeny apply to src ip when nat=yes

  chan_sip's "contactdeny" feature screens the "to be registered contact".
  In case of nat=yes it should not use the address information from the
  Contact header (which is not used at all for routing), but the source
  IP address of the request.

  Thus, if nat=yes and a client sends a request from a denied IP address
  (e.g. by spoofing the src-IP address) it can bypass the screening.

  This commit makes contactdeny apply to the src ip when nat=yes instead.

  (closes issue #17276)
  Reported by: klaus3000
  Patches:
        patch-asterisk-trunk-contactdeny.txt uploaded by klaus3000 (license 65)
  Tested by: klaus3000

  Review: [full review board URL with trailing slash]
........

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

15 years agoVariables have always been case-sensitive, so we should not be removing case-insensit...
Tilghman Lesher [Tue, 15 Jun 2010 18:25:12 +0000 (18:25 +0000)] 
Variables have always been case-sensitive, so we should not be removing case-insensitive matches.

Bug reported via the -dev list.  See
http://lists.digium.com/pipermail/asterisk-dev/2010-June/044510.html

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

15 years agoMove information about zonemessages into the [zonemessages] section.
Leif Madsen [Tue, 15 Jun 2010 12:47:03 +0000 (12:47 +0000)] 
Move information about zonemessages into the [zonemessages] section.

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

15 years agofixes FXS port still ringing when answered, as reported by Tzafrir on dev-list.
Alec L Davis [Tue, 15 Jun 2010 00:16:03 +0000 (00:16 +0000)] 
fixes FXS port still ringing when answered, as reported by Tzafrir on dev-list.

(issue #17067)
Reported by: tzafrir
Tested by: alecdavis

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

15 years agoProperly play first file in sort list.
Paul Belanger [Mon, 14 Jun 2010 21:31:59 +0000 (21:31 +0000)] 
Properly play first file in sort list.

When using sort=alpha we would always skip the first file
in the list first time through.  We now check for that
properly.

(closes issue #17470)
Reported by: pabelanger
Patches:
      sort.aplha.patch uploaded by pabelanger (license 224)
Tested by: lmadsen

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

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

15 years agoFix typo in example
Paul Belanger [Sat, 12 Jun 2010 18:54:20 +0000 (18:54 +0000)] 
Fix typo in example

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

15 years agoFor SpeeX, 0 bits remaining is valid and does not need an emitted warning.
Tilghman Lesher [Fri, 11 Jun 2010 18:23:05 +0000 (18:23 +0000)] 
For SpeeX, 0 bits remaining is valid and does not need an emitted warning.

(closes issue #15762)
 Reported by: nblasgen
 Patches:
       issue15672.patch uploaded by pabelanger (license 224)
 Tested by: nblasgen

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

15 years agoFix potential crash when writing raw SLIN audio on a PLC-enabled channel.
Mark Michelson [Thu, 10 Jun 2010 19:30:12 +0000 (19:30 +0000)] 
Fix potential crash when writing raw SLIN audio on a PLC-enabled channel.

The issue here was that the frame created when adjusting for PLC had no offset
to its audio data. If this frame were translated to another format prior to
being sent out an RTP socket, all went well because the translation code would
put an appropriate offset into the frame. However, if the SLIN audio were not
translated before being sent out the RTP socket, bad things would happen.
Specifically, the ast_rtp_raw_write makes the assumption that the frame has
at least enough of an offset that it can accommodate an RTP header. This was
not the case. As such, data was being written prior to the allocation, likely
corrupting the data the memory allocator had written. Thus when the time came
to free the data, all hell broke loose. ....Well, Asterisk crashed at least.

The fix was just what one would expect. Offset the data in the frame by a reasonable
amount. The method I used is a bit odd since the data in the frame is 16 bit integers
and not bytes. I left a big ol' comment about it. This can be improved on if someone
is interested. I was more interested in getting the crash resolved.

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

15 years agoAdd text version of PLC doc to 1.4
Mark Michelson [Thu, 10 Jun 2010 17:30:40 +0000 (17:30 +0000)] 
Add text version of PLC doc to 1.4

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

15 years agoEnsure restartable system calls can restart (BSD signal semantics)
Tilghman Lesher [Thu, 10 Jun 2010 07:52:34 +0000 (07:52 +0000)] 
Ensure restartable system calls can restart (BSD signal semantics)

This eliminates the annoying <beep> on the console.

(closes issue #17477)
 Reported by: jvandal
 Patches:
       20100610__issue17477.diff.txt uploaded by tilghman (license 14)

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

15 years agoDon't stop Asterisk if chan_oss fails to register 'Console' (due to another channel...
Russell Bryant [Wed, 9 Jun 2010 22:18:37 +0000 (22:18 +0000)] 
Don't stop Asterisk if chan_oss fails to register 'Console' (due to another channel driver already claiming it).

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

15 years agoLet systems without a working fork() use res_musiconhold.
Jason Parker [Wed, 9 Jun 2010 21:19:17 +0000 (21:19 +0000)] 
Let systems without a working fork() use res_musiconhold.

Files mode doesn't require anything special, so that can still be used just fine.

AST-357

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

15 years agoFix Debian init script to not use -c.
Paul Belanger [Wed, 9 Jun 2010 17:24:53 +0000 (17:24 +0000)] 
Fix Debian init script to not use -c.

When using the init script as-is currently, it could cause issues on Debian
such as high CPU usage. This fix has worked for several people so I'm
implementing the change.  We now handle color displays properly.

(closes issue #16784)
Reported by: pabelanger
Patches:
      20100530__issue16784__2.diff.txt uploaded by tilghman (license 14)
Tested by: pabelanger, tilghman

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

15 years agoReduce startup time for cdr_tds with large CDR tables.
Sean Bright [Tue, 8 Jun 2010 15:28:49 +0000 (15:28 +0000)] 
Reduce startup time for cdr_tds with large CDR tables.

Since we are just checking for table existence, add a WHERE clause that will
return no rows but will raise an error if the table doesn't exist.

(closes issue #17380)
Reported by: kkwong
Patches:
      issue17380-01.patch uploaded by seanbright (license 71)
Tested by: kkwong

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

15 years agoFix summary for "core waitfullybooted" CLI command. Thanks, mnicholson.
Russell Bryant [Mon, 7 Jun 2010 16:07:43 +0000 (16:07 +0000)] 
Fix summary for "core waitfullybooted" CLI command.  Thanks, mnicholson.

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

15 years agoRest In Peace
Tilghman Lesher [Sat, 5 Jun 2010 02:49:52 +0000 (02:49 +0000)] 
Rest In Peace
http://www.outandaboutnewspaper.com/article/4061

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

15 years agoGet rid of a warning that gets printed out when the console is configured without...
Russell Bryant [Fri, 4 Jun 2010 21:40:53 +0000 (21:40 +0000)] 
Get rid of a warning that gets printed out when the console is configured without any logger levels

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

15 years agoAC_CONFIG_SUBDIRS has a bad side-effect on cross-compiles.
Tilghman Lesher [Fri, 4 Jun 2010 20:41:24 +0000 (20:41 +0000)] 
AC_CONFIG_SUBDIRS has a bad side-effect on cross-compiles.

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

15 years agoComment out a rule that likes to break the chan_h323 build randomly.
Russell Bryant [Fri, 4 Jun 2010 19:47:41 +0000 (19:47 +0000)] 
Comment out a rule that likes to break the chan_h323 build randomly.

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

15 years agoBuild menuselect with the build environment's compiler, not the host (target)'s compiler.
Tilghman Lesher [Fri, 4 Jun 2010 19:38:57 +0000 (19:38 +0000)] 
Build menuselect with the build environment's compiler, not the host (target)'s compiler.

(closes issue #17464)
 Reported by: pprindeville
 Tested by: tilghman

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

15 years agoAs-fixiate the build process
Tilghman Lesher [Fri, 4 Jun 2010 16:27:02 +0000 (16:27 +0000)] 
As-fixiate the build process

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

15 years agoMake the default install path appear to be /usr on Linux, instead of /usr/local.
Tilghman Lesher [Fri, 4 Jun 2010 01:16:26 +0000 (01:16 +0000)] 
Make the default install path appear to be /usr on Linux, instead of /usr/local.

Also, reorganize the options, so that they're more alphabetical.

(closes issue #17013)
 Reported by: klaus3000

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

15 years ago1.4 version of the dead PLC code fix.
Mark Michelson [Thu, 3 Jun 2010 17:39:18 +0000 (17:39 +0000)] 
1.4 version of the dead PLC code fix.

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

15 years agoAdd CLI command that blocks until Asterisk has fully booted.
Russell Bryant [Wed, 2 Jun 2010 19:56:14 +0000 (19:56 +0000)] 
Add CLI command that blocks until Asterisk has fully booted.

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

15 years agoCleanup error/warning messages in AEL2 parser
Paul Belanger [Wed, 2 Jun 2010 17:14:37 +0000 (17:14 +0000)] 
Cleanup error/warning messages in AEL2 parser

(closes issue #16684)
Reported by: Silmaril
Patches:
      patch_ael2_logmsg.diff uploaded by Silmaril (license 979)

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

15 years agoBackport live_ast script from 1.6.2 branch
Paul Belanger [Wed, 2 Jun 2010 15:41:16 +0000 (15:41 +0000)] 
Backport live_ast script from 1.6.2 branch

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

15 years agoPrevent CLI prompt from distorting output of lines shorter than the prompt.
Tilghman Lesher [Tue, 1 Jun 2010 15:17:46 +0000 (15:17 +0000)] 
Prevent CLI prompt from distorting output of lines shorter than the prompt.

Uses the VT100 method of clearing the line from the cursor position to the
end of the line:  Esc-0K

(closes issue #17160)
 Reported by: coolmig
 Patches:
       20100531__issue17160.diff.txt uploaded by tilghman (license 14)
 Tested by: coolmig

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

15 years agoFix formatting issue with previous patch.
Paul Belanger [Tue, 1 Jun 2010 14:57:49 +0000 (14:57 +0000)] 
Fix formatting issue with previous patch.

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

15 years agoMissing fallback to audio fax feature when T.38 re-INVITE failed
Paul Belanger [Tue, 1 Jun 2010 14:54:05 +0000 (14:54 +0000)] 
Missing fallback to audio fax feature when T.38 re-INVITE failed

When a T.38 re-INVITE failed with an 488 or 606 answer, we should
fallback to audio fax by send a re-re-INVITE without T.38. The
function is backported from 1.6 asterisk.

(closes issue #16795)
Reported by: vrban

(closes issue #16692)
Reported by: vrban
Patches:
      t38_fallback_to_audio_v3.patch uploaded by vrban (license 756)
Tested by: lmadsen, vrban, haggard

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

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

15 years agoReverting patch and reopening issue #16784, as patch breaks color display.
Tilghman Lesher [Sun, 30 May 2010 04:43:28 +0000 (04:43 +0000)] 
Reverting patch and reopening issue #16784, as patch breaks color display.

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

15 years agoUse sigaction for signals which should persist past the initial trigger, not signal.
Tilghman Lesher [Wed, 26 May 2010 21:11:44 +0000 (21:11 +0000)] 
Use sigaction for signals which should persist past the initial trigger, not signal.

If you call signal() in a Solaris signal handler, instead of just resetting
the signal handler, it causes the signal to refire, because the signal is not
marked as handled prior to the signal handler being called.  This effectively
causes Solaris to immediately exceed the threadstack in recursive signal
handlers and crash.

(closes issue #17000)
 Reported by: rmcgilvr
 Patches:
       20100526__issue17000.diff.txt uploaded by tilghman (license 14)
 Tested by: rmcgilvr

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

15 years agoadd dahdi_func_write to zap_tech structure
David Vossel [Wed, 26 May 2010 20:33:00 +0000 (20:33 +0000)] 
add dahdi_func_write to zap_tech structure

This was supposed to be committed with r263292, the back-port
of teh DAHDI buffer policy dial string option

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

15 years agoMake AgentComplete message more consistent.
Mark Michelson [Wed, 26 May 2010 18:21:10 +0000 (18:21 +0000)] 
Make AgentComplete message more consistent.

At times, the "Member" field was not specified during the event.
It's there now.

(closes issue #15638)
Reported by: elbriga
Patches:
      patchAppQueueAgentComplete.diff uploaded by elbriga (license 482)

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

15 years agoNot finding rows in the DB does not rise to the level of a warning.
Tilghman Lesher [Wed, 26 May 2010 16:21:00 +0000 (16:21 +0000)] 
Not finding rows in the DB does not rise to the level of a warning.

(closes issue #17062)
 Reported by: drookie
 Patches:
       20100525__issue17062.diff.txt uploaded by tilghman (license 14)

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

15 years agofixes build issue with zaptel
David Vossel [Tue, 25 May 2010 17:11:40 +0000 (17:11 +0000)] 
fixes build issue with zaptel

(closes issue #17394)
Reported by: aragon
Patches:
      half_buffer_fix.diff uploaded by dvossel (license 671)
Tested by: aragon

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

15 years agoDon't mark the cdr records of unanswered queue calls with "NOANSWER". This restores...
Matthew Nicholson [Tue, 25 May 2010 16:48:19 +0000 (16:48 +0000)] 
Don't mark the cdr records of unanswered queue calls with "NOANSWER".  This restores the behavior prior to r258670.

(closes issue #17334)
Reported by: jvandal
Patches:
      queue-cdr-fixes1.diff uploaded by mnicholson (license 96)
Tested by: aragon, jvandal

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

15 years agoMerged revisions 265320,265467 via svnmerge from
Terry Wilson [Tue, 25 May 2010 13:33:21 +0000 (13:33 +0000)] 
Merged revisions 265320,265467 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r265320 | twilson | 2010-05-24 14:06:40 -0500 (Mon, 24 May 2010) | 14 lines

  Add the FullyBooted AMI event

  It is possible to connect to the manager interface before all Asterisk modules
  are loaded. To ensure that an application does not send AMI actions that might
  require a module that has not yet loaded, the application can listen for the
  FullyBooted manager event. It will be sent upon connection if all modules have
  been loaded, or as soon as loading is complete. The event:

     Event: FullyBooted
     Privilege: system,all
     Status: Fully Booted

  Review: https://reviewboard.asterisk.org/r/639/
........
  r265467 | twilson | 2010-05-24 17:21:58 -0500 (Mon, 24 May 2010) | 1 line

  Merge the rest of the FullyBooted patch
........

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

15 years agofixes segfault when using generic plc
David Vossel [Mon, 24 May 2010 19:37:55 +0000 (19:37 +0000)] 
fixes segfault when using generic plc

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

15 years agoDon't hang up on a queue caller if the file we attempt to play does not exist.
Mark Michelson [Fri, 21 May 2010 20:59:14 +0000 (20:59 +0000)] 
Don't hang up on a queue caller if the file we attempt to play does not exist.

This also fixes a documentation mistake in file.h that made my original attempt
to correct this problem not work correctly.

(closes issue #17061)
Reported by: RoadKill

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

15 years agoFix grammatical error in comment.
Mark Michelson [Fri, 21 May 2010 16:53:53 +0000 (16:53 +0000)] 
Fix grammatical error in comment.

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

15 years agoAllow ast_safe_sleep to defer specific frames until after the sleep has concluded.
Mark Michelson [Fri, 21 May 2010 16:28:34 +0000 (16:28 +0000)] 
Allow ast_safe_sleep to defer specific frames until after the sleep has concluded.

From reviewboard

Background:
A Digium customer discovered a somewhat odd bug. The setup is that parties A
and B are bridged, and party A places party B on hold. While party B is
listening to hold music, he mashes a bunch of DTMF. Party A takes party
B off hold while this is happening, but party B continues to hear hold
music. I could reproduce this about 1 in 5 times.

The issue:
When DTMF features are enabled and a user presses keys, the channel that
the DTMF is streamed to is placed in an ast_safe_sleep for 100 ms, the
duration of the emulated tone. If an AST_CONTROL_UNHOLD frame is read
from the channel during the sleep, the frame is dropped. Thus the
unhold indication is never made to the channel that was originally placed
on hold.

The fix:
Originally, I discussed with Kevin possible ways of fixing the specific
problem reported. However, we determined that the same type of problem
could happen in other situations where ast_safe_sleep() is used. Using
autoservice as a model, I modified ast_safe_sleep_conditional() to
defer specific frame types so they can be re-queued once the sleep has
finished. I made a common function for determining if a frame should
be deferred so that there are not two identical switch blocks to
maintain.

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

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

15 years agoast_callerid_parse() had a path that left name uninitialized.
Richard Mudgett [Thu, 20 May 2010 23:23:21 +0000 (23:23 +0000)] 
ast_callerid_parse() had a path that left name uninitialized.

Several callers of ast_callerid_parse() do not initialize the name
parameter before calling thus there is the potential to use an
uninitialized pointer.

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

15 years ago1.4 version of PLC fix.
Mark Michelson [Thu, 20 May 2010 15:59:44 +0000 (15:59 +0000)] 
1.4 version of PLC fix.

Analogous to trunk revision 264452, but without the change
to chan_sip since it is not necessary in this branch.

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

15 years agoSet quieted flag when receiving a dtmf tone during playback in speechbackground.
Matthew Nicholson [Wed, 19 May 2010 20:01:38 +0000 (20:01 +0000)] 
Set quieted flag when receiving a dtmf tone during playback in speechbackground.

(closes issue #16966)
Reported by: asackheim

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

15 years agoInternal timing is now on by default, if you're using DAHDI 2.3 or above.
Tilghman Lesher [Wed, 19 May 2010 17:41:29 +0000 (17:41 +0000)] 
Internal timing is now on by default, if you're using DAHDI 2.3 or above.

The reason for ensuring DAHDI 2.3 or above is that this version ensures that
a timer is always available, whereas in previous versions, it was possible
for DAHDI to be loaded, but have no drivers to actually generate timing.  If
internal_timing was turned on in this circumstance, a complete lack of audio
would result.  This is the reason why internal_timing was not on by default.
However, now that DAHDI ensures the availability of a timer, there is no
reason for this setting to be off (and in fact, it solves a great many initial
user problems).

(closes issue #15932)
 Reported by: dimas
 Patches:
       20100519__issue15932.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

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

15 years agofix incorrectly typed indications for [nz] stutter and dialrecall
Alec L Davis [Wed, 19 May 2010 08:23:07 +0000 (08:23 +0000)] 
fix incorrectly typed indications for [nz] stutter and dialrecall

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

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

15 years agoBecause progress is called multiple times, across several frames, we must persist...
Tilghman Lesher [Wed, 19 May 2010 06:32:27 +0000 (06:32 +0000)] 
Because progress is called multiple times, across several frames, we must persist states when detecting multitone sequences.

(closes issue #16749)
 Reported by: dant
 Patches:
       dsp.c-bug16749-1.patch uploaded by dant (license 670)
 Tested by: dant

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

15 years agoModify directory name reading to be interrupted with operator or pound escape.
Jeff Peeler [Tue, 18 May 2010 18:54:58 +0000 (18:54 +0000)] 
Modify directory name reading to be interrupted with operator or pound escape.

In the case of accidentally entering the wrong first three letters for the
reading, users could be very frustrated if the name listing is very long. This
allows interrupting the reading by pressing 0 or #. 0 will attempt to execute
a configured operator (o) extension and # will exit and proceed in the
dialplan.

ABE-2200

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

15 years agoFix logic error when checking for a devstate provider.
Mark Michelson [Mon, 17 May 2010 22:00:28 +0000 (22:00 +0000)] 
Fix logic error when checking for a devstate provider.

When using strsep, if one of the list of specified separators is not found,
it is the first parameter to strsep which is now NULL, not the pointer returned
by strsep.

This issue isn't especially severe in that the worst it is likely to do is waste
some cycles when a device with no '/' and no ':' is passed to ast_device_state.

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

15 years agoRemove arbitrary size limitation for hints.
Mark Michelson [Mon, 17 May 2010 21:48:46 +0000 (21:48 +0000)] 
Remove arbitrary size limitation for hints.

(closes issue #17257)
Reported by: tim_ringenbach
Patches:
      hints_crash_fix.diff uploaded by tim ringenbach (license 540)

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

15 years agoManager cookies are not compatible with RFC2109.
Leif Madsen [Mon, 17 May 2010 14:35:18 +0000 (14:35 +0000)] 
Manager cookies are not compatible with RFC2109.

The Version field in the cookies we're setting contain quotes around the version
number which is not compatible with RFC2109 and breaks some implementations.

(closes issue #17231)
Reported by: ecarruda
Patches:
      manager_rfc2109-trunk-v1.patch uploaded by ecarruda (license 559)
      manager_rfc2109-1.6.2-v1.patch uploaded by ecarruda (license 559)
Tested by: ecarruda, russell

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

15 years agoUpdate link to new version of core sounds.
Leif Madsen [Mon, 17 May 2010 14:04:57 +0000 (14:04 +0000)] 
Update link to new version of core sounds.

The latest version of the core sounds files 1.4.19 now includes the missing
queue-minute sound file which is called by app_queue but which has been
missing.

(closes issue #17123)
Reported by: n8ideas

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

15 years agobackport of DAHDI buffer policy dial string option
David Vossel [Mon, 17 May 2010 13:01:39 +0000 (13:01 +0000)] 
backport of DAHDI buffer policy dial string option

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

15 years agoFix internal timing not working with Zaptel
Jeff Peeler [Thu, 13 May 2010 23:08:13 +0000 (23:08 +0000)] 
Fix internal timing not working with Zaptel

dahdi_compat.h was not being included in channel.c when used with
Zaptel and wasn't in file.c at all.

(closes issue #15250)
Reported by: mneuhauser
Patches:
      dahdi_compat.patch uploaded by mneuhauser (license 425)
Tested by: IgorG

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

15 years agofixes app_meetme dsp error
David Vossel [Wed, 12 May 2010 17:00:04 +0000 (17:00 +0000)] 
fixes app_meetme dsp error

We attempted to detect silence after translating a frame
from signed linear.  This caused a flooding of errors.  To
resolve this the code to detect silence was moved before the
translation.

(closes issue #17133)
Reported by: jsdyer

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

15 years agoUse a less silly method for modifying a flex-generated file.
Jason Parker [Tue, 11 May 2010 19:55:42 +0000 (19:55 +0000)] 
Use a less silly method for modifying a flex-generated file.

The sed syntax that was used wasn't actually valid, causing some versions to
choke.  This is the method that is used in 1.6.x+ for similar changes.

(closes issue #16696)
Reported by: bklang
Patches:
      16696-sedfix.diff uploaded by qwell (license 4)
Tested by: qwell

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

15 years agoFix issue #17302 a slightly different way (mad props to Qwell)
Tilghman Lesher [Tue, 11 May 2010 17:22:07 +0000 (17:22 +0000)] 
Fix issue #17302 a slightly different way (mad props to Qwell)

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

15 years agoAllow compilation on Mac OS X 10.4 (Tiger)
Tilghman Lesher [Mon, 10 May 2010 16:34:21 +0000 (16:34 +0000)] 
Allow compilation on Mac OS X 10.4 (Tiger)

(closes issue #17297)
 Reported by: jcovert
 Patches:
       20100506__issue17297.diff.txt uploaded by tilghman (license 14)

(closes issue #17302)
 Reported by: jcovert

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