Commit Graph

2931 Commits (d2cb9b0d3b294b51c633af5cd52ff3a71939f005)

Author SHA1 Message Date
Russell Bryant ec9fb9a970 Fix the use of the "sourceaddress" option when "bindaddr" is set to 0.0.0.0
18 years ago
Christian Richter 4a5d66f867 fixed #9355
18 years ago
Nadi Sarrar 681c63cd92 mISDN >= 1.2 provides a dsp pipeline for i.e. echo cancellation modules, make chan_misdn use it.
18 years ago
Joshua Colp 9593ae4269 Only try to handle a response if it has a response code. (ASA-2007-011)
18 years ago
Christian Richter 74b331c4d0 modified a loglevel
18 years ago
Christian Richter 79c08e3a46 avoid sending a disconnect when we already received one.
18 years ago
Christian Richter 0939887739 fixed the crypt_keys stuff
18 years ago
Christian Richter 3b2e8feab4 added method standard_dec for dialing out on groups, to avoid conflicts, which caused issues with some ISDN providers
18 years ago
Olle Johansson 7158b80498 Issue #9229 - No port in request URI on register to non default SIP ports (neelakantan)
18 years ago
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.
18 years ago
Christian Richter c0cf86d6c8 we can free channel 31 as well, since we can occupy it
18 years ago
Russell Bryant c072213569 Fix a problem where the Asterisk channel name could be that of the wrong IAX2
18 years ago
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.
19 years ago
Olle Johansson 7d74199c6f Change error message to proper message
19 years ago
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
19 years ago
Christian Richter 58818031b1 subdirs like misdn and h323 should be cleaned by the clean target from channels/Makefile as well
19 years ago
Christian Richter dfcff16e09 fixed another place where the out_cause was hardcoded to 16
19 years ago
Christian Richter a9252f4549 fixed typo
19 years ago
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.
19 years ago
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)
19 years ago
Joshua Colp c8a883fd2f Fix a few more issues with the agent logoff CLI command. (issue #9123 reported by arbrandes)
19 years ago
Christian Richter 93c0385bc0 fixed bugs.digium.com bugs: #9157 and bugs.beronet.com bugs: #302, #303, #304
19 years ago
Russell Bryant 4fb7eb1b7b Don't destroy mutexes before unregistering all of the entry points from the core.
19 years ago
Joshua Colp ca7fbd749e Always defer Agent logoff if any channels are up until they hang up. (issue #9123 reported by arbrandes)
19 years ago
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.
19 years ago
Russell Bryant c9d26b5a89 If we receive a frame that is not in any of the negotiated formats, then drop
19 years ago
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)
19 years ago
Olle Johansson 9736c57aab Issue #9020 - SIP message retransmission time too short.
19 years ago
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)
19 years ago
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)
19 years ago
Olle Johansson a17395f9f3 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@54438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
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.
19 years ago
Olle Johansson 5f3b33f0f5 Make sure that outbound calls are applied to the peer.
19 years ago
Joshua Colp d2261a98af Fix a few potential memory leaks with realtime users and peers. (issue #8999 reported by bsmithurst)
19 years ago
Joshua Colp ade14f36ea Copy noncodeccapability over to the joint variable so that telephone-event will get transmitted in the sent INVITE.
19 years ago
Joshua Colp d7dd6ed0a7 Don't negotiate RFC2833 when not configured to do so. (issue #8799 reported by mdu113)
19 years ago
Olle Johansson 8754f03658 - Make sure we release call from call counter before we destroy call (maybe #7744 and more)
19 years ago
Russell Bryant f9db7779f0 Fix a bunch of places where pthread_attr_init() was called, but
19 years ago
Christian Richter ec4c828386 fixed some possible segfaults. also fixed an very important bug which occurs on high load (when calls are very fast generated)
19 years ago
Russell Bryant 3d12e45f06 Fix the extraction of the timestamp from video frames. It was using the
19 years ago
Joshua Colp 5e9fdf2aa7 Make the last context entry read in the dominant one. (issue #8918 reported by pj)
19 years ago
Christian Richter 34b5cd1de5 fixed the busy problem (dialstatus was not busy when we called a busy extension)
19 years ago
Joshua Colp d46636d6fa Explicitly declare what codecs are supported by default globally since using a bitmask for all may include ones we don't need. (issue #8357 reported by gknispel_proformatique)
19 years ago
Dwayne M. Hubbard 91d1c70906 issue 7877: chan_zap module reload does not use default/initialized values on subsequent loads. Reset configuration variables to default values prior to parsing configuration file.
19 years ago
Kevin P. Fleming 6926dd0fbe support echo cancellers that can handle 64ms or 128ms of echo cancellation
19 years ago
Russell Bryant cbfeb816e1 Move the check for a failure of ast_channel_alloc() to before locking the
19 years ago
Joshua Colp ed7bdda7b0 Add none as a valid callgroup/pickupgroup option. I consider it a bug that it would inherit it all the way down and not have any way to reset it to nothing - so that's why it is in 1.2. (issue #8296 reported by gkloepfer)
19 years ago
Olle Johansson 2e738d5a7c Issue #8793 bad response for Unsupported Extension (different fix).
19 years ago
Christian Richter 5704d29ffa when we get L2 UP, the L1 is UP definitely too, so we set the L1 state up as well.
19 years ago
Christian Richter ec695243af * more additions to make the RESTART message work
19 years ago
Christian Richter f5507d2431 more fixes regarding warnings for gcc-4 and first additions for the restart Information element, in the first step we initiate a restart with a CLI command
19 years ago
Christian Richter 9713819c85 make gcc 4 happy, remove some warnings
19 years ago
Joshua Colp 8ca9fedc42 Ensure we use the default refresh value of 60 if the remote server does not send one. (issue #8746 reported by maethor)
19 years ago
Kevin P. Fleming 2194a0b079 ensure that threads which are supposed to be detached (because we aren't going to wait on them) are created properly
19 years ago
Christian Richter 9c8bcc3c1c * Added check for bridging in misdn_call to avoid setting echocancellation
19 years ago
Christian Richter 6e6fa1c71f added check for channel ranges in the set/empty channel functions. set pmp_l1_check default to no. added misdn restart pid cli command. added cleaning of channel when we send a RELEASE_COMPLETE.
19 years ago
Olle Johansson 59ae6dac08 Issue 8596: Set CAN_BYE flag for 100 trying too
19 years ago
Russell Bryant 847ddc1e2c Check for the proper return value on an error in a call to mmap().
19 years ago
Russell Bryant 798116918e Remove a couple of misplaced dots in log messages. This was reported by
19 years ago
Christian Richter 526b32f5e6 when we reject a channel, because it's in use already, we shouldn't process the setup anymore. made the channel allocation a bit easier and more understandable, removed a few unused lines
19 years ago
Christian Richter 7716c778e4 when our PTP Partner sends us a SETUP with a preselected channel we just accept it, even when we're NT. added some checks for segfaults.
19 years ago
Olle Johansson c3b8d9f510 Issue #8592 - handle 504 as 503 - congestion
19 years ago
Christian Richter b9bddd3063 removed FIXUP state. added check for channel allocation conflict when we create a setup while the other site creates a setup on the same channel, besides the check we resolve this conflict.
19 years ago
Steve Murphy 611a9778bb This version applies the patch suggested by stevens in bug 7836 (make inbound channel RINGING state consistent with other channels).
19 years ago
Russell Bryant f2df4138cb Use locking when accessing the registrations list. This list is not actually
19 years ago
Christian Richter 6d3c784a84 added the export and import of the MISDN_ADDRESS_COMPLETE Variable to inidcate wether the extension is already completely dialed or if there might come additional digits by information elements. also added some docs for that.
19 years ago
Olle Johansson d37fee2b0f Issue #8528 - make sure we don't delete the dialog too quickly after receiving
19 years ago
Christian Richter 95a18631a4 changed a few debugs to higher debug levels
19 years ago
Olle Johansson 8eb9c059e5 Don't add Contact header on BYE, CANCEL, MESSAGE requests
19 years ago
Olle Johansson c70018c590 Only set the ALREADYGONE flag once in handle_response()
19 years ago
Olle Johansson e76ee063e6 Issue 8319 - noriyuki - nonce-count updated *after* use
19 years ago
Joshua Colp 1b287f7406 Only print out debug message if bridged channel is not NULL. (issue #8412 reported by jubilex)
19 years ago
Olle Johansson faee7ae5f1 Do proper test and don't leave dialogs hanging...
19 years ago
Joshua Colp b6c058c6c4 According to the research I have done we never needed to include compiler.h in the first place so let's not! (issue #8430 reported by edguy3)
19 years ago
Olle Johansson 96a36252b6 Change some logging levels. Not having hints is not an ERROR, but still should be reported.
19 years ago
Christian Richter f4137d1609 fixed a litle bug regarding HOLD/RETRIEVE. beatufied some logs, changed some loglevels. changed the default value of block_on_alarm
19 years ago
Olle Johansson 279ebd00c5 Remove unused variable (rizzo)
19 years ago
Joshua Colp fea6c62d61 Free history items at the end of use of the temporary SIP pvt structure. (issue #8383 reported by benh)
19 years ago
Olle Johansson 0b9a8ee148 Just to be safe, disable all the scheduled items after deleting a scheduler entry (rizzo)
19 years ago
Joshua Colp e51a0e25f2 Because of the way chan_local is written we should be extra careful and make sure our callback functions have a tech_pvt. (issue #8275 reported by mflorell)
19 years ago
Olle Johansson 08570a5080 Don't fixup if we haven't got PVT. Suggestion from Martin Vit on -dev mailing list inspired
19 years ago
Joshua Colp e3de4d3653 Make sure that the pvt structure exists before trying to do fixup on Local channels. (issue #7937 reported by mada123, fix by alamantia with mods by me)
19 years ago
Olle Johansson f41333b1c4 CANCEL requests are never authenticated (according to RFC 3261)
19 years ago
Olle Johansson 618dd887f1 Send error message if we fail to allocate sip socket, possibly caused by too few
19 years ago
Olle Johansson e49736b059 Sending 200 OK and not getting ACK is considered critical for the call.
19 years ago
Olle Johansson 62cb689e89 Avoid collissions between the peerpoke system and the retransmits. Issue #8272.
19 years ago
Tilghman Lesher 442781850b Having more than 255 old messages caused corruption in the new/old count
19 years ago
Olle Johansson ff0ce011a0 Don't send 487 if we've already sent 200 OK on invite at time of receiving a BYE in the same transaction.
19 years ago
Tilghman Lesher ec623148c0 Don't play dialtone if the seizing the channel fails (Bug 7754)
19 years ago
Russell Bryant 18f4324baf Only do the check to determine whether the channel calling this function is an
19 years ago
Olle Johansson 474abf4656 Clear dialog on loop (backport from 1.4 by mistake)
19 years ago
Olle Johansson 55867f295a - Don't check for ignore in blocks that isn't reached if ignore is on...
19 years ago
Olle Johansson a7e9e0893b Fix multipart/mixed SDP support (issue 8010, alphaque)
19 years ago
Joshua Colp 06f51cc52f Don't include compiler.h on kernels 2.6.18 and higher as, well, it's apparently going to be removed. This should make all you FC6 fans happy as your Asterisk will now build without any mods.
19 years ago
Christian Richter a173aeca9d Fixed segfault when no misdn.conf exists, reported by Igor Neves, thanks.
19 years ago
Olle Johansson e37d7b6682 Destroy the proper dialog...
19 years ago
Olle Johansson 735b4cf688 Remove dialog properly at unload of module (rizzo)
19 years ago
Olle Johansson b4392d33ed Don't ever reply to an ACK. (Issue 8265)
19 years ago
Joshua Colp 1961bac13d Repeat after me oej: I will at least make sure my code compiles before I commit it.
19 years ago
Olle Johansson 7908be0c2f Don't overwrite flags in the packet
19 years ago
Olle Johansson 6a662fe33e Another try to fix ;rport NAT traversal support (issue #7473)
19 years ago
Olle Johansson e807fbcec5 If peer fails ACL check, fail the REGISTER attempt
19 years ago
Olle Johansson 2405e775b1 On the other hand, we already copy the NAT flags... Reverting.
19 years ago
Olle Johansson 093d6d9554 Issue 7473 - support ;rport on REGISTER requests too.
19 years ago
Olle Johansson 154c4e9504 Issue #7869 - Stop sending 302 redirect when not getting an answer...
19 years ago
Olle Johansson 2bec3b7627 issue #7608: Notifications with wrong content-type. Reported by jsiddall.
19 years ago
Christian Richter dc0cb27752 fixed a bug which caused chan_misdn to try to allocate 2 times the same channel on high load, which then caused instability of mISDN. removed a useless function from isdn_lib.c
19 years ago
Olle Johansson 7a5dd9d78b Issue #7240, by mistake only committed to trunk (now 1.4), reported by
19 years ago
Jason Parker 34934b48fe Remove a useless ast_mutex_unlock.
19 years ago
Olle Johansson 67f0e37177 Working to resolve #7608 - adding debug output
19 years ago
Olle Johansson 4dc847a0f4 Fix the attack shield for 1.2 too. REFER and NOTIFY can create dialogs
19 years ago
Christian Richter 78d7b2641a added nttimeout option to configure wether we disconnect calls on NT timeouts or not during an overlapdial session
19 years ago
Christian Richter f7ccb0e458 fixed issue, that if chan_misdn is loaded and couldn't be initialized it would cause a segfault after 'reload'. Reported by Drew/Matt thx.
19 years ago
Joshua Colp e0cbd7f2d9 Don't create a "real" pvt structure for requests that shouldn't be able to create one. Instead use a temporary pvt and fill it with enough information so we can send a reply.
19 years ago
Jason Parker c1666e921d Fix an integer signedness problem.
19 years ago
Olle Johansson 2b0634ab95 After some research, we realized that the default behaviour since a long
19 years ago
Joshua Colp 01a7955445 Use responses rather then replies even though they mean the same thing.
19 years ago
Joshua Colp e64fa8614d Add 'ignoreoodreplies' option which will not create a pvt structure on a SIP response but instead basically drop it.
19 years ago
Christian Richter 1775cae084 avoiding warning, fixing potential bug (backported from 1.2)
19 years ago
Kevin P. Fleming 170abc16b0 when sending a call to a peer, use the proper socket if we have multiple bindings (reported on asterisk-dev)
19 years ago
Christian Richter 0bd76b00b2 fixed some echocandisable issues when bridged. this caused a kernel panic sometimes..also some minor formatting fixes
19 years ago
Christian Richter 4981d1c5dd fixed issue, that the hangupcause got a wrong isdn cause at RELEASE_COMPLETE
19 years ago
Kevin P. Fleming ffb75188e1 ensure that IAX2 and SIP sockets allow UDP fragmentation when running on Linux (thanks to Brian Candler on the asterisk-dev list for the tip)
19 years ago
Christian Richter 722d56e081 (re)added support of dynamical enabling hdlc on bchannels
19 years ago
Olle Johansson cd79e99638 Issue #8101 - wrong parameter for screening in remote-party-id
19 years ago
Christian Richter 8684599f6c fixed segfault which happens during hold/transfer action
19 years ago
Kevin P. Fleming a8c86fb9b2 fix Polycom presence notification again
19 years ago
Kevin P. Fleming 87706f538e remove workaround for old Polycom firmware SUBSCRIBE requests
19 years ago
Christian Richter eae488f164 if INFORMATION Message come with keypad instead of called party number, we just use the keypad as called party number.
19 years ago
Christian Richter 0b4f47c3c3 added the option 'reject_cause' to make it possible to set the RELEASE_COMPLETE - cause on the 3. incoming PMP channel, which is automatically rejected because chan_misdn does not support that kind of callwaiting. Therefore chan_misdn supports now 3 incoming channels on a PMP BRI Port. misdn_lib_get_free_bc now gets the info if the requested channel is incoming or outgoing to make the 3. channel possible
19 years ago
Joshua Colp e0408416d3 Change the fd on the I/O context in case it changed during the reload, which is indeed possible. (issue #7943 reported by eclubb)
19 years ago
Christian Richter 77a645d0c6 fixed the hold/retrieve/transfer issues, removed a useless bc field, added setting of frame.delivery fields, some minor code cleanups
19 years ago
Joshua Colp 87803a8ac6 Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)
19 years ago
Christian Richter 630930dd7f fixed a bug which led to chan_list zombies, when the call could not be properly established in misdn_call. also removed the ACK_HDLC stuff which is not really needed.
19 years ago
Joshua Colp 12afd66083 Use proper type to represent the group variable (issue #8025 reported by makoto)
19 years ago
Russell Bryant 00ca92aeee Check to see if the channel that is activating the IAXPEER function is actually
19 years ago
Kevin P. Fleming 377dac8495 make some more functions static
19 years ago
Matt O'Gorman 942768c022 fixes some verbose vs debug issues. patch from bug 2617
19 years ago
Olle Johansson eb4bd38c92 Issue #7682 - don't add contacts to 4xx responses.
19 years ago
Tilghman Lesher a729fb97e4 When a realtime peer expires, reset the ipaddress in the realtime database back to 0 (Issue 6656)
19 years ago
Tilghman Lesher 1df9da9fef Error message references wrong argument (Issue 7951)
19 years ago
Olle Johansson ed09034360 - Reset proper flag
19 years ago
Joshua Colp a4e28347fe Use ast_best_codec to set the read/write format
19 years ago
BJ Weschke ff9fce4bb8 Look ma! No more deadlocks! <sic>
19 years ago
Christian Richter 8be5b66038 fixed pipe consuming bug when using chanIsAvail (#7878), also moved a debug log to the very begining of misdn_hangup.
19 years ago
Joshua Colp e627ecb8a7 Make realtime regseconds work as people expected (0 on registration expiration or release, and actual on normal state) (issue #7684 reported by kshumard)
19 years ago
Olle Johansson 9eb92ed083 Don't kill the pvt before we have sent ACK on CANCEL (needs more testing before making a release)
19 years ago
Joshua Colp 1e21d7a537 Only wipe the redirected audio & video IP/port if it's specified, and trigger a reinvite.
19 years ago
Kevin P. Fleming abb4e3a3a4 put in proper fix for issue #7294 instead of the broken partial fix that was committed, and thereby also fix issue #7438
19 years ago
Olle Johansson abfcb8d31e Issue #7572 - Hangup when receiving a buggy 487 response to an INVITE
19 years ago