Joshua Colp [Mon, 10 Aug 2009 14:07:44 +0000 (14:07 +0000)]
Fix retrieval of the port used for the video stream when adding SDP to a SIP message.
(closes issue #15121)
Reported by: jsmith
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211347
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sun, 9 Aug 2009 15:42:02 +0000 (15:42 +0000)]
Merged revisions 211274 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r211274 | tilghman | 2009-08-09 10:41:01 -0500 (Sun, 09 Aug 2009) | 2 lines
Small oops. Clear the flags which have been checked.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211275
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Sun, 9 Aug 2009 07:11:22 +0000 (07:11 +0000)]
Check for NULL frame, before dereferencing pointer.
(closes issue #15617)
Reported by: rain
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211232
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Fri, 7 Aug 2009 23:30:32 +0000 (23:30 +0000)]
Fixed some unsafe down cast pointer operations for sig_pri.
You cannot cast the struct dahdi_pvt.sig_pvt pointer to a specific
signaling private pointer without first checking that it is in fact
pointing to the correct signaling private structure.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211197
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Fri, 7 Aug 2009 23:17:41 +0000 (23:17 +0000)]
Fix static on line when PRI does overlap dialing.
The wrong encoding law was used because = was used when it should
have been ==.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211191
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 7 Aug 2009 20:12:21 +0000 (20:12 +0000)]
Recorded merge of revisions 211112 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r211112 | russell | 2009-08-07 15:11:31 -0500 (Fri, 07 Aug 2009) | 4 lines
Resolve a deadlock involving app_chanspy and masquerades.
(ABE-1936)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211113
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Fri, 7 Aug 2009 18:17:41 +0000 (18:17 +0000)]
Merged revisions 211038 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r211038 | tilghman | 2009-08-07 13:16:28 -0500 (Fri, 07 Aug 2009) | 14 lines
QUEUE_MEMBER_LIST _really_ wants the interface name, not the membername.
This is a partial revert of revision 82590, which was an attempted cleanup,
but in reality, it broke QUEUE_MEMBER_LIST, which has always been intended
as a method by which component interfaces could be queried from the queue.
Membername isn't useful here, because that field cannot be used to obtain
further information about the member. See the documentation on
QUEUE_MEMBER_LIST, RemoveQueueMember, QUEUE_MEMBER_PENALTY, and the various
AMI commands which take a member argument for further justification.
(closes issue #15664)
Reported by: rain
Patches:
app_queue-queue_member_list.diff uploaded by rain (license 327)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211040
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Fri, 7 Aug 2009 13:08:00 +0000 (13:08 +0000)]
Workaround broken T.38 endpoints that offer tiny MaxDatagram sizes.
Some T.38 endpoints treat T38FaxMaxDatagram as the maximum IFP size that should
be sent to them, rather than the maximum packet payload size. If such an
endpoint also requests UDPRedundancy as the error correction mode, we'll end
up calculating a tiny maximum IFP size, so small as to be unusable. This patch
sets a lower bound on what we'll consider the remote's maximum IFP size to be,
assuming that endpoints that do this really can accept larger packets than
they've offered to accept.
(closes issue #15649)
Reported by: dazza76
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210992
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 6 Aug 2009 21:46:01 +0000 (21:46 +0000)]
Merged revisions 210913 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r210913 | tilghman | 2009-08-06 16:45:01 -0500 (Thu, 06 Aug 2009) | 7 lines
Because channel information can be accessed outside of the channel thread, we must lock the channel prior to modifying it.
(closes issue #15397)
Reported by: caspy
Patches:
20090714__issue15397.diff.txt uploaded by tilghman (license 14)
Tested by: caspy
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210914
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Thu, 6 Aug 2009 21:29:26 +0000 (21:29 +0000)]
Allow Gosub to recognize quote delimiters without consuming them.
(closes issue #15557)
Reported by: rain
Patches:
20090723__issue15557.diff.txt uploaded by tilghman (license 14)
Tested by: rain
Review: https://reviewboard.asterisk.org/r/316/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210908
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Thu, 6 Aug 2009 20:15:11 +0000 (20:15 +0000)]
Miscellaneous minor fixes to sig_analog.
* Sanity adjustments to __analog_ss_thread for sig_analog environment.
* Deleted some duplicated code.
* Fixed analog_ss_thread_start passing the wrong pointer.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210869
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Thu, 6 Aug 2009 19:52:11 +0000 (19:52 +0000)]
Sanity adjustments to pri_ss_thread for sig_pri environment.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210866
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Thu, 6 Aug 2009 17:47:04 +0000 (17:47 +0000)]
Accept additional T.38 reinvites after an initial one has been handled.
Discussion of this subject has yielded that it is not actually acceptable to change
T.38 parameters after the initial reinvite but declining is harsh and can cause the
fax to fail when it may be possible to allow it to continue. This patch changes things
so that additional T.38 reinvites are accepted but parameter changes ignored. This gives
the fax a fighting chance.
(closes issue #15610)
Reported by: huangtx2009
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210817
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Thu, 6 Aug 2009 16:07:15 +0000 (16:07 +0000)]
Minor improvements to app_fax.
This patch makes some small changes to handle watchdog timeouts in a better way,
and also uses a 'cleaner' method of including the spandsp header files.
(closes issue #14769)
Reported by: andrew
Patches:
app_fax-
20090406.diff uploaded by andrew (license 240)
v1-14769.patch uploaded by dimas (license 88)
Tested by: freh, deti, caspy, dimas, sgimeno, Dovid
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210777
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Wed, 5 Aug 2009 23:44:39 +0000 (23:44 +0000)]
Fix potential deadlock issue with USERUSERINFO channel variable.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210732
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Wed, 5 Aug 2009 22:46:37 +0000 (22:46 +0000)]
More changes from chan_dahdi that did not make it into sig_pri.
* Q.SIG channel mapping option.
* discardremoteholdretrieval option.
* libPRI debug defines.
* pri_set_overlapdial() now set correctly.
* pthread creation of pri_ss_thread now matches.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210696
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Wed, 5 Aug 2009 19:40:03 +0000 (19:40 +0000)]
Merged revisions 210575 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r210575 | rmudgett | 2009-08-05 14:18:56 -0500 (Wed, 05 Aug 2009) | 14 lines
Dialplan starts execution before the channel setup is complete.
* Issue 15655: For the case where dialing is complete for an incoming
call, dahdi_new() was asked to start the PBX and then the code set more
channel variables. If the dialplan hungup before these channel variables
got set, asterisk would likely crash.
* Fixed potential for overlap incoming call to erroneously set channel
variables as global dialplan variables if the ast_channel structure failed
to get allocated.
* Added missing set of CALLINGSUBADDR in the dialing is complete case.
(closes issue #15655)
Reported by: alecdavis
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210640
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Leif Madsen [Wed, 5 Aug 2009 18:49:58 +0000 (18:49 +0000)]
Merged revisions 210563 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r210563 | lmadsen | 2009-08-05 13:46:21 -0500 (Wed, 05 Aug 2009) | 11 lines
Update imapstorage.txt documentation.
Updated the imapstorage.txt documentation to reflect that issues with
c-client versions older than 2007 seem to cause crashing issues that
are not seen with more recent versions. Documentation has been updated
to reflect this.
(closes issue #14496)
Reported by: vbcrlfuser
Patches:
__20090727-imap-documentation-patch.txt uploaded by lmadsen (license 10)
Tested by: lmadsen, mmichelson, dbrooks
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210564
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 5 Aug 2009 14:09:24 +0000 (14:09 +0000)]
Revert some silly code that snuck into trunk from my working copy. Sorry!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210522
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Michiel van Baak [Wed, 5 Aug 2009 08:03:36 +0000 (08:03 +0000)]
ignore the .i files when compiling in 'DONT_OPTIMIZE' in the addons/mp3 directory
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210478
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Brooks [Tue, 4 Aug 2009 18:59:36 +0000 (18:59 +0000)]
Blocked revisions 210067 via svnmerge
........
r210067 | dbrooks | 2009-08-03 11:15:20 -0500 (Mon, 03 Aug 2009) | 11 lines
Fixes dialplan wildcard extension taking precedence over call pickup code.
Prior to this patch, a wildcard extension in the dialplan (for example, _*.) would take
precedence over picking up a call in the channel's pickup group. This patch simply moves
the block of code handling pickup group matching to above the extension matching code.
(closes issue #14735)
Reported by: stevedavies
Review: https://reviewboard.asterisk.org/r/319/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210436
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Tue, 4 Aug 2009 17:46:03 +0000 (17:46 +0000)]
Fix CALLERID() values for sig_pri on incoming calls.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210387
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Tue, 4 Aug 2009 16:36:41 +0000 (16:36 +0000)]
Initial minimum ast_party_caller support.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210354
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Tue, 4 Aug 2009 16:36:03 +0000 (16:36 +0000)]
Removed some dead code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210353
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Tue, 4 Aug 2009 15:35:49 +0000 (15:35 +0000)]
Fix broken call pickup
The find_channel_by_group callback was only looking at the channel that was
attempting to make the pickup instead of the other channels in the container.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210302
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 4 Aug 2009 14:53:00 +0000 (14:53 +0000)]
Merged revisions 210237 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r210237 | kpfleming | 2009-08-04 09:51:39 -0500 (Tue, 04 Aug 2009) | 10 lines
Eliminate spurious compiler warnings from system headers on *BSD platforms.
Ensure that system headers located in /usr/local/include are actually treated
as system headers by the compiler, and not as local headers which are subject
to warnings from the -Wundef compiler option and others.
(closes issue #15606)
Reported by: mvanbaak
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210238
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Mon, 3 Aug 2009 20:48:48 +0000 (20:48 +0000)]
Rename 'canreinvite' option to 'directmedia', with backwards compatibility.
It is clear from multiple mailing list, forum, wiki and other sorts of posts
that users don't really understand the effects that the 'canreinvite' config
option actually has, and that in some cases they think that setting it to 'no'
will actually cause various other features (T.38, MOH, etc.) to not work properly,
when in fact this is not the case. This patch changes the proper name of the
option to what it should have been from the beginning ('directmedia'), but
preserves backwards compatibility for existing configurations.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210190
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Mon, 3 Aug 2009 18:05:46 +0000 (18:05 +0000)]
Changes from chan_dahdi that did not make it into sig_pri.
* Moved SUPPORT_USERUSER to sig_pri.c
* Fix PRI_DEADLOCK_AVOIDANCE parameter.
* Whitespace changes.
* Added missing unlock in pri_dchannel():PRI_EVENT_RING case.
* Balanced curly braces.
* ast_debug/ast_log changes from chan_dahdi.
* sig_pri_indicate() should default to return -1 if the indication is not
handled.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210154
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Richard Mudgett [Mon, 3 Aug 2009 16:24:13 +0000 (16:24 +0000)]
Trim trailing whitespace.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210094
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Mon, 3 Aug 2009 16:16:40 +0000 (16:16 +0000)]
Blocked revisions 210064-210066 via svnmerge
........
r210064 | tilghman | 2009-08-03 10:39:41 -0500 (Mon, 03 Aug 2009) | 4 lines
Apparently, some platforms don't have the index() function.
(closes issue #15639)
Reported by: nmav
........
r210065 | tilghman | 2009-08-03 10:42:10 -0500 (Mon, 03 Aug 2009) | 3 lines
Helps if we export the index() function.
(Related to issue #15639)
........
r210066 | tilghman | 2009-08-03 11:11:29 -0500 (Mon, 03 Aug 2009) | 3 lines
Reverting index() fix, applying a different methodology, based upon developer discussions.
(related to issue #15639)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210068
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 3 Aug 2009 14:29:17 +0000 (14:29 +0000)]
Fix order and redundancy of channel rename manager events in ast_do_masquerade.
Patch contributed by Mark Spencer.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@210027
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Mon, 3 Aug 2009 14:01:39 +0000 (14:01 +0000)]
Add an 'sms' option to mobile.conf to manually enable or disable SMS support.
(closes issue #15071)
Reported by: ughnz
Patches:
optional-sms1.diff uploaded by mnicholson (license 96)
Tested by: ughnz, mnicholson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209993
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Bradley Latus [Sat, 1 Aug 2009 23:33:31 +0000 (23:33 +0000)]
Update documentation in relation to UnixODBC
(closes issue #15516)
Reported by: snuffy
Patches:
bug_odbc_tex_update_v2.diff uploaded by snuffy (license 35)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209959
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Bradley Latus [Sat, 1 Aug 2009 23:25:16 +0000 (23:25 +0000)]
(closes issue #15515)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209958
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sat, 1 Aug 2009 11:29:25 +0000 (11:29 +0000)]
Merged revisions 209879 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r209879 | russell | 2009-08-01 06:27:25 -0500 (Sat, 01 Aug 2009) | 5 lines
Resolve a valgrind warning about a read from uninitialized memory.
(issue #15396)
Reported by: aragon
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209887
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sat, 1 Aug 2009 11:02:07 +0000 (11:02 +0000)]
Merged revisions 209838 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r209838 | russell | 2009-08-01 05:59:05 -0500 (Sat, 01 Aug 2009) | 13 lines
Modify how Playtones() is used in Milliwatt() to resolve gain issue.
When Milliwatt() was changed internally to use Playtones() so that the proper
tone was used, it introduced a drop in gain in the output signal. So, use
the playtones API directly and specify a volume argument such that the output
matches the gain of the original Milliwatt() code.
(closes issue #15386)
Reported by: rue_mohr
Patches:
issue_15386.rev2.diff uploaded by russell (license 2)
Tested by: rue_mohr
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209839
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sat, 1 Aug 2009 10:43:40 +0000 (10:43 +0000)]
Fix ast_event_queue_and_cache() to actually do the cache() part.
(closes issue #15624)
Reported by: ffossard
Tested by: russell
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209835
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Sat, 1 Aug 2009 01:04:06 +0000 (01:04 +0000)]
Revert accidental Makefile change.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209761
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Sat, 1 Aug 2009 01:03:07 +0000 (01:03 +0000)]
Merged revisions 209759 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r209759 | kpfleming | 2009-07-31 19:52:00 -0500 (Fri, 31 Jul 2009) | 7 lines
Minor changes inspired by testing with latest GCC.
The latest GCC (what will become 4.5.x) has a few new warnings, that in these
cases found some either downright buggy code, or at least seriously poorly
designed code that could be improved.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209760
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 31 Jul 2009 21:53:31 +0000 (21:53 +0000)]
Fix some places where ast_event_type was used instead of ast_event_ie_type.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209711
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 31 Jul 2009 17:57:00 +0000 (17:57 +0000)]
Add configuration sample code for previous commit.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209674
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 31 Jul 2009 17:55:44 +0000 (17:55 +0000)]
Improve chan_sip's ability to determine what methods should and should not be used in a dialog.
The previous effort here was to store what a peer is capable of receiving by parsing REGISTER
requests from the peer and keeping that information for as long as the registration was active.
The problem with this is that there are a great number of SIP devices which give no indication
of the methods allowed in their REGISTER requests, and it is unreasonable to try to guess what
the device may or may not support. In addition, some SIP devices have been found to claim support
for a specific method, but their handling the method is less than ideal, or they are actually
lying.
With this patch, we now determine what methods a device supports by parsing the Allow header we
receive from them, and we do this with each new dialog. In addition, a configuration option has
been added so that an administrator can essentially blacklist certain methods from being used
with certain peers if the admin knows that support for a specific method is dodgy or nonexistent.
ABE-1822
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209673
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Thu, 30 Jul 2009 23:37:31 +0000 (23:37 +0000)]
Allow passing 'noisy' to configure's --enable-dev-mode argument to turn on verbose builds.
(closes issue #15607)
Reported by: mvanbaak
Patches:
20090730_issue15607.patch uploaded by seanbright (license 71)
Tested by: seanbright
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209623
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Thu, 30 Jul 2009 23:31:41 +0000 (23:31 +0000)]
Add missing ifdef-s for service maintenance message functionality
(closes issue #15614)
Reported by: fabled
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209619
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Brooks [Thu, 30 Jul 2009 16:07:05 +0000 (16:07 +0000)]
Fixes numerous spelling errors. Patch submitted by alecdavis.
(closes issue #15595)
Reported by: alecdavis
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209554
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 30 Jul 2009 14:38:21 +0000 (14:38 +0000)]
Fix a crash that can result if text codecs are allowed but textsupport is disabled.
(closes issue #15596)
Reported by: fabled
Patches:
sip-red.patch uploaded by fabled (license 448)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209516
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Wed, 29 Jul 2009 21:46:17 +0000 (21:46 +0000)]
This patch adds the ability to send a CUSD command to a bluetooth device.
(closes issue #15278)
Reported by: Artem
Patches:
cusd5.patch uploaded by Artem (license 800)
Tested by: mnicholson, Artem
Review: https://reviewboard.asterisk.org/r/274/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209484
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Matthew Nicholson [Wed, 29 Jul 2009 21:13:42 +0000 (21:13 +0000)]
Fixed a comment for hfp_parse_clip
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209453
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 28 Jul 2009 13:49:46 +0000 (13:49 +0000)]
Define side-effect-safe MIN and MAX macros and remove duplicate definitions from various files.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209400
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 28 Jul 2009 00:20:26 +0000 (00:20 +0000)]
Regex FTL
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209331
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 28 Jul 2009 00:14:12 +0000 (00:14 +0000)]
Merged revisions 209315 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r209315 | tilghman | 2009-07-27 19:12:03 -0500 (Mon, 27 Jul 2009) | 2 lines
Publish French extra sounds
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209317
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Mon, 27 Jul 2009 21:43:36 +0000 (21:43 +0000)]
Cleanup T.38 negotiation changes.
Convert LOG_NOTICE messages about T.38 negotiation in debug level 1 messages,
clean up some looping logic, and correct an improper use of ast_free() for
freeing an ast_frame.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209279
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Mon, 27 Jul 2009 21:21:43 +0000 (21:21 +0000)]
Make T.38 switchover in ReceiveFAX synchronous.
In receive mode, if the channel that ReceiveFAX is running on supports T.38,
we should *always* attempt to switch T.38, rather than listening for an incoming
CNG tone and only triggering on that. The channel may be using a low-bitrate
codec that distorts the CNG tone, the sending FAX endpoint may not send CNG
at all, or there could be a variety of other reasons that we don't detect it,
but in all those cases if T.38 is available we certainly want to use it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209256
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 27 Jul 2009 20:54:54 +0000 (20:54 +0000)]
Gracefully handle malformed RTP text packets.
AST-2009-004
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209235
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 27 Jul 2009 20:11:42 +0000 (20:11 +0000)]
Honor channel's music class when using realtime music on hold.
(closes issue #15051)
Reported by: alexh
Patches:
15051.patch uploaded by mmichelson (license 60)
Tested by: alexh
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209197
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 27 Jul 2009 17:50:04 +0000 (17:50 +0000)]
Merged revisions 209131 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r209131 | mmichelson | 2009-07-27 12:44:06 -0500 (Mon, 27 Jul 2009) | 18 lines
Allow for UDPTL to use only even-numbered ports if desired.
There are some VoIP providers out there that will not accept SDP
offers with odd numbered UDPTL ports. While it is my personal opinion
that these VoIP providers are misinterpreting RFC 2327, it really is
not a big deal to play along with their silly little games. Of course,
since restricting UDPTL ports to only even numbers reduces the range
of available ports by half, so the option to use only even port numbers
is off by default. A user can enable the behavior by setting
use_even_ports=yes in udptl.conf.
(closes issue #15182)
Reported by: CGMChris
Patches:
15182.patch uploaded by mmichelson (license 60)
Tested by: CGMChris
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209132
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Brooks [Mon, 27 Jul 2009 16:33:50 +0000 (16:33 +0000)]
Fixing typos. Replaces "recieved" with "received" and "initilize" with "initialize"
(closes issue #15571)
Reported by: alecdavis
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209098
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Mon, 27 Jul 2009 15:38:59 +0000 (15:38 +0000)]
Restore explicit export of ASTCFLAGS/ASTLDFLAGS and underscore-variants to sub-makes.
During the recent Makefile improvements I made, it seemed the 'make' was
automatically carrying down the ASTCFLAGS/ASTLDFLAGS settings to sub-makes,
so I removed the explict export of them. However, there are some circumstances
where make does this, and some where it does not, so I've brought them back
to ensure they are always exported. I also removed an extraneous double setting
of _ASTLDFLAGS on *BSD platforms.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209056
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Michiel van Baak [Mon, 27 Jul 2009 09:56:49 +0000 (09:56 +0000)]
Blocked revisions 208990 via svnmerge
........
r208990 | mvanbaak | 2009-07-27 11:56:13 +0200 (Mon, 27 Jul 2009) | 5 lines
backport rev 205532 from trunk:
pthread_self returns a pthread_t which is not an unsigned int on all
pthread implementations. Casting it to an unsigned int fixes compiler warnings.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208991
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Mon, 27 Jul 2009 01:20:37 +0000 (01:20 +0000)]
Merged revisions 208923 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r208923 | jpeeler | 2009-07-26 20:18:31 -0500 (Sun, 26 Jul 2009) | 2 lines
Fix logic errors from 208746
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208924
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Michiel van Baak [Sun, 26 Jul 2009 14:00:52 +0000 (14:00 +0000)]
add OpenBSD to the install_prereq script
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208886
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Michiel van Baak [Sat, 25 Jul 2009 12:28:38 +0000 (12:28 +0000)]
libxml2-dev is needed as well by default.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208848
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Michiel van Baak [Sat, 25 Jul 2009 12:03:25 +0000 (12:03 +0000)]
add default alias reload to run module reload.
Requiring 'module reload' to reload everything, including
core etc makes russell very unhappy.
The default configuration already loads the 'friendly' aliases template.
Added 'reload=module reload' to that template.
Also removed the comment in main/cli.c that reload should come back.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208813
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Sat, 25 Jul 2009 06:23:18 +0000 (06:23 +0000)]
Merged revisions 208746 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r208746 | jpeeler | 2009-07-25 01:19:50 -0500 (Sat, 25 Jul 2009) | 7 lines
Fix compiling under dev-mode with gcc 4.4.0.
Mostly trivial changes, but I did not know of any other way to fix the
"dereferencing type-punned pointer will break strict-aliasing rules" error
without creating a tmp variable in chan_skinny.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208749
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 24 Jul 2009 21:12:43 +0000 (21:12 +0000)]
Remove trailing whitespace.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208709
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 24 Jul 2009 20:54:37 +0000 (20:54 +0000)]
Note that "reload" needs to be added back.
I keep getting annoyed at having to type "module reload" to reload everything,
so I'm adding a note that we need to add "reload" back. "module reload" doesn't
really make sense as the command to reload everything, including the core.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208706
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 24 Jul 2009 20:25:23 +0000 (20:25 +0000)]
Don't log a warning for something that does not affect operation.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208693
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 24 Jul 2009 19:26:26 +0000 (19:26 +0000)]
Blocked revisions 208622 via svnmerge
........
r208622 | mmichelson | 2009-07-24 14:24:28 -0500 (Fri, 24 Jul 2009) | 16 lines
Don't impose an arbitrary limit on member lines in queues.conf
I know what some of you are thinking: "UGH! Mark, why are you using
ast_strdup and ast_free for the string when you can just use ast_strdupa
and let the memory free itself?! Have the bats been chewing on your brain
again?"
Based on past experiences, I don't like using ast_strdupa inside a loop.
It's a good way to potentially exhaust stack space. Also, since this only
happens when reloading queues, I don't think that heap allocations and
frees are going to be a huge problem.
(closes issue #15559)
Reported by: amorsen
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208630
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 24 Jul 2009 18:42:32 +0000 (18:42 +0000)]
Merged revisions 208592 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r208592 | russell | 2009-07-24 13:38:24 -0500 (Fri, 24 Jul 2009) | 7 lines
Do not log an ERROR if autoservice_stop() returns -1.
This does not indicate an error. A return of -1 just means that the channel
has been hung up.
(reported in #asterisk-dev)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208593
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 24 Jul 2009 18:31:04 +0000 (18:31 +0000)]
Merged revisions 208587 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r208587 | mmichelson | 2009-07-24 13:26:50 -0500 (Fri, 24 Jul 2009) | 10 lines
Only send a BYE when hanging up a channel that is up.
For cases where Asterisk sends an INVITE and receives a non 2XX final
response, Asterisk would follow the INVITE transaction by immediately
sending a BYE, which was unnecessary.
(closes issue #14575)
Reported by: chris-mac
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208588
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Fri, 24 Jul 2009 15:02:53 +0000 (15:02 +0000)]
Resolve a T.38 negotiation issue left over from the udptl-updates merge.
The udptl-updates branch that was merged yesterday failed to properly send back
T.38 SDP responses with the correct error correction mode, if the incoming SDP
from the other end caused us to change error correction modes. This patch
corrects that situation.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208548
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Michiel van Baak [Fri, 24 Jul 2009 14:35:49 +0000 (14:35 +0000)]
use aptitude for debian based systems
The function to check wether we need to install packages was using
dpkg-query which was gives wrong output on Debian 5
Also, the apt-get has been replaced with aptitude because aptitude
is now the preferred way to handle packages on Debian
(closes issue #15570)
Reported by: mvanbaak
Patches:
2009072400_installprereq-aptitude.diff uploaded by mvanbaak (license 7)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208542
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Thu, 23 Jul 2009 22:32:52 +0000 (22:32 +0000)]
T.38 change note is not necessary in this branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208504
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Thu, 23 Jul 2009 21:57:24 +0000 (21:57 +0000)]
Rework of T.38 negotiation and UDPTL API to address interoperability problems
Over the past couple of months, a number of issues with Asterisk
negotiating (and successfully completing) T.38 sessions with various
endpoints have been found. This patch attempts to address many of
them, primarily focused around ensuring that the endpoints'
MaxDatagram size is honored, and in addition by ensuring that T.38
session parameter negotiation is performed correctly according to the
ITU T.38 Recommendation.
The major changes here are:
1) T.38 applications in Asterisk (app_fax) only generate/receive IFP
packets, they do not ever work with UDPTL packets. As a result of
this, they cannot be allowed to generate packets that would overflow
the other endpoints' MaxDatagram size after the UDPTL stack adds any
error correction information. With this patch, the application is told
the maximum *IFP* size it can generate, based on a calculation using
the far end MaxDatagram size and the active error correction mode on
the T.38 session. The same is true for sending *our* MaxDatagram size
to the remote endpoint; it is computed from the value that the
application says it can accept (for a single IFP packet) combined with
the active error correction mode.
2) All treatment of T.38 session parameters as 'capabilities' in
chan_sip has been removed; these parameters are not at all like
audio/video stream capabilities. There are strict rules to follow for
computing an answer to a T.38 offer, and chan_sip now follows those
rules, using the desired parameters from the application (or channel)
that wants to accept the T.38 negotiation.
3) chan_sip now stores and forwards ast_control_t38_parameters
structures for tracking 'our' and 'their' T.38 session parameters;
this greatly simplifies negotiation, especially for pass-through
calls.
4) Since T.38 negotiation without specifying parameters or receiving
the final negotiated parameters is not very worthwhile, the
AST_CONTROL_T38 control frame has been removed. A note has been added
to UPGRADE.txt about this removal, since any out-of-tree applications
that use it will no longer function properly until they are upgraded
to use AST_CONTROL_T38_PARAMETERS.
Review: https://reviewboard.asterisk.org/r/310/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208464
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 23 Jul 2009 19:34:49 +0000 (19:34 +0000)]
Merged revisions 208386 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r208386 | mmichelson | 2009-07-23 14:24:21 -0500 (Thu, 23 Jul 2009) | 17 lines
Fix a problem where a 491 response could be sent out of dialog.
This generalizes the fix for issue 13849. The initial fix corrected the
problem that Asterisk would reply with a 491 if a reinvite were received
from an endpoint and we had not yet received an ACK from that endpoint
for the initial INVITE it had sent us. This expansion also allows Asterisk
to appropriately handle an INVITE with authorization credentials if Asterisk
had not received an ACK from the previous transaction in which Asterisk had
responded to an unauthorized INVITE with a 407.
(closes issue #14239)
Reported by: klaus3000
Patches:
14239.patch uploaded by mmichelson (license 60)
Tested by: klaus3000
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208388
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Thu, 23 Jul 2009 19:21:50 +0000 (19:21 +0000)]
Merged revisions 208380 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r208380 | jpeeler | 2009-07-23 14:19:53 -0500 (Thu, 23 Jul 2009) | 6 lines
Only set the priindication setting when not performing a reload
(closes issue #14696)
Reported by: fdecher
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208383
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 23 Jul 2009 16:29:37 +0000 (16:29 +0000)]
Merged revisions 208312 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r208312 | mmichelson | 2009-07-23 11:29:18 -0500 (Thu, 23 Jul 2009) | 3 lines
Remove inaccurate XXX comment.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208314
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Thu, 23 Jul 2009 15:59:44 +0000 (15:59 +0000)]
Fix sending of interface identifier unconditionally in sig_pri
The wrong logic was being used in chan_dahdi to convert a sig_pri_chan
to the proper libpri channel number. The most significant bit must only
be set only when trunk groups are being used.
(closes issue #15452)
Reported by: alecdavis
Patches:
bug15452.patch uploaded by jpeeler (license 325)
Tested by: alecdavis
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208267
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 23 Jul 2009 15:46:34 +0000 (15:46 +0000)]
Merged revisions 208262 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r208262 | mmichelson | 2009-07-23 10:43:07 -0500 (Thu, 23 Jul 2009) | 8 lines
Properly handle 183 responses which do not contain an SDP.
(closes issue #15442)
Reported by: ffloimair
Patches:
15442.patch uploaded by mmichelson (license 60)
Tested by: tkarl, ffloimair
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208263
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 23 Jul 2009 14:46:53 +0000 (14:46 +0000)]
Fix potential crash if p->owner is NULL.
Problem was observed when a call-forwarding loop was accidentally
configured.
ABE-1906
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208229
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 23 Jul 2009 01:31:18 +0000 (01:31 +0000)]
Resolve compiler warning on mac.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208193
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Wed, 22 Jul 2009 22:42:33 +0000 (22:42 +0000)]
Reset the fax buffers back to default settings regardless of signaling in use -
Pointed out by Matt F.
Also in the case of not using a signaling module, set the law back to the
default as well.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208155
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 22 Jul 2009 22:35:57 +0000 (22:35 +0000)]
Merged revisions 208083 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r208083 | tilghman | 2009-07-22 15:23:53 -0500 (Wed, 22 Jul 2009) | 4 lines
Export symbols for functions included in our compatibility headers.
(closes issue #15556)
Reported by: smw1218
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208151
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Wed, 22 Jul 2009 21:43:57 +0000 (21:43 +0000)]
Restore an int declaration on PPC platforms.
This x is one crafty little bugger...
It was used for 2 different things (one of which was only done on PPC) in 1.4.
One of the uses were removed in trunk, and with it went the declaration.
(closes issue #14038)
Reported by: ffloimair
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208113
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 22 Jul 2009 16:49:42 +0000 (16:49 +0000)]
Clarify documentation on 'realtime update2' to show more than one condition.
(closes issue #15357)
Reported by: snuffy
Patches:
bug_fix_doc_update2.diff uploaded by snuffy (license 35)
(slightly modified by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208052
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 22 Jul 2009 14:35:49 +0000 (14:35 +0000)]
Remove trailing whitespace.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208018
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Wed, 22 Jul 2009 14:35:01 +0000 (14:35 +0000)]
Fix the crash in directed pickups. For real this time.
A shallow pointer copy was causing an ast_party_connected_line
structure to be freed multiple times, thus causing a crash.
(closes issue #15441)
Reported by: lmsteffan
Patches:
15441.patch uploaded by mmichelson (license 60)
Tested by: lmsteffan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208017
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Tue, 21 Jul 2009 22:51:47 +0000 (22:51 +0000)]
Do not dial digits when none were specified for sig_pri based calls
(closes issue #15524)
Reported by: elguero
Patches:
pri-sig-no-dest-set.patch uploaded by elguero (license 37)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207950
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 21 Jul 2009 22:45:32 +0000 (22:45 +0000)]
Merged revisions 207945 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r207945 | tilghman | 2009-07-21 17:38:54 -0500 (Tue, 21 Jul 2009) | 8 lines
Force an error if a blank is passed to QUOTE (because the documentation states the argument is not optional).
This change makes URIENCODE and QUOTE behave similarly, since the documentation
states that the argument is not optional, for both.
(closes issue #15439)
Reported by: pkempgen
Patches:
20090706__issue15439.diff.txt uploaded by tilghman (license 14)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207946
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Tue, 21 Jul 2009 22:24:56 +0000 (22:24 +0000)]
whitespace fix only
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207934
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 21 Jul 2009 22:22:18 +0000 (22:22 +0000)]
Note that we use tabs instead of spaces for indentation.
I'm surprised this was never actually in here...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207925
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Tue, 21 Jul 2009 22:02:25 +0000 (22:02 +0000)]
Fix my_is_off_hook to check rxbits only for FXS signaling
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207902
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Tue, 21 Jul 2009 20:26:02 +0000 (20:26 +0000)]
Merged revisions 207827 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r207827 | jpeeler | 2009-07-21 15:16:55 -0500 (Tue, 21 Jul 2009) | 9 lines
Wait for wink before dialing when using E&M wink signaling
There was already code for other signaling types in dahdi_handle_event to
handle dialing if a dial operation dial string was present. Simply add
SIG_EMWINK to the list.
(closes issue #14434)
Reported by: araasch
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207854
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 21 Jul 2009 14:29:40 +0000 (14:29 +0000)]
Merged revisions 207714 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r207714 | mmichelson | 2009-07-21 09:26:00 -0500 (Tue, 21 Jul 2009) | 5 lines
Document default timeout for AMI originations.
AST-224
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207723
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 21 Jul 2009 13:28:04 +0000 (13:28 +0000)]
Merged revisions 207647 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r207647 | kpfleming | 2009-07-21 08:04:44 -0500 (Tue, 21 Jul 2009) | 12 lines
Ensure that user-provided CFLAGS and LDFLAGS are honored.
This commit changes the build system so that user-provided flags (in ASTCFLAGS
and ASTLDFLAGS) are supplied to the compiler/linker *after* all flags provided
by the build system itself, so that the user can effectively override the
build system's flags if desired. In addition, ASTCFLAGS and ASTLDFLAGS can now
be provided *either* in the environment before running 'make', or as variable
assignments on the 'make' command line. As a result, the use of COPTS and LDOPTS
is no longer necessary, so they are no longer documented, but are still supported
so as not to break existing build systems that supply them when building Asterisk.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207680
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Mon, 20 Jul 2009 23:31:36 +0000 (23:31 +0000)]
Blocked revisions 207573 via svnmerge
........
r207573 | jpeeler | 2009-07-20 18:23:18 -0500 (Mon, 20 Jul 2009) | 10 lines
Wait for wink before dialing when using E&M wink signaling
This patch adds a new dahdi_wait function to specifically wait for the wink
event. If the wink is not eventually received the channel is hung up.
(closes issue #14434)
Reported by: araasch
Patches:
emwinkmod uploaded by araasch (license 693)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207599
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 20 Jul 2009 23:08:56 +0000 (23:08 +0000)]
Okay, that didn't fix the crash. It didn't really do anything useful.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207551
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 20 Jul 2009 22:13:34 +0000 (22:13 +0000)]
Initialize connected line instance when doing a directed pickup.
This helps to prevent a crash which may occur due to our freeing
garbage due to a struct being uninitialized.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207522
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
David Vossel [Mon, 20 Jul 2009 20:45:26 +0000 (20:45 +0000)]
reg->username is parsed only once on sip reload
The registration string can contain an expanded user portion of the
form user@domain. This expanded user portion was stored in
reg->username and parsed each time there is a registration refresh.
Now, the domain portion of the user is parsed and stored separately
in the regdomain field.
(closes issue #14331)
Reported by: Nick_Lewis
Patches:
chan_sip.c.domainparse3.patch uploaded by Nick (license 657)
Tested by: Nick_Lewis, dvossel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207484
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 20 Jul 2009 19:48:12 +0000 (19:48 +0000)]
Merged revisions 207423 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r207423 | mmichelson | 2009-07-20 14:39:59 -0500 (Mon, 20 Jul 2009) | 33 lines
Answer video SDP offers properly when videosupport is not enabled.
Copied from Review board:
In issue 12434, the reporter describes a situation in which audio and video
is offered on the call, but because videosupport is disabled in sip.conf,
Asterisk gives no response at all to the video offer. According to RFC 3264,
all media offers should have a corresponding answer. For offers we do not
intend to actually reply to with meaningful values, we should still reply
with the port for the media stream set to 0.
In this patch, we take note of what types of media have been offered and
save the information on the sip_pvt. The SDP in the response will take into
account whether media was offered. If we are not otherwise going to answer
a media offer, we will insert an appropriate m= line with the port set to 0.
It is important to note that this patch is pretty much a bandage being
applied to a broken bone. The patch *only* helps for situations where video
is offered but videosupport is disabled and when udptl_pt is disabled but
T.38 is offered. Asterisk is not guaranteed to respond to every media offer.
Notable cases are when multiple streams of the same type are offered.
The 2 media stream limit is still present with this patch, too.
In trunk and the 1.6.X branches, things will be a bit different since Asterisk
also supports text in SDPs as well.
(closes issue #12434)
Reported by: mnnojd
Review: https://reviewboard.asterisk.org/r/311
Review: https://reviewboard.asterisk.org/r/313
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207424
65c4cc65-6c06-0410-ace0-
fbb531ad65f3