Commit Graph

10859 Commits

Author SHA1 Message Date
Steve Murphy
55f4eb3e3d a)In chan_zap, set the clid, src fields in channel_alloc call. b)in the channel_alloc func, set the cid_num and name fields from the arglist[blush]. c) don't update the channel app & app data fields if you are in the 'h' extension. d)the load_module func in cdr_radius needs to return DECLINE, SUCCESS.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-02 17:10:50 +00:00
Olle Johansson
d5fda03428 Don't unlock a channel that we already know does not exist (propably isue 8228)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-02 06:15:43 +00:00
Russell Bryant
6e13855338 Merged revisions 62547 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r62547 | russell | 2007-05-01 16:55:19 -0500 (Tue, 01 May 2007) | 4 lines

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.4@62548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-01 21:57:10 +00:00
Tilghman Lesher
e5f56f776d Bug 9590 - Memory leaks around find_user() (found by rayjay, different fixes by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-01 21:34:43 +00:00
Russell Bryant
58352f5d46 Merged revisions 62496 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r62496 | russell | 2007-05-01 11:26:23 -0500 (Tue, 01 May 2007) | 3 lines

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.4@62497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-01 16:26:48 +00:00
Russell Bryant
3595c5fed1 Merged revisions 62417 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r62417 | russell | 2007-04-30 10:57:26 -0500 (Mon, 30 Apr 2007) | 4 lines

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.4@62419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-30 15:58:28 +00:00
Russell Bryant
63a37f4755 When serving dynamic content, include a Cache-Control header to instruct the
browsers to not store the resulting content.  
(issue #9621, reported by Pari, patch by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-30 15:25:31 +00:00
Jason Parker
16405bbca9 Remove unused (and potentially confusing) jitterbuffer options from sample config.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-30 14:52:31 +00:00
Joshua Colp
5c35c59bb4 Merged revisions 62368 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r62368 | file | 2007-04-30 11:34:07 -0300 (Mon, 30 Apr 2007) | 2 lines

Update copyright notice. It's now the year 2007!

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-30 14:36:11 +00:00
Russell Bryant
8936804377 Fix a bug that made the "language" setting in zapata.conf not
functional.  (issue #9626, reported and fixed by sergee)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-29 05:50:37 +00:00
Russell Bryant
698a82996e Note that the "talker optimization" option will be enabled by default in 1.6
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-28 21:56:20 +00:00
Russell Bryant
6b76a95f09 Fix a weird problem where when a caller talking to someone sitting behind an
agent channel sent a digit, the digit would be played to the agent for forever.
This is because chan_agent always returned -1 from its send_digit_begin and _end
callbacks.  This non-zero return value indicates to the Asterisk core that it
would like an inband DTMF generator put on the channel.  However, this is the
wrong thing to do.  It should *always* return 0, instead.  When the digit begin
and end functions are called on the proxied channel, the underlying channel
will indicate whether inband DTMF is needed or not, and the generator will be
put on that one, and not the Agent channel.
(issue #9615, #9616, reported by jiddings and BigJimmy, and fixed by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-27 21:10:51 +00:00
Jason Parker
45be059315 Merged revisions 62173 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r62173 | qwell | 2007-04-27 11:16:16 -0500 (Fri, 27 Apr 2007) | 3 lines

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.4@62174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-27 16:17:46 +00:00
Russell Bryant
a53ebcf546 If no variables were passed into pbx_substitute_variables_helper_full(), then
don't even bother creating a temporary bogus channel, since that is only for
allowing certain functions to operate on the variables as if they were on a 
channel.  Most importantly, this fixes a crash.
(issue #9613, reported by callguy, fixed by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-27 16:14:11 +00:00
Olle Johansson
34f9e0c4dd Merged revisions 62126 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r62126 | oej | 2007-04-27 15:57:45 +0200 (Fri, 27 Apr 2007) | 4 lines

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.4@62137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-27 14:04:07 +00:00
Olle Johansson
b0121ca8a3 Issue #9608 - fix some annoying DEBUG messages not controlled by option_debug (DEA). Thanks!
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-27 08:10:43 +00:00
Joshua Colp
0525347958 Merged revisions 62037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r62037 | file | 2007-04-26 12:30:57 -0400 (Thu, 26 Apr 2007) | 2 lines

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.4@62038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-26 16:33:52 +00:00
Joshua Colp
230dc4ad88 Missed an ast_app_group_discard during merge. Thanks blitzrage!
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@62005 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-26 03:19:51 +00:00
Joshua Colp
1c6f5bd851 Don't always say that the channel is being paused if it is actually being unpaused in the Manager ack message. (reported by jsmith in #asterisk-bugs)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-26 01:48:55 +00:00
Joshua Colp
19a9e28b09 Merged revisions 61958 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61958 | file | 2007-04-25 21:25:03 -0400 (Wed, 25 Apr 2007) | 2 lines

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.4@61959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-26 01:27:18 +00:00
Kevin P. Fleming
0e525813a8 Merged revisions 61913 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61913 | kpfleming | 2007-04-25 17:24:59 -0500 (Wed, 25 Apr 2007) | 2 lines

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.4@61914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 22:29:53 +00:00
Russell Bryant
5574da0c12 Merged revisions 61866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61866 | russell | 2007-04-25 16:55:23 -0500 (Wed, 25 Apr 2007) | 2 lines

If the callerid= option is specified, but empty, clear any previous data.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 21:59:07 +00:00
Russell Bryant
e6aa1145ed Merged revisions 61862 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61862 | russell | 2007-04-25 16:06:22 -0500 (Wed, 25 Apr 2007) | 2 lines

Ensure that callerid settings are reset on a reload.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 21:13:15 +00:00
Joshua Colp
1d4adc0174 Merged revisions 61804 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61804 | file | 2007-04-25 14:52:50 -0400 (Wed, 25 Apr 2007) | 2 lines

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.4@61805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 19:21:54 +00:00
Russell Bryant
77c52fd8bf Merged revisions 61798 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61798 | russell | 2007-04-25 11:20:38 -0500 (Wed, 25 Apr 2007) | 3 lines

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.4@61799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-25 16:22:07 +00:00
Russell Bryant
5bee74171d Merged revisions 61786 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61786 | russell | 2007-04-24 16:33:59 -0500 (Tue, 24 Apr 2007) | 4 lines

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.4@61787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 21:34:53 +00:00
Russell Bryant
456cad8a47 Improve DTMF handling in ast_read() even more in response to a discussion on
the asterisk-dev mailing list.  I changed the enforced minimum length of a
digit from 100ms to 80ms.  Furthermore, I made it now enforce a gap of 45ms in
between digits.  These values are not configurable in a configuration file
right now, but they can be easily changed near the top of main/channel.c.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 19:00:06 +00:00
Dwayne M. Hubbard
db55615090 Merged revisions 61777 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61777 | dhubbard | 2007-04-24 13:20:31 -0500 (Tue, 24 Apr 2007) | 1 line

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.4@61779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 18:43:53 +00:00
Russell Bryant
bdd29c22c2 Add a few more state changes in handle_frame_ownerless() so that the SLA code
will get notified of these changes even when an owner channel is not provided.
This isn't from a specific bug report, it's just something I noticed while
poking around.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61774 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 16:16:41 +00:00
Joshua Colp
b271179161 Merged revisions 61771 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61771 | file | 2007-04-24 12:05:06 -0400 (Tue, 24 Apr 2007) | 2 lines

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.4@61772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-24 16:07:02 +00:00
Russell Bryant
215adb35b6 Some dialplan functions, such as CUT(), expect to operate on variables on a
channel.  So, this little hack lets them work in places where a channel doesn't
exist, such as within DUNDi configuration.
(issue #9465, reported and patched by Corydon76, testing by blitzrage)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-23 18:17:00 +00:00
Russell Bryant
baab073219 Ensure that digits passing through Asterisk have a reasonable minimum length.
It is currently 100 ms.  If someone thinks this should be different, feel free
to speak up.  (related to issues #8944, #9250, and #9348)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-23 17:57:32 +00:00
Jason Parker
9378347264 Avoid invalid seqno cycling detection.
Per comment from Dave Troy:
 This adds back in some simple typecasting I had in an earlier version
 which I realize now may be breaking things.

Issue #9554.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-20 21:35:27 +00:00
Jason Parker
bb59c9520b Merged revisions 61704 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61704 | qwell | 2007-04-20 16:14:27 -0500 (Fri, 20 Apr 2007) | 4 lines

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.4@61705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-20 21:15:29 +00:00
Russell Bryant
477ff09bdf Remove a stray debug message introduced by a recent commit.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-20 20:42:02 +00:00
Jason Parker
15d34ea798 Merged revisions 61692 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61692 | qwell | 2007-04-20 14:49:54 -0500 (Fri, 20 Apr 2007) | 5 lines

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.4@61694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-20 19:51:49 +00:00
Russell Bryant
70eb19121e Fix the UpdateConfig manager action to properly treat "variables" and "objects"
differently (a=b versus a=>b).
(issue #9568, reported by pari, patch by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-20 18:19:18 +00:00
Olle Johansson
32be6621f6 Merged revisions 61685 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61685 | oej | 2007-04-19 09:56:21 +0200 (Thu, 19 Apr 2007) | 3 lines

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.4@61686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-19 08:37:08 +00:00
Tilghman Lesher
6db075dd98 Bug 9557 - simple reason why reading a function always returned NULL
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-19 04:36:20 +00:00
Tilghman Lesher
1572777fa0 Merged revisions 61680 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61680 | tilghman | 2007-04-18 21:30:18 -0500 (Wed, 18 Apr 2007) | 5 lines

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.4@61681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-19 02:45:05 +00:00
Kevin P. Fleming
b823c62709 allow external build systems to extract the required sound file versions
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-18 22:10:23 +00:00
Olle Johansson
521e1698e1 Clean upp formatting, add some doxygen stuff while we're in cleaning mode... Thanks Kevin!
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-18 20:46:23 +00:00
Olle Johansson
0ef4dad39c Issue #9554 - Improve RTCP (Dave Troy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-18 20:28:53 +00:00
Olle Johansson
dc6d309bdb #9483, half of patch by twilson to solve 302 redirect issues
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-16 14:47:05 +00:00
Olle Johansson
06b7d38720 Blocking AstHoloPatch from 1.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-16 14:21:48 +00:00
Steve Murphy
b74884a9cd This is a fix to the way CDR merge handles the data that results from ForkCDR.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-13 21:17:20 +00:00
Joshua Colp
03eb572457 Merged revisions 61655 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r61655 | file | 2007-04-13 15:15:12 -0400 (Fri, 13 Apr 2007) | 2 lines

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.4@61656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-13 19:17:08 +00:00
Joshua Colp
72a00026cd Do not bother looking for a result if none are present.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-13 18:08:02 +00:00
Joshua Colp
eb631c00a3 For those very verbose SIP implementations that attach tons of info to the Contact header... let's increase our variable sizes. (issue #9535 reported by jeffg)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-13 17:19:53 +00:00
Russell Bryant
2ac2c7f64d Eliminate a compiler warning with ODBC_STORAGE enabled so that it will build
under dev-mode.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-13 17:10:19 +00:00