Commit Graph

2945 Commits

Author SHA1 Message Date
Olle Johansson
1a92fec845 - Don't send ActionID before Response: header.
- Don't use a blank in an AMI header


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-09 19:38:59 +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
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
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
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
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
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
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
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
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
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
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
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
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
Steve Murphy
c7c8b06817 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.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-06 22:52:52 +00:00
Olle Johansson
7d74199c6f Change error message to proper message
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-06 20:33:21 +00:00
BJ Weschke
75ce9f86b8 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
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-06 15:17:16 +00:00
Christian Richter
58818031b1 subdirs like misdn and h323 should be cleaned by the clean target from channels/Makefile as well
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-05 23:18:49 +00:00
Christian Richter
dfcff16e09 fixed another place where the out_cause was hardcoded to 16
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-04 10:39:50 +00:00
Christian Richter
a9252f4549 fixed typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-02 18:32:51 +00:00
Joshua Colp
6bf891f353 If a SIP message comes in and goes to a method handler that requires additional values that may not be present then send back an error.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@57475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-02 17:02:46 +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
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
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
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
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
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
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
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
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
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