Commit Graph

7408 Commits

Author SHA1 Message Date
Steve Murphy
6752748d87 further refinement in wording of goto documentation, as per 9156, goto not proceeding to next instruction
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-02 16:39:33 +00:00
Joshua Colp
4d5bf84ce1 Don't even attempt to optimize things when a proxy channel is involved. It will just explode in weird and unexplaineable ways. (issue #9175 reported by clegall_proformatique)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-01 22:19:32 +00:00
Steve Murphy
84ab66498f a small documentation update, to reflect reality in the goto doc strings, as per 9156, Goto does not proceed to next prio if jump fails
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-28 19:12:41 +00:00
Joshua Colp
c8a883fd2f Fix a few more issues with the agent logoff CLI command. (issue #9123 reported by arbrandes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-28 18:55:45 +00:00
Christian Richter
93c0385bc0 fixed bugs.digium.com bugs: #9157 and bugs.beronet.com bugs: #302, #303, #304
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-28 16:09:27 +00:00
Joshua Colp
7312a2eb3d Obey the clearglobalvars option in extensions reload (or dialplan reload depending on your version). (issue #9146 reported by ramonpeek)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-26 20:05:02 +00:00
Russell Bryant
2e64cf06e5 Ensure that lock.h is included in utils.c with AST_API_MODULE defined so that
the implementations will be properly included when the AST_INLINE_API functions
are not going to be inlined.  (issue #9124, festr)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56729 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-26 00:34:31 +00:00
Tilghman Lesher
87c0a12a03 Issue 9130 - If prev is the last item on the channel list, then evaluating
additional conditions (e.g. name prefix) will cause a NULL dereference.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56684 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-25 14:38:03 +00:00
Russell Bryant
1c26e1c717 Fix up a couple more signal handlers to not do bad things that could cause
various undesirable results.  The other day, I made Asterisk deadlock by
hitting Control-C because of a bad signal handler.  Now, signal handlers
just set a flag and write to an alert pipe for the flag to be handled.  Then,
there is another thread that is monitoring for these flags.  If being run in
console mode, it is just the main thread.  If Asterisk is in the background,
a thread is created to do it.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-23 23:20:55 +00:00
Russell Bryant
4fb7eb1b7b Don't destroy mutexes before unregistering all of the entry points from the core.
Also, fix a potential memory leak from not destroying the locks for all of the
possible call numbers (about 32k of them).


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-23 20:17:56 +00:00
Joshua Colp
ca7fbd749e Always defer Agent logoff if any channels are up until they hang up. (issue #9123 reported by arbrandes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-22 23:19:25 +00:00
Joshua Colp
c966ea6e2d Only change the original or clone channel if it's the channel behind the proxy channel, not if it's just a regular bridged channel.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-22 18:44:24 +00:00
Russell Bryant
c9d26b5a89 If we receive a frame that is not in any of the negotiated formats, then drop
it.  (potentially issue #8781 and SPD-12)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@56010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-22 00:53:25 +00:00
Joshua Colp
aa54a5f91b Change naughty warning message to provide useful information. If a write now fails on a channel in meetme it will tell you the channel name instead of spitting out the wrong error message.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-21 20:32:16 +00:00
Kevin P. Fleming
50feace3ca use new tag version script
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-21 14:03:11 +00:00
Russell Bryant
602c5bb8c3 Fix random crashes when using the MeetMe application. This patch converts list
handling to use the linked list macros and most importantly, implements
reference counting on the ast_conference objects.  The reference counting was
first backported from 1.4.  However, that code has some problems that caused
the reference count to never hit zero.  Those problems are fixed in this patch
and will be resolved in 1.4 and trunk next, with a different patch.

(issues #7647, #9073, #9106, BE-115). 


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-21 00:19:14 +00:00
Joshua Colp
960d22deb4 Defer clearing callback information if channels are up until they are hung up. This ensures the hangup process goes smoothly and no channels get hung in limbo. (issue #8088 reported by kebl0155)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-20 22:39:14 +00:00
Russell Bryant
82bc576ea4 Convert a tab to spaces so that the documentation is printed out properly
aligned.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-20 19:49:50 +00:00
Tilghman Lesher
fababa3b74 forcename and forcegreetings options should check to see if the recording already exists
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-19 18:09:09 +00:00
Olle Johansson
179c829291 Documentation update (#9053, jsmith)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-18 12:32:13 +00:00
Olle Johansson
9736c57aab Issue #9020 - SIP message retransmission time too short.
Backporting fix implemented in 1.4, where we have a minimum level
for the T1 timer. 


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-18 10:36:11 +00:00
Joshua Colp
975f117300 Answer the channel before recording privacy information. (issue #8926 reported by lmamane)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-17 03:53:45 +00:00
Joshua Colp
ff04058bff Allow chan_sip to handle attended transfers from a SIP phone that is sitting behind chan_agent. Yes folks, all it took was one line of code. (issue #8784 reported by pzieba)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-17 01:09:50 +00:00
Russell Bryant
c9c943e8e2 Revert the change I did in revisions 54955, 54969, and 54970, in 1.2, 1.4,
and trunk.  I decided that once a conference is created from meetme.conf,
it is acceptable behavior that the pin can not be changed until the
conference goes away.  I also added a note in meetme.conf to describe this
behavior.

We still have another issue in 1.4 and trunk where some conferences with no
users don't go away.  That is the real bug that needs to be addressed here.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@55005 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-16 22:48:22 +00:00
Joshua Colp
28c428929e Do not send indications through ast_indicate in chan_agent but instead go directly to the technology. This way when indications are emulated they happen on the Agent channel and do not screw up formats on the channels. (issue #8439 reported by punkgode)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-16 22:13:45 +00:00
Russell Bryant
2802ea3eeb For conferences that are configured in meetme.conf, check the configuration
file every time someone joins the conference instead of only when the
conference is first created.  This is to ensure that changes to the pin
numbers in the config file are always honored.  (issue #9073)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54955 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-16 20:56:58 +00:00
Olle Johansson
d44c7d9c54 Issue #9069 - If we open with TH we should not close with /TD. (seanbright)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-16 11:38:03 +00:00
Joshua Colp
041061ca36 Use a separate variable to indicate execution should continue instead of the return value. (issue #8842 reported by pluto70)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-15 16:14:40 +00:00
Olle Johansson
a17395f9f3 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54438 65c4cc65-6c06-0410-ace0-fbb531ad65f3 2007-02-14 18:40:44 +00:00
Matthew Fredrickson
3b38b3f632 When handling glare on a PRI, move the requested channel rather than hang up the old one. Fix for 8957 and 9011.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-14 16:25:49 +00:00
Olle Johansson
5f3b33f0f5 Make sure that outbound calls are applied to the peer.
This fixes some issues with "hints not working", but only in 1.2.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-13 18:35:43 +00:00
Kevin P. Fleming
27a1f39f78 ensure channelcount is cleared before we enumerate transcoders, so 'reload' doesn't double the channel count
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-08 22:17:49 +00:00
Tilghman Lesher
f49ce518ba Issue 9003 - If fullname is empty, quote() passes back "\""
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-08 13:36:10 +00:00
Joshua Colp
d2261a98af Fix a few potential memory leaks with realtime users and peers. (issue #8999 reported by bsmithurst)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-07 15:38:48 +00:00
Tilghman Lesher
7d1af2b829 Issue 7440 - Macro called from Macro from the h extension exits prematurely
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-07 15:30:02 +00:00
Tilghman Lesher
4fa9370412 Issue 8987 - Status could return two responses (mnicholson)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-06 06:58:28 +00:00
Jason Parker
99ba264f63 Add a proper newline at the end of this sample config file.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-06 00:08:34 +00:00
Russell Bryant
fed5b6a9b4 Revert some changes that accidentally got committed as a part of another fix.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53134 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-03 20:39:45 +00:00
Russell Bryant
8c161f55e4 set the DIALSTATUS variable to contain "INVALIDARGS" when the dial application
exits early because of invalid arguments instead of just leaving it empty.
(issue #8975)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-03 20:38:13 +00:00
Joshua Colp
15538c732c Pass the glob expanded filename to process_text_line so that error messages contain the actual filename, not the original include one. (issue #8959 reported by tzafrir)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-02 16:58:09 +00:00
Jason Parker
8ab0b28aba Fix a small typo. Synopsis lines shouldn't have a newline
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-01 23:14:09 +00:00
Joshua Colp
ade14f36ea Copy noncodeccapability over to the joint variable so that telephone-event will get transmitted in the sent INVITE.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-01 22:21:56 +00:00
Joshua Colp
d7dd6ed0a7 Don't negotiate RFC2833 when not configured to do so. (issue #8799 reported by mdu113)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-01 21:47:11 +00:00
Olle Johansson
8754f03658 - Make sure we release call from call counter before we destroy call (maybe #7744 and more)
- Backported by accident from 1.4


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-01 21:12:52 +00:00
Joshua Colp
8ea5a33c9e Return previous behavior of having MOH pick up where it was left off. (issue #8672 reported by sinistermidget)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-01 21:03:10 +00:00
Tilghman Lesher
f8bed34be9 Bug 8965 - Allow FIELDQTY to work with both variables and dialplan functions
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-01 20:07:35 +00:00
Tilghman Lesher
bc926d7f33 No wonder FIELDQTY doesn't work with functions... the documentation in pbx.c was wrong
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-01 19:13:53 +00:00
Russell Bryant
f9db7779f0 Fix a bunch of places where pthread_attr_init() was called, but
pthread_attr_destroy() was not.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-31 21:25:11 +00:00
Kevin P. Fleming
6564129ee7 update to match modified transcoder API
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-31 18:58:47 +00:00
Russell Bryant
ccce21be4f Use the proper format string to print unsigned values in the rtp debug output.
(issue #8954, wmis)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@53039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-31 17:41:51 +00:00