Commit Graph

2914 Commits (fc4111b44f23f908d47b47af3eaf9d5b952dd1e3)

Author SHA1 Message Date
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
Russell Bryant e174a3c762 Restore original functionality of 1.2 in places where ANI was not set, but was
19 years ago
Olle Johansson 955aa04edc Issue 7822 - don't use SRV lookups if it's disabled.
19 years ago
Matthew Fredrickson 640f0361b9 There, much better.
19 years ago
Matthew Fredrickson 3bfeacea91 Don't send proceeding twice (#7800)
19 years ago
Joshua Colp 379785c401 Turn media level c= parsing on by default (issue #7725 reported by psm)
19 years ago
Kevin P. Fleming 2650ee2f9a rename file per crichter's request
19 years ago
Christian Richter 71b348be1c This rather small ;-) commit merges the changes from my team branch 0.3.0 into t
19 years ago
Kevin P. Fleming c3a46b712e don't allow AUEP responses to overflow the stack during a string copy (reported by Mu Security)
19 years ago
Russell Bryant b740b45902 Increase the buffer size for the callid (issue #7675, reported by pssatcs)
19 years ago
Russell Bryant fdfc694ca3 Fix a crash reported to me by hads on IRC. This crash would occur with the use
19 years ago
Russell Bryant 54b8d83e4f don't advertise that this function can set a SIP header when it can only
19 years ago
Russell Bryant 66b15a3461 Fix an issue that would cause a NewCallerID manager event to be generated
19 years ago
Kevin P. Fleming 8ddb00adaa fix brain-damage I introduced when trying to fix the CANCEL/BYE sending mechanism for pending INVITES
19 years ago
Kevin P. Fleming 532ff6487b don't reissue hangup requests for SIP channels that have expired their RTP timeouts (one time is enough)
19 years ago
Joshua Colp 1020b9d11a How many attempts does it take to make a SIP URI parser that works well? I'm up to 5 personally. On to the good stuff - parse the domain first, user second, and get rid of port & options/params last. (issue #7616 reported by andrew)
19 years ago
Joshua Colp 2e7e645c77 Make a copy of the request URI in check_user_full instead of modifying the one on the structure, and also strip params properly from the user portion of the SIP URI so as to preserve the domain (issue #7552 reported by dan42)
19 years ago
Russell Bryant 228c35198c Fix crash when using the "regexten" option with MALLOC_DEBUG enabled. This was
19 years ago