aboutsummaryrefslogtreecommitdiffstats
path: root/channels
AgeCommit message (Collapse)AuthorFilesLines
2007-06-22Merged revisions 69053 via svnmerge from crichter1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r69053 | crichter | 2007-06-13 11:55:54 +0200 (Mi, 13 Jun 2007) | 1 line restart indicator 0x80 is correct, at least that's what libpri does. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71118 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Merged revisions 68887 via svnmerge from crichter1-3/+7
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r68887 | crichter | 2007-06-12 10:35:22 +0200 (Di, 12 Jun 2007) | 1 line if the bridged partner is mISDN too we should not send dtmf tones, they are transmitted inband always ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71106 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Merged revisions 68874 via svnmerge from crichter1-7/+8
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r68874 | crichter | 2007-06-12 09:48:52 +0200 (Di, 12 Jun 2007) | 1 line if we have already some digits, we just stop the tones. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71096 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Fix a small typo which ... well ... completely broke chan_iax2. oops!russell1-1/+1
(issue #9937, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71003 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21Put the thread reading from the socket back in the idle list if it deferred therussell1-0/+1
processing of a full frame to another thread git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@70883 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-21If a full frame is received while one of the iax2 threads is in the middlerussell1-14/+91
of handling a full frame for the same call, queue it up for processing by that same thread later instead of dropping it. (issue #9937, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@70866 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Merged revisions 70551 via svnmerge from file1-3/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r70551 | file | 2007-06-20 18:20:16 -0400 (Wed, 20 Jun 2007) | 2 lines Don't overwrite the configured username setting upon a REGISTER. (issue #8565 reported by jsmith) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@70552 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Make sure we clear the previously dialed number if it did not exist.qwell1-0/+3
Issue 9958. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@70494 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Merged revisions 70396 via svnmerge from russell1-29/+37
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r70396 | russell | 2007-06-20 13:45:38 -0500 (Wed, 20 Jun 2007) | 5 lines Fix a problem where an established call would not be properly disconnected when a PRI disconnect is received depending on which cause code was received. (issue #9588, original patch by softins, updated patch from jtexter3, and some additional feedback from mhardeman) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@70397 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19Only attempt to queue a hangup on the owner channel if it actually exists.russell1-2/+2
(issue #9795, patch from zandbelt) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@70084 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-19Fix a crash that could occur when handing device state changes.russell1-0/+5
When the state of a device changes, the device state thread tells the extension state handling code that it changed. Then, the extension state code calls the callback in chan_sip so that it can update subscriptions to that extension. A pointer to a sip_pvt structure is passed to this function as the call which needs a NOTIFY sent. However, there was no locking done to ensure that the pvt struct didn't disappear during this process. (issue #9946, reported by tdonahue, patch by me, patch updated to trunk to use the sip_pvt lock wrappers by eliel) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69944 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18Issue 10005 - Segfault with missing arguments, plus fix a missing define for ↵tilghman1-0/+7
SIP INFO channels git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69796 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18Don't count RTP timeout when involved in a T38 fax session. (issue #9222 ↵file1-1/+2
reported by ivoc) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69794 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18Merged revisions 69765 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r69765 | file | 2007-06-18 14:13:03 -0400 (Mon, 18 Jun 2007) | 2 lines Set the peer name on the dialog to the one configured in sip.conf and NOT the username to be used for authentication attempts. (issue #9967 reported by achauvin) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69775 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18Don't defer the BYE till later on a transfer when the transfer itself goes ↵file1-2/+4
kaboom and has no hope of working. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69668 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18Few minor transfer tweaks. We can't unlock something we never locked, and ↵file1-3/+3
better handle a specific scenario with doing an attended transfer between two non-bridged calls. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69661 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-18Fix issue where it would be possible for the negotiated codecs to get set ↵file1-8/+10
back to nothing. (issue #9992 reported by yehavi) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@69625 f38db490-d61c-443f-a65b-d21fe96a405b
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