aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2007-06-15Creating tag for the release of asterisk-1.2.19russell0-0/+0
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.2.19@69596 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14Fix an issue where the line number in an unterminated comment block error ↵qwell1-1/+1
message would show the wrong line number. "Reported" to me on #asterisk (somebody posted an error message, and I happened to catch it) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69469 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14Backport rev 69010 from the 1.4 branch ...russell1-0/+5
In ast_channel_make_compatible(), just return if the channels' read and write formats already match up. There are code paths that call this function on a pair of channels multiple times. This made calls fail that were using g729 in some cases. The reason is that codec_g729a will unregister itself from the list of available translators will all licenses are in use. So, the first time the function got called, the right translation path was allocated. However, the second time it got called, the code would not find a translation path to/from g729 and make the call fail, even if the channel actually already had a g729 translation path allocated. (SPD-32) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69347 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14Change a quite broken while loop to a for loop, so "continue;" works as ↵qwell1-49/+45
expected instead of eating 99% CPU... Issue 9966, patch by me. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69258 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13Return group counting to previous behavior where you could only have one ↵file1-3/+7
group per category. (issue #9711 reported by irroot) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69127 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-13restart indicator 0x80 is correct, at least that's what libpri does.crichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@69053 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12Bring RTP back to Asterisk at the end of a native bridge no matter what.file1-0/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68921 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12if the bridged partner is mISDN too we should not send dtmf tones, they are ↵crichter1-3/+7
transmitted inband always git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68887 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-12if we have already some digits, we just stop the tones.crichter1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68874 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11added check for NULL Pointer when calling misdn_new. Asterisk does not allow ↵crichter2-1/+13
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.2@68732 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11Improve deadlock handling of the channel list. (issue #8376 reported by one47)file1-7/+17
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68682 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11fixed problem that the dummybc chanels had no lock, checking for the lock ↵crichter5-13/+46
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.2@68631 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-08Don't automatically hang up after running Dictate so that callers can exitrussell1-1/+1
cleanly using '#' (closes issue #9577, patch from Thomas Andrews) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68526 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-08Don't call ast_waitstream_full when the control file descriptor and audio ↵file1-6/+18
file descriptor are not set, simply call ast_waitstream! (issue #8530 reported by rickead2000) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68397 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Do a DNS lookup immediately upon calling the dnsmgr function, don't wait ↵file1-13/+13
until a refresh happens. (issue #9097 reported by plack) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68368 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Fix a problem where saying a character wouldn't properly break out when the ↵russell1-2/+2
caller pressed '#' (issue #8113, reported by patbaker82, patch from jamesgolovich (hey, long time no see!) and patbaker82) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68351 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Don't try to save voicemail greetings unless the user presses '1' to ↵qwell1-6/+18
accept/save. Issue 9904, patch by me. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68204 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Allow the 'g' option to work if used with the 'S' option. (issue #9888 ↵file1-1/+4
reported by gasparz) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@68070 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-07Only notify the devicestate system of a peer state change when the peer is ↵file1-1/+0
built from the config file. (issue #9900 reported by arkadia) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67938 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06We have some bug reports showing crashes due to a double free of a channel.russell1-7/+9
Add a sanity check to ast_channel_free() to make sure we don't go on trying to free a channel that wasn't found in the channel list. (issue #8850, and others...) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67715 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06Reinvite the RTP back to the Asterisk machine when the timeout happens. ↵file1-1/+6
(issue #9888 reported by gasparz) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67649 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06Revert channel name splitting fix for Zap. The moral of the story is don't ↵file1-5/+4
use - in your user/peer names. (issue #9668 reported by stevedavies) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67593 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05briding is a bool, fixed copy and paste issue.crichter1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67307 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05simplified the EVENT_SETUP handling in the cb_events function a lot. ↵crichter1-175/+155
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.2@67306 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Backport of the overlap_dial functionality from asterisk-1.4's chan_misdn.nadi3-6/+197
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67239 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05added possibility to deactivate bridging per portcrichter3-0/+13
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67209 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04According to MATH, 0+1181000386 = 1181000448. Oops.tilghman1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67161 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-04Add revision Id tags (by request of tzafrir)tilghman6-2/+8
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@67060 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-31It is now possible for this path of execution to have the frame pointer be ↵file1-1/+1
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.2@66764 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-31Issue 9818 - Fix for issue 8329 breaks pbx_realtime. Issue 8329 will remain ↵tilghman1-5/+6
unfixed for pbx_realtime, but only because we lack core API to do it. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@66744 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29If the value of a variable passed to FIELDQTY is blank, then FIELDQTY should ↵tilghman1-2/+4
return 0, not 1. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@66537 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-29Issue #9802 - Change inuse counter on CANCELoej1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@66349 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-25Issue 9791 - Fix pronunciation of seconds in Dutchtilghman1-26/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@66127 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24Allow RFC2833 to be negotiated when an INVITE comes in without SDP and is ↵file1-0/+1
not matched to a user or peer. (issue #9546 reported by mcrawford) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65837 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24we should only activate the generator in chan_misdn, when asterisk hask not ↵crichter1-0/+2
yet taken the call (WAITING4DIGS state). Alerting audio will be generated fomr asterisk for example. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65767 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-23ensure that variables are set on a newly created channel before we start a ↵kpfleming1-4/+6
PBX on it git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65682 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-23if we are going to set variables on a newly created channel, it should be ↵kpfleming1-3/+5
done *before* we start the PBX on it git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65676 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-23Revert revision 62417 as someone reported problems with it to Mark. This wasrussell1-16/+31
related to issue #9588. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65588 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-22Fix a memory leak that I just noticed in the device state handling in app_queue.russell1-0/+2
On most device state changes, it would leak roughly 8 to 64 bytes (the length of the name of the device). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65389 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-22we stop the tones only when we're in the pre-call phase, otherwise e.g. when ↵crichter1-1/+2
in CONNECTED state we should not stop tones when we receive an Information Message git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65328 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-18This update will fix the situation that occurs as described by 9717, where ↵murf3-4/+37
when several targets are specified for a dial, if any one them reports FAIL, the whole call gets FAIL, even though others were ringing OK. I rearranged the priorities, so that a new disposition, NULL, is at the lowest level, and the disposition get init'd to NULL. Then, next up is FAIL, and next up is BUSY, then NOANSWER, then ANSWERED. All the related set routines will only do so if the disposition value to be set to is greater than what's already there. This gives the intended effect. So, if all the targets are busy, you'd get BUSY for the call disposition. If all get BUSY, but one, and that one rings is not answered, you get NOANSWER. If by some freak of nature, the NULL value doesn't get overridden, then the disp2str routine will report NOANSWER as before. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65172 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-18Not getting an ACK to a 200 OK in the initial invite is critical to the call.oej1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65122 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-18Issue 9235 - part of the problem, maybe not all. Please retry with this ↵oej1-2/+7
patch (and no other patch) if you have problems with hanging SIP channels. Thank you. A special Thank You to WeBRainstorm that gave me access to his system. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65075 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-18fixed a warning regarding Keypad encoding. encode the IE sending_complete at ↵crichter2-4/+4
the right position. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65007 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-18we *need* to send a PROCEEDING when sending_complete is set, even if ↵crichter1-1/+2
need_more_infos is requested. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@64902 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-17How is it that we never caught that this is returning the opposite of our ↵tilghman1-1/+1
documentation, until now? git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@64819 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-17If we have a negative current message, we shouldn't go back even further...qwell1-1/+1
Issue 9727. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@64758 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-16Fixing possible bug in auth of BYEoej1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@64603 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-16Support SIP uri's starting with SIP: and sip: (reported by Tony Mountfield ↵oej1-15/+15
on the mailing list. Thanks!) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@64535 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-16Issue #9726 - rlister - Better logging for ACL denialsoej1-11/+27
While at it, also added better logging and handling of peers that are not supposed to register. My patch, stole the issue report from Russell. My apologies, Russell :-) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@64514 f38db490-d61c-443f-a65b-d21fe96a405b