dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

19236 Commits

Author SHA1 Message Date
tilghman 0183b31199 Add the TESTTIME() dialplan function, which permits testing GotoIfTime.
Specifically, by setting TESTTIME() to a particular date and time, you
can test whether a dialplan correctly branches as was intended.  This was
developed after recent questions on the -users list on how to test their
holiday dialplan logic.
(closes issue #16464)
 Reported by: tilghman
 Patches: 
       20100112__issue16464.diff.txt uploaded by tilghman (license 14)
 
Review: https://reviewboard.asterisk.org/r/458/


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239957 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 21:27:34 +00:00
tilghman 9a75fff5ef Flex uses fwrite incorrectly, which breaks the build. Providing a workaround.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239920 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 20:38:42 +00:00
jpeeler d17097b8a2 Merged revisions 239838 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r239838 | jpeeler | 2010-01-13 13:43:33 -0600 (Wed, 13 Jan 2010) | 11 lines
  
  Fix regression for timed out parked call returning to caller
  
  This issue seems to have been exposed by the fix in 160390 whereby using a
  masquerade prevented a crash. The new channel used in the masquerade was
  not copying the macro information from the old channel.
  
  (closes issue #15459)
  Reported by: djrodman
  Patches: 
        patch_15459.txt uploaded by mnick (license )
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239839 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 19:48:16 +00:00
lmadsen c2da2fd0a9 Add more examples to extensions.conf showing how to use various
functionality and provide commonly useful features.

(closes issue #16090)
Reported by: pprindeville
Patches:
      extensions.conf-bugid16090.patch#3 uploaded by pprindeville (license 347)
Tested by: tzafrir, pprindeville, lmadsen

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239834 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 19:31:13 +00:00
tilghman 22c66e61cf Code previously added to ast_expr2f.c warranted a change in the source file ast_expr2.fl.
Also, made a Makefile change to ensure that the expression parser C source files get
regenerated correctly, when we need that to happen.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239797 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 18:16:13 +00:00
dvossel 1215462e6c Blocked revisions 239718 via svnmerge
........
  r239718 | dvossel | 2010-01-13 11:16:12 -0600 (Wed, 13 Jan 2010) | 23 lines
  
  add silence gen to wait apps
    
  asterisk.conf's 'transmit_silence' option existed before
  this patch, but was limited to only generating silence
  while recording and sending DTMF. Now enabling the
  transmit_silence option generates silence during wait
  times as well.
    
  To achieve this, ast_safe_sleep has been modified to
  generate silence anytime no other generators are present
  and transmit_silence is enabled. Wait apps not using
  ast_safe_sleep now generate silence when transmit_silence
  is enabled as well.
  
  (closes issue 0016524)
  Reported by: kobaz
  
  (closes issue 0016523)
  Reported by: kobaz
  Tested by: dvossel
    
  Review: https://reviewboard.asterisk.org/r/456/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239719 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 17:16:58 +00:00
dvossel e49e9326db add silence gen to wait apps
asterisk.conf's 'transmit_silence' option existed before
this patch, but was limited to only generating silence
while recording and sending DTMF.  Now enabling the
transmit_silence option generates silence during wait
times as well.

To achieve this, ast_safe_sleep has been modified to
generate silence anytime no other generators are present
and transmit_silence is enabled.  Wait apps not using
ast_safe_sleep now generate silence when transmit_silence
is enabled as well.

(closes issue #16524)
Reported by: kobaz

(closes issue #16523)
Reported by: kobaz
Tested by: dvossel

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239712 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 16:31:14 +00:00
oej c36ddcfa8a MAX() moved to utils.h
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239665 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 10:45:19 +00:00
oej 1e093315b0 SIP Show channelstats fix - use float division to show proper stats
(closes issue #15819)
Reported by: klaus3000
Patches: 
      asterisk-sip-show-channelstats-trunk.txt uploaded by klaus3000 (license 65)
Tested by: klaus3000, oej

This patch is for trunk only and will be blocked in 1.6.2



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239663 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 10:24:23 +00:00
transnexus b2d9819795 Updated channel variable list of osplookup application.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239625 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 07:02:13 +00:00
transnexus 4e12ca8ffa Updated XML doc for OSP.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239624 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-13 07:00:13 +00:00
tilghman 0fc96ee360 Blank callerid and NULL callerid should not compare equal.
The second is the default state for matching CID in the dialplan (no matching)
while the first matches one particular CallerID.  This is a regression.
(fixes AST-314, SWP-611)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239571 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-12 19:58:00 +00:00
alecdavis a03b7b9f7a add Dialed Number Identifier (DNID) field to cdr records.
reviewboard link: https://reviewboard.asterisk.org/r/455/

  Reported by: alecdavis
  Tested by: alecdavis
  Patch
	 cdr_dnid.diff2.txt uploaded by alecdavis (license 585)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239525 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-12 18:55:54 +00:00
lmadsen 80c08e252e Note that direct T.38 is not supported.
(closes issue #16411)
Reported by: stanusr
Patches:
      __20091210-sip.conf.sample-documentation.txt uploaded by lmadsen (license 10)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239520 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-12 18:22:45 +00:00
seanbright 4e574ff098 Fix crash in res_config_ldap.
We need to allocate enough room for 2 pointers, not 2 characters.

(closes issue #16397)
Reported by: bklang
Patches:
      res_config_ldap.patch uploaded by applsplatz (license 949)
Tested by: applsplatz


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239473 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-12 17:09:12 +00:00
dvossel ba2fce3739 fixes text support in sdp answer
The code that handled setting 'm=text' in the sdp was not executing
in the correct order.  The check to see if text was needed came after
the check to add 'm=text' to the sdp, this resulted in 'm=text' always
being set to 0 because it looked like text was never required.

(closes issue #16457)
Reported by: peterj
Patches:
      textportinsdp.diff uploaded by peterj (license 951)
      issue16457.diff uploaded by dvossel (license 671)
Tested by: peterj


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239427 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-12 16:14:41 +00:00
oej 0ec8b96fab Adding Tilghman's documentation from asterisk-dev to the actual file.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239389 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-12 07:48:16 +00:00
tilghman ba3a1b5927 Merged revisions 239307 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r239307 | tilghman | 2010-01-11 21:18:36 -0600 (Mon, 11 Jan 2010) | 8 lines
  
  Portability and other fixes for the safe_asterisk script
  (closes issue #16416)
   Reported by: bklang
   Patches: 
         safe_asterisk-compat-1.patch uploaded by bklang (license 919)
         20100106__issue16416__trunk.diff.txt uploaded by tilghman (license 14)
   Tested by: bklang
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239308 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-12 03:21:40 +00:00
tilghman 58f48c7bc2 Add LSB headers to init scripts.
(closes issue #14864)
 Reported by: lathama
 Patches: 
       lsb-init-info-debian.diff uploaded by pkempgen (license 169)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239270 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-11 23:53:32 +00:00
tilghman 04cd031851 Socket level option is SOL_SOCKET, not SO_SOCKET.
(issue #16580)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239245 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-11 23:19:51 +00:00
tilghman fdffc0a9b1 Permit more options in the Makefile as to startup options
(closes issue #16454)
 Reported by: syspert
 Patches: 
       20091228__issue16454__3.diff.txt uploaded by tilghman (license 14)
 Tested by: syspert


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239231 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-11 23:00:55 +00:00
tilghman c196e591ce Including bundle1.o breaks Tiger and Leopard
(issue #16449)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239191 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-11 22:06:38 +00:00
tilghman 31afdebaba Permit dates and times to be stored in timezones other than the default (typically, UTC)
(closes issue #16401)
 Reported by: lordmortis


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239152 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-11 21:03:46 +00:00
seanbright 5943d0abab Pass NULL for the ao2_callback function pointer instead of duplicating cb_true.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239114 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-11 16:41:44 +00:00
seanbright 62fe2d93d1 Fix ao2_callback when both OBJ_MULTIPLE and OBJ_NODATA are passed.
There is an issue which only affects trunk and the new ao2_callback OBJ_MULTIPLE
implementation.  When both OBJ_MULTIPLE and OBJ_NODATA are passed, only the first
object is visited, regardless of what is returned by the specified callback. This
causes a problem when we are clearing a container, i.e.:

    ao2_callback(container, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);

Only unlinks the first object.  This patch resolves this.

(closes issue #16564)
Reported by: pj
Patches:
      issue16564_20100111.diff uploaded by seanbright (license 71)
Tested by: pj, seanbright

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239113 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-11 16:40:23 +00:00
seanbright 76f02e8ea5 Fix spelling of 'category.'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239111 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-11 16:22:09 +00:00
tilghman 13b87f413f According to POSIX, the capital L modifier applies only to floating point types.
Fixes a crash on Solaris.
(closes issue #16572)
 Reported by: crjw
 Patches: 
       frame_changes.patch uploaded by crjw (license 963)
       Plus several others found and fixed by me


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239074 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-10 19:37:30 +00:00
may 82a849a9d7 add docallbacks flag in q931decode function because
when we decode received q931 packet we must do callbacks and
when we print sended q931 packet we must not. 


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239037 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-10 17:53:59 +00:00
tilghman b7ec076367 It's been long enough -- make the behavior introduced in 1.6 the default.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239000 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-10 06:56:36 +00:00
tilghman 070bfb9327 Merged revisions 238915 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r238915 | tilghman | 2010-01-08 18:57:58 -0600 (Fri, 08 Jan 2010) | 6 lines
  
  -1 is interpreted as an error, intead of the maximum mask.
  (closes issue #16241)
   Reported by: vnovy
   Patches: 
         manager.c.patch uploaded by vnovy (license 922)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238916 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-09 01:08:04 +00:00
jpeeler 090335b824 Merged revisions 238834 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r238834 | jpeeler | 2010-01-08 17:28:37 -0600 (Fri, 08 Jan 2010) | 4 lines
  
  Stop a crash when no peer is passed to masq_park_call.
  
  (distantly related to issue #16406)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238835 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-08 23:30:55 +00:00
tilghman e73a979682 Add the class actually used in the MusicOnHold start event.
(closes issue #16499)
 Reported by: syspert
 Patches: 
       mohclass.patch uploaded by syspert (license 938)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238795 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-08 22:54:59 +00:00
tilghman f4f0e41dab Initialize variables that we attempt to free later.
(closes issue #16302)
 Reported by: yahsyn
 Patches: 
       20091124__issue16302.diff.txt uploaded by tilghman (license 14)
 Tested by: yahsyn


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238754 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-08 22:17:03 +00:00
mnicholson 5a1f5ca5df Added a test for ast_format_reduce_str().
(related to issue #16560)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238716 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-08 21:04:51 +00:00
dvossel a97f411189 fixes AUDIOHOOK_INHERIT regression
During the process of removing an audiohook from one channel
and attaching it to another the audiohook's status is updated
to DONE and then back to whatever it was previously.  Typically
updating the status after setting it to DONE is not a good idea
because DONE can trigger unrecoverable audiohook destruction
events... because of this a conditional check was added to
audiohook_update_status to explicitly prevent the audiohook
from ever changing after being set to DONE.  It was this check
that prevented audiohook inherit from work properly though.

Now ast_audiohook_move_by_source is treated as a special exception,
as the audiohook must be returned to its previous status after
attaching it to the new channel.  This is only a safe operation
because the audiohook's lock is held the entire time, otherwise
this could cause trouble.

(closes issue #16522)
Reported by: corruptor



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238635 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-08 19:39:30 +00:00
mnicholson 2400d53feb Merged revisions 238629 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r238629 | mnicholson | 2010-01-08 13:20:44 -0600 (Fri, 08 Jan 2010) | 5 lines
  
  Properly calculate the remaining space in the output string when reducing format strings.
  
  (closes issue #16560)
  Reported by: goldwein
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238630 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-08 19:32:11 +00:00
jpeeler a896f4d64a Stop trying to find a parking space after traversing the parkinglot one time.
(closes issue #16428)
Reported by: Yasuhiro Konishi


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238583 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-08 17:18:41 +00:00
rmudgett 3275e9cd64 Fix using the wrong pointer type in do_idle_thread().
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238527 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-07 21:24:06 +00:00
dvossel 76c8a0cc59 fixes ast_transfer stall until hangup if called with a channel that doesn't support transfers
ast_transfer sets res to 0 if there is no technology transfer function,
but then tests for it to be negative before deciding to do an early exit.
As a result, it will will wait for an AST_CONTROL_TRANSFER message that
will never come.

(closes issue #16424)
Reported by: davidw
Patches:
      Issue_16424_trunk_234134.patch uploaded by davidw (license 780)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238492 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-07 20:42:27 +00:00
dvossel 8545cbd83f Merged revisions 238411 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r238411 | dvossel | 2010-01-07 14:14:25 -0600 (Thu, 07 Jan 2010) | 10 lines
  
  fixes crash in "scheduled_destroy" in chan_iax
  
  A signed short was used to represent a callnumber.  This is makes
  it possible to attempt to access the iaxs array with a negative
  index.
  
  (closes issue #16565)
  Reported by: jensvb
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238412 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-07 20:15:27 +00:00
dvossel af5b16851a Blocked revisions 238409 via svnmerge
........
  r238409 | dvossel | 2010-01-07 14:06:00 -0600 (Thu, 07 Jan 2010) | 7 lines
  
  Change in sip show channels display format allowing more digits for CID
    
  (closes issue 0016459)
  Reported by: Rzadzins
  Patches:
        chan_sip_longer_cid.patch uploaded by Rzadzins (license 953)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238410 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-07 20:06:43 +00:00
dvossel 78f305ec34 Change in sip show channels display format allowing more digits for CID
(closes issue #16459)
Reported by: Rzadzins
Patches:
      chan_sip_longer_cid.patch uploaded by Rzadzins (license 953)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238405 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-07 20:00:31 +00:00
dvossel a666b47484 cli 'queue show' formatting fix. queue name was truncated over 12 characters
(closes issue #16078)
Reported by: RoadKill
Patches:
      quequename_limit.patch uploaded by ppyy (license 906)
Tested by: dvossel


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238361 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-07 18:58:23 +00:00
tzafrir 5148053833 Document the usefulness of explicit udp:// in the register string
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238313 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-07 09:14:57 +00:00
tilghman 954d154fd0 Merged revisions 238230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r238230 | tilghman | 2010-01-06 15:41:55 -0600 (Wed, 06 Jan 2010) | 4 lines
  
  Revise documentation on disposition values to the actual values used.
  (closes issue #16289)
   Reported by: wdoekes
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238231 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-06 21:45:17 +00:00
jpeeler 37396b75c0 Fix misreverting from 177158.
(closes issue #15725)
Reported by: shanermn
Patches: 
      v1-15725.patch uploaded by dimas (license 88)
Tested by: shanermn


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238181 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-06 20:37:18 +00:00
jpeeler 806dd8ab24 Fix channel name comparison for bridge application.
The channel name comparison was not comparing the whole string and therefore
if one channel name was a substring of the other, the bridge would fail.

(closes issue #16528)
Reported by: telecos82
Patches: 
      res_features_r236843.diff uploaded by telecos82 (license 687)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238134 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-06 19:05:06 +00:00
dvossel 6f136ab178 fixes test.c compile issue when TEST_FRAMEWORK is not enabled
The ast_test_status_update() function is defined in test.h.
When TEST_FRAMEWORK is not enabled a macro is defined as a no-op
place holder for this function.  The macro did not contain
the correct number of arguments.  This caused a compile error.

Much thanks to wdoekes for reporting the issue and supplying the
patch!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238091 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-06 16:36:02 +00:00
seanbright 7ac82f7eab Fix reading samples from format_mp3 after ast_seekstream/ast_tellstream.
There is a bug when using ast_seekstream/ast_tellstream with format_mp3 in that
the file read position is not reset before attempting to read samples.  So when
we seek to determine the maximum size of the file (as in res_agi's STREAM FILE)
we weren't then resetting the file pointer so that we could properly read
samples.  This patch addresses that (in a similar manner to format_wav.c).

(closes issue #15224)
Reported by: rbd
Patches:
      20091230_addons_1.4_issue15224.diff uploaded by seanbright (license 71)
Tested by: rbd, seanbright

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238014 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-06 15:35:43 +00:00
russell 67e78241fb Merged revisions 238009 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r238009 | russell | 2010-01-06 09:18:22 -0600 (Wed, 06 Jan 2010) | 7 lines
  
  Resolve a crash due to an ast_frame not being fully initialized.
  
  (closes issue #16531)
  Reported by: john8675309
  
  (closes SWP-615)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238010 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-06 15:19:10 +00:00