Commit Graph

4406 Commits (1.4.21.2)

Author SHA1 Message Date
Russell Bryant 0343bf8348 Add more missing locking of the agents list ...
18 years ago
Russell Bryant 70200cec77 Move the locking from find_agent() into the agent dialplan function handler to
18 years ago
Russell Bryant c6c7c3bf58 Add missing locking to the find_agent() function.
18 years ago
Olle Johansson 5e02b0d76e Stop musiconhold on attended transfer.
18 years ago
Jason Parker f60be6bdb8 Initialize an array to 0s if config option not specified.
18 years ago
Jason Parker 75007e2ab5 Allow zap groups above 30 to work properly.
18 years ago
Christian Richter 31c5fc22a5 fixed potential segfault in misdn show channels CLI command
18 years ago
Olle Johansson 52cfa83d42 (closes issue #11736)
18 years ago
Mark Michelson d53c693509 Undoing the deprecation of chan_vpb. It is alive and well.
18 years ago
Russell Bryant fe50ae6de5 For some reason, the use of this strdupa() is leading to memory corruption on
18 years ago
Jason Parker 58a4fa50ce Correct a comment which made little/no sense.
18 years ago
Russell Bryant ef78f25e8a Make some deadlock related fixes. These bugs were discovered and reported
18 years ago
Tilghman Lesher 7060a6888d When deleting a task from the scheduler, ignoring the return value could
18 years ago
Mark Michelson 53859e0bfc Deprecating chan_vpb. It is now preferred that users of Voicetronix products
18 years ago
Jason Parker a70508ed3d This would have never been true, since we're passing (sizeof(req.data) - 1) as the len to recvfrom().
18 years ago
Olle Johansson 107c1c37b4 Second attempt. Don't change invitestate when receiving 18x messages in CANCEL state.
18 years ago
Olle Johansson d95d9d7132 Make sure we don't cancel destruction on calls in CANCEL state, even if we
18 years ago
Mark Michelson 3e54e684b2 These flag tests were illogical. They were testing sip_peer flags on a sip_pvt.
18 years ago
Olle Johansson f9cf98d4bf Thanks to Russell's education I realize that BUFSIZ has changed since I learned the C language
18 years ago
Olle Johansson 48066f4cfd Add more dependencies on chan_local and add a note to the description of chan_local
18 years ago
Olle Johansson 33b77709a7 Cleaning up some documentation that led to confusion in a bug report
18 years ago
Mark Michelson cdd8c1a3c3 Fixing an issue wherein monitoring local channels was not possible. During a channel
18 years ago
Joshua Colp 785f7da384 Bump the buffer size for Via headers up to 512. There are some exceptionally large Via headers out there.
18 years ago
Russell Bryant 6d0ee62540 Have IAX2 optimize the codec translation path just like chan_sip does it. If
18 years ago
Joshua Colp 1156daa2e4 Add missing NULLs at end of two ast_load_realtimes.
18 years ago
Mark Michelson 7decb0d343 Fix a deadlock in chan_local in local_hangup. There was contention because
18 years ago
Joshua Colp d35f5e39a2 Don't drop the old record route information when dealing with packets related to a reinvite.
18 years ago
Russell Bryant 48a72bba86 Change a buffer in check_auth() to be a thread local dynamically allocated
18 years ago
Russell Bryant 7a007060bd Commit a fix for some memory access errors pointed out by the valgrind2.txt
18 years ago
Joshua Colp d355eb9c84 Based on the boundary found move over the correct amount.
18 years ago
Joshua Colp e3458a4976 Accept "; boundary=" not just ";boundary=" in the multipart mixed content type.
18 years ago
Tilghman Lesher 0b289ed1b6 Back out changes from revision 97077, since it wasn't perfect
18 years ago
Tilghman Lesher 7f61492a42 1) When we get a translated frame out, clone it, because if the
18 years ago
Philippe Sultan 863ef8d7d2 Set the caller id within the gtalk_alloc function.
18 years ago
Kevin P. Fleming d235974bd6 pass the right variable to get an error string... oops
18 years ago
Kevin P. Fleming 7bfd21933f add error number output to ioctl failure messages to help with debugging
18 years ago
Joshua Colp 61ee1872b1 Fix various DTMF issues in chan_mgcp.
18 years ago
Tilghman Lesher 1b289c2998 Apply multiple crash fixes, found in issue #11386, but not completely
18 years ago
Tilghman Lesher 58cc575e52 If you change the bindaddr in sip.conf to a non-bound address and reload, sip goes kablooie.
18 years ago
Russell Bryant 6787783ce5 Make use of the temporary channel pointer while the pvt is unlocked.
18 years ago
Russell Bryant 6ae86ec183 Don't crash if the iax2 pvt structure has been destroyed before we get to this point
18 years ago
Christian Richter 2a4a61f914 make sure frame is completely clean, before we send it to asterisk as DTMF. If we don't make it clean, it happens that one way audio occurs..
18 years ago
Christian Richter be6e667c1e when overlapdial was used and no number was dialed, the call was dropped, now we just jump into the s extension, which makes a lot more sense.
18 years ago
Joshua Colp b5087d7743 Allocate a SIP refer structure when performing a transfer using BYE with Also so that the transfer information is properly stored. (AST-2008-001)
18 years ago
Russell Bryant ce3f27c5d5 Remove duplicate increment of the header count in the add_header() function.
18 years ago
Joshua Colp e276b231fb Include types.h in chan_h323 as without it it can not be compiled on some operating systems like FreeBSD to name one.
18 years ago
Joshua Colp 856bc2ef76 Use ast_strlen_zero to see if our_contact is set or not on the dialog. It is possible for it to be a pointer to NULL.
18 years ago
Joshua Colp 25aef5fc44 file says... build on the builders.
18 years ago
Tilghman Lesher 9dbd385de7 More deadlock avoidance code (this time between sip_monitor and sip_hangup)
18 years ago
Tilghman Lesher f26935218f Another bit of bad logic in realtime_peer
18 years ago
Tilghman Lesher 1e5463be20 Argh... I suppose third time's the charm.
18 years ago
Russell Bryant 32c8a851c7 Merged revisions 94255 via svnmerge from
18 years ago
Russell Bryant b80002cc9f Fix a deadlock in d-channel handling in chan_zap.
18 years ago
Joshua Colp 52527facc4 Make the 1.4 builders happy, ensure var is NULL.
18 years ago
Tilghman Lesher d1a1f4599b Avoid segfault in chan_iax when peer isn't defined
18 years ago
Jason Parker ff5ffd02cf FreeBSD also does not have byte swap functions.
18 years ago
Tilghman Lesher be17d99712 Merged revisions 93667 via svnmerge from
18 years ago
Joshua Colp 48ae6172da If a call is received with a called number IE containing nothing go to the 's' extension.
18 years ago
Kevin P. Fleming fd1e942f53 fix some copy-and-paste leftovers
18 years ago
Olle Johansson 517dacce70 Issue 11574: Add dependencies on res_monitor and res_features.
18 years ago
Kevin P. Fleming 627f595c58 In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
18 years ago
Joshua Colp 6a2c388e18 Up the length of the format on the SIP channel since it can now be rather long.
18 years ago
Christian Richter 876afa76de fixed the sequencing of WAITING_4DIGS state setting and overlap_task thread starting.
18 years ago
Tilghman Lesher 9d70e52611 Properly initialize polarity statuses, so that they are detected properly.
18 years ago
Jason Parker 8771f23fff If a typo is found in a config file, we previous continued on with what was already loaded.
18 years ago
Joshua Colp 6fcaf2bb4b It is possible for nativeformats to contain more then one codec, so print out multiple ones.
18 years ago
Olle Johansson 7efa6b1fe0 Avoid reinvite race situations with two Asterisks trying
18 years ago
Joshua Colp 4edfc25a1f Add support for accepting and sending T.38 in the initial INVITE.
18 years ago
Mark Michelson 7b052b78e1 A big one...
18 years ago
Mark Michelson d2d88e0f3d Changing some bad logic when calculating the interdigit timeout.
18 years ago
Jason Parker 90edaee7dd Only log debug messages if debug is enabled.
18 years ago
Russell Bryant 1f8caa100d Change the behavior of ao2_link(). Previously, in inherited a reference.
18 years ago
Joshua Colp daf94226d5 Fix locking issues under one legged replaces scenarios.
18 years ago
Mark Michelson a53959d666 Clear the DTMF buffer if the call times out.
18 years ago
Olle Johansson 0c3ec937ce If we get a codec offer using a well-known payload type, but using it for another
18 years ago
Christian Richter be20960013 added RR patch from iroot #10908, thanks.
18 years ago
Tilghman Lesher 245abfa1c2 Fix an uninitialized memory read found by valgrind
18 years ago
Tilghman Lesher f39db73930 Yet another memory corruption issue.
18 years ago
Olle Johansson 9d3be20a0d Don't send re-invites during pending INVITE transactions.
18 years ago
Olle Johansson fc49ddab3a Improve support for multipart messages. Code by gasparz, changes
18 years ago
Jason Parker fb0bb38fc4 Fix building on newer systems which require a third arg to open() when using O_CREAT.
18 years ago
Tilghman Lesher 4332b72082 If we set a value for qualify, we should actually pay attention to it, instead of overriding the value
18 years ago
Tilghman Lesher 1a052e0498 Fix two cases of memory corruption caused by background threads.
18 years ago
Christian Richter c2c1e68238 if we're NT and no number was dialed and overlapdial is set, we wait for the ISDN timeout instead of starting our own timer. added a comment for the misdn.conf.sample for the overlapdial config option.
18 years ago
Christian Richter 4e52dc67dc added restart all interfaces Restart_Indicator, to automatically send a RESTART after the L2 of a PTP Port comes up. Also fixed some places where we have send a RELEASE without need for it.
18 years ago
Christian Richter 472f7a471c fixed a state/event issue with overlapdial=yes when no extension matched. removed the general sending of a RELEASE_COMPLETE when we receive a RELEASE, this is done by mISDNuser/mISDN. This makes it possible to use asterisk-1.4 with mISDN trunk, but requires users of mISDN/mISDNuser-1.1.X to upgrade to at least mISDNuser-1.1.6 (when using the NT mode at all)
18 years ago
Christian Richter ad50f139c4 fixed the support for CW and therefore for the reject_cause option.
18 years ago
Christian Richter 57ccb76df1 aded ntkeepcalls option, to avoid droÃpping calls when the L2 goes down on a PTP link. There are some pbx which do turn off the L1 for a very short while and restart it immediately. normally T310 should be started and after 10 seconds or so the calls should be dropped, this is a simple fix wihtout this timer.
18 years ago
Mark Michelson 3b75ff9010 Rework of the commit I made yesterday to use the already built-in
18 years ago
Joshua Colp 3aea241b63 Do not add a sip: to the beginning of the To URI unless needed.
18 years ago
Joshua Colp 0f1ef85f9a Improve the devicestate logic for multiple devices. If any are available then the extension is considered available.
18 years ago
Joshua Colp 53fd91490e Add support for allowing one outgoing transaction. This means if a response comes back out of order chan_sip will still handle it. I dream of a chan_sip with real transaction support.
18 years ago
Joshua Colp f1309f2c3f If callerid is configured in sip.conf use that for checking the presence of an extension in the dialplan.
18 years ago
Mark Michelson 0d76379f54 This patch makes it possible for SIP phones to dial extensions defined with '#' characters
18 years ago
Joshua Colp cac21aa19b Make it so that if a peer is determined to be unreachable using qualify their devicestate will report back unavailable.
18 years ago
Joshua Colp 8b309c7bb9 Fix improbable but possible memory leaks in chan_zap.
18 years ago
Russell Bryant ea00780d49 When traversing the list of channel variables here in transmit_invite(), the
18 years ago
Russell Bryant 69e42e6096 Fix up some indentation.
18 years ago
Joshua Colp 10c172eb00 If a SIP channel is put on hold multiple times do not keep incrementing the onHold value.
18 years ago
Jason Parker 7fa3a53ec2 Make sure we destroy the config structure on configuration failure.
18 years ago
Luigi Rizzo a0edff2477 Rename ast_string_field_free_pool to ast_string_field_free_memory,
18 years ago
Joshua Colp 986e8a3ae8 Make subscribecontext behave as advertised. It will now look for the presence of a hint in the given context (be it subscribecontext or context).
18 years ago
Joshua Colp e49faa404a If an INFO request within a dialog is received with a content length of 0 simply send back a 200 OK. It is valid to do this and the remote side is probably using it to make sure the signalling is still alive.
18 years ago
Jason Parker ac6218741f Make sure we set the poll fds to NULL after free()ing it.
18 years ago
Jason Parker 40cd95fc27 Don't try to allocate memory that we're just going to re-allocate later anyways.
18 years ago
Russell Bryant 1561187fc4 Merge the changes from team/russell/iax2_poke_fix and iax2-poke-fix-trunk
18 years ago
Jason Parker fc51acbc73 Only try to clean out h323/ if the h323/Makefile exists.
18 years ago
Joshua Colp 143536912e Fix issue where if both sides of the dialog cancelled the dialog at the same time chan_sip could kepe retransmitting a response for no reason.
18 years ago
Jason Parker 1b7b80da3a Correctly respect hidecalleridname configuration option.
18 years ago
Joshua Colp d6d7384355 After reading online I have confirmed that Record-Route headers should be copied to 1xx responses as well.
18 years ago
Christian Richter e4df4c58ec we send DISCONNECT instead of RELEASE/RELEASE_COMPLETE if the dialplan does not match after an overlap call. Also added out_cause=1
18 years ago
Joshua Colp a5b69b3583 Fix two issues with domains and transfers. If a port was given in the hostname it was treated as part of the hostname. If domains were configured but external domains were not enabled all transfers would be considered remote.
18 years ago
Joshua Colp 918ee9ae5b Set port number in received as information for registrations as well.
18 years ago
Russell Bryant 74450c6eff Revert erroneous commit.
18 years ago
Russell Bryant 236872e7c4 Add support for setting the maximum trunk size for IAX2 trunking
18 years ago
Russell Bryant ed426a7165 If Asterisk is in the middle of shutting down, respond to OPTIONS
18 years ago
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