aboutsummaryrefslogtreecommitdiffstats
path: root/channels
AgeCommit message (Collapse)AuthorFilesLines
2008-06-25Pvt deadlock causes some channels to get stuck in Reserved status.tilghman1-3/+4
(closes issue #12621) Reported by: fabianoheringer Patches: 20080612__bug12621.diff.txt uploaded by Corydon76 (license 14) Tested by: fabianoheringer git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124965 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-24Don't access the pvt structure if unable to acquire the lock.tilghman1-7/+18
(closes issue #12162) Reported by: norman Patches: 12162-lockfail.diff uploaded by qwell (license 4) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124908 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-23emit a warning if the old IAX2 call searching code finds a call when the new ↵kpfleming1-1/+16
code did not... so that we can get rid of the old code in 2-3 months git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124743 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-20When using a Local channel, started by a call file, with a destination of antilghman1-0/+3
AGI script, the AGI script does not always get notified of a hangup if the underlying channel hangs up early. (closes issue #11833) Reported by: IgorG Patches: local_hangup-v1.diff uploaded by IgorG (license 20) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124315 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-19It's possible for a hangup to be received, even just after the initial cidtilghman1-1/+5
spill. (closes issue #12453) Reported by: Alex728 Patches: 20080604__bug12453.diff.txt uploaded by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@124182 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17Make chan_sip build under dev mode with compilers >= GCC 4.2mmichelson1-1/+3
Thanks to jpeeler for alerting me of this git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123485 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17Fix 3 more places where not locking the structure could cause the wrong lock ↵tilghman1-12/+15
to be unlocked. (Closes issue #12795) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123391 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17Cisco BTS sends SIP responses with a tab between the Cseq number andmmichelson1-3/+3
SIP request method in the Cseq: header. Asterisk did not handle this properly, but with this patch, all is well. (closes issue #12834) Reported by: tobias_e Patches: 12834.patch uploaded by putnopvut (license 60) Tested by: tobias_e git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123333 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Port "hasvoicemail" change from SIP to other channel driverstilghman5-4/+24
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123113 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16People expect that if "hasvoicemail" is set in users.conf, even if "mailbox"tilghman1-0/+6
isn't set, that SIP will detect a mailbox. (closes issue #12855) Reported by: PLL Patches: 20080614__bug12855__2.diff.txt uploaded by Corydon76 (license 14) Tested by: PLL git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123110 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Only compare the first 15 characters so that even if the charset is ↵file1-1/+1
specified we still accept it as SDP. (closes issue #12803) Reported by: lanzaandrea Patches: chan_sip.c.diff uploaded by lanzaandrea (license 496) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122919 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Don't send a BYE on a dialog that is already gone during a REFER.file1-1/+1
(closes issue #12865) Reported by: flefoll Patches: chan_sip.c.br14.121495.patch-ALREADYGONE uploaded by flefoll (license 244) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122869 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Adds DAHDI support alongside Zaptel. DAHDI usage favored, but all Zap stuff ↵jpeeler4-1095/+1165
should continue working. Release announcement to follow. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122314 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-12Fix some race conditions that cause ast_assert() to report that chan_iax2 triedrussell1-0/+18
to remove an entry that wasn't in the scheduler git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122259 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11Make calls to ast_assert() actually test something, so that the error messagetilghman1-1/+1
printed is not nonsensical (reported by mvanbaak via #asterisk-bugs). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121861 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-11fixed issue with previous commit, the find_free_channel test for channels ↵crichter1-8/+20
which where inuse was broken. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121751 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10If we are destroying a dialog only set the MWI dialog pointer on the related ↵file1-1/+3
peer to NULL if it is the dialog currently being destroyed. (closes issue #12828) Reported by: ramonpeek git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121495 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09A unique situation of timeouts brought forth a failure situation formmichelson1-1/+11
autologoff in chan_agent. If using AgentCallbackLogin-style agents, then if the timeout specified by the Dial() to reach the agent's phone was shorter than the timeout specified in queues.conf, then autologoff would only work if the caller hung up while the agent's phone was ringing. This patch allows autologoff to work in this situation when the call in queue transfers to the next available agent (as it would have if the timeout in queues.conf were less than the timeout in the Dial()). (closes issue #12754) Reported by: Rodrigo Patches: 12754.patch uploaded by putnopvut (license 60) Tested by: Rodrigo git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121229 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-07Don't run LIST_HEAD_DESTROY on a STATIC listrussell2-2/+0
(closes issue #12807) Reported by: ys Patches: chan_agent_local.diff uploaded by ys (license 281) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@121078 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-06add another LOW_MEMORY define I forgotjpeeler1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@120959 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-06only define thread storage variable if necessary for LOW_MEMORYjpeeler1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@120908 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-06Correction to commmit 120863, make sure proper destructor function is called ↵jpeeler1-3/+11
as well define two thread storage local variables. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@120885 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-06This fixes a crash when LOW_MEMORY is turned on. Two allocations of the ↵jpeeler1-0/+10
ast_rtp struct that were previously allocated on the stack have been modified to use thread local storage instead. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@120863 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-04If we fail to setup the PRI request channel, don't continue, exit with an error.tilghman1-0/+3
(closes issue #11989) Reported by: Corydon76 Patches: 20080213__zap_memleak.diff.txt uploaded by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@120425 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-03Fix another place where peer->callno could change at a very bad time, and alsorussell1-9/+11
fix a place where a peer was used after the reference was released. (inspired by rev 120001) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@120168 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-03Save the callno when we're poking, because our peer structure could changetilghman1-4/+7
during destruction (and thus we unlock the wrong callno, causing a cascade failure). (closes issue #12717) Reported by: gewfie Patches: 20080525__bug12717.diff.txt uploaded by Corydon76 (license 14) Tested by: gewfie git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@120001 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-03Treat ECONNREFUSED as an error that will stop further retransmissions. ↵file1-5/+6
(issue #AST-58, patch from Switchvox) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119926 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-02Revert a change made for issue #12479. This change caused a regression such ↵russell1-4/+1
that a dial string such as (IAX2/foo) did not automatically fall back to dialing the 's' extension anymore. (closes issue #12770) Reported by: dagmoller git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119838 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-02Do not link the guest account with any configured XMPP client (inphsultan1-10/+26
jabber.conf). The actual connection is made when a call comes in Asterisk. Fix the ast_aji_get_client function that was not able to retrieve an XMPP client from its JID. (closes issue #12085) Reported by: junky Tested by: phsultan git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119740 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-02Even of the first PING or LAGRQ doesn't get sent because it comes up too soon,russell1-6/+4
make sure to reschedule so it gets sent later. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119687 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-02fixed compile issue when dev-mode is enabledcrichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119636 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-02Added counter for unhandled_bmsg Print, this prevents the logs to be flooded ↵crichter2-4/+44
to fast and save CPU in this error scenario. Added 'last_used' element to bc structure, when a bchannel changes from used to free this exact time will be marked in last_used. When a new channel is requested the find_free_chan function will check if the new empty channel was used within the last second, if yes it will search for the next channel, if no it will return this channel. This simple mechanism has prooven to prevent race conditions where the NT and TE tried to allocate the exact same channel at the same time (RELEASE cause: 44). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119585 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-02Change a debug message to an actual debug messagerussell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119533 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-30Merged revisions 119237 via svnmerge from russell1-7/+37
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r119237 | russell | 2008-05-30 07:49:39 -0500 (Fri, 30 May 2008) | 7 lines - Instead of only enforcing destination call number checking on an ACK, check all full frames except for PING and LAGRQ, which may be sent by older versions too quickly to contain the destination call number. (As suggested by Tim Panton on the asterisk-dev list) - Merge changes from team/russell/iax2-frame-race, which prevents PING and LAGRQ from being sent before the destination call number is known. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119238 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-29Call waiting tone occurs too often, because it's getting serviced by bothtilghman1-3/+5
subchannels. (closes issue #11354) Reported by: cahen Patches: 20080512__bug11354.diff.txt uploaded by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119071 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-29Merged revisions 119008 via svnmerge from russell1-8/+10
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r119008 | russell | 2008-05-29 13:45:21 -0500 (Thu, 29 May 2008) | 7 lines Merge changes from team/russell/iax2-another-fix-to-the-fix As described in the following post to the asterisk-dev mailing list, only enforce destination call numbers when processing an ACK. http://lists.digium.com/pipermail/asterisk-dev/2008-May/033217.html (closes issue #12631) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119009 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-29Add some debugging code that ensures that when we do deadlock avoidance, wetilghman6-79/+26
don't lose the information about how a lock was originally acquired. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@118953 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28merge revision 118702 from trunk to 1.4 -- Fixes a bug in chan_iax that uses ↵bbryant1-1/+5
send_command to poke a peer while a channel is unlocked in some cases, and because it can cause seemingly random failures could be related to some bugs in the tracker... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@118716 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-28Add an option to use the source IP address of RTP as the destination IP ↵file1-1/+15
address of UDPTL when a specific option is enabled. If the remote side is properly configured (ports forwarded) then UDPTL will flow. (closes issue #10417) Reported by: cstadlmann git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@118646 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-27Fix an issue where codec preferences were not set on dialogs that were not ↵file1-16/+13
authenticated via a user or peer and allow framing to work without rtpmap in the SDP. (closes issue #12501) Reported by: slimey git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@118558 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-25Realtime flag affects construction in multiple ways, so consulting whethertilghman1-6/+16
rtcachefriends was set was done too soon (needed to be done inside build_peer, not just as a flag to build_peer). Also, fullcontact needed to be reconstructed, because realtime separates the embedded ';' into multiple fields. (closes issue #12722) Reported by: barthpbx Patches: 20080525__bug12722.diff.txt uploaded by Corydon76 (license 14) Tested by: barthpbx (Much of the discussion happened on #asterisk-dev for diagnosing this issue) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@118251 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-23Fix a few things I missed to ensure zt_chan_conf structure is not modified ↵jpeeler1-3/+3
in mkintf git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@118163 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21Ensure that passed in zt_chan_conf structure is not modified in mkintf.jpeeler1-18/+30
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@117582 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21Apply the autoframing setting to dialogs that do not get matched against a ↵file1-0/+1
user or peer. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@117574 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21Pass a pointer for the conf parameter to the function mkintf rather than the ↵jpeeler1-126/+126
whole zt_chan_conf structure. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@117462 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19Make chan_h323 work with pwlib 1.12.0file1-0/+12
(closes issue #12682) Reported by: bamby Patches: pwlib_nopipe.diff uploaded by bamby (license 430) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@117081 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19Avoid access of uninitialized memory. This caused a bunch of crashes for merussell1-1/+1
while doing load testing of development branch where I'm working on some performance improvements. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@116978 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-16Check to make sure an RTP structure exists before calling ast_rtp_new_source ↵file1-1/+3
on it. (closes issue #12669) Reported by: sbisker git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@116799 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14Add ast_assert(), which can be used to handle fatal errors. It is only compiledrussell1-1/+1
in if dev-mode is enabled, and only aborts if DO_CRASH is defined. (inspired by issue #12650) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@116463 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14Accept text messages even withoej1-1/+1
Content-Type: text/plain;charset=Södermanländska git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@116230 f38db490-d61c-443f-a65b-d21fe96a405b