dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

19313 Commits

Author SHA1 Message Date
russell 41579a3b9c Convert test_substitution module to the unit test API.
Review: https://reviewboard.asterisk.org/r/474/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242954 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25 21:25:23 +00:00
may 95e975dbf9 small corrections in call clearing
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242933 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25 21:20:02 +00:00
oej 52cccf6084 Change api for pbx_builtin_setvar to actually return error code if a function can't be written to.
This patch removes code that was duplicated from pbx.c to manager.c
in order to prevent API change in released versions of Asterisk.

There are propably also other places that would benefit from reading the
return code and react if a function returns error codes on writing a value into it.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242919 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25 21:13:20 +00:00
oej 09b1277fb2 Merged revisions 242850 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r242850 | oej | 2010-01-25 21:03:38 +0100 (Mån, 25 Jan 2010) | 2 lines

Report error when writing to functions returns error in AMI setvar action

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242904 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25 20:27:59 +00:00
tilghman 36b4673685 Merged revisions 242852 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r242852 | tilghman | 2010-01-25 14:15:45 -0600 (Mon, 25 Jan 2010) | 2 lines
  
  Restore FreeBSD to able-to-compile-ish-mode
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242857 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25 20:18:15 +00:00
twilson 403a249ddb Fix INTERNAL_OBJ error on stop when calendars.conf missing
Initialize the calendars container before calling load_config and return FAILURE
on allocation failure. Also, use the AST_MODULE_LOAD_* values for return values.
Thanks to rmudgett for pointing out the error and the need to use the defined
values for return


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242812 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25 18:01:08 +00:00
tilghman dbf9257276 Merged revisions 242728 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r242728 | tilghman | 2010-01-24 23:42:22 -0600 (Sun, 24 Jan 2010) | 2 lines
  
  Buildbot pointed out an error (thanks, buildbot!)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242729 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25 05:45:00 +00:00
tilghman b7b70b913e Merged revisions 242723 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r242723 | tilghman | 2010-01-24 23:33:37 -0600 (Sun, 24 Jan 2010) | 2 lines
  
  Oops, should have used CMD_PREFIX, not ECHO_PREFIX, for the commands.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242724 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25 05:34:33 +00:00
tilghman a2ce36d383 Merged revisions 242683 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r242683 | tilghman | 2010-01-24 23:13:28 -0600 (Sun, 24 Jan 2010) | 2 lines
  
  Make the build of the Asterisk expression parser match that of the AEL parser.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242719 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-25 05:30:33 +00:00
may 901630e56d AST_CONTROL_CONNECTED_LINE frame type processing added to setup DisplayIE field
incorrect q.931 message order filtered on incoming calls (first msg must be setup, 
next must be not setup)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242645 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-24 22:42:11 +00:00
seanbright e9e6d14932 Instead of crashing, allocate our header ast_str before we try to use it.
(closes issue #16680)
Reported by: lmadsen
Patches:
      issue16680_20100122.patch uploaded by seanbright (license 71)
Tested by: lmadsen


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242607 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-24 21:49:17 +00:00
tilghman 8b4dc27865 Merged revisions 242520 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r242520 | tilghman | 2010-01-24 00:33:01 -0600 (Sun, 24 Jan 2010) | 8 lines
  
  Only rebuild bison and flex source files on demand, if bison and flex are detected by the configure script.
  
  Changed after discussion on the -dev list about possible unnecessary build
  failures, due to checkouts/untars causing these special source files to
  possibly be newer than their resulting C files.  This should additionally
  ensure that nobody need learn about extra Makefile arguments to ensure the
  proper files get rebuilt when changes are made to these special source files.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242521 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-24 06:40:31 +00:00
tilghman a67a960e2a Merged revisions 242423 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r242423 | tilghman | 2010-01-22 15:44:18 -0600 (Fri, 22 Jan 2010) | 7 lines
  
  Rebuild from flex, bison sources when necessary.
  
  (issue #14629)
   Reported by: Marquis
   Patches: 
         20100121__issue14629.diff.txt uploaded by tilghman (license 14)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242424 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-22 21:45:18 +00:00
diruggles 1786b09e92 Add send DTMF feature to ExternalIVR app
Implemented a new command 'D' that allows client
IVRs to send DTMF digits to the channel.

(closes issue #16615)
Reported by: thedavidfactor

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242357 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-22 16:20:43 +00:00
tilghman beab21ba11 The irony of not compile-testing a test program before committing is killing me.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242317 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-22 15:09:12 +00:00
oej 9acb1a538e Merged revisions 242226 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r242226 | oej | 2010-01-22 10:19:30 +0100 (Fre, 22 Jan 2010) | 3 lines

Initialize notify_types to NULL


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242227 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-22 09:28:34 +00:00
russell 94e6be6095 Update the doxygenification of some comments.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242186 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-22 04:57:03 +00:00
russell 9b96ce6768 Convert scheduler API entry order test to the test API.
Review: https://reviewboard.asterisk.org/r/470/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242185 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-22 04:50:38 +00:00
russell b6e05226ea Add test API usage example to test_skel.c.
Review: https://reviewboard.asterisk.org/r/471/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242184 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-22 04:49:26 +00:00
mmichelson 389a689eee Add missing argument to ast_calloc calls.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242092 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-21 22:37:55 +00:00
oej 9ac0a45bff Make sure we initialize the ast_ha structure with ast_calloc
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@242043 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-21 21:05:56 +00:00
seanbright 87d0f205a4 Merged revisions 241932 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r241932 | seanbright | 2010-01-21 10:25:46 -0500 (Thu, 21 Jan 2010) | 5 lines
  
  Fix configure check for PTHREAD_ONCE_INIT when manually adding -Wall to CFLAGS.
  
  (closes issue #16666)
  Reported by: romain_proformatique
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241938 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-21 15:27:42 +00:00
tilghman f7870eb72d Formats are inconsistent between even 32-bit and 64-bit Linux. Use casts to ensure both compile.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241896 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-21 15:14:55 +00:00
russell f51fb43c4d Point to a useful reference on the XML output format.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241856 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-21 14:10:51 +00:00
russell 39123aed2f Modify test results XML format to match the JUnit format.
When this code was developed, we came up with our own XML format for the test
output.  I have since started looking at integration with other tools, namely
continuous integration frameworks, and this format seems to be supported
across a number of applications.  With these changes in place, I was able
to get Atlassian Bamboo to interpret the test results.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241855 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-21 13:59:41 +00:00
tilghman 31d9fa0da5 Merged revisions 241765 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r241765 | tilghman | 2010-01-20 23:53:17 -0600 (Wed, 20 Jan 2010) | 2 lines
  
  Guard against division by zero.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241766 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-21 05:54:30 +00:00
dvossel ee8e1dff15 rtp timestamp to timeval calculation fix
The rtp timestamp to timeval calculation was only
accurate for 8kHz audio. This patch corrects this.

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

SWP-648



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241714 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-20 21:14:47 +00:00
dvossel 6364bcb379 Merged revisions 241626 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r241626 | dvossel | 2010-01-20 14:00:04 -0600 (Wed, 20 Jan 2010) | 6 lines
  
  fixes parsing error in Makefile.
  
  Some echo lines were missing "; . Thanks to jparker for pointing out
  the problem. 
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241627 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-20 20:01:07 +00:00
alecdavis 70b5021da1 Add Calling and Called Subaddress to CDR record
Requires 'callingsubaddr' and 'calledsubaddr' fields in backend cdr.

(closes issue #16600)
Reported by: alecdavis
Patches: 
      cdr_subaddr.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241581 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-20 17:49:30 +00:00
kpfleming b4d98df550 Fix up compile breakage from ast_tvdiff_ms() API change.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241503 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-20 13:01:00 +00:00
alecdavis bbcc57ee3f Update CDR variables as pbx starts
Allows CDR variables added in cdr.c:set_one_cid to become visable during the call,
by executing ast_cdr_update() early in __ast_pbx run.
Reverts sig_pri changes in trunk that are specific to isdn technology only.

(closes issue #16638)
Reported by: alecdavis
Patches: 
      cdr_update.diff3.txt uploaded by alecdavis (license 585)
Tested by: alecdavis



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241416 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-20 08:18:45 +00:00
jpeeler e1d0d936e6 Initialize data on the stack so that Park doesn't interpret random arguments.
passdata was only being set in pbx_substitue_variables when arguments were
passed.

(closes issue #16406)
(closes issue #16586)
Reported by: DLNoah
Patches: 
      bug16586v2.patch uploaded by jpeeler (license 325)
Tested by: DLNoah



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241366 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-19 22:59:53 +00:00
tilghman b17f470e28 Enable SendText to send strings in encoded format.
See http://lists.digium.com/pipermail/asterisk-users/2010-January/243462.html


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241364 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-19 22:41:36 +00:00
jpeeler 1e43690cb1 small correction from 241314
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241315 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-19 18:51:19 +00:00
jpeeler 665b780994 Merged revisions 241227 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r241227 | jpeeler | 2010-01-19 11:22:18 -0600 (Tue, 19 Jan 2010) | 13 lines
  
  Fix deadlock in agent_read by removing call to agent_logoff.
  
  One must always lock the agents list lock before the agent private. agent_read
  locks the private immediately, so locking the agents list lock is not an
  option (which is what agent_logoff requires). Because agent_read already 
  has access to the agent private all that is necessary is to do the required
  hanging up that agent_logoff performed.
  
  (closes issue #16321)
  Reported by: valon24
  Patches: 
        bug16321.patch uploaded by jpeeler (license 325)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241314 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-19 18:46:11 +00:00
qwell 3d6ab2e41c Allow parallel make (-j) to work properly.
After some back and forth with the reporter, we came up with the necessary changes.

(closes issue #16489)
Reported by: Chainsaw
Patches:
      asterisk-1.6.2.1-parallel-make-minimal.patch uploaded by Chainsaw (license 723)
Tested by: Chainsaw, qwell


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241230 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-19 17:42:10 +00:00
qwell 2c17504f5a Blocked revisions 241228 via svnmerge
........
  r241228 | qwell | 2010-01-19 11:41:00 -0600 (Tue, 19 Jan 2010) | 8 lines
  
  Allow parallel make (-j) to work properly.
  
  1.4 changes are quite different from the others.
  
  (issue #16489)
  Reported by: Chainsaw
  Tested by: qwell
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241229 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-19 17:41:19 +00:00
tilghman fb0c85edeb Create iterative method for querying SRV results, and use that for finding AGI servers.
(closes issue #14775)
 Reported by: _brent_
 Patches: 
       20091215__issue14775.diff.txt uploaded by tilghman (license 14)
       hagi-5.patch uploaded by brent (license 388)
 Tested by: _brent_
 Reviewboard: https://reviewboard.asterisk.org/r/378/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241188 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-19 00:28:49 +00:00
alecdavis 4c5831b3e5 Update CDR variables before pbx starts (overlap dial)
Allows CDR variables added in cdr.c:set_one_cid to become visable during the call.

(issue #16638)
Reported by: alecdavis
Patches: 
      cdr_update.diff2.txt uploaded by alecdavis (license 585)
Tested by: alecdavis



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241187 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-19 00:24:35 +00:00
jpeeler 93d7808948 Extend max call limit duration from 24.8 days to 292+ million years.
If the limit was set past MAX_INT upon answering, the call was immediately
hung up due to overflow from the return of ast_tvdiff_ms (in ast_check_hangup).
The time calculation functions ast_tvdiff_sec and ast_tvdiff_ms have been
changed to return an int64_t to prevent overflow. Also the reporter suggested
adding a message indicating the reason for the call hanging up. Given that the
new limit is so much higher, the message (which would only really be useful in
the overflow scenario) has been made a debug message only.

(closes issue #16006)
Reported by: viraptor


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241143 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 22:31:25 +00:00
qwell ce857ad4e1 Fix an RTP instance allocation failure on Solaris.
(closes issue #16543)
Reported by: crjw
Patches:
      rtp_sin_family.patch uploaded by crjw (license 963)
Tested by: crjw, qwell


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241098 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 22:03:49 +00:00
alecdavis 3b99eea5f4 Update CDR variables before pbx starts
Allows CDR variables added in cdr.c:set_one_cid to become visable during the call.

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241097 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 22:00:24 +00:00
seanbright 91f5510955 Merged revisions 241015 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r241015 | seanbright | 2010-01-18 14:54:19 -0500 (Mon, 18 Jan 2010) | 12 lines
  
  Plug a memory leak when reading configs with their comments.
  
  While reading through configuration files with the intent of returning their
  full contents (comments specifically) we allocated some memory and then forgot
  to free it.  This doesn't fix 16554 but clears up a leak I had in the lab.
  
  (issue #16554)
  Reported by: mav3rick
  Patches:
        issue16554_20100118.patch uploaded by seanbright (license 71)
  Tested by: seanbright
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241016 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 19:57:52 +00:00
tilghman 7e17adbbd8 Make HASHes inheritable across channel creation.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@241012 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 19:26:07 +00:00
diruggles 5f69fa847c ExternalIVR information for UPGRADE.txt
added a paragraph about the fixes and changes to
the ExternalIVR application.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240974 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 18:00:36 +00:00
diruggles 2874329e42 Updated ExternalIVR documentation
Rewrote a large portion of the existing documentation
and added information about the TCP/IP socket interface


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240973 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 17:51:09 +00:00
dvossel 7325bdfa74 transmit_silence_during_record replaced by transmit_silence
In asterisk.conf, transmit_silence_during_record has been removed
in favor of using only the transmit_silence option.  The
transmit_silence_during_record option remains a valid option in
asterisk.conf, but has been removed from the sample config and
noted in CHANGES.  



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240971 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 17:45:18 +00:00
diruggles a82067d359 Add notification of interrupted file
Add file information to data element of T event so
the file information is sent to the client when it is
interrupted. Previously only notification of pending
files that were dropped was sent

(closes issue #16147)
Reported by: thedavidfactor
Tested by: thedavidfactor

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240969 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 17:41:44 +00:00
dvossel a57fa18712 Blocked revisions 240891 via svnmerge
........
  r240891 | dvossel | 2010-01-18 10:51:35 -0600 (Mon, 18 Jan 2010) | 7 lines
  
  updated transmit_silence option documentation in asterisk.conf
    
  This patch updates the transmit_silence option to better document
  why the option exists, and what it affects.  Thanks to russell
  for providing the verbage for this update.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240892 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 16:52:11 +00:00
dvossel 460dea6218 updated transmit_silence option documentation in asterisk.conf
This patch updates the transmit_silence option to better document
why the option exists, and what it affects.  Thanks to russell
for providing the verbage for this update.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240887 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-18 16:45:28 +00:00