Commit Graph

21334 Commits

Author SHA1 Message Date
Sean Bright
41e6e3ab55 Correct the check for O_RDONLY.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-29 17:18:56 +00:00
Sean Bright
525bdd1429 Only write to wav files that were opened to be written to.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-29 16:58:08 +00:00
Terry Wilson
659c320f5d Make console colors work for TERM=xterm-256color
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-28 21:42:41 +00:00
Richard Mudgett
c4afd498c0 Merged revisions 330033 from
https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier

..........
  r330033 | rmudgett | 2011-07-28 11:26:38 -0500 (Thu, 28 Jul 2011) | 15 lines

  Datacalls with B410P fail.

  Incoming and outgoing call legs of a data call are using different
  formats: a-law, u-law.  When the call is bridged, the media stream is run
  through translation to convert the media formats.  The translation is bad
  for data calls.

  * Make incoming call that does not explicitly specify u-law or a-law use
  the DAHDI channel's default law.  The outgoing call always uses the
  default law from the DAHDI channel.

  (closes issue ABE-2800)
  Patches:
	jira_abe_2800_companding.patch (license #5621) patch uploaded by rmudgett
..........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-28 17:04:24 +00:00
Jason Parker
31bc8710d7 Fix a SIP transfer deadlock.
The locking in this function is very scary.  There are like 6 structs involved.

(closes issue AST-470)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-28 15:45:24 +00:00
Matthew Nicholson
1067b58cd3 check for CONFIG_STATUS_FILE_INVALID when loading the res_fax config file
Patch by: tzafrir
Reported by: tzafrir
(closes issue ASTERISK-18161)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-28 15:26:56 +00:00
Sean Bright
7ccd191255 Make the output of Externhost in 'sip show settings' more consistent.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-28 11:34:33 +00:00
Leif Madsen
ae2e5eea83 Change support for ConfBridge() in 1.8 to Extended.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-27 19:27:14 +00:00
Sean Bright
113b0378c0 Explicitly sort the module list so that the menuselect lists are sorted.
(closes issue ASTERISK-18141)
Reported by: Richard Miller
Patches:
		sort-order.diff uploaded by seanbright (License #5060)
Tested by: leifmadsen


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-27 19:17:46 +00:00
Jonathan Rose
b1a1cd5e57 Fix New Zealand indications profile based on http://www.telepermit.co.nz/TNA102.pdf
(closes issue ASTERISK-16263)
Reported by: richardf
Patches: 
      nz-indications.patch uploaded by richardf (License #6015)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-27 18:10:30 +00:00
Tilghman Lesher
441e8b7426 Duration and billsec are swapped in high resolution time.
Closes ASTERISK-18024
Patches:
	20110726__ASTERISK-18024.diff by Tilghman Lesher (License 5003)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-27 04:23:46 +00:00
Jonathan Rose
3b50c5a387 Changes sound file for prepend "then-press-pound" to "vm-then-pound" which is the same
prompt, only it turned out "then-press-pound" was part of extra sounds. Also, vm is more
appropriate anyway.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-26 14:04:55 +00:00
Jonathan Rose
31a1b94622 Fixes some voicemail forwarding behavior based around prepend mode.
Formerly, prepend forwarding would have the user record a message with no useful prompt
and an expectation for the user to push a button on the phone when finished recording.
If a length of silence was detected instead, the recording would be canceled and the user
would re-enter the voicemail forwarding menu. Subsequent time-outs in prepend recording
would also bug out in the sense that they would write over the original message and get
sent to the recipient regardless of whether they timed out or were accepted. This patch
fixes this issue and adds a prompt which will be played after a timeout informing the
user that they needed to press a button. Currently, the sound files that we have are
somewhat inadquate for this, so after the call we simply have Allison say "Please try
again. Then press pound." which actually relies on two separate sound files. Just one
would be more appropriate.

reporter: Vlad Povorozniuc
Review: https://reviewboard.asterisk.org/r/1327/ 


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-26 13:25:35 +00:00
Paul Belanger
ba4e50a28a Decrease verbose messages to debug, to help clean up CLI.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-25 19:49:40 +00:00
Richard Mudgett
a55804ffda Fix memory leak in an allocation error path of handle_statechange().
* Make use buffer accessor function in handle_statechange() rather than
directly accessing the struct member.

* Make use less redundant loop construct for iterating over hints.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-22 21:10:40 +00:00
Richard Mudgett
a97d03e34a Deadlocks dealing with dialplan hints during reload.
There are two remaining different deadlocks reported dealing with dialplan
hints.

The deadlock in ASTERISK-17666 is caused by invalid locking order in
ast_remove_hint().  The hints container must be locked before the hint
object.

The deadlock in ASTERISK-17760 is caused by a catch-22 situation in
handle_statechange().  The deadlock is caused by not having the conlock
before calling the watcher callbacks.  Unfortunately, having that lock
causes a different deadlock as reported in ASTERISK-16961.

* Fixed ast_remove_hint() locking order.

* Made handle_statechange() no longer call the watcher callbacks holding
any locks that matter.

* Made hint ao2 destructor do the watcher callbacks for extension
deactivation to guarantee that they get called.

* Fixed hint reference leak in ast_add_hint() if the callback container
constructor failed.

* Fixed hint reference leak in complete_core_show_hint() for every hint it
found for CLI tab completion.

* Adjusted locking in ast_merge_contexts_and_delete() for safety.

* Added context_merge_lock to prevent ast_merge_contexts_and_delete() and
handle_statechange() from interfering with each other.

* Fixed ast_change_hint() not taking into account that the extension is
used for the hash key.

(closes issue ASTERISK-17666)
Reported by: irroot
Tested by: irroot
JIRA SWP-3318

(closes issue ASTERISK-17760)
Reported by: Byron Clark
Tested by: irroot
JIRA SWP-3393

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-22 15:44:58 +00:00
Richard Mudgett
b111b763cd Document parkinglot in chan_dahdi.conf.sample.
* Document existing feature in chan_dahdi.conf.sample.

* Remove some dead code related to the parkinglot option.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-21 18:04:09 +00:00
Richard Mudgett
5c06d1dbb0 Update PickupChan documentation.
The PickupChan uses the ampersand as the argument separator.
Was documented as:
PickupChan(channel[,channel2[,...][,options]])

Fixed documentation to:
PickupChan(Technology/Resource[&Technology2/Resource2[&...]][,options])

This is a continuation of ASTERISK-17494 for v1.8 and later.

(closes issue ASTERISK-18144)
Reported by: Erik Smith
Patches:
      pickupchan_ducumentation-v2.patch (License #6263) patch uploaded by Erik Smith
Tested by: Erik Smith


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-21 17:30:57 +00:00
Richard Mudgett
6d145897bb Dialplan bridge() app mutex 'current_dest_chan' freed more times than we've locked!
This appears to be a leftover from when ast_channel was converted to ao2
objects.

Simply removed the extraneous unlock.

(closes issue ASTERISK-17772)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-21 16:46:21 +00:00
Paul Belanger
a99ae32acd Asterisk now requires libpri 1.4.11+ for PRI support.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-20 21:20:36 +00:00
Richard Mudgett
a7394bcd28 Backport useful CLI "pri show channels" command to v1.8.
The "pri show channels" command is useful for debuging to see if there are
any stuck B channels.

..........
  r307964 | rmudgett | 2011-02-15 15:42:55 -0600 (Tue, 15 Feb 2011) | 9 lines

  Add CLI "pri show channels" command.

  List the current mapping of DAHDI B channels to Asterisk channel names and
  which calls are on hold or call-waiting.  Calls on hold or call-waiting
  are not associated with any B channel.

  JIRA LIBPRI-27
  JIRA SWP-2547

..........
  r308205 | rmudgett | 2011-02-17 14:21:56 -0600 (Thu, 17 Feb 2011) | 1 line

  Add more verbage to CLI command 'pri show channels' usage.

..........
  r312579 | rmudgett | 2011-04-04 11:17:58 -0500 (Mon, 04 Apr 2011) | 59 lines

  Change also updates 'pri show channels' command with the "chan idle"
  column to report if a channel is available for use.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@329012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-20 20:52:33 +00:00
Terry Wilson
fa35b4560f We can't guarantee an eth0 is present
FreeBSD test fails on this case presumably because there is no eth0 on the test
machine. Better to just remove this test for now.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-20 20:16:58 +00:00
Kinsey Moore
58548d6eb9 Inband DTMF regression
The functionality of inband DTMF in chan_sip relied upon
ast_rtp_instance_dtmf_mode_get/set not working properly to avoid calling
ast_rtp_instance_dtmf_begin/end on RTP streams with inband DTMF. According to
documentation, ast_rtp_instance_dtmf_begin/end is meant only for RFC2833 DTMF,
never inband.  This fixes the regression introduced in revision 328823.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-20 19:00:23 +00:00
Kevin P. Fleming
c7afb0eaf1 Revert partial attempt at handling pathnames with spaces.
Revision 299794 attempted to improve the build system to be able to handle
pathnames (primarily DESTDIR) with spaces in them, since this is common on
some platforms (including Mac OSX). Unfortunately, the changes were incomplete
and did not actually provide the desired behavior, and as a side effect the
functionality that ensured that stale headers in the Asterisk 'include' directory
were removed got broken. In addition, the check for stale (and possibly
incompatible) modules in the Asterisk 'modules' directory also got broken, and
would never report any stale modules. Users upgrading to this version or later
versions would then see unexpected module load errors.

Since there are few users who actually want to install Asterisk into paths
that contain spaces, and a proper fix for the build system would take many hours,
the best solution for now is to just revert the partial solution.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-19 21:29:07 +00:00
Kinsey Moore
5905269669 RTP bridge away with inband DTMF and feature detection
When deciding whether Asterisk was allowed to bridge the call away from the
core, chan_sip did not take into account the usage of features on dialed
channels that require monitoring of DTMF on channels utilizing inband DTMF.
This would cause Asterisk to allow the call to be locally or remotely bridged, 
preventing access to the data required to detect activations of such features.

(closes 17237)
Review: https://reviewboard.asterisk.org/r/1302/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-19 17:57:18 +00:00
Kinsey Moore
9769bb7d34 MeetMe requests a PIN twice in some circumstances
If a call to MeetMe includes both the dynamic(D) and always request PIN(P)
options, MeetMe will ask for the PIN two times: once for creating the
conference and once for entering the conference.  This behavior was introduced
in rev 311616 when adding the CONFFLAG_ALWAYSPROMPT option to the logic branch
controlling PIN entry for joining a conference.

(closes AST-601)
Review: https://reviewboard.asterisk.org/r/1305/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-19 15:43:32 +00:00
Terry Wilson
d72bfe9db3 Make AST_LIST_REMOVE safer
AST_LIST_REMOVE shouldn't modify the element passed in if it isn't found. This
commit also adds linked list unit tests.

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-19 01:35:53 +00:00
Mark Murawki
f5ec4864bd app_dial may double free a channel datastore
When starting a call with originate, and having the callee channel run Bridge() on pickup, we will double free the dialed_interface_info datastore, causing a crash.  Make sure to check if the datastore still exists before trying to free it.

(closes issue ASTERISK-17917)
Reported by: Mark Murawski
Tested by: Mark Murawski



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-18 20:47:04 +00:00
Mark Murawki
58a56845a6 If the sip private structure is null, sip_setoption() will defref the null pointer and crash.
Ideally, sip_setoption shouldn't be called if there is a lack of a sip private structure.  But this will fix a crash.

(closes issue ASTERISK-17909)
Reported by: Mark Murawski
Tested by: Mark Murawski



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-18 12:35:57 +00:00
Mark Murawki
e739fd42fc Fixed invalid read and null pointer deref on asterisk shutdown.
In some cases when starting asterisk with -c and hitting control-c to shutdown, there will be an invalid read and null pointer deref causing a crash.

(closes issue ASTERISK-17927)
Reported by: Mark Murawski
Tested by: Mark Murawski, Kinsey Moore, Tilghman Lesher


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-18 12:06:50 +00:00
Tilghman Lesher
b0b45db756 Typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-18 07:10:15 +00:00
Leif Madsen
fc0ea9d188 Revert changes to defaultenabled state for modules in Asterisk 1.8
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-15 20:41:12 +00:00
Alexandr Anikin
92ba1aed9f small gk processing fixes:
- decrease for 1 second registration ttl for very low expirations (some
  providers expire few earlier than TTL)
- delete rrq and registration expire timers on URQ received as we make
  new registration.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-15 19:22:24 +00:00
Richard Mudgett
9e086f4576 Missing SIP pvt and channel unlock in sip_set_rtp_peer().
Regression introduced by -r326144.

Add missing SIP pvt and channel unlock in sip_set_rtp_peer().


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-14 23:12:06 +00:00
Leif Madsen
d4938a111e Introduce <support_level> tags in MODULEINFO.
This change introduces MODULEINFO into many modules in Asterisk in order to show
the community support level for those modules. This is used by changes committed
to menuselect by Russell Bryant recently (r917 in menuselect). More information about
the support level types and what they mean is available on the wiki at
https://wiki.asterisk.org/wiki/display/AST/Asterisk+Module+Support+States

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-14 20:13:06 +00:00
Jonathan Rose
9d0ba1ea31 Monitor application arguments requirements fixed.
Monitor was requiring options in spite of no individual option on Monitor being required.

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-14 19:21:02 +00:00
Richard Mudgett
89391b8930 Add ATXFER_NULL_TECH note in features.conf.sample.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-13 18:46:38 +00:00
Kevin P. Fleming
feb182f802 Correct double-free situation in manager output processing.
The process_output() function calls ast_str_append() and xml_translate() on its
'out' parameter, which is a pointer to an ast_str buffer. If either of these
functions need to reallocate the ast_str so it will have more space, they will
free the existing buffer and allocate a new one, returning the address of the
new one. However, because process_output only receives a pointer to the ast_str,
not a pointer to its caller's variable holding the pointer, if the original
ast_str is freed, the caller will not know, and will continue to use it (and
later attempt to free it).

(reported by jkroon on #asterisk-dev)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-12 22:53:53 +00:00
Matthew Nicholson
3769e99537 search in the current context for 'a' and 'o' instead of 'default'
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-12 20:07:20 +00:00
Jason Parker
a971479967 Fix uninstall target, so that modules dir gets cleared again.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327888 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-12 19:38:44 +00:00
Matthew Jordan
cafd418c46 Added additional checks for mailbox / password beginning with '*' character
A bug existed such that if a user entered a password with '*', and the extension 'a' did not exist, an invalid mailbox would be created and the user authenticated.  The code was changed to prevent this from occurring, and to prevent users from having mailboxes or passwords defined that begin with the '*' character.

(closes issue ASTERISK-17443)
Reported by: Kevin Scott Adams
Tested by: Matt Jordan

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




git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-12 19:10:34 +00:00
Tilghman Lesher
1344d03e6b Use 'printf' (POSIX issue 4) instead of 'echo -n', for portability.
The problem with using 'echo -n' is that it is not portable.  While BSD systems
required that the '-n' option be removed and interpreted, System V required
that all strings should be echoed with no interpretation of options.  This
fundamental difference of behavior means that it is never possible to use the
'-n' flag to echo in tests which are meant to be portable.

In this case, on Mac OS X 10.6, the /bin/sh shell builtin 'echo' uses the
System V semantics of the command, and thus the SHELL test failed on that
platform.

http://pubs.opengroup.org/onlinepubs/009695399/utilities/echo.html#tag_04_41_16


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-12 15:35:46 +00:00
Terry Wilson
4a19bd7e74 Update chan_gtalk to work with changed GMail-based calls
The messages sent by the GMail client have changed, but include the
old-style messages as well. This patch checks for this case and
uses the old-style offer.

(closes issue ASTERISK-18084)
Review: https://reviewboard.asterisk.org/r/1312/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-11 19:41:59 +00:00
Matthew Nicholson
0bc1f651c7 reset our buffer each iteration when doing variable substitution
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-11 13:53:59 +00:00
Tzafrir Cohen
5bff785fc6 Properly building the Debian armhf (HardFloat) port.
Remove the line that should have been removed in r327411.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-11 10:56:23 +00:00
Tzafrir Cohen
d004e5839a fix building the Debian armhf (HardFloat) port
Fixes http://buildd.debian-ports.org/status/fetch.php?pkg=asterisk&arch=armhf&ver=1%3A1.8.4.4~dfsg-2&stamp=1309935385
(Missing pthreads)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-11 10:46:34 +00:00
Jason Parker
55b8ba31ad Add .o files to svn:ignore property, since it's only ignored if locally configured to do so.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-08 22:27:14 +00:00
Richard Mudgett
181898fdb6 INVITE 403 Forbidden response always retransmits the maximum times.
Asterisk sends a 403 Forbidden response if authentication fails for an
INVITE as required.  However, it ignores the ACK and keeps retransmitting
the response.

* Made not delete the to-tag in the dialog so the expected ACK can be
matched with the dialog and stop the retransmissions.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327211 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-08 21:41:58 +00:00
Matthew Nicholson
1fcdb0f58b Reset our ast_str before passing it on to dialplan function backends.
It is possible for a dialplan backend to not modify the given buffer or ast_str
and still return success. This causes any previous value stored in the buffer
to be used as if the new function call provided it. Some functions also append
to the given buffer assuming it is empty.

The test_substitution unit test has also been modified to detect this problem.

(closes issue ASTERISK-17878)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-08 19:52:51 +00:00
Russell Bryant
635a81d58b Fix an error and add more log message info to help see why this fails on FreeBSD.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@327046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-08 16:00:05 +00:00