Commit Graph

4290 Commits (bc56a84c58b92b72d341ddd95248d6cbf392e60b)

Author SHA1 Message Date
Joshua Colp faf4b212eb Whoops, forgot to remove the original sip_scheddestroy.
18 years ago
Joshua Colp c9638888aa Don't schedule dialog destruction if a MESSAGE is received using an existing dialog.
18 years ago
Philippe Sultan ab36dd5843 Fix the output for this channel help CLI command
18 years ago
Russell Bryant 3ba62c30b9 Make the default for the srvlookup option to be yes. It doesn't really make
18 years ago
Joshua Colp 437a6ffcd3 When creating a new packet don't try to stop retransmission of it. It was just allocated/created so it's impossible for it to have already been scheduled.
18 years ago
Joshua Colp 3b9fafc1e0 If devicestate is passed a port number strip it out.
18 years ago
Joshua Colp e568fc66d9 Add support for handling a 182 Queued response.
18 years ago
Joshua Colp 474e0e8d12 Don't perform a reinvite if a transfer is in progress.
18 years ago
Russell Bryant 21d9b7996b Do deadlock avoidance in a couple more places. You can't lock two channels
18 years ago
Kevin P. Fleming 544904070f callers of sig2str already add the word 'signalling' in the appropriate place, so don't duplicate it
18 years ago
Russell Bryant f741decf40 Use snprintf instead of sprintf in one place. There is no vulnerability here
18 years ago
Christian Richter e6b3384b48 terminate USERUSER String with 0
18 years ago
Jason Parker cf8f092d98 Add dist-clean support for subdirs.
18 years ago
Dwayne M. Hubbard bae4135759 moved get_base_channel() code from action_redirect to ast_channel_masquerade() for issue 7706 and BE-160
18 years ago
Russell Bryant b34251422c Remove another file in "make clean".
18 years ago
Dwayne M. Hubbard 7c4e477fde if an Agent is redirected, the base channel should actually be redirected. This was causing multiple issues, especially issue 7706 and BE-160
18 years ago
Kevin P. Fleming e690ff69da avoid the weird usage of assert() in the ALSA header files that gcc 4.2 wants to complain about
18 years ago
Russell Bryant a8ec2e2356 I changed my mind ... I think this should be a LOG_NOTICE.
18 years ago
Russell Bryant f77e615e9f Add a log message that was requested by the masses in the developer tutorial
18 years ago
Russell Bryant d2186a55c0 Fix building chan_misdn under dev-mode. (please run the configure script
18 years ago
Tilghman Lesher 51601e2e1f Remove unused 4k of memory on the program stack (closes issue #10827)
18 years ago
Christian Richter b0012671db fixed round_robin group dial method, this never worked well on BRI Ports (2 channels)
18 years ago
Russell Bryant d6b8fb4dc0 gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set of
18 years ago
Joshua Colp 9ffb2fe0cf Fix video under certain circumstances. It would have been possible for the formats on the channel to not contain the video format.
18 years ago
Joshua Colp 00000995f3 Make sure the minimum T1 timer value is obeyed in all cases.
18 years ago
Joshua Colp a39ed78af6 Fix a minor spelling error.
18 years ago
Russell Bryant 1b242b87ff When handling a reload of chan_iax2, don't use an ao2_callback() to POKE all
18 years ago
Joshua Colp 4be09d967e (closes issue #10760)
18 years ago
Christian Richter a779f3cbf5 removed comment which violates the coding guidelines.
18 years ago
Christian Richter 63122bb677 added 'astdtmf' option to allow configuring the asterisk dtmf detector instead of the mISDN_dsp ones. also added the patch from irroot #10190, so that dtmf tones detected by the asterisk detector are passed outofband to asterisk, to make any use of dtmf tones at all.
18 years ago
Kevin P. Fleming d2aa701b73 revert a change that wasn't supposed to be committed... doh!
18 years ago
Kevin P. Fleming 43c2cf7938 fix a couple of places where a logical member name (if specified) was not used, but instead the direct interface was listed
18 years ago
Jason Parker 2eff5e9334 If a channel does not have an owner, do not try to set a channel variable.
18 years ago
Russell Bryant 5eb2113c50 Remove chan_usbradio from the main 1.4 branch. It can't live here because we
18 years ago
Kevin P. Fleming 9ceb6b974f this new driver may not live in this branch for long (since it is a new feature), but it definitely should not be built by default
18 years ago
Jim Dixon 1a9fc13dbe Added channel driver for USB Radio device and
18 years ago
Philippe Sultan b558ac3acf Closes issue #9401, reported and patched by irrot, with slight
18 years ago
Christian Richter 370b3437ee fixed a hold/retrieve issue.
18 years ago
Russell Bryant f6212e48cb (closes issue #9724, closes issue #10374)
18 years ago
Philippe Sultan 8e10babcbd Various string length fixes. Removed an unused variable in aji_client structure (context)
18 years ago
Jason Parker 5422814fa3 Do not try to unregister a NULL channel tech.
18 years ago
Russell Bryant c95389856a Remove the typedefs on ao2_container and ao2_iterator. This is simply because
18 years ago
Kevin P. Fleming 0e39aced3c there is no point in sending 401 Unauthorized to a UAS that sent us a properly-formatted Authentication header with the expected username and nonce but an incorrect response (which indicates the shared secret does not match)... instead, let's send 403 Forbidden so that the UAS doesn't retry with the same authentication credentials repeatedly
18 years ago
Joshua Colp 95db093c40 (closes issue #10632)
18 years ago
Russell Bryant 52a37f77c7 Remove a couple of calls to ast_string_field_free_pools() on peers in error
18 years ago
Philippe Sultan 1da5446f1a Make the 'gtalk show channels' CLI command available.
18 years ago
Joshua Colp fcee92481e (closes issue #10514)
18 years ago
Russell Bryant 5f336e5a67 Add missing checks for the PTRACING define.
18 years ago
Christian Richter f4126ffe68 Fixed some warnings.
18 years ago
Christian Richter 6576e93697 Fixed a severe issue where a misdn_read would lock the channel, but read would
18 years ago
Joshua Colp 8fcc537329 (closes issue #9690)
18 years ago
Russell Bryant 587478ac3f Change the message about receiving a mini-frame before the first full voice
18 years ago
Mark Michelson 284c7cde35 DTMF begin frames should be ignored so that when an agent acks a call with the '#' key,
18 years ago
Joshua Colp 7a47ac4960 (closes issue #10561)
18 years ago
Russell Bryant 73275955bb Remove an extra signal_condition() for the scheduler thread.
18 years ago
Russell Bryant f3d98a5f3c Fix some issues with the handling of the scheduler in chan_iax2. Most of the
18 years ago
Russell Bryant a4e418458b If dnsmgr is in use, and no DNS servers are available when Asterisk first
18 years ago
Philippe Sultan 0518339c30 Closes issue #10509
18 years ago
Dwayne M. Hubbard 2aff2acf0a make misdn/isdn_lib compile without warnings
18 years ago
Dwayne M. Hubbard 4cf31ac7e1 make chan_misdn compile without warnings
18 years ago
Kevin P. Fleming 9a118809b4 report the actual channel number that was unregistered, instead of assuming that the interface list consists of channels 1 through <x> with no gaps in the sequence
18 years ago
Russell Bryant a44c1d55a2 Fix some code where it was possible for a reference to a peer to not get
18 years ago
Russell Bryant b2c65cf51d This is a hack to maintain old behavior of chan_iax2. This ensures that if
18 years ago
Russell Bryant c5cf1e50ac Don't crash when using realtime in chan_sip without an insecure setting in the database.
18 years ago
Russell Bryant 566371bd50 Merge changes from team/russell/iax_refcount.
18 years ago
Russell Bryant 3c2eae9ab4 Don't record SIP dialog history if it's not turned on. Also, put an upper
18 years ago
Russell Bryant db1f93048f Don't try to dereference the owner channel when it may not exist
18 years ago
Russell Bryant 467ceebc82 Avoid a crash in the handling of DTMF based Caller ID. It is valid for
18 years ago
Jason Parker f1cb3f70b7 Don't send a semicolon over the wire in sip notify messages.
18 years ago
Jason Parker e9ab13fa81 Re-add the setting of callerid name and number.
18 years ago
Russell Bryant 9be377d89f Fix some crashes in chan_sip. This patch changes various places that add items
18 years ago
Christian Richter c71c5098b7 sometimes we don't need to signal dtmf tones to asterisk, we just want them to go through as inband. Otherwise they might be generated by the other channel partner and then there is a double tone.
18 years ago
Russell Bryant 0dbd8e04af Fix more deadlocks in chan_iax2 that were introduced by making frame handling
18 years ago
Mark Michelson 6ec280adfc Fixes a problem where agents would get stuck busy due to their wrapuptime being longer than the queue's wrapuptime and
18 years ago
Christian Richter 6d6a045cc0 0x80 + protocol is wrong for USERUSER when we want to send IA5 Chars.
18 years ago
Joshua Colp e856a6fb34 (closes issue #10456)
18 years ago
Russell Bryant e3ecc74dc1 Fix another spot where an iax2_peer would be leaked if realtime was in use.
18 years ago
Russell Bryant a713275c1b Fix some memory leaks throughout chan_iax2 related to the use of realtime.
18 years ago
Russell Bryant f2de04d1d1 Don't call find_peer in registry_authrequest with the pvt lock held to avoid a
18 years ago
Russell Bryant 68faf63811 Release the pvt lock before calling find_peer in register_verify to avoid a
18 years ago
Russell Bryant c06aba4c8a Don't call find_peer within update_registry with a pvt lock held. This can
18 years ago
Russell Bryant 60bcd4e03c I am fighting deadlocks in chan_iax2. I have tracked them down to a single
18 years ago
Russell Bryant 4f785d7d28 Fix a potential deadlock in socket_process. check_provisioning can eventually
18 years ago
Joshua Colp 9a35428295 (closes issue #10437)
18 years ago
Christian Richter 1f62b98d45 fixed a bug with the useruser information element. We send them now also in the disconnect message.
18 years ago
Mark Michelson 6c3d28a231 I broke canreinvite...Now I'm fixing it. I put some new code in the wrong place and so I've reverted the canreinvite section to how it was and put my new code where it should be.
18 years ago
Jason Parker cb0701052c Allow chan_sip to build in devmode
18 years ago
Jason Parker 1b58e7a828 Properly check the capabilities count to avoid a segfault.
18 years ago
Russell Bryant c40325aecc Merged revisions 78370 via svnmerge from
18 years ago
Russell Bryant 2e8439052f Fix an issue where dynamic threads can get free'd, but still exist in the
18 years ago
Joshua Colp 03bcbd11c1 It is possible for a transfer to occur before the remote device has our tag in which case they send none in the transfer. In this case we need to not fail the transfer dialog lookup.
18 years ago
Mark Michelson b463a8dcbb Fixed a mistake I made in realtime_peer which caused it to return NULL every time.
18 years ago
Tilghman Lesher a7ade6f213 If peer is not found, the error message is misleading (should be peer not found, not ACL failure)
18 years ago
Mark Michelson 05ba4d90d4 Changed the behavior of sip's realtime_peer function to match the corresponding way of matching for non-realtime peers.
18 years ago
Russell Bryant 9c3f16e023 Only pass through HOLD and UNHOLD control frames when the mohinterpret option
18 years ago
Russell Bryant f58354525f Don't reuse the timespec that was set to 0 in the previous timedwait as it
18 years ago
Jason Parker 6caf638f90 Make sure we actually allow 6 chars to be sent.
18 years ago
Jason Parker eb63c3eece If a device disconnects, the session will go away.
18 years ago
Russell Bryant 311841c1b3 Fix the case where a dynamic thread times out waiting for something to do
18 years ago
Jason Parker 4386df68d9 Make sure we clear the prompt status message on a hangup.
18 years ago
Russell Bryant 02f69d36f4 Fix another race condition in the handling of dynamic threads. If the dynamic
18 years ago
Russell Bryant 847515b5c6 Add another sanity check to vnak_retransmit(). This check ensures that frames
18 years ago
Jason Parker e3bf324023 Make sure that we show the correct extension if dialed from a macro
18 years ago
Jason Parker db137aca0f Put in some additional debug information for softkey/stimulus messages.
18 years ago
Russell Bryant 5179aee53b Fix some race conditions which have been causing weird problems in chan_iax2.
18 years ago
Jason Parker d44d0a9a8c Fix an issue that caused one-way audio on some newer devices (specifically the 7921),
18 years ago
Joshua Colp 68c221f69a Add some fixes for building on Solaris.
18 years ago
Jim Dixon cd1614fcd8 Made VAST improvements in DTMF receiver in RADIO_RELAX mode (thanx Steve
18 years ago
Mark Michelson 43b39d02ae This patch makes Asterisk send 100 Trying provisional responses upon receipt of re-invites. This makes it so that if there are two or more Asterisk
18 years ago
Russell Bryant 8ed859dfc0 Fix an issue that could potentially cause corruption of the global iax frame
18 years ago
Joshua Colp 20d0b01607 (closes issue #10323)
18 years ago
Mark Michelson 7a09244181 "re-invite" was misspelled
18 years ago
Steve Murphy 0d7eb34a3e Merged revisions 76978 via svnmerge from
18 years ago
Jason Parker 9e24b3926f Don't create the Asterisk channel until we are starting the PBX on it.
18 years ago
Jason Parker c92ba70e75 Fix some incorrect softkey labels in messages.
18 years ago
Joshua Colp 2c4fe2dc00 Merged revisions 76653 via svnmerge from
18 years ago
Jason Parker b0040e0361 Don't try to queue up hold/unhold frames on a non-existent channel.
18 years ago
Joshua Colp 91eec8f228 Merged revisions 76560 via svnmerge from
18 years ago
Joshua Colp bd0608a38f (closes issue #10268)
18 years ago
Russell Bryant b838fcc22e Use a signed integer for storing the number of bytes in the packet read from
18 years ago
Russell Bryant b75f30bdd8 Merged revisions 76226 via svnmerge from
18 years ago
Jason Parker d0baa5500e Allow getting a call from an existing "sub" channel.
18 years ago
Jason Parker 73452d34a1 It's possible for sub->owner to be NULL here if you cancel the call immediately after/during sending a digit.
18 years ago
Joshua Colp 24e7873766 Merged revisions 76080 via svnmerge from
18 years ago
Jason Parker 6fde7764dc Remove some duplicate code.
18 years ago
Russell Bryant ee82ac13d6 Merged revisions 75927 via svnmerge from
18 years ago
Jason Parker c6a174bd96 Need to make sure we set milliseconds and timestamp - pointed out by the recent ast_ time stuff from Tilghman
18 years ago
Russell Bryant 5eedf74578 Merged revisions 75757 via svnmerge from
18 years ago
Jason Parker 48138cca9d Umm, why are we transmitting dialtone on cfwdall?
18 years ago
Joshua Colp 6d143d401f Backport GCC 4.2 fixes. Without these Asterisk won't build under devmode using GCC 4.2.
18 years ago
Jason Parker 7d9778c9f8 Fixes for 7935/7936 conference phones.
18 years ago
Jason Parker 2e7fe12cfb Fix issues with new 79x1 phones.
18 years ago
Joshua Colp 55a12a986e Few more places that needs to check for onhold state.
18 years ago
Joshua Colp f08e137283 (closes issue #10165)
18 years ago
Joshua Colp dc9b640755 Don't bother reloading chan_h323 if it did not load successfully in the first place. This would otherwise cause a crash.
18 years ago
Russell Bryant c6e2a119b7 Merged revisions 75449 via svnmerge from
18 years ago
Russell Bryant 89497599be Merged revisions 75444 via svnmerge from
18 years ago
Russell Bryant 2193734456 Merged revisions 75440 via svnmerge from
18 years ago
Russell Bryant 3e138057df Merged revisions 75052 via svnmerge from
18 years ago
Mark Michelson 613059e270 Change to my previous fix regarding agent logoff soft. Now uses deferlogoff instead of loginstart
18 years ago
Steve Murphy 2aab6c341f This patch resolves 10143; thanks to irroot for the patch; looked acceptable. Let the community decide if it messes things up
18 years ago
Jason Parker f642f7fc86 It helps if I actually add this stuff for the 7921 too - otherwise it won't actually do much of anything.
18 years ago
Jason Parker d6ff30694e Add device ID for 7921 wireless skinny phone
18 years ago
Jason Parker abf5430584 Fix dialing in skinny that was broken in some cases.
18 years ago
Russell Bryant 1eb3dd6381 Merged revisions 74766 via svnmerge from
18 years ago
Mark Michelson b827d5a183 Merged revisions 74719 via svnmerge from
18 years ago
Joshua Colp 5f37fa26d2 Instead of figuring out kernel versions that have compiler.h and not... let's just use autoconf to check for it's presence. (issue #10174 reported by francesco_r)
18 years ago
Joshua Colp 058a40ff02 Only check if we need to do a SIGMA based tone generation if we have a card. (issue #10179 reported by mikowhy)
18 years ago
Jason Parker f3c04c4b7e Merged revisions 74376 via svnmerge from
18 years ago
Joshua Colp 446f14f0dc Only spit out an inringing warning message when it is applicable. Since call limits are already toast in realtime let's not scare the user if they are using it. (issue #10166 reported by bcnit)
18 years ago
Jason Parker bf8172ff95 Merged revisions 74158 via svnmerge from
18 years ago
Joshua Colp 94cd7026ef Only destroy the scheduler context if it was allocated. (issue #10124 reported by gzero)
18 years ago
Joshua Colp ce4e654f2c Few minor thread synchronization tweaks. (issue #10124 reported by gzero)
18 years ago
Olle Johansson 7bbda30564 While tracking down a bug, I need some more history. Dumphistory is very useful, indeed.
18 years ago
Russell Bryant 5b544349d9 Merged revisions 73768 via svnmerge from
18 years ago
Russell Bryant 1e588db75a Merged revisions 73678 via svnmerge from
18 years ago
Mark Michelson 757160d5c9 Merged revisions 73674 via svnmerge from
18 years ago
Russell Bryant be09062a6a Fix a crash in chan_sip. Don't try to stop the monitor thread if it was never
18 years ago
Russell Bryant cf2c26a948 copy from the correct buffer when deferring a full frame
18 years ago
Russell Bryant be1502faa3 * Store the call number that a thread is processing without the full frame bit
18 years ago
Kevin P. Fleming 3b8be36363 Merged revisions 73547 via svnmerge from
18 years ago
Joshua Colp 9b753a0649 Merged revisions 73466 via svnmerge from
18 years ago
Russell Bryant 0041898603 Make this module build for me in dev-mode
18 years ago
Joshua Colp f912c6ba71 Merged revisions 73318 via svnmerge from
18 years ago
Christian Richter a95d9718c9 Merged revisions 73252 via svnmerge from
18 years ago
Christian Richter 17be3d5858 Merged revisions 73207 via svnmerge from
18 years ago
Christian Richter 1e392965f4 Merged revisions 73004 via svnmerge from
18 years ago
Christian Richter 07a72b546f Merged revisions 72585 via svnmerge from
18 years ago
Christian Richter 8fc4089947 Merged revisions 72099 via svnmerge from
18 years ago
Christian Richter 9dc0104a12 Merged revisions 72087 via svnmerge from
18 years ago
Luigi Rizzo 475e73e27d Add -Wdeclaration-after-statement to AST_DEVMODE flags to catch
18 years ago
Joshua Colp 5055793871 Make payload IDs for iLBC/Speex match to our list. Since these are dynamic payloads the other side shouldn't care. (issue #9426 reported by irroot)
18 years ago
Kevin P. Fleming 39236d2728 use the proper type for storing group number bits so that if someone specifies 'group=42' it will actually work instead of being silently ignored
18 years ago
Jason Parker 7508fce25b Don't modify a variable that we don't want modified. Make a copy of it instead.
18 years ago
Christian Richter 2294156c9d Merged revisions 72040-72041 via svnmerge from
18 years ago
Joshua Colp bd8be32993 Build a peer as well when hash323 is enabled in users.conf (issue #9599 reported by asagage)
18 years ago
Joshua Colp e973bf0ba9 Minor tweak for queueing up the unhold frame... this will teach me to do bugs while half asleep. (issue #10046 reported by dimas)
18 years ago
Joshua Colp a6895cb26d Merged revisions 71414 via svnmerge from
18 years ago
Joshua Colp 2886f912d6 Check to make sure the channel pointer is present before queueing up an unhold frame on it. (issue #10046 reported by dimas)
18 years ago
Christian Richter d0bc56b953 Merged revisions 70341 via svnmerge from
18 years ago
Christian Richter 795e189aa2 Merged revisions 70672 via svnmerge from
18 years ago
Christian Richter e1791cab97 Merged revisions 70342 via svnmerge from
18 years ago
Christian Richter 9b17b11c08 Merged revisions 70311 via svnmerge from
18 years ago
Christian Richter 933ebc4141 Merged revisions 69887 via svnmerge from
18 years ago
Christian Richter 82fe97efd5 Merged revisions 69053 via svnmerge from
18 years ago
Christian Richter 0847f57595 Merged revisions 68887 via svnmerge from
18 years ago
Christian Richter 84434f5f2f Merged revisions 68874 via svnmerge from
18 years ago
Russell Bryant 5fb99cbf73 Fix a small typo which ... well ... completely broke chan_iax2. oops!
18 years ago
Russell Bryant dbe2d8eeb6 Put the thread reading from the socket back in the idle list if it deferred the
18 years ago
Russell Bryant 6e7332a507 If a full frame is received while one of the iax2 threads is in the middle
18 years ago
Joshua Colp f1c32710a8 Merged revisions 70551 via svnmerge from
18 years ago
Jason Parker 60bf4f35c6 Make sure we clear the previously dialed number if it did not exist.
18 years ago
Russell Bryant 85f7646a2a Merged revisions 70396 via svnmerge from
18 years ago
Russell Bryant a0a33670bd Only attempt to queue a hangup on the owner channel if it actually exists.
18 years ago
Russell Bryant a2084d8ab8 Fix a crash that could occur when handing device state changes.
18 years ago
Tilghman Lesher 759dc00599 Issue 10005 - Segfault with missing arguments, plus fix a missing define for SIP INFO channels
18 years ago
Joshua Colp a50bc6e3a8 Don't count RTP timeout when involved in a T38 fax session. (issue #9222 reported by ivoc)
18 years ago
Joshua Colp f95038d97e Merged revisions 69765 via svnmerge from
18 years ago
Joshua Colp 009f6f9112 Don't defer the BYE till later on a transfer when the transfer itself goes kaboom and has no hope of working.
18 years ago
Joshua Colp 3e29d89200 Few minor transfer tweaks. We can't unlock something we never locked, and better handle a specific scenario with doing an attended transfer between two non-bridged calls.
18 years ago