Russell Bryant [Tue, 3 Apr 2007 19:15:04 +0000 (19:15 +0000)]
Don't attempt to report configuration errors in build_user(). oej pointed out
that for a "friend" entry, this won't work, because all user options are valid
for peers, but not the other way around.
Russell Bryant [Tue, 3 Apr 2007 17:58:19 +0000 (17:58 +0000)]
When doing a built-in blind or attended transfer, restore the ability to use '#'
to terminate the number and immediately do the transfer instead of having to
dial the number and just wait for the feature digit timeout.
(issue #8366, xueliangliang)
added option which allows us to accept incoming SETUP Messages without automatically sending Proceeding or Setup Acknowledge, this is useful with some broken switches and if you want to Release incoming calls without previously having acknowledged them. The new option is noautorespond_on_setup=yes|no default is no, so we don't break the existing behaviour
Russell Bryant [Sun, 1 Apr 2007 22:35:25 +0000 (22:35 +0000)]
Add the SO_REUSEADDR flag to sockets handled by netsock. This is needed by
the patch that went in for issue 7874. chan_iax2 needs to be able to create
socket that is lisetning on INADDR_ANY, but also be able to bind sockets to
specific addresses. (Thanks to Stevenson on the asterisk-dev mailing list
for explaining why this flag was needed.)
Joshua Colp [Thu, 29 Mar 2007 17:33:58 +0000 (17:33 +0000)]
Keep a global array of variables indicating whether certain conference rooms are in use. This ensures that two people going into a new dynamic conference when the 'e' option is set don't go into the same conference room. (issue #8835 reported by eliel)
Russell Bryant [Thu, 29 Mar 2007 17:14:33 +0000 (17:14 +0000)]
If an error occurs when reading from an RTP socket, and the error code does not
indicate that we should try again, then return NULL instead of a "null frame".
This will prevent Asterisk from trying over and over again, and eventually
causing the system to crash. (issue #8285, john)
Tilghman Lesher [Thu, 29 Mar 2007 16:04:46 +0000 (16:04 +0000)]
Issue 9415 - No point to getting a diagnostic field if we aren't doing anything with the information.
(Plus, it tends to crash the Postgres ODBC driver.)
Russell Bryant [Tue, 27 Mar 2007 18:04:02 +0000 (18:04 +0000)]
Fix the use of the "sourceaddress" option when "bindaddr" is set to 0.0.0.0
instead of having each interface explicitly listed.
(issue #7874, patch by stevens)
Joshua Colp [Fri, 9 Mar 2007 20:46:43 +0000 (20:46 +0000)]
If we are unable to lookup the host in a c line we have to abort, otherwise the previous data is gone and we will (potentially) have no data when all is said and done.
Russell Bryant [Wed, 7 Mar 2007 18:17:07 +0000 (18:17 +0000)]
Fix a problem where the Asterisk channel name could be that of the wrong IAX2
user for a call. This is because the first step of choosing this name is to
look for an IAX2 peer that happens to have the same IP/port number that this
call is coming from and assuming that is it. However, this is not always
correct. So, I have made it change this name after authentication happens
since at that point, we have an exact match.
Russell Bryant [Wed, 7 Mar 2007 00:20:13 +0000 (00:20 +0000)]
If the channels acquired using the manager Redirect action are not up, then
don't attempt to do anything with them. It could lead to weird behavior,
including crashes. (issue #8977)
Steve Murphy [Tue, 6 Mar 2007 22:52:52 +0000 (22:52 +0000)]
Fix for 9220: Eyebeam cannot renew subscriptions for presence info. Reason: re-SUBSCRIBE requests don't include Accept headers, which the rfc says are optional (to put it tersely), (it uses MAY), and luckily, the sip_pvt struct has the format info stored, so we simply leave it if the format is set, and the accept header null.
BJ Weschke [Tue, 6 Mar 2007 15:17:16 +0000 (15:17 +0000)]
Cleanup the Makefile so that we only attempt to include a file when we're building and not 'clean'ing so 'make clean' completes successfully. chan_h323 maintainer: please check to make sure I haven't broken your build target. From: jsmith in #asterisk-dev
Joshua Colp [Thu, 1 Mar 2007 22:19:32 +0000 (22:19 +0000)]
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)
Russell Bryant [Mon, 26 Feb 2007 00:34:31 +0000 (00:34 +0000)]
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)
Russell Bryant [Fri, 23 Feb 2007 23:20:55 +0000 (23:20 +0000)]
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.
Russell Bryant [Fri, 23 Feb 2007 20:17:56 +0000 (20:17 +0000)]
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).
Joshua Colp [Wed, 21 Feb 2007 20:32:16 +0000 (20:32 +0000)]
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.
Russell Bryant [Wed, 21 Feb 2007 00:19:14 +0000 (00:19 +0000)]
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.
Joshua Colp [Tue, 20 Feb 2007 22:39:14 +0000 (22:39 +0000)]
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)
Joshua Colp [Sat, 17 Feb 2007 01:09:50 +0000 (01:09 +0000)]
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)
Russell Bryant [Fri, 16 Feb 2007 22:48:22 +0000 (22:48 +0000)]
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.
Joshua Colp [Fri, 16 Feb 2007 22:13:45 +0000 (22:13 +0000)]
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)
Russell Bryant [Fri, 16 Feb 2007 20:56:58 +0000 (20:56 +0000)]
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)
Russell Bryant [Sat, 3 Feb 2007 20:38:13 +0000 (20:38 +0000)]
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)
Joshua Colp [Fri, 2 Feb 2007 16:58:09 +0000 (16:58 +0000)]
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)