aboutsummaryrefslogtreecommitdiffstats
path: root/channels
AgeCommit message (Collapse)AuthorFilesLines
2007-06-14use ast_localtime() in every place localtime_r() was being usedkpfleming3-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69392 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Whoops...file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69222 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Let's make chan_iax2 media only native transfers actually work. (issue #9376 ↵file1-2/+11
reported by simone cittadini) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69221 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Add TXMEDIA to list so that it is properly displayed during iax2 packet output.file1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69184 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Move the logic for destroying a call when no response is received to a BYErussell1-8/+12
outside of the block that checks for FLAG_FATAL to be set. This flag is only set when the packet is transmitted with the reliability set to XMIT_CRITICAL when the original packet is transmitted. A BYE is always sent with it set to XMIT_RELIABLE, meaning this code could never be encountered. This resulted in seeing some SIP channels that would never go away with the last packet sent being a BYE. (part of issue #9235, patch from jcmoore) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69183 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Clarify a bit of logic. This doesn't change behavior in any way, but it isrussell1-1/+1
helpful when following the logic to debug problems like 9235. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69071 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Fix a place where a chan_iax2 pvt struct was accessed without the lock held.russell1-2/+9
This issue was reported to me via email by Dmitry Mishchenko. Thanks! git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69069 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12Change the full frame dropping log message to debug to avoid future bug reports.file1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69014 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12Schedule the sending of a PING packet a second later than previously so that ↵file1-1/+1
it does not collide with the LAGRQ. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69012 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11Merged revisions 68732 via svnmerge from crichter2-1/+13
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r68732 | crichter | 2007-06-11 18:49:00 +0200 (Mo, 11 Jun 2007) | 1 line added check for NULL Pointer when calling misdn_new. Asterisk does not allow us to create channels anymore when stop gracefully is used :). also modified the restart_indicator to 0 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68733 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11Merged revisions 68631 via svnmerge from crichter5-24/+55
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r68631 | crichter | 2007-06-11 11:18:01 +0200 (Mo, 11 Jun 2007) | 1 line fixed problem that the dummybc chanels had no lock, checking for the lock now. Also fixed the channel restart stuff, we can now specify and restart particular channels too. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68644 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-08actually remember the type/subclass of full frames that are in processkpfleming1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68450 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07some improvements to the IAX2 full frame dropping logic recently added:kpfleming1-16/+20
- use inaddrcmp(), since we have it - output the type of frame and subclass being dropped, and the type/subclass that is already being processed (which caused the drop) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68313 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Fix loading persistent queue members when using realtime configuration for ↵russell1-1/+1
queues. Also, remove an unneeded leading slash for the astdb family. (issue #9911, patch by atis) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68280 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Fix an issue with newer phones which require packets be padded out to the ↵qwell1-6/+25
correct length. Issue 9887, patch by DEA. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68249 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Disable chan_features by default in menuselectoej1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68196 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Merged revisions 67938 via svnmerge from file1-1/+0
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r67938 | file | 2007-06-06 20:09:13 -0400 (Wed, 06 Jun 2007) | 2 lines Only notify the devicestate system of a peer state change when the peer is built from the config file. (issue #9900 reported by arkadia) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67941 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06Fix a crash when doing call pickups with SIP phones. The code unlocked therussell1-3/+4
channel when it should not have. (issue #9652, reported by corruptor, fixed by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67862 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Suppress a bunch of debug output unless option_debug is onrussell1-17/+29
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67457 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Correctly update date/time on devices throughout the life of the device, ↵qwell1-1/+3
instead of just at registration. Issue 9152, yet another patch by DEA. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67421 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Merged revisions 67307 via svnmerge from crichter1-3/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r67307 | crichter | 2007-06-05 17:42:03 +0200 (Di, 05 Jun 2007) | 1 line briding is a bool, fixed copy and paste issue. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67334 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Merged revisions 67306 via svnmerge from crichter1-161/+151
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r67306 | crichter | 2007-06-05 17:39:43 +0200 (Di, 05 Jun 2007) | 1 line simplified the EVENT_SETUP handling in the cb_events function a lot. Commented the different possibilities a bit and made functions of shared code. When the dialed extension does not exist in the extensions.conf we'll jump into the 'i' extension if this does exist, else we disconnect the call with the cause:1 = No Route to Destination. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67329 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Only muck with the thread structure if an idle one was found/created.file1-2/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67304 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05ensure that a burst of full frames (AST_FRAME_DTMF being the prime example) ↵kpfleming1-24/+66
will not be processed out of order... this is a brute force fix, but seems to be the safest fix for now (thanks to the Digium PQ department for finding this bug) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67270 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Merged revisions 67209 via svnmerge from crichter3-0/+19
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r67209 | crichter | 2007-06-05 12:05:45 +0200 (Di, 05 Jun 2007) | 1 line added possibility to deactivate bridging per port ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67210 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04Fix up a bunch of places where the iax2 pvt structure can disappear and therussell1-14/+39
code did not account for it and crashes. (issues #9642, #9569, #9666, probably others ... based on the work by stevedavies and mihai, with additional changes from me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67158 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04Fix for skinny keepalives.qwell1-5/+11
If there is no traffic from the phone for (keep_alive * 1100) ms (arbitrarily adding 10% for network issues, etc), unregister the device. Issue 8394, patch by DEA. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67156 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04Fixes for dtmf/dialing with mgcp (similar to the recent fix for chan_skinny)qwell1-56/+72
Issue 9855, patch by DEA. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67121 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04Add comments for two functions that get called with the appropriate call locked,russell1-0/+18
but perform operations that could result in the pvt structure getting destroyed before returning again, causing numerous seg faults all over the module. (inspired by issues #9642, #9569, and #9666, and the work done by stevedavies and mihai) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67119 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04Better handle SIP devices that say they have SDP content... but really ↵file1-1/+1
don't. (issue #9398 reported by mthomasslo) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67068 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04Resolve a deadlock in chan_iax2. When handling an implicit ACK to a frame thatrussell1-5/+9
was marked as the final transmission for a call, don't call iax2_destroy() for that call while the global frame queue is still locked. There is a very nice explanation of the deadlock in the report. (issue #9663, thorough report and patch from stevedavies, additional positive test reports from mihai and joff_oconnell) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67020 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-01Changes to the way DTMF is handled in the core broke dialing in chan_skinny.russell1-30/+87
This patch makes chan_skinny usable again. I did not end up testing this, but there are multiple positive test reports listed in the bug report. (issue #9596, reported by pj, testing by pj and mvanbaak, and the fix was written by DEA) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66881 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-31Merged revisions 66764 via svnmerge from file1-3/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r66764 | file | 2007-05-31 12:12:39 -0400 (Thu, 31 May 2007) | 2 lines It is now possible for this path of execution to have the frame pointer be NULL, therefore we need to check for it before trying to access it. (issue #9836 reported by barthpbx) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66768 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-30Silly me for having out of date source! Oh well... I'm still leaving my comment.file1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66639 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-30When calling some peer/host that may not exist/reply back... don't keep the ↵file1-1/+2
dialog in memory for all of eternity. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66637 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-30Change how channel names are generated a bit. (issue #9825 reported by eldadran)file2-7/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66602 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29Properly handle 408 request timeout - according to the RFC, the dialog dies ↵oej1-0/+24
if a request in a dialog gets this response. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66503 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29Don't issue hangup on hangup on hangup on hangup (for jcmoore)oej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66474 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29Don't reset hangupcause if we already have oneoej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66414 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29Tracking down hanging channels, killing them one by one. Issue #9235 and relatedoej1-3/+11
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66404 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29Merged revisions 66349 via svnmerge from oej1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r66349 | oej | 2007-05-29 09:53:14 +0200 (Tue, 29 May 2007) | 2 lines Issue #9802 - Change inuse counter on CANCEL ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66363 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-28Make the usedistinctiveringdetection option work again. (issue #9823 ↵file1-2/+1
reported by premeau) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66312 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-27I don't know what this was trying to do, but it's clearly incorrect.qwell1-5/+5
Issues 9808 and 9809. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66244 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-25handle the GNUTLS library properly in the configure script and build systemkpfleming1-0/+1
don't build in OSP support unless we have found and are allowed to use SSL support git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66157 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24oops, use #ifdef instead of #ifkpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65967 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24don't reference GnuTLS headers and functions unless the configure script ↵kpfleming1-1/+5
found it git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65966 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24Issue 7672 - fix by zandbelt - Asterisk core dump since the GnuTLS interface ↵oej1-0/+6
did not support multithreading correctly. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65901 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24Issue 8193 - NAT issues with gtalk/STUN. Patch by phsultan. Thanks!oej1-2/+21
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65892 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24Issue 7686, fix by phsultan, NAT issues when calling from gtalk to SIP over nat.oej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65857 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24Issue #8536 - Caller ID not set in CDR for jingleoej1-3/+16
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@65841 f38db490-d61c-443f-a65b-d21fe96a405b