aboutsummaryrefslogtreecommitdiffstats
path: root/channels
AgeCommit message (Collapse)AuthorFilesLines
2008-07-23ensure that after a channel is created, if it happened to be in 'channel ↵kpfleming1-1/+14
alarm' state, when that alarm clears we won't generate a spurious 'alarm cleared' message (closes issue #12160) Reported by: tzafrir git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132942 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-23another Fix because of r119585, this commit has broken high frequented BRI ↵crichter1-1/+14
Ports, there was a possibility that a channel, that was marked as in_use would be reused later, the corresponding port could got stuck then. So it is recommended to upgrade for chan_misdn users. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132826 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Allow Spiraled INVITEs to work correctly within Asterisk.mmichelson1-8/+297
Prior to this change, a spiraled INVITE would cause a 482 Loop Detected to be sent to the caller. With this change, if a potential loop is detected, the Request-URI is inspected to see if it has changed from what was originally received. If pedantic mode is on, then this inspection is fully RFC 3261 compliant. If pedantic mode is not on, then a string comparison is used to test the equality of the two R-URIs. This has been tested by using OpenSER to rewrite the R-URI and send the INVITE back to Asterisk. (closes issue #7403) Reported by: stephen_dredge git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132790 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22fix up namespace pollution for dahdi_chan_mode enumkpfleming1-64/+129
correct registration of AMI actions in chan_dahdi; in zap-only mode, only register the Zap flavors of the actions (and use Zap prefixes for headers and acks), but in dahdi+zap mode, register both Zap and DAHDI flavors of actions git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132787 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22Merged revisions 132711 via svnmerge from tilghman1-2/+29
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r132711 | tilghman | 2008-07-22 16:14:10 -0500 (Tue, 22 Jul 2008) | 2 lines Fixes for AST-2008-010 and AST-2008-011 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132713 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22ensure that if any alarms exist at channel creation time, they are handled ↵kpfleming1-44/+25
identically to if they occurred later, so that later alarm clearing will work properly and 'make sense' (closes issue #12160) Reported by: tzafrir git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132712 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22The most common question on the #asterisk iRC channel and on mailing listsoej1-3/+3
seems to be in regards to an error message when retransmit fails. This is frequently misunderstood as a failure of Asterisk, not a failure of the network to reach the other party. This document tries to assist the Asterisk user in sorting out these issues by explaining the logic and pointing at some possible causes. Hopefully, we will get other questions now :-) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132645 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22correct wording in commentkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132642 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-22use renamed libpri API call for controlling this feature (was improperly ↵kpfleming1-9/+9
named before) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132641 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21teach chan_dahdi how to find the D-channel on BRI spans, and don't attempt ↵kpfleming1-2/+11
to use channel 24 as a D-channel on spans of unexpected sizes git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132571 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-21Fix a bug in 1.4 branch with iax2 channels not being removed when a call was ↵bbryant1-4/+2
rejected (from the calling box, not the box that denied the registration). Related to revisions 132466 in trunk, and 132467 in 1.6.0. Earlier I had accidently tested 1.4 with a backport from those revisions, so I didn't see this problem (oops). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132506 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-18Spinlock within the destroy, to allow a scheduled job to continue, if it'stilghman1-2/+2
waiting on the mutex which the destroy thread has. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132042 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-18Make the ast_assert call within ast_sched_del report something useful.tilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@131970 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-17Revert part of issue #5620 (revision 6965) as it appears that it was in error.tilghman1-1/+2
This should fix talk call progress on analog lines. (closes issue #12178) Reported by: michael-fig Patches: 20080717__bug12178.diff.txt uploaded by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@131790 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-16Fix a bug in iax2 registration that allowed peers to register with bbryant1-2/+2
case-insensitive names (user_cmp_cb and peer_cmp_cb are now both case-sensitive). (closes issue #13091) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@131491 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-16Apparently, in certain cases, a callno is already destroyed when ↵tilghman1-1/+1
iax2_destroy is called. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@131480 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-16Always ensure that the channel's tech_pvt reference is NULL after calling therussell1-0/+6
destroy callback. (closes issue #13060) Reported by: jpgrayson Patches: chan_iax2_tech_pvt_crash.patch uploaded by jpgrayson (license 492) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@131421 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-15astman_send_error does not need a newline appended -- the API takes care oftilghman1-2/+2
that for us. (closes issue #13068) Reported by: gknispel_proformatique Patches: asterisk_1_4_astman_send.patch uploaded by gknispel (license 261) asterisk_trunk_astman_send.patch uploaded by gknispel (license 261) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130959 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-14Override the callerid in all cases when the callerid is set in the user, nottilghman1-13/+10
just when a remote callerid is set. Also, if not set in the user, allow the remote CallerID to pass through. (closes issue #12875) Reported by: dimas Patches: 20080714__bug12875.diff.txt uploaded by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130889 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-13Reverting 2 changesets, as it breaks incoming IAX2 callstilghman1-53/+44
(Related to issue #12963) Reported by: mvanbaak git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130514 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-11a whole pile of Zaptel/DAHDI compatibility work, with lots more to come... ↵kpfleming2-75/+112
this tree is not yet ready for users to be easily upgrading or switching, but it needs to be :-) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130298 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-11Ensure that a destination callno of 0 will not match for frames that do nottilghman1-6/+15
start a dialog (new, lagrq, and ping). (closes issue #12963) Reported by: russellb Patches: chan_iax2_dup_new_fix4.patch uploaded by jpgrayson (license 492) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130169 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-11Pass the devicestate from an underlying channel up through the Agent channel.tilghman1-1/+49
This should make the Agent always report the correct device state, even when the underlying channel is used for other purposes. (closes issue #12773) Reported by: davidw Patches: 20080710__bug12773.diff.txt uploaded by Corydon76 (license 14) Tested by: davidw git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130102 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-11new installations should be using DAHDI instead of Zaptel, so the sample ↵kpfleming1-10/+8
config file is now chan_dahdi.conf instead of zapata.conf also, convert remaining references to zapata.conf in various places git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130042 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-11add support for a configuration parameter for 'inband audio during RELEASE', ↵kpfleming1-0/+13
which is currently mandatory in libpri-1.4.4 but will become configurable in libpri-1.4.5 later today (related to issue #13042) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@130039 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-10Correctly deal with duplicate NEW frames (due to retransmission). Also, fixuptilghman1-45/+45
the destination call number matching to be more strict and reliable. (closes issue #12963) Reported by: jpgrayson Patches: chan_iax2_dup_new_fix3.patch uploaded by jpgrayson (license 492) Tested by: jpgrayson, Corydon76 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@129803 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-08Cause SIP to return a 480 instead of a 404 when a sip peer exists, but is nottilghman1-0/+1
registered. (closes issue #12885) Reported by: ibc Patches: 20080701__bug12885__2.diff.txt uploaded by Corydon76 (license 14) Tested by: ibc git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@129149 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-08Timestamp decoding for video mini-frames is bogus, because the timestamp onlytilghman1-10/+16
includes 15 bits, unlike voice frames, which contain a 16-bit timestamp. (closes issue #13013) Reported by: jpgrayson Patches: chan_iax2_unwrap_ts.patch uploaded by jpgrayson (license 492) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@129047 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-08Don't hangup the call if we can't resolve the Contact if there's a proxyoej1-9/+5
route set for the call. ---- This comment was added a while ago and today it hit me badly. /* OEJ: Possible issue that may need a check: If we have a proxy route between us and the device, should we care about resolving the contact or should we just send it? */ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@128950 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-08Fix issues where repeated messages where ignored, but retransmitted reliably ↵oej1-1/+2
instead of unreliably. Reported by: johan Patches: 12746.txt uploaded by oej (license 306) Tested by: johan (issue #12746) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@128912 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-07Fix handling of when a pvt disappears. Properly return the pvt lockedrussell1-2/+4
and don't hold the pvt lock while destroying the ast_channel. (closes issue #13014) Reported by: jpgrayson Patches: chan_iax2_ast_iax2_new2.patch uploaded by jpgrayson (license 492) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@128795 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-07Remove spurious trailing whitespace from log messages and fix a spelling errorseanbright1-3/+3
in a log message. (closes issue #13017) Reported by: jpgrayson Patches: chan_iax2_space_after_newline.patch uploaded by jpgrayson (license 492) chan_iax2_spelling.patch uploaded by jpgrayson (license 492) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@128737 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-07By using the iaxdynamicthreadcount to identify a thread, it was possiblemmichelson1-1/+2
for thread identifiers to be duplicated. By using a globally-unique monotonically- increasing integer, this is now avoided. (closes issue #13009) Reported by: jpgrayson Patches: chan_iax2_dyn_threadnum.patch uploaded by jpgrayson (license 492) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@128639 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-03The CDRfix4/5/6 omnibus cdr fixes.murf2-37/+21
(closes issue #10927) Reported by: murf Tested by: murf, deeperror (closes issue #12907) Reported by: falves11 Tested by: murf, falves11 (closes issue #11849) Reported by: greyvoip As to 11849, I think these changes fix the core problems brought up in that bug, but perhaps not the more global problems created by the limitations of CDR's themselves not being oriented around transfers. Reopen if necc, but bug reports are not the best medium for enhancement discussions. We need to start a second-generation CDR standardization effort to cover transfers. (closes issue #11093) Reported by: rossbeer Tested by: greyvoip, murf git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@127663 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-02Fix thread-safety of some of the pbx_builtin_getvar_helper callsmmichelson1-0/+9
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@127560 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-01Disable the old, slow search for matching callno in chan_iax2 (but allow it ↵tilghman1-0/+2
to be reenabled for debugging) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@127133 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-01Oopstilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@127069 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-01Change around how we schedule pings and lagrqs, and fix a reason why thetilghman1-25/+23
jobs were not getting properly cancelled. (closes issue #12903) Reported by: stevedavies Patches: 20080620__bug12903__2.diff.txt uploaded by Corydon76 (license 14) Tested by: stevedavies git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@127068 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-01Suppress annoying warning by finding the remaining cases where the callno is ↵tilghman1-0/+9
not in the hash. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@126999 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-01Use domain part of SIP uri in register= configuration as fromdomain.oej1-1/+9
Reported by: one47 Patches: sip-reg-fromdom2.dpatch uploaded by one47 (license 23) (closes issue #12474) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@126902 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-01Handle escaped URI's in call pickups. Patch by oej and IgorG.oej1-7/+11
Reported by: IgorG Patches: bug12299-11062-v2.patch uploaded by IgorG (license 20) Tested by: IgorG, oej (closes issue #12299) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@126899 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-01Report 200 OK to all in-dialog OPTIONs requests (to confirm that the dialogoej1-4/+10
exist). Don't bother checking the request URI. (closes issue #11264) Reported by: ibc git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@126789 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-01Fix bad XML for hold notification.oej1-1/+1
Reported by: gowen72 Patches: hold.patch uploaded by gowen72 (license 432) (closes issue #12942) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@126735 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-30Load the proper channel configuration file based on which driver was detected.jpeeler1-6/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@126680 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-30Send all responses to an INVITE reliably, so that we retransmit if we don't ↵oej1-11/+11
get an ACK and also fail if we don't get the very same precious ACK. Based on patch by tsearle, with my own additions. (closes issue #12951) Reported by: tsearle Patches: busy_retransmit.patch uploaded by tsearle (license 373) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@126516 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-27When we get a 408 Timeout, don't stop trying to re-register.tilghman1-3/+2
(closes issue #12863) Reported by: ricvil git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@126056 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-27Add proper deadlock avoidance.tilghman1-7/+14
(closes issue #12914) Reported by: ozan Patches: 20080625__bug12914.diff.txt uploaded by Corydon76 (license 14) Tested by: ozan git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@125740 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-26Add support for peer realm based auth (a few missing lines, the rest is well ↵oej1-3/+6
documented but never worked) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@125384 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-26ensure that (whenever possible) if we generate a log message because an ↵kpfleming1-38/+42
ioctl() call to DAHDI/Zaptel failed, that we include the reason it failed by including the stringified error number (issue AST-80) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@125327 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-25allow tonezone to live in a different place than DAHDI/Zaptel, since ↵kpfleming1-0/+1
dahdi-tools and dahdi-linux are now separate packages and can be installed in different places don't include tonezone.h in dahdi_compat.h, because only a couple of modules need it get app_rpt building again after the DAHDI changes (closes issue #12911) Reported by: tzafrir git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@125132 f38db490-d61c-443f-a65b-d21fe96a405b