]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
15 years agoSince we split values at the semicolon, we should store values with a semicolon as...
Tilghman Lesher [Fri, 16 Jul 2010 21:54:29 +0000 (21:54 +0000)] 
Since we split values at the semicolon, we should store values with a semicolon as an encoded value.

(closes issue #17369)
 Reported by: gkservice
 Patches:
       20100625__issue17369.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

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

15 years agoDefault to no udptl error correction so that error correction will be disabled in...
Matthew Nicholson [Fri, 16 Jul 2010 21:18:38 +0000 (21:18 +0000)] 
Default to no udptl error correction so that error correction will be disabled in the event that the remote end indicates that they do not support the error correction mode we requested.

FAX-128

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

15 years agopriexclusive in chan_dahdi.conf ignored when reloading dahdi module
Richard Mudgett [Fri, 16 Jul 2010 20:18:54 +0000 (20:18 +0000)] 
priexclusive in chan_dahdi.conf ignored when reloading dahdi module

During a reload, the priexclusive and outsignalling parameters are not
read in from the config file as intended.  Unfortunately, they get set to
defaults as a result.  This patch makes sure that they do not get set to
defaults during a reload.

(closes issue #17441)
Reported by: mtryfoss
Patches:
      issue17441_v1.4.patch uploaded by rmudgett (license 664)
      issue17441_v1.6.2.patch uploaded by rmudgett (license 664)
      issue17441_trunk.patch uploaded by rmudgett (license 664)
Tested by: rmudgett

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

15 years agoInterpret device state AST_DEVICE_UNKNOWN as extension state AST_EXTENSION_NOT_INUSE.
Matthew Nicholson [Fri, 16 Jul 2010 18:30:22 +0000 (18:30 +0000)] 
Interpret device state AST_DEVICE_UNKNOWN as extension state AST_EXTENSION_NOT_INUSE.

(closes issue #16035)
Reported by: francesco_r
Patches:
      pbx.c.patch uploaded by viniciusfontes (license 978)
Tested by: francesco_r, agx, lawbar

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

15 years agoIf variable gotten is not set, will segfault on Solaris.
Tilghman Lesher [Fri, 16 Jul 2010 18:04:11 +0000 (18:04 +0000)] 
If variable gotten is not set, will segfault on Solaris.

(closes issue #17636)
 Reported by: bklang

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

15 years agoFor pass through DTMF tones, measure the actual duration between the begin and end...
Matthew Nicholson [Fri, 16 Jul 2010 17:29:57 +0000 (17:29 +0000)] 
For pass through DTMF tones, measure the actual duration between the begin and end packets on the wire.  If it is detected to be less than AST_MIN_DTMF_DURATION, trigger dtmf emulation.

AST-362

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

15 years agoTotal analysis time error with SIP and silence suppression
Paul Belanger [Fri, 16 Jul 2010 17:10:36 +0000 (17:10 +0000)] 
Total analysis time error with SIP and silence suppression

When using app_amd with SIP providers that have silence
suppression on, the iTotalTime count increases exponentially.

(closes issue #17656)
Reported by: juls

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

15 years agoIn a perfect world, the frame source would never be NULL. In the meantime, don't...
Jeff Peeler [Thu, 15 Jul 2010 13:48:58 +0000 (13:48 +0000)] 
In a perfect world, the frame source would never be NULL. In the meantime, don't crash when it is.

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

15 years agoUpdate documentation for voicemail.conf externpass option.
Leif Madsen [Wed, 14 Jul 2010 11:49:01 +0000 (11:49 +0000)] 
Update documentation for voicemail.conf externpass option.

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

15 years agoOnly reset a CDR that exists.
Russell Bryant [Tue, 13 Jul 2010 19:14:54 +0000 (19:14 +0000)] 
Only reset a CDR that exists.

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

15 years agoUse chan->cdr instead of chan_cdr (just like peer->cdr instead of peer_cdr in the...
Russell Bryant [Tue, 13 Jul 2010 19:06:53 +0000 (19:06 +0000)] 
Use chan->cdr instead of chan_cdr (just like peer->cdr instead of peer_cdr in the last commit).

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

15 years agoAccess peer->cdr directly instead of through a saved off reference.
Russell Bryant [Tue, 13 Jul 2010 16:51:18 +0000 (16:51 +0000)] 
Access peer->cdr directly instead of through a saved off reference.

At this point in the code, it is possible that peer_cdr may be invalid.
Specifically, in the blind transfer code, CDRs are swapped between channels.
So, peer_cdr is no longer == peer->cdr.

The scenario that exposed a crash in this code was a blind transfer that hit
the system call limit, causing the transferee channel to get destroyed after
the transfer attempt failed.  Even if it succeeds and this code doesn't crash,
this code was still trying to reset a CDR on a channel that was now owned by
a different thread, which is a BadThing(tm).

(ABE-2417)

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

15 years agoMove SQL scripts into their own database-specific directories.
Tilghman Lesher [Tue, 13 Jul 2010 14:47:30 +0000 (14:47 +0000)] 
Move SQL scripts into their own database-specific directories.

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

15 years agoMake user removals and traversals thread safe in meetme.
Jeff Peeler [Mon, 12 Jul 2010 20:34:51 +0000 (20:34 +0000)] 
Make user removals and traversals thread safe in meetme.

Race conditions present in meetme involving the user list where a lack of
locking has the potential for a user to be removed during a traversal or as in
the case of the reporter after checking if the list is empty could cause a
crash. Fixing this was done by convering the userlist to an ao2 container.

(closes issue #17390)
Reported by: Vince

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

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

15 years agoChange ast_write to not stop generator when called from ast_prod.
Jeff Peeler [Mon, 12 Jul 2010 16:58:39 +0000 (16:58 +0000)] 
Change ast_write to not stop generator when called from ast_prod.

For SIP channels configured with the progressinband option on, the ringback was
being immediately stopped. This problem was due to ast_prod being moved for a
deadlock fix in 259858. Prodding the channel after setting up the generator
triggered the check in ast_write to stop the generator. The fix here should
write the frame the same as was done before the call to ast_prod was moved.

(closes issue #17372)
Reported by: tech_admin

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

15 years agofix tab-completion for unload command.
Paul Belanger [Fri, 9 Jul 2010 19:28:48 +0000 (19:28 +0000)] 
fix tab-completion for unload command.

(closes issue #17536)
Reported by: junky
Patches:
      unload_vs_mod_unload.diff uploaded by junky (license 177)
Tested by: pabelanger

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

15 years agoFix logging message for stale nonce.
Paul Belanger [Fri, 9 Jul 2010 19:20:00 +0000 (19:20 +0000)] 
Fix logging message for stale nonce.

(closes issue #17582)
Reported by: kenner
Patches:
      chan_sip.c.diff uploaded by kenner (license 1040)
Tested by: lmadsen

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

15 years agogive a better error message when attempting to unload a module that is not loaded
Matthew Nicholson [Fri, 9 Jul 2010 18:23:23 +0000 (18:23 +0000)] 
give a better error message when attempting to unload a module that is not loaded

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

15 years agodon't unload modules that returned AST_MODULE_LOAD_DECLINE when they were loaded
Matthew Nicholson [Fri, 9 Jul 2010 17:50:05 +0000 (17:50 +0000)] 
don't unload modules that returned AST_MODULE_LOAD_DECLINE when they were loaded

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

15 years agoClear the AST_CDR_FLAG_DIALED flag for channels going into the pbx via the G option...
Matthew Nicholson [Fri, 9 Jul 2010 16:04:21 +0000 (16:04 +0000)] 
Clear the AST_CDR_FLAG_DIALED flag for channels going into the pbx via the G option in app_dial

(closes issue #17592)
Reported by: jamicque
Patches:
      G-flag-cdr-fix1.diff uploaded by mnicholson (license 96)
Tested by: jamicque, mnicholson

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

15 years agoDocument that a leading and trailing slash is expected for test categories.
Russell Bryant [Fri, 9 Jul 2010 15:33:08 +0000 (15:33 +0000)] 
Document that a leading and trailing slash is expected for test categories.

Also, emit a warning if a test is registered without one of these.

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

15 years agoClose the DAHDI FD on error when processing chan_dahdi toneduration config parameter.
Richard Mudgett [Wed, 7 Jul 2010 18:12:41 +0000 (18:12 +0000)] 
Close the DAHDI FD on error when processing chan_dahdi toneduration config parameter.

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

15 years agoCorrect how 100, 200, 300, etc. is said. Also add the crazy British numbers.
Tilghman Lesher [Wed, 7 Jul 2010 06:13:54 +0000 (06:13 +0000)] 
Correct how 100, 200, 300, etc. is said.  Also add the crazy British numbers.

(closes issue #16102)
 Reported by: Delvar
 Patches:
       say.conf.fix.patch uploaded by Delvar (license 908)
       (plus a few additional fixes and simplifications by me)

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

15 years agoEnsure file.o is built correctly.
Jeff Peeler [Tue, 6 Jul 2010 22:46:37 +0000 (22:46 +0000)] 
Ensure file.o is built correctly.

(related to issue #15250)

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

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