Tilghman Lesher
2eaae45f81
Don't check for error when lowering priority (according to the manpage, it should never happen anyway). It might could happen, though, if another thread messed with the priority, so safeguard against that (reported via -dev list).
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 02:49:06 +00:00
Tilghman Lesher
b9ec441aa9
Bug 9505 - If the return value for local_queue_frame is set, then p->lock is no longer valid.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 02:37:18 +00:00
Joshua Colp
f2680a35d4
When calling a device that then forwards us elsewhere... we have to make our channels compatible if it is the only channel being dialed. (issue #9445 reported by marcelbarbulescu)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 00:59:29 +00:00
Tilghman Lesher
2e1fe209de
Gosub called within a Macro resets the arguments improperly and causes general weirdness. (Issue 8329)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-08 14:00:22 +00:00
Tilghman Lesher
abe55bf16f
Bug 9486 - memory leak when opening a filestream
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-08 01:39:25 +00:00
Matthew Fredrickson
d971b4ba93
There should only be one code path for doing DTMF conditionals on channels. This fixes it.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-06 17:03:15 +00:00
Kevin P. Fleming
5cbe22e0f7
remove undocumented 'cardsmode' parameter and stop searching for transcoders during reload()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60398 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-06 14:41:37 +00:00
Jason Parker
6374772250
Just because we can't find the voicemail configuration file, doesn't
...
mean that the module failed to load. The user could be using realtime.
Issue #9473
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-05 16:09:41 +00:00
Joshua Colp
dd108f60f3
Only unlock our pvt and net locks if we are actually going to try to lock the owner again. (issue #9472 reported by zoa)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-05 12:52:50 +00:00
Russell Bryant
2bed78a613
It is valid to redirect channels via the manager interface that are not in the
...
UP state. Instead of checking for that to prevent to ensure a dead channel
doesn't get redirected, just use the ast_check_hangup() API call.
(issue #9457 , reported by Callmewind, patch by me)
(related to issue #8977 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60134 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-04 17:38:47 +00:00
Russell Bryant
3f71ad082e
Fix the return value of handle_common_options() so that it always properly
...
indicates whether it handled the option or not.
(issue #9455 , reported by Netview, fixed by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-04 16:37:04 +00:00
Russell Bryant
d0991f6e1f
Add a missing "\r\n" in the body of the NOTIFY that is sent to indicate the
...
status of a transfer. (issue #9388 , reported by rarritt)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 23:23:23 +00:00
Russell Bryant
7a18c89ba8
Use the more generic check for "sed -r" support that was already present in 1.4.
...
(related to issue #9399 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 23:00:10 +00:00
Russell Bryant
683a345699
On Darwin, the -r argument to sed is not valid. It has to be -E.
...
(issue #9399 , reported by jcovert)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 22:54:49 +00:00
Russell Bryant
e237711157
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.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 19:15:04 +00:00
Russell Bryant
a19d352438
Make chan_sip report when it encounters an unknown option.
...
(issue #9440 , reported by nightcrawler)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 18:43:54 +00:00
Russell Bryant
f96aef8d79
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)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 17:58:19 +00:00
Nadi Sarrar
5ded94acbe
ptp is the 5th bit, not the 4th.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 10:40:58 +00:00
Nadi Sarrar
b18a9b92c8
Use the new sysfs way of mISDN 1.2 to check if a port is NT or not.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 09:37:00 +00:00
Joshua Colp
5e01069962
Increase the maximum size for a string of mailboxes to 1024. (issue #9270 reported by rtucker)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-02 18:55:25 +00:00
Christian Richter
30fd84d952
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
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-02 12:08:12 +00:00
Christian Richter
e299df7a75
don't be verbose if no need
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-02 07:25:54 +00:00
Christian Richter
51366b90d0
we can now make 30 channels on a PRI (before we forgot chan 31..)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-02 07:12:24 +00:00
Russell Bryant
8a416b420d
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.)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-01 22:35:25 +00:00
Joshua Colp
ec7458a460
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)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-29 17:33:58 +00:00
Russell Bryant
9956c33fec
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)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-29 17:14:33 +00:00
Russell Bryant
b87695d824
Backport the change to chan_iax2 to return NULL instead of a "null frame"
...
from its read callback. See revision 59341 to the 1.4 branch for more info.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-29 17:10:28 +00:00
Tilghman Lesher
b254610b88
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.)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-29 16:04:46 +00:00
Tilghman Lesher
08c29fea9f
Change ENV section to use setenv, instead of putenv (Alexandru Pirvulescu <sigxcpu@gmail.com>, reported via -dev list)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-29 15:33:10 +00:00
Tilghman Lesher
7ca5863965
Oops
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-27 23:36:49 +00:00
Tilghman Lesher
43ac3f119b
Fix a few remaining bad mmap(2) return values
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-27 23:31:20 +00:00
Russell Bryant
653b6f22c5
Fix the check of the return value from mmap(). Thanks to Corydon for catching
...
this one.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-27 23:19:41 +00:00
Russell Bryant
ec9fb9a970
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)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-27 18:04:02 +00:00
Christian Richter
4a5d66f867
fixed #9355
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-27 13:56:15 +00:00
Nadi Sarrar
681c63cd92
mISDN >= 1.2 provides a dsp pipeline for i.e. echo cancellation modules, make chan_misdn use it.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-26 10:21:56 +00:00
Joshua Colp
9593ae4269
Only try to handle a response if it has a response code. (ASA-2007-011)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-24 01:35:49 +00:00
Steve Murphy
714e570302
Ugh. that was dumb. Fixed an error.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-23 16:07:45 +00:00
Steve Murphy
fe9bbc5dfc
Added a few words in the Macro doc strings about the behavior of macros with hangups (et al.), as per 9337
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-23 15:57:26 +00:00
Joshua Colp
0b4eeda153
Indicate the filename changed when it is changed. (issue #9311 reported by jsmith)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-21 18:03:20 +00:00
Christian Richter
74b331c4d0
modified a loglevel
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-20 09:23:22 +00:00
Christian Richter
79c08e3a46
avoid sending a disconnect when we already received one.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-20 09:18:06 +00:00
Russell Bryant
ae319d34d5
Add a note to the security file that the Asterisk CLI and log files may contain
...
sensitive information, and that people should keep this in mind.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-14 16:38:48 +00:00
Christian Richter
0939887739
fixed the crypt_keys stuff
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-13 12:58:32 +00:00
Christian Richter
3b2e8feab4
added method standard_dec for dialing out on groups, to avoid conflicts, which caused issues with some ISDN providers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-13 11:58:16 +00:00
Olle Johansson
7158b80498
Issue #9229 - No port in request URI on register to non default SIP ports (neelakantan)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-13 11:45:52 +00:00
Joshua Colp
6af97b5d59
We can't use the assembler version of fetchadd_int under Intel Macs. (issue #9254 reported by darrell budic)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-12 16:49:49 +00:00
Joshua Colp
5941cc916c
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.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-09 20:46:43 +00:00
Christian Richter
c0cf86d6c8
we can free channel 31 as well, since we can occupy it
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-09 14:43:58 +00:00
Joshua Colp
130b54f4b7
Only print out debug message if the definition that makes the variables shows up was actually defined. (issue #9233 reported by serginuez)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-08 16:04:58 +00:00
Russell Bryant
c072213569
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.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-07 18:17:07 +00:00