Archived
14
0
Fork 0
Commit graph

15410 commits

Author SHA1 Message Date
russell
53e5a04948 Remove duplicate colon on Reason header
(closes issue #12678)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116919 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-18 19:58:10 +00:00
file
244af566c7 Improve native transfers when a chain of IAX2 connections are in use.
(closes issue #7567)
Reported by: tjd
Patches:
      bug_7567_update_v2.diff uploaded by snuffy (license 35)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116884 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-17 19:39:35 +00:00
file
842572c895 Try to fix attended transfers.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116848 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-16 21:34:45 +00:00
file
21bdc0a10c Merged revisions 116799 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116799 | file | 2008-05-16 17:28:11 -0300 (Fri, 16 May 2008) | 4 lines

Check to make sure an RTP structure exists before calling ast_rtp_new_source on it.
(closes issue #12669)
Reported by: sbisker

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116800 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-16 20:30:24 +00:00
mattf
125f7b54e9 Try to see if we can make our ringback situation a little better
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116797 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-16 20:00:04 +00:00
seanbright
ced7edc347 Compile under dev-mode, please.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116765 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-16 17:08:59 +00:00
jdixon
dbbfe185af Bring all app_rpt and chan_usbradio stuff up to date
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116731 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-16 00:51:14 +00:00
tilghman
e2e773a86c Add an extra check in ast_strlen_zero, and make ast_assert() not print the
file, line, and function name twice.
(Closes issue #12650)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116694 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-15 22:05:47 +00:00
jpeeler
244229e9dd Fixes a problem I was having with two SIP phones using Packet2Packet bridging dropping audio nearly immediately. The problem was that the lock on the SIP dialog was not being unlocked while the bridge was still active. (Related to issue #12566)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116663 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-15 21:54:18 +00:00
tilghman
f820a7768e Don't unload config on reload, when config has not changed.
(Closes issue #12652)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116631 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-15 17:58:22 +00:00
mmichelson
85894457c2 When counting urgent messages when using IMAP storage, take into account that
the urgent messages are not in their own folder but are actually "flagged" messages
in the INBOX.


(closes issue #12659)
Reported by: jaroth
Patches:
      urgentfolder_v2.patch uploaded by jaroth (license 50)
Tested by: jaroth



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116594 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-15 15:40:29 +00:00
mmichelson
15c4716a78 Modify externnotify to take the number of urgent voicemails as a final argument instead
of the string "Urgent" 

(closes issue #12660)
Reported by: jaroth
Patches:
      externnotify.patch uploaded by jaroth (license 50)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116592 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-15 15:24:29 +00:00
mmichelson
2589df478d Prevent crashes from occurring due to a strcmp of a NULL pointer.
(closes issue #12661)
Reported by: jaroth
Patches:
      urgentcompare.patch uploaded by jaroth (license 50)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116590 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-15 15:13:11 +00:00
rizzo
b19d55996c Use casts or intermediate variables to remove a number
of platform/compiler-dependent warnings when handing
struct timeval fields, both reading and printing them.

It is a lost battle to handle the different ways struct timeval
is handled on the various platforms and compilers, so try
to be pragmatic and go through int/long which are universally
supported.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116557 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-15 10:56:29 +00:00
mmichelson
83a1c36bfe Adding a new option to Chanspy(). The 'd' option allows for the spy to
press DTMF digits to switch between spying modes. Pressing 4 activates spy mode,
pressing 5 activates whisper mode, and pressing 6 activates barge mode. Use of
this feature overrides the normal operation of DTMF numbers. 

This feature is courtesy of Switchvox.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116522 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 22:15:12 +00:00
file
08b897b3a4 Fix pedanticness.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116471 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 21:54:03 +00:00
russell
cb7fdf2ae2 Merged revisions 116463 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116463 | russell | 2008-05-14 16:32:00 -0500 (Wed, 14 May 2008) | 4 lines

Add ast_assert(), which can be used to handle fatal errors.  It is only compiled
in if dev-mode is enabled, and only aborts if DO_CRASH is defined.
(inspired by issue #12650)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116469 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 21:40:43 +00:00
tilghman
79196d7708 Merged revisions 116466 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116466 | tilghman | 2008-05-14 16:38:09 -0500 (Wed, 14 May 2008) | 7 lines

Avoid zombies when the channel exits before the AGI.
(closes issue #12648)
 Reported by: gkloepfer
 Patches: 
       20080514__bug12648.diff.txt uploaded by Corydon76 (license 14)
 Tested by: gkloepfer

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116467 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 21:39:06 +00:00
file
e1a060a62c Add a missing context unlock.
(closes issue #12649)
Reported by: ys
Patches:
      pbx.c.diff uploaded by ys (license 281)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116461 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 21:11:49 +00:00
qwell
6e742022fa Merged revisions 116409 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116409 | qwell | 2008-05-14 15:43:08 -0500 (Wed, 14 May 2008) | 1 line

Document exitcontext in app_voicemail sample config
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116410 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 20:43:26 +00:00
qwell
75746e54d9 Voicemail "* exit" should not require an exitcontext to be specified.
The behavior in 1.4 was that it would use the current context if an exitcontext existed.

(closes issue #12605)
Reported by: kenjreno
Patches:
      12605-starexit.diff uploaded by qwell (license 4)
Tested by: file


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116407 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 20:36:55 +00:00
file
883013c5d2 Merged revisions 116352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116352 | file | 2008-05-14 15:53:39 -0300 (Wed, 14 May 2008) | 4 lines

Add linux-gnueabi in.
(closes issue #12529)
Reported by: tzafrir

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116353 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 18:54:16 +00:00
file
c8b5ae3381 Make the ldap version setting work without having both version and protocol set.
(closes issue #12613)
Reported by: suretec


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116350 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 18:25:54 +00:00
tilghman
e518ad7f98 Merged revisions 116296 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116296 | tilghman | 2008-05-14 11:46:48 -0500 (Wed, 14 May 2008) | 2 lines

Detect another way for a connection to have gone away.
(closes issue #12618)
 Reported by: ctooley
 Patches: 
       1.4-externalivr-test_fd.diff uploaded by ctooley (license 136)
       trunk-externalivr-test_fd.diff uploaded by ctooley (license 136)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116298 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 16:53:23 +00:00
jpeeler
c41065a021 Fixed a few problems with multiparking: call not being parked in the correct parking spot, caller not being notified of parking spot position, and improperly hanging up the call during a transfer due to timing out (not providing the extension in which to transfer).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116297 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 16:52:30 +00:00
oej
de696a3e8c Don't add linefeed on received MESSAGE
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116240 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 14:16:51 +00:00
oej
36dc3eec19 Properly declare charset for text messages.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116239 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 14:03:42 +00:00
oej
f3a2d1775a Adding spport for T.140 RED - Simple RTP redundancy to prevent packet loss in text stream
Work sponsored by Omnitor AB, Stockholm, Sweden (http://www.omnitor.se)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116237 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 13:37:07 +00:00
oej
7dd656be48 Merged revisions 116230 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116230 | oej | 2008-05-14 14:51:06 +0200 (Ons, 14 Maj 2008) | 3 lines

Accept text messages even with
Content-Type: text/plain;charset=Södermanländska

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116234 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 13:05:15 +00:00
oej
8890616992 Add support for codec settings in originate via call file and manager.
This is to enable video and text in originated calls. Development sponsored
by Omnitor AB, Sweden. (http://www.omnitor.se)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116229 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 12:32:57 +00:00
oej
a4a204165f Formatting changes (coding guidelines) while thinking about something else...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116224 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 11:51:09 +00:00
oej
8e4cc965a0 Reformatting
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116223 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 11:37:21 +00:00
oej
178dd8905a Adding comments
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116222 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 11:32:05 +00:00
oej
9a192de4fc Doxygen formatting change only
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116179 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 08:16:25 +00:00
mmichelson
a843c9ca62 Undo inadvertent changes to chan_skinny caused by the merging of urgent messaging
support.

Thanks to Damien Wedhorn for pointing out the problem.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116138 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-14 00:20:05 +00:00
mmichelson
74521e2ace Merged revisions 116088 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116088 | mmichelson | 2008-05-13 18:47:49 -0500 (Tue, 13 May 2008) | 12 lines

A change to the way channel locks are handled when DEBUG_CHANNEL_LOCKS is defined.

After debugging a deadlock, it was noticed that when DEBUG_CHANNEL_LOCKS
is enabled in menuselect, the actual origin of channel locks is obscured
by the fact that all channel locks appear to happen in the function
ast_channel_lock(). This code change redefines ast_channel_lock to be a
macro which maps to __ast_channel_lock(), which then relays the proper
file name, line number, and function name information to the core lock
functions so that this information will be displayed in the case that
there is some sort of locking error or core show locks is issued.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116089 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-13 23:54:01 +00:00
russell
4004787b02 Merged revisions 116038 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116038 | russell | 2008-05-13 16:17:23 -0500 (Tue, 13 May 2008) | 24 lines

Fix a deadlock involving channel autoservice and chan_local that was debugged
and fixed by mmichelson and me.

We observed a system that had a bunch of threads stuck in ast_autoservice_stop().
The reason these threads were waiting around is because this function waits to
ensure that the channel list in the autoservice thread gets rebuilt before the
stop() function returns.  However, the autoservice thread was also locked, so
the autoservice channel list was never getting rebuilt.

The autoservice thread was stuck waiting for the channel lock on a local channel.
However, the local channel was locked by a thread that was stuck in the autoservice
stop function.

It turned out that the issue came down to the local_queue_frame() function in
chan_local.  This function assumed that one of the channels passed in as an
argument was locked when called.  However, that was not always the case.  There
were multiple cases in which this channel was not locked when the function was
called.  We fixed up chan_local to indicate to this function whether this channel
was locked or not.  The previous assumption had caused local_queue_frame() to
improperly return with the channel locked, where it would then never get unlocked.

(closes issue #12584)
(related to issue #12603)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116039 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-13 21:18:55 +00:00
russell
8da7a7e7fd Merged revisions 115990 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115990 | russell | 2008-05-13 16:05:57 -0500 (Tue, 13 May 2008) | 5 lines

Fix an issue that I noticed in autoservice while mmichelson and I were debugging
a different problem.  I noticed that it was theoretically possible for two threads
to attempt to start the autoservice thread at the same time.  This change makes the
process of starting the autoservice thread, thread-safe.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116001 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-13 21:07:59 +00:00
file
a3c3c2cf43 Merged revisions 115944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115944 | file | 2008-05-13 17:28:23 -0300 (Tue, 13 May 2008) | 4 lines

Use the right flag to open the audio in non-blocking.
(closes issue #12616)
Reported by: nicklewisdigiumuser

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115945 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-13 20:29:27 +00:00
mattf
77d8144e34 Need to clear calling_party_cat variable after we retrieve it
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115941 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-13 20:18:04 +00:00
mattf
b3dee04536 Add support for receiving calling party category
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115939 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-13 20:11:20 +00:00
tilghman
cace55a3db Merged revisions 115884 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115884 | tilghman | 2008-05-13 13:36:13 -0500 (Tue, 13 May 2008) | 3 lines

If the socket dies (read returns 0=EOF), return immediately.
(Closes issue #12637)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115886 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-13 18:38:11 +00:00
russell
a505dcedc6 Re-introduce proper error handling that was removed in recent commits.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115850 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-13 17:42:17 +00:00
russell
85062e5137 Initialize the start time in smdi_msg_wait. Somehow this code got lost in trunk.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115847 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-13 17:14:22 +00:00
tilghman
f9717297bb Add a script which installs every package needed for a Debian install of
Asterisk, and includes possible support (to be contributed) for various other
distributions.
(closes issue #10523)
 Reported by: tzafrir
 Patches: 
       install_prereq_2 uploaded by tzafrir (license 46)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115813 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-12 20:34:38 +00:00
oej
0feeda5c8f Add support for playing an audio file for caller and callee at start and stop of monitoring (one-touch monitor).
Keep messages short, since the other party is waiting while one party hear the message...



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115784 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-12 18:39:09 +00:00
mmichelson
1345bbfeaf Merged revisions 115735 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r115735 | mmichelson | 2008-05-12 12:51:14 -0500 (Mon, 12 May 2008) | 7 lines

If a thread holds no locks, do not print any information on the thread when issuing
a core show locks command. This will help to de-clutter output somewhat.

Russell said it would be fine to place this improvement in the 1.4 branch, so that's
why it's going here too.


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115737 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-12 17:55:08 +00:00
qwell
fe71974780 Correctly document state interface for AddQueueMember. Discovered while looking at issue #12626.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115705 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-12 16:35:50 +00:00
bbryant
f0ef7add62 A small change to fix iax2 native bridging.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115669 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-12 15:17:32 +00:00
mattf
5a8ca0ef8e Add Zap MTP2 support to chan_zap
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115600 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-11 03:23:05 +00:00