Commit Graph

4290 Commits (bc56a84c58b92b72d341ddd95248d6cbf392e60b)

Author SHA1 Message Date
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
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