]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
18 years agoAllow the 'g' option to work if used with the 'S' option. (issue #9888 reported by...
Joshua Colp [Thu, 7 Jun 2007 14:19:40 +0000 (14:19 +0000)] 
Allow the 'g' option to work if used with the 'S' option. (issue #9888 reported by gasparz)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68070 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly notify the devicestate system of a peer state change when the peer is built...
Joshua Colp [Thu, 7 Jun 2007 00:09:13 +0000 (00:09 +0000)] 
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@67938 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWe have some bug reports showing crashes due to a double free of a channel.
Russell Bryant [Wed, 6 Jun 2007 16:40:51 +0000 (16:40 +0000)] 
We have some bug reports showing crashes due to a double free of a channel.
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@67715 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoReinvite the RTP back to the Asterisk machine when the timeout happens. (issue #9888...
Joshua Colp [Wed, 6 Jun 2007 13:28:34 +0000 (13:28 +0000)] 
Reinvite the RTP back to the Asterisk machine when the timeout happens. (issue #9888 reported by gasparz)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67649 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRevert channel name splitting fix for Zap. The moral of the story is don't use -...
Joshua Colp [Wed, 6 Jun 2007 12:18:36 +0000 (12:18 +0000)] 
Revert channel name splitting fix for Zap. The moral of the story is don't use - in your user/peer names. (issue #9668 reported by stevedavies)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67593 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agobriding is a bool, fixed copy and paste issue.
Christian Richter [Tue, 5 Jun 2007 15:42:03 +0000 (15:42 +0000)] 
briding is a bool, fixed copy and paste issue.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67307 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agosimplified the EVENT_SETUP handling in the cb_events function a lot. Commented the...
Christian Richter [Tue, 5 Jun 2007 15:39:43 +0000 (15:39 +0000)] 
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@67306 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBackport of the overlap_dial functionality from asterisk-1.4's chan_misdn.
Nadi Sarrar [Tue, 5 Jun 2007 11:18:45 +0000 (11:18 +0000)] 
Backport of the overlap_dial functionality from asterisk-1.4's chan_misdn.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67239 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoadded possibility to deactivate bridging per port
Christian Richter [Tue, 5 Jun 2007 10:05:45 +0000 (10:05 +0000)] 
added possibility to deactivate bridging per port

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67209 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAccording to MATH, 0+1181000386 = 1181000448. Oops.
Tilghman Lesher [Mon, 4 Jun 2007 23:41:49 +0000 (23:41 +0000)] 
According to MATH, 0+1181000386 = 1181000448.  Oops.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67161 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd revision Id tags (by request of tzafrir)
Tilghman Lesher [Mon, 4 Jun 2007 17:10:30 +0000 (17:10 +0000)] 
Add revision Id tags (by request of tzafrir)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@67060 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIt is now possible for this path of execution to have the frame pointer be NULL,...
Joshua Colp [Thu, 31 May 2007 16:12:39 +0000 (16:12 +0000)] 
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: https://origsvn.digium.com/svn/asterisk/branches/1.2@66764 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9818 - Fix for issue 8329 breaks pbx_realtime. Issue 8329 will remain unfixed...
Tilghman Lesher [Thu, 31 May 2007 15:58:45 +0000 (15:58 +0000)] 
Issue 9818 - Fix for issue 8329 breaks pbx_realtime.  Issue 8329 will remain unfixed for pbx_realtime, but only because we lack core API to do it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@66744 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf the value of a variable passed to FIELDQTY is blank, then FIELDQTY should return...
Tilghman Lesher [Tue, 29 May 2007 21:49:35 +0000 (21:49 +0000)] 
If the value of a variable passed to FIELDQTY is blank, then FIELDQTY should return 0, not 1.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@66537 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue #9802 - Change inuse counter on CANCEL
Olle Johansson [Tue, 29 May 2007 07:53:14 +0000 (07:53 +0000)] 
Issue #9802 - Change inuse counter on CANCEL

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@66349 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9791 - Fix pronunciation of seconds in Dutch
Tilghman Lesher [Fri, 25 May 2007 13:46:35 +0000 (13:46 +0000)] 
Issue 9791 - Fix pronunciation of seconds in Dutch

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@66127 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAllow RFC2833 to be negotiated when an INVITE comes in without SDP and is not matched...
Joshua Colp [Thu, 24 May 2007 14:40:38 +0000 (14:40 +0000)] 
Allow RFC2833 to be negotiated when an INVITE comes in without SDP and is not matched to a user or peer. (issue #9546 reported by mcrawford)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65837 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agowe should only activate the generator in chan_misdn, when asterisk hask not yet taken...
Christian Richter [Thu, 24 May 2007 09:19:58 +0000 (09:19 +0000)] 
we should only activate the generator in chan_misdn, when asterisk hask not yet taken the call (WAITING4DIGS state). Alerting audio will be generated fomr asterisk for example.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65767 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoensure that variables are set on a newly created channel before we start a PBX on it
Kevin P. Fleming [Wed, 23 May 2007 20:46:22 +0000 (20:46 +0000)] 
ensure that variables are set on a newly created channel before we start a PBX on it

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65682 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoif we are going to set variables on a newly created channel, it should be done *befor...
Kevin P. Fleming [Wed, 23 May 2007 20:06:13 +0000 (20:06 +0000)] 
if we are going to set variables on a newly created channel, it should be done *before* we start the PBX on it

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65676 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRevert revision 62417 as someone reported problems with it to Mark. This was
Russell Bryant [Wed, 23 May 2007 13:06:17 +0000 (13:06 +0000)] 
Revert revision 62417 as someone reported problems with it to Mark.  This was
related to issue #9588.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65588 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a memory leak that I just noticed in the device state handling in app_queue.
Russell Bryant [Tue, 22 May 2007 13:07:03 +0000 (13:07 +0000)] 
Fix a memory leak that I just noticed in the device state handling in app_queue.
On most device state changes, it would leak roughly 8 to 64 bytes (the length of
the name of the device).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65389 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agowe stop the tones only when we're in the pre-call phase, otherwise e.g. when in CONNE...
Christian Richter [Tue, 22 May 2007 07:46:39 +0000 (07:46 +0000)] 
we stop the tones only when we're in the pre-call phase, otherwise e.g. when in CONNECTED state we should not stop tones when we receive an Information Message

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65328 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThis update will fix the situation that occurs as described by 9717, where when sever...
Steve Murphy [Fri, 18 May 2007 20:56:20 +0000 (20:56 +0000)] 
This update will fix the situation that occurs as described by 9717, where 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@65172 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoNot getting an ACK to a 200 OK in the initial invite is critical to the call.
Olle Johansson [Fri, 18 May 2007 18:10:46 +0000 (18:10 +0000)] 
Not getting an ACK to a 200 OK in the initial invite is critical to the call.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65122 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9235 - part of the problem, maybe not all. Please retry with this patch (and no
Olle Johansson [Fri, 18 May 2007 15:12:09 +0000 (15:12 +0000)] 
Issue 9235 - part of the problem, maybe not all. Please retry with this 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@65075 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed a warning regarding Keypad encoding. encode the IE sending_complete at the...
Christian Richter [Fri, 18 May 2007 11:23:11 +0000 (11:23 +0000)] 
fixed a warning regarding Keypad encoding. encode the IE sending_complete at the right position.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65007 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agowe *need* to send a PROCEEDING when sending_complete is set, even if need_more_infos...
Christian Richter [Fri, 18 May 2007 08:24:08 +0000 (08:24 +0000)] 
we *need* to send a PROCEEDING when sending_complete is set, even if need_more_infos is requested.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@64902 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoHow is it that we never caught that this is returning the opposite of our documentati...
Tilghman Lesher [Thu, 17 May 2007 21:14:36 +0000 (21:14 +0000)] 
How is it that we never caught that this is returning the opposite of our documentation, until now?

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@64819 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf we have a negative current message, we shouldn't go back even further...
Jason Parker [Thu, 17 May 2007 16:52:38 +0000 (16:52 +0000)] 
If we have a negative current message, we shouldn't go back even further...

Issue 9727.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@64758 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFixing possible bug in auth of BYE
Olle Johansson [Wed, 16 May 2007 10:55:16 +0000 (10:55 +0000)] 
Fixing possible bug in auth of BYE

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@64603 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoSupport SIP uri's starting with SIP: and sip: (reported by Tony Mountfield on the...
Olle Johansson [Wed, 16 May 2007 09:08:22 +0000 (09:08 +0000)] 
Support SIP uri's starting with SIP: and sip: (reported by Tony Mountfield on the mailing list. Thanks!)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@64535 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue #9726 - rlister - Better logging for ACL denials
Olle Johansson [Wed, 16 May 2007 08:25:56 +0000 (08:25 +0000)] 
Issue #9726 - rlister - Better logging for ACL denials

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: https://origsvn.digium.com/svn/asterisk/branches/1.2@64514 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoin the case immediate=yes, we directly jump into the dialplan, where people can use...
Christian Richter [Wed, 16 May 2007 08:23:42 +0000 (08:23 +0000)] 
in the case immediate=yes, we directly jump into the dialplan, where people can use PlayTones to indicate a Dialtone, so we don't need to to that by ourself. also we should not do a dialtone_indicate for incoming calls on a TE port in overlapdialmode.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@64513 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly perform stripping of - strings from the channel name for Zap channels. Anywhere...
Joshua Colp [Mon, 14 May 2007 18:34:06 +0000 (18:34 +0000)] 
Only perform stripping of - strings from the channel name for Zap channels. Anywhere else we might remove a legitimate part of a device name. (issue #9668 reported by stevedavies)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@64275 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9121 - fixups for safe_asterisk script
Tilghman Lesher [Fri, 11 May 2007 16:31:03 +0000 (16:31 +0000)] 
Issue 9121 - fixups for safe_asterisk script

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63903 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix an issue with trying to kill a thread before it gets created.
Jason Parker [Thu, 10 May 2007 23:14:55 +0000 (23:14 +0000)] 
Fix an issue with trying to kill a thread before it gets created.

Issue 9709, patch by nic_bellamy.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63828 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDo not allocate SIP pvt's for PEERs we can not reach.
Olle Johansson [Thu, 10 May 2007 20:38:54 +0000 (20:38 +0000)] 
Do not allocate SIP pvt's for PEERs we can not reach.

This was seen as a lot of dialogs being created then immediately destroyed at reload/restart of the SIP channel.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63748 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMake sure we only create a DSP if it's requested on SUB_REAL
Matthew Fredrickson [Wed, 9 May 2007 17:20:20 +0000 (17:20 +0000)] 
Make sure we only create a DSP if it's requested on SUB_REAL

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63653 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoProperly handle hints that point to multiple devices in chan_sip. Why chan_sip is...
Joshua Colp [Wed, 9 May 2007 16:51:03 +0000 (16:51 +0000)] 
Properly handle hints that point to multiple devices in chan_sip. Why chan_sip is even doing this I have no idea but I would rather not go into a rant. (issue #9536 reported by rlister)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63610 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoReplicate fix from 51158 (app_voicemail) to app_directory (Issue 9224)
Tilghman Lesher [Wed, 9 May 2007 14:48:06 +0000 (14:48 +0000)] 
Replicate fix from 51158 (app_voicemail) to app_directory (Issue 9224)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63565 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agorelease_chan frees ch, so we should never touch ch after release_chan, this may cause...
Christian Richter [Wed, 9 May 2007 11:26:16 +0000 (11:26 +0000)] 
release_chan frees ch, so we should never touch ch after release_chan, this may cause segfaults.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63519 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9602 - segfault in app_macro
Tilghman Lesher [Tue, 8 May 2007 22:19:15 +0000 (22:19 +0000)] 
Issue 9602 - segfault in app_macro

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63477 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoadded application misdn_check_l2l1 which tries to pull up the L1/L2 on all ports...
Christian Richter [Tue, 8 May 2007 15:07:37 +0000 (15:07 +0000)] 
added application misdn_check_l2l1 which tries to pull up the L1/L2 on all ports that have the layers down in a group. It waits then for a timeout. This helps for scenarios where multiple PMP BRIs are grouped together, or where a provider has a faulty PTP Implementation, that looses the L2 after a while.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63402 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9527 - upon entering a folder, no message is selected (curmsg == -1), so deleti...
Tilghman Lesher [Tue, 8 May 2007 06:20:16 +0000 (06:20 +0000)] 
Issue 9527 - upon entering a folder, no message is selected (curmsg == -1), so deleting causes memory corruption (beyond bounds)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63359 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoProperly handle what happens during a masquerade in relation to group counting. ...
Joshua Colp [Mon, 7 May 2007 21:39:52 +0000 (21:39 +0000)] 
Properly handle what happens during a masquerade in relation to group counting. (issue #9657 reported by ramonpeek)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63285 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoReleasing the whole in-memory configuration while you're adding to it is not a good...
Olle Johansson [Mon, 7 May 2007 14:06:50 +0000 (14:06 +0000)] 
Releasing the whole in-memory configuration while you're adding to it is not a good thing.

Please review this change. Caused by additions (+) to non-existing contexts.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63195 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWhen a peer is seeded or built tell the devicestate core to update it's status. This...
Joshua Colp [Thu, 3 May 2007 16:42:19 +0000 (16:42 +0000)] 
When a peer is seeded or built tell the devicestate core to update it's status. This is easier then having chan_sip load before pbx_config. (issue #9658 reported by dlynes)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62987 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agowhen we're in state WAITING4DIGS, we use the asterisk tone-generator which prods...
Christian Richter [Thu, 3 May 2007 15:39:21 +0000 (15:39 +0000)] 
when we're in state WAITING4DIGS, we use the asterisk tone-generator which prods us, so we can't just return -1 in misdn_write in this case. Added a MISDN_KEYPAD channel variable, and fixed the sending of keypad. this enables us to modify the call forward parameters in the switch.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62945 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agofixed the problem that misdn_write did not return -1 when called with 0 samples in...
Christian Richter [Thu, 3 May 2007 13:59:00 +0000 (13:59 +0000)] 
fixed the problem that misdn_write did not return -1 when called with 0 samples in a frame this resultet in a deadlock in some circumstances, when the call ended because of a busy extension.  added encoding of keypad.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62885 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agodoh... initializing the pointer variable will work just a bit better
Kevin P. Fleming [Thu, 3 May 2007 00:23:00 +0000 (00:23 +0000)] 
doh... initializing the pointer variable will work just a bit better

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62841 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoincrease reliability and efficiency of static Realtime config loading via ODBC:
Kevin P. Fleming [Wed, 2 May 2007 23:53:46 +0000 (23:53 +0000)] 
increase reliability and efficiency of static Realtime config loading via ODBC:
don't request fields we aren't going to use
don't request sorting on fields that are pointless to sort on
explicitly request the fields we want, because we can't expect the database to always return them in the order they were created

(reported by blitzrage in person (!), patch by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62796 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoSome tweaks to satisfy CDR bug 8796, where being in 'h' extension louses up the dst...
Steve Murphy [Wed, 2 May 2007 20:10:32 +0000 (20:10 +0000)] 
Some tweaks to satisfy CDR bug 8796, where being in 'h' extension louses up the dst field

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62737 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue 9638 - if a text frame is sent with no terminating NULL through a bridged
Tilghman Lesher [Wed, 2 May 2007 17:38:16 +0000 (17:38 +0000)] 
Issue 9638 - if a text frame is sent with no terminating NULL through a bridged
IAX connection, the remote end will receive garbage characters tacked onto the
end.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62691 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRemove an unnecessary check that makes it so if you hang up after doing an
Russell Bryant [Tue, 1 May 2007 21:55:19 +0000 (21:55 +0000)] 
Remove an unnecessary check that makes it so if you hang up after doing an
attended transfer before the target extension answers the channel, the transfer
is not successful.  (issue #9338, patch by svanlund)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62547 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd indications.conf information for the Philippines.
Russell Bryant [Tue, 1 May 2007 16:26:23 +0000 (16:26 +0000)] 
Add indications.conf information for the Philippines.
(issue #9525, reported and patched by loloski)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62496 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThis patch fixes an issue where depending on the cause code, when the network
Russell Bryant [Mon, 30 Apr 2007 15:57:26 +0000 (15:57 +0000)] 
This patch fixes an issue where depending on the cause code, when the network
sends a PRI disconnect, the call may not be properly hung up.
(issue #9588, reported and patched by softins)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62417 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUpdate copyright notice. It's now the year 2007!
Joshua Colp [Mon, 30 Apr 2007 14:34:07 +0000 (14:34 +0000)] 
Update copyright notice. It's now the year 2007!

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62368 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThis transcoder message needn't be a NOTICE.
Jason Parker [Fri, 27 Apr 2007 16:16:16 +0000 (16:16 +0000)] 
This transcoder message needn't be a NOTICE.
I've seen it cause confusion more than a few times.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62173 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIssue #7351 - SIP Cancel fails due to the wrong contact uri. Reported by PPYY, failed...
Olle Johansson [Fri, 27 Apr 2007 13:57:45 +0000 (13:57 +0000)] 
Issue #7351 - SIP Cancel fails due to the wrong contact uri. Reported by PPYY, failed to fix by OEJ
final fix by wojtekka - THANKS!!!! THis was a hard one to catch.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62126 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRevert previous fix for when the IAX2 channel goes funky (that's the technical term...
Joshua Colp [Thu, 26 Apr 2007 16:30:57 +0000 (16:30 +0000)] 
Revert previous fix for when the IAX2 channel goes funky (that's the technical term). This is causing legit calls to be prematurely hung up. (issue #9600 reported by justdave)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@62037 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't count failed include attempts against the configuration include level. (issue...
Joshua Colp [Thu, 26 Apr 2007 01:25:03 +0000 (01:25 +0000)] 
Don't count failed include attempts against the configuration include level. (issue #9593 reported by mostyn)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61958 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agohandle a very bizarre race condition with channels being redirected before a simple...
Kevin P. Fleming [Wed, 25 Apr 2007 22:24:59 +0000 (22:24 +0000)] 
handle a very bizarre race condition with channels being redirected before a simple switch can be started on them (issue #9286)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61913 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf the callerid= option is specified, but empty, clear any previous data.
Russell Bryant [Wed, 25 Apr 2007 21:55:23 +0000 (21:55 +0000)] 
If the callerid= option is specified, but empty, clear any previous data.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61866 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoEnsure that callerid settings are reset on a reload.
Russell Bryant [Wed, 25 Apr 2007 21:06:22 +0000 (21:06 +0000)] 
Ensure that callerid settings are reset on a reload.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61862 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoMerge rewritten group counting support. No more storing data on the variable list...
Joshua Colp [Wed, 25 Apr 2007 18:52:50 +0000 (18:52 +0000)] 
Merge rewritten group counting support. No more storing data on the variable list of the channels. That was bad, mmmk? (issue #7497 reported by sabbathbh)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61804 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a typo where cid_num got copied instead of cid_ani.
Russell Bryant [Wed, 25 Apr 2007 16:20:38 +0000 (16:20 +0000)] 
Fix a typo where cid_num got copied instead of cid_ani.
(issue #9587, reported and patched by xrg)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61798 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't crash if a manager connection provides a username that exists in
Russell Bryant [Tue, 24 Apr 2007 21:33:59 +0000 (21:33 +0000)] 
Don't crash if a manager connection provides a username that exists in
manager.conf but does not have a password, and also requests MD5
authentication. (ASA-2007-012)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61786 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoremoved #if 0 block from chan_phone, chan_zap, and chan_modem restart_monitor()
Dwayne M. Hubbard [Tue, 24 Apr 2007 18:20:31 +0000 (18:20 +0000)] 
removed #if 0 block from chan_phone, chan_zap, and chan_modem restart_monitor()

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61777 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoremoved pthread_join in restart_monitor() to make it like chan_zap and other channel...
Dwayne M. Hubbard [Tue, 24 Apr 2007 17:42:12 +0000 (17:42 +0000)] 
removed pthread_join in restart_monitor() to make it like chan_zap and other channel drivers

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61776 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAllow RFC2833 to be sent in the response SDP when an INVITE comes in without SDP...
Joshua Colp [Tue, 24 Apr 2007 16:05:06 +0000 (16:05 +0000)] 
Allow RFC2833 to be sent in the response SDP when an INVITE comes in without SDP. (issue #9546 reported by mcrawford)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61771 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoadded lock for sending messages to avoid double sending. shuffled some empty_chans...
Christian Richter [Tue, 24 Apr 2007 13:50:05 +0000 (13:50 +0000)] 
added lock for sending messages to avoid double sending. shuffled some empty_chans after the cb_event calls, this avoids that a release_complete from a quite different call releases a fresh created setup by accident.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61770 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix an issue that I noticed while looking over issue 9571.
Jason Parker [Fri, 20 Apr 2007 21:14:27 +0000 (21:14 +0000)] 
Fix an issue that I noticed while looking over issue 9571.

The reload timestamp was getting set after reloading the built-in stuff, and before the modules.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61704 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf the '* to hangup' option is not enabled, we don't need to disable * as a valid...
Jason Parker [Fri, 20 Apr 2007 19:49:54 +0000 (19:49 +0000)] 
If the '* to hangup' option is not enabled, we don't need to disable * as a valid exit key.
  If it was enabled, this statement would've never been checked in the first place.

Issue #9552

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61692 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoSend NOTIFY to Contact: in SUBSCRIBE
Olle Johansson [Thu, 19 Apr 2007 07:56:21 +0000 (07:56 +0000)] 
Send NOTIFY to Contact: in SUBSCRIBE
- as reported by Intertex and Citel. Fixed during SIPit 20 in Antwerp.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61685 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBug 9557 - Specifying the GetVar AMI action without a Channel parameter can
Tilghman Lesher [Thu, 19 Apr 2007 02:30:18 +0000 (02:30 +0000)] 
Bug 9557 - Specifying the GetVar AMI action without a Channel parameter can
cause Asterisk to crash.  The reason this needs to be fixed in the functions
instead of in AMI is because Channel can legitimately be NULL, such as when
retrieving global variables.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61680 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't stop RTP on errors on INFO messages.
Olle Johansson [Mon, 16 Apr 2007 14:08:33 +0000 (14:08 +0000)] 
Don't stop RTP on errors on INFO messages.

Disclaimer: This patch was needed for Edvina AstHoloApp and was
meant to be included in 1.2, but never made it in time so I felt
I could add it now.

No, just joking, patching error found while testing T.140 with Omnitor earlier
this spring.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61663 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd OUTBOUND_GROUP_ONCE variable to app_dial. This behaves the same as OUTBOUND_GROUP...
Joshua Colp [Fri, 13 Apr 2007 19:15:12 +0000 (19:15 +0000)] 
Add OUTBOUND_GROUP_ONCE variable to app_dial. This behaves the same as OUTBOUND_GROUP except it will get unset after use so it won't get accidentally inherited. (issue #BE-140)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61655 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIf someone sets the "useragent" option in sip.conf to be empty, then don't add
Russell Bryant [Wed, 11 Apr 2007 16:01:25 +0000 (16:01 +0000)] 
If someone sets the "useragent" option in sip.conf to be empty, then don't add
the User-Agent header at all.  It is an optional header, anyway.  Also, the bug
report says that some of Japan's SIP providers don't allow it for some weird
reason.  (issue #9488, reported by makoto, fixed by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61476 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix a bug with switching between host=dynamic and using specific hosts for
Russell Bryant [Wed, 11 Apr 2007 15:05:36 +0000 (15:05 +0000)] 
Fix a bug with switching between host=dynamic and using specific hosts for
peers.  The code would only reset the peer's address when it is dynamic if
it was a new peer structure.  Now, it will also reset the address if it was
already in the peer list, but before the reload, it was not dynamic.
(issue #9515, reported by caio1982, fixed by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61426 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoRemove the attempt at reporting configuration errors in sip.conf. This can
Russell Bryant [Wed, 11 Apr 2007 14:02:54 +0000 (14:02 +0000)] 
Remove the attempt at reporting configuration errors in sip.conf.  This can
cause a bunch of improper messages when using realtime.  I give up.  As oej
tried to convince me when I put this in, there is just no easy way to do it.
(inspired by a message on the -dev list)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61376 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agosome fixes for PMP Hold/Retrieve, it should work now, when briding=no
Christian Richter [Wed, 11 Apr 2007 12:05:57 +0000 (12:05 +0000)] 
some fixes for PMP Hold/Retrieve, it should work now, when briding=no

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61357 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agomsns config parameter defaults to '*'
Nadi Sarrar [Tue, 10 Apr 2007 12:31:45 +0000 (12:31 +0000)] 
msns config parameter defaults to '*'

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61170 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years ago- Don't send ActionID before Response: header.
Olle Johansson [Mon, 9 Apr 2007 19:38:59 +0000 (19:38 +0000)] 
- Don't send ActionID before Response: header.
- Don't use a blank in an AMI header

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@61038 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAllow matching on names shorter than 3 chars.
Jason Parker [Mon, 9 Apr 2007 17:22:15 +0000 (17:22 +0000)] 
Allow matching on names shorter than 3 chars.
This also fixes the case where somebody wants to match on less then 3 chars.

Issue 9071

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60935 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't check for error when lowering priority (according to the manpage, it should...
Tilghman Lesher [Mon, 9 Apr 2007 02:49:06 +0000 (02:49 +0000)] 
Don't check for error when lowering priority (according to the manpage, it should never happen anyway).  It might could happen, though, if another thread messed with the priority, so safeguard against that (reported via -dev list).

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60849 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBug 9505 - If the return value for local_queue_frame is set, then p->lock is no longe...
Tilghman Lesher [Mon, 9 Apr 2007 02:37:18 +0000 (02:37 +0000)] 
Bug 9505 - If the return value for local_queue_frame is set, then p->lock is no longer valid.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60846 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoWhen calling a device that then forwards us elsewhere... we have to make our channels...
Joshua Colp [Mon, 9 Apr 2007 00:59:29 +0000 (00:59 +0000)] 
When calling a device that then forwards us elsewhere... we have to make our channels compatible if it is the only channel being dialed. (issue #9445 reported by marcelbarbulescu)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60797 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoGosub called within a Macro resets the arguments improperly and causes general weirdn...
Tilghman Lesher [Sun, 8 Apr 2007 14:00:22 +0000 (14:00 +0000)] 
Gosub called within a Macro resets the arguments improperly and causes general weirdness. (Issue 8329)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60711 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoBug 9486 - memory leak when opening a filestream
Tilghman Lesher [Sun, 8 Apr 2007 01:39:25 +0000 (01:39 +0000)] 
Bug 9486 - memory leak when opening a filestream

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60660 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoThere should only be one code path for doing DTMF conditionals on channels. This...
Matthew Fredrickson [Fri, 6 Apr 2007 17:03:15 +0000 (17:03 +0000)] 
There should only be one code path for doing DTMF conditionals on channels.  This fixes it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60456 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoremove undocumented 'cardsmode' parameter and stop searching for transcoders during...
Kevin P. Fleming [Fri, 6 Apr 2007 14:41:37 +0000 (14:41 +0000)] 
remove undocumented 'cardsmode' parameter and stop searching for transcoders during reload()

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60398 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoJust because we can't find the voicemail configuration file, doesn't
Jason Parker [Thu, 5 Apr 2007 16:09:41 +0000 (16:09 +0000)] 
Just because we can't find the voicemail configuration file, doesn't
 mean that the module failed to load.  The user could be using realtime.

Issue #9473

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60267 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOnly unlock our pvt and net locks if we are actually going to try to lock the owner...
Joshua Colp [Thu, 5 Apr 2007 12:52:50 +0000 (12:52 +0000)] 
Only unlock our pvt and net locks if we are actually going to try to lock the owner again. (issue #9472 reported by zoa)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60213 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoIt is valid to redirect channels via the manager interface that are not in the
Russell Bryant [Wed, 4 Apr 2007 17:38:47 +0000 (17:38 +0000)] 
It is valid to redirect channels via the manager interface that are not in the
UP state.  Instead of checking for that to prevent to ensure a dead channel
doesn't get redirected, just use the ast_check_hangup() API call.
(issue #9457, reported by Callmewind, patch by me)
(related to issue #8977)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60134 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoFix the return value of handle_common_options() so that it always properly
Russell Bryant [Wed, 4 Apr 2007 16:37:04 +0000 (16:37 +0000)] 
Fix the return value of handle_common_options() so that it always properly
indicates whether it handled the option or not.
(issue #9455, reported by Netview, fixed by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60083 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoAdd a missing "\r\n" in the body of the NOTIFY that is sent to indicate the
Russell Bryant [Tue, 3 Apr 2007 23:23:23 +0000 (23:23 +0000)] 
Add a missing "\r\n" in the body of the NOTIFY that is sent to indicate the
status of a transfer.  (issue #9388, reported by rarritt)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60016 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoUse the more generic check for "sed -r" support that was already present in 1.4.
Russell Bryant [Tue, 3 Apr 2007 23:00:10 +0000 (23:00 +0000)] 
Use the more generic check for "sed -r" support that was already present in 1.4.
(related to issue #9399)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60014 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoOn Darwin, the -r argument to sed is not valid. It has to be -E.
Russell Bryant [Tue, 3 Apr 2007 22:54:49 +0000 (22:54 +0000)] 
On Darwin, the -r argument to sed is not valid.  It has to be -E.
(issue #9399, reported by jcovert)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@60012 65c4cc65-6c06-0410-ace0-fbb531ad65f3

18 years agoDon't attempt to report configuration errors in build_user(). oej pointed out
Russell Bryant [Tue, 3 Apr 2007 19:15:04 +0000 (19:15 +0000)] 
Don't attempt to report configuration errors in build_user().  oej pointed out
that for a "friend" entry, this won't work, because all user options are valid
for peers, but not the other way around.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59938 65c4cc65-6c06-0410-ace0-fbb531ad65f3