Joshua Colp
fac91f48ef
Minor documentation fix to add the 'dynamic' dialplan option from angler
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40971 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-24 16:44:41 +00:00
Tilghman Lesher
39e622f7cf
Revert last change - breaks retrieval of builtin variables
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40901 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-23 16:05:26 +00:00
Tilghman Lesher
dad6bc4d32
Bug 7779 - Using initstate(3) means that we cannot unload this module once loaded.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-22 02:59:37 +00:00
Matt O'Gorman
4514a22df3
Move the load_modules call so that if a module needs
...
realtime support it will work, none do currently but a good
move none the less.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 22:34:26 +00:00
Tilghman Lesher
c7a845c978
Reformat to match the contribution style of other contributors
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 22:09:57 +00:00
Joshua Colp
379785c401
Turn media level c= parsing on by default (issue #7725 reported by psm)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 04:49:48 +00:00
Jason Parker
d98055d875
Fix a bug with app_voicemail when trying to use app_directory to leave messages
...
to another user (options 3, 5, 2).
If the context/extension didn't exist in the dialplan (and why should it have to?),
it would fail, saying that it's an "invalid extension".
Fix was different in svn trunk.
(issue BE-71)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-19 01:03:22 +00:00
Kevin P. Fleming
86b0330dc5
make a feeble attempt to avoid the 'how do I enable my hardware echo canceler' questions
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-18 19:10:51 +00:00
Kevin P. Fleming
2650ee2f9a
rename file per crichter's request
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 22:00:37 +00:00
Christian Richter
71b348be1c
This rather small ;-) commit merges the changes from my team branch 0.3.0 into t
...
he 1.2 branch.
These changes include the new mISDN mqueue interface which makes it possible to
compile chan_misdn against the current cvs version of mISDN/mISDNuser.
These changes also contain various additions and numerous bugfixes to chan_misdn
.
Each change is documented in the commit logs in the team/crichter/0.3.0 branch.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 21:57:19 +00:00
Russell Bryant
2f5c21ded7
revert bogus change to attempt to fix bug 7506 which actually causes half of
...
the channels not to get "Newchannel" events at all (issue #7745 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 16:36:21 +00:00
Joshua Colp
3d759745f9
Use the last CDR entry instead of the first CDR entry for variable retrieving variables using the CDR dialplan function. (issue #7689 reported by voipgate)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40225 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 16:22:58 +00:00
Joshua Colp
afedbd97af
Make app_macro compile again
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 16:18:08 +00:00
Steve Murphy
4098ad798d
In app_macro, changed the previously changed upper recursion depth limit to a variable, default of the original val of 7. MACRO_RECURSION is a channel variable that will override the limit, but until I can understand and fix why this limit is neccessary, I am not advertising this variable in the docs. This fix mirrors the changes made in r40200 in trunk.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 16:07:21 +00:00
Kevin P. Fleming
c3a46b712e
don't allow AUEP responses to overflow the stack during a string copy (reported by Mu Security)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@40057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-16 18:57:44 +00:00
Russell Bryant
465207a28d
use pbx_builtin_getvar_helper() so that GET VARIABLE can retrieve global
...
variables (issue #7609 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@39935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-15 22:49:41 +00:00
Steve Murphy
f4e47e9b51
This revision fixes bug 7731, the inability for macros to be called more than one level deep in the 'h' extension.
...
It also pushes up the limit of recursion depth from 7 to 20.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@39931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-15 22:13:47 +00:00
Kevin P. Fleming
7b46b7133d
add explicit listing of anthm's contributions (issue #7683 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@39379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-08 18:39:16 +00:00
Russell Bryant
b740b45902
Increase the buffer size for the callid (issue #7675 , reported by pssatcs)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@39350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-08 17:04:10 +00:00
Russell Bryant
fdfc694ca3
Fix a crash reported to me by hads on IRC. This crash would occur with the use
...
of the "distinctiveringaftercid" option. Also, on this user's system, the crash
would only occur when built without optimizations. This is because the bug is
that the code would write past the end of an array that was allocated on the
stack, and the structure of the stack is different with or without optimizations
enabled.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@39081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-07 01:28:29 +00:00
Joshua Colp
1204f825d7
Reset our stream and vstream pointers back to NULL so that any generator that uses them (file based MOH) will not try to close them again. (issue #7668 reported by jmls)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@39056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-07 00:15:51 +00:00
Russell Bryant
f4c24d5d62
Always generate a Newstate event in ast_setstate() instead of making it a
...
Newchannel event if the state was AST_STATE_DOWN. The Newchannel event will
always be generated in ast_request(), so this just causes a duplicated
Newchannel event in some cases.
(issue #7506 , repoted by capouch, fixed by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 09:01:37 +00:00
Russell Bryant
e81646d2dd
remove duplicate queue log entry when the caller exits on a timeout
...
(issue #7616 , ppyy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38972 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 08:08:48 +00:00
Russell Bryant
54b8d83e4f
don't advertise that this function can set a SIP header when it can only
...
do reads
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 07:21:12 +00:00
Russell Bryant
183541b44d
make sure the priv-callerintros directory exists before trying to create a file
...
there (issue #7659 , patch by hads, with some modifications by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 06:37:59 +00:00
Russell Bryant
66b15a3461
Fix an issue that would cause a NewCallerID manager event to be generated
...
before the channel's NewChannel event. This was due to a somewhat recent
change that included using ast_set_callerid() where it wasn't before. This
function should not be used in the channel driver "new" functions.
(issue #7654 , fixed by me)
Also, fix a couple minor bugs in usecount handling. chan_iax2 could have
increased the usecount but then returned an error. The place where chan_sip
increased the usecount did not call ast_update_usecount()
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 05:08:50 +00:00
Russell Bryant
5e3b7eec7d
suppress a compiler warning about the usage of a potentially uninitialized variable
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-05 05:07:39 +00:00
Joshua Colp
a56f08e345
Treat the file as invalid if we have no valid formats for it (issue #7643 reported by KNK)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-03 19:54:02 +00:00
Tilghman Lesher
84ad1fe0f3
Bug 7648 - Checking wrong count for plurality on new messages for Dutch language
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-03 05:22:19 +00:00
Kevin P. Fleming
8ddb00adaa
fix brain-damage I introduced when trying to fix the CANCEL/BYE sending mechanism for pending INVITES
...
accept unknown 1xx responses as 183 responses (as RFC3261 mandates we should do)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-02 19:29:56 +00:00
Kevin P. Fleming
4f3b40fe79
ensure that the 'feature digit timeout' value is taken into account when deciding how long the bridge should run (this fixes a problem report where a digit press that did not invoke a feature is never passed across the bridge)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-01 23:07:06 +00:00
Joshua Colp
83f9228c1d
Close the stream when file based MOH stop. This won't get rid of their position in the file but it will cause the translation path to be setup again. (issue #7634 reported by asimpson)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-01 19:20:05 +00:00
Kevin P. Fleming
532ff6487b
don't reissue hangup requests for SIP channels that have expired their RTP timeouts (one time is enough)
...
don't rescan the SIP private structure list too fast, it can cause channels to not be able to hang up (issue #7495 , and probably others)
use ast_softhangup_nolock() since we already hold the channel's lock
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-31 21:14:11 +00:00
Joshua Colp
f41b9baed4
Add missing code to bring transferee channel out of MOH/autoservice under certain circumstance (issue #7611 reported by guillecabeza with minor mods by myself)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-31 17:09:10 +00:00
Russell Bryant
af0052ee94
one more small tweak for thread-safety of TRACE_FRAMES
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-31 04:06:16 +00:00
Russell Bryant
70d6a82a9f
Make the frame counting done with TRACE_FRAMES defined thread-safe
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-31 04:04:02 +00:00
Joshua Colp
1020b9d11a
How many attempts does it take to make a SIP URI parser that works well? I'm up to 5 personally. On to the good stuff - parse the domain first, user second, and get rid of port & options/params last. (issue #7616 reported by andrew)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-29 23:18:00 +00:00
Joshua Colp
2e7e645c77
Make a copy of the request URI in check_user_full instead of modifying the one on the structure, and also strip params properly from the user portion of the SIP URI so as to preserve the domain (issue #7552 reported by dan42)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-28 18:49:00 +00:00
Kevin P. Fleming
7b9abdf138
use the enum that defines the option arguments, so that the likelihood of mismatched option indexes is reduced (which in this case was a bug, the volume argument was not checked properly)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-27 22:23:38 +00:00
Kevin P. Fleming
6afc9c6c8f
do a better job avoiding translation path teardown/setup when not needed
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-27 15:40:03 +00:00
Russell Bryant
228c35198c
Fix crash when using the "regexten" option with MALLOC_DEBUG enabled. This was
...
not reported in the bug tracker but the same bug has been demonstrated in other
places in the code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-27 04:25:41 +00:00
Kevin P. Fleming
0b6aa9cd29
don't do useless translation destroy/build when the channel is already in the correct format
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-27 02:43:49 +00:00
Russell Bryant
425c51cfd5
fix a crash when MALLOC_DEBUG is enabled and the regexten is enabled. The crash
...
would occur when the extension got removed. (fixes issue #7484 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-27 01:58:41 +00:00
Joshua Colp
46012df0b6
Put default callerid into contact when the one specified is either NULL or has a zero string length. (issue #7590 reported by key2)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-26 15:26:06 +00:00
Russell Bryant
96048caf41
This resolves a deadlock that a tech support customer was getting frequently
...
when his users would answer call waiting. If another thread is currently
holding the zt_pvt lock for the first channel, unlock both channels and let
asterisk retry the native bridge, just like what is done for the second channel
directly below these changes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38200 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-25 19:43:38 +00:00
Steve Murphy
f46ab63b6c
This fixes a compile problem for s390 as reported in bug 7253.
...
Tested on both an s390 and non-s390 machine.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@38167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-24 17:05:56 +00:00
Kevin P. Fleming
1cd1b27779
ensure that global 'maxauthreq' is reset to zero during 'reload'
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19 17:10:10 +00:00
Russell Bryant
b97c12b80b
don't crash if the frame has no data, but has a src
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-18 00:41:47 +00:00
Russell Bryant
09a334573e
if asked to duplicate a frame that has no data, don't set the frame's data
...
pointer past the end of the allocatted buffer for the new frame
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-17 23:25:33 +00:00
Tilghman Lesher
dfe118c2fd
Backport buffer increase to 1.2
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-17 22:36:56 +00:00