Commit Graph

20309 Commits

Author SHA1 Message Date
David Vossel
df89f8da6a Merged revisions 279946 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r279946 | dvossel | 2010-07-27 15:54:32 -0500 (Tue, 27 Jul 2010) | 24 lines
  
  Merged revisions 279945 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r279945 | dvossel | 2010-07-27 15:33:40 -0500 (Tue, 27 Jul 2010) | 19 lines
    
    remove empty audiohook write list on channel
    
    If a channel has an audiohook write list created on it, that
    list stays on the channel until the channel is destroyed.  There
    is no reason to keep that list on the channel if it becomes empty.
    If it is empty that just means we are doing needless translating
    for every ast_read and ast_write.  This patch removes the audiohook
    list from the channel once it is detected to be empty on either a
    read or write.  If a audiohook is added back to the channel after
    this list is destroyed, the list just gets recreated as if it never
    existed to begin with.
    
    (closes issue #17630)
    Reported by: manvirr
    
    Review: https://reviewboard.asterisk.org/r/799/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 20:57:00 +00:00
Russell Bryant
e7b5069c9f Fix inband DTMF detection on outgoing ISDN calls.
This is a regression from the sig_pri split from chan_dahdi.  When a call is
first initiated, the inband DTMF detector is not enabled if it's an outgoing
ISDN call.  However, it needs to be turned on once the media path starts up.
This handling was put back in the open_media() callback of chan_dahdi.  In
sig_pri, open_media() calls were added to a few places where it was needed,
including handling of PRI_EVENT_RINGING, PRI_EVENT_PROGRESS, and
PRI_EVENT_PROCEEDING.

Thanks to rmudgett for helping me with the patch!


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 19:50:56 +00:00
Mark Michelson
cbba00f5d0 Fix parsing error in sip_sipredirect().
The code was written in a way that did a bad job of
parsing the port out of a URI. Specifically, it would
do badly when dealing with an IPv6 address. In this
particular scenario, there was no value from parsing
the port out, so I just removed that logic. And while
I was messing around in the function, I changed some
variable names to be more descriptive.

(closes issue #17661)
Reported by: oej
Patches: 
      17661.diff uploaded by mmichelson (license 60)



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 18:54:07 +00:00
Jason Parker
2756d814e3 Blocked revisions 279883 via svnmerge
........
  r279883 | qwell | 2010-07-27 12:54:54 -0500 (Tue, 27 Jul 2010) | 1 line
  
  Add SHA1SUM to configure, since we require it for sounds/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 17:55:24 +00:00
Jason Parker
c32904b278 Blocked revisions 279852 via svnmerge
........
  r279852 | qwell | 2010-07-27 11:48:41 -0500 (Tue, 27 Jul 2010) | 1 line
  
  Remove aptly-named EMPTY and BS vars, since they aren't used anymore.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 16:48:58 +00:00
Jason Parker
a5d00fd4b2 Merged revisions 279849 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r279849 | qwell | 2010-07-27 11:39:16 -0500 (Tue, 27 Jul 2010) | 1 line
  
  Simply sounds/Makefile some more.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 16:40:05 +00:00
David Vossel
ab374d0446 fix sip transaction match with authentication, fix confusing log message when using getaddrinfo
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 16:09:15 +00:00
Russell Bryant
ccfad47983 Support "channels" in addition to "channel" in chan_dahdi.conf.
Review: https://reviewboard.asterisk.org/r/804


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 16:06:58 +00:00
Mark Michelson
62330bc1c2 Merged revisions 279784 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r279784 | mmichelson | 2010-07-27 10:13:24 -0500 (Tue, 27 Jul 2010) | 14 lines
  
  Fix bad behavior of dynamic_exclude_static option in sip.conf.
  
  We were attempting to create a contactdeny rule based on the peer's
  IP address before the peer's IP address had been set. By moving the
  processing further down in the function, we can ensure stuff works
  as we expect for it to.
  
  (closes issue #17717)
  Reported by: mmichelson
  Patches: 
        17717.patch uploaded by mmichelson (license 60)
  Tested by: DennisD
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 15:15:22 +00:00
Paul Belanger
cd034c3dfc If dringXcontext is null, fallback to default context value.
(closes issue #17693)
Reported by: iasgoscouk
Patches:
      issue17693.patch uploaded by pabelanger (license 224)
Tested by: iasgoscouk

Review: https://reviewboard.asterisk.org/r/803/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 02:57:33 +00:00
Paul Belanger
9f553c797e Use ast_sockaddr_setnull() when http is not enabled.
Otherwise, ast_tcptls_server_start() will still start http. 

(closes issue #17708)
Reported by: pabelanger
Patches:
      http.patch uploaded by pabelanger (license 224)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 01:53:38 +00:00
Paul Belanger
78ba97ffdf Updated documentation for FAX logger level.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 23:29:34 +00:00
Jason Parker
a4f4f7443b Merged revisions 279657 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r279657 | qwell | 2010-07-26 17:59:52 -0500 (Mon, 26 Jul 2010) | 5 lines
  
  Really fix sounds Makefile (and make it readableish).
  
  There was a rather large syntax error that should have caused ALL versions of GNU make to fail.
  I don't know how it worked.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 23:03:38 +00:00
Russell Bryant
d3700923db Ignore a control subclass of -1 in ast_waitfordigit_full().
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 21:53:30 +00:00
Tilghman Lesher
7bcfc2988d Merged revisions 279609 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r279609 | tilghman | 2010-07-26 16:18:17 -0500 (Mon, 26 Jul 2010) | 2 lines
  
  Dunno why this worked on my machine, but it works better this way.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 21:20:12 +00:00
Tilghman Lesher
76b698626c Merged revisions 279597 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r279597 | ghenry | 2010-07-26 15:25:54 -0500 (Mon, 26 Jul 2010) | 13 lines
  
  Apply all patches in:
  
  https://issues.asterisk.org/view.php?id=13573
  
  (closes issue #13573)
  Reported by: navkumar
  Patches: 
        res_config_ldap-category.diff uploaded by navkumar (license 580)
        res_config_ldap.patch uploaded by bencer (license 961)
        res_config_ldap uploaded by bencer (license 961)
  Tested by: suretec
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 21:07:45 +00:00
Tilghman Lesher
9398b86548 Reverting property remove
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279599 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 21:03:48 +00:00
Gavin Henry
be1fccf9c8 Merged revisions 279597 via svnmerge from
https://origsvn.digium.com/svn/asterisk/1.6.2

-----------------------------------------------------------------------
r279597 | ghenry | 2010-07-26 15:25:53 -0500 (Mon, 26 Jul 2010) | 13 lines

Apply all patches in:

https://issues.asterisk.org/view.php?id=13573 [^]

(closes issue 0013573)
Reported by: navkumar
Patches: 
      res_config_ldap-category.diff uploaded by navkumar (license 580)
      res_config_ldap.patch uploaded by bencer (license 961)
      res_config_ldap uploaded by bencer (license 961)
Tested by: suretec


------------------------------------------------------------------------


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279598 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 20:58:12 +00:00
David Vossel
610151af27 transaction matching using top most Via header
This patch modifies the way chan_sip.c does transaction to dialog
matching.  Asterisk now stores information in the top most Via header
of the initial incoming request and compares that against other Requests
that have the same call-id.  This results in Asterisk being able to
detect a forked call in which it has received multiple legs of the
fork.  I completely stripped out the previous matching code and made
the comparisons a little more explicit and easier to understand.  My
comments in the code should offer all the details involving this patch.  

This patch also fixes a bug with the usage of the OBJ-MULTIPLE flag to
find multiple dialogs with the same call-id.  Since the callback
function was returning (CMP_MATCH | CMP_STOP) only the first item
found was being returned.  I fixed this by making a new callback
function for finding multiple dialogs that only returns (CMP_MATCH)
on a match allowing for multiple items to be returned.

Review: https://reviewboard.asterisk.org/r/776/



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 19:59:03 +00:00
Paul Belanger
c9b697f67d Add documentation for FAX logger level.
(closes issue #17715)
Reported by: vrban
Patches:
      17715.patch uploaded by pabelanger (license 224)
Tested by: vrban


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 19:51:39 +00:00
Tilghman Lesher
585d4c3440 Merged revisions 279561 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r279561 | tilghman | 2010-07-26 14:15:59 -0500 (Mon, 26 Jul 2010) | 2 lines
  
  Use a special Makefile for noobs who still have GNU Make 3.80.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 19:18:26 +00:00
Mark Michelson
bc3b185063 Allow for systems without locale support to be usable.
A recent change to SIP URI comparison code added a locale-specific
string comparison to the mix, and certain systems do not support
such functions. This fix allows for those systems to still use
Asterisk 1.8

(closes issue #17697)
Reported by: pprindeville
Patches: 
      asterisk-trunk-bugid17697.patch uploaded by pprindeville (license 347)
Tested by: mmichelson



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 16:04:09 +00:00
Sean Bright
0e4e52348f Merged revisions 279501 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r279501 | seanbright | 2010-07-26 11:41:13 -0400 (Mon, 26 Jul 2010) | 5 lines
  
  Expand the correct value within AST_OPTION_ONLY.
  
  (closes issue #17703)
  Reported by: stuarth
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 15:43:54 +00:00
Tilghman Lesher
6fba8e4fff Formats need to load before apps, because some apps call ast_format_str_reduce() at load time.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 03:27:06 +00:00
Paul Belanger
ed9eb98e77 Add trailing backslash to silence warning message.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-25 21:26:42 +00:00
Tilghman Lesher
927130f81f Don't re-register CDR module on reload.
(closes issue #17304)
 Reported by: jnemeth
 Patches: 
       20100507__issue17304.diff.txt uploaded by tilghman (license 14)
 Tested by: jnemeth


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-25 18:21:27 +00:00
Tilghman Lesher
a3cb74fcd4 Don't assume qlog is open.
(closes issue #17704)
 Reported by: vrban
 Patches: 
       issue17704.patch uploaded by pabelanger (license 224)
 Tested by: vrban


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-25 17:32:21 +00:00
Bradley Latus
311c45216a Minor update to man page
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-24 23:58:57 +00:00
Paul Belanger
30e393c645 Remove duplicate -c flag when using $(INSTALL)
(closes issue #17695)
Reported by: pabelanger
Patches:
      Makefile.diff uploaded by pabelanger (license 224)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-24 20:47:52 +00:00
Paul Belanger
e0557f853e Check if ast_sockaddr is NULL then return.
(closes issue #17677)
Reported by: outcast
Patches:
      issue0017677.patch uploaded by pabelanger (license 224)
Tested by: elguero


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-24 18:18:43 +00:00
Paul Belanger
16921385e3 Default sin_family to AF_INET for TCP / TLS Bindaddress.
Otherwise, 'manager show settings' will generate errors
if manager is not enabled.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-24 17:36:42 +00:00
Richard Mudgett
6341d1b2ad Merged revisions 279207 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r279207 | rmudgett | 2010-07-23 17:11:23 -0500 (Fri, 23 Jul 2010) | 14 lines
  
  Merged revisions 279206 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r279206 | rmudgett | 2010-07-23 16:56:44 -0500 (Fri, 23 Jul 2010) | 7 lines
    
    SIP promiscuous redirect could fail to dial the redirect.
    
    The ast_channel was created with one variable to ast_request() but the
    call to ast_call() that initiates the outgoing call was using a different
    variable.  The two variables are not equivalent if the call_forward string
    included a channel technology specifier.  e.g., SIP/200
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 22:20:47 +00:00
Tilghman Lesher
a2d1082065 Silly 64-bit compilers (who uses 64-bit anyway?)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 18:56:04 +00:00
Russell Bryant
371c5ed5c2 fix up properties on 1.8 branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279094 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 18:23:31 +00:00
Russell Bryant
ba1e5d1e00 Create a branch for Asterisk 1.8.
___      _            _     _      _   ___
 / _ \ ___| |_ ___ _ __(_)___| | __ / | ( _ )
| |_| / __| __/ _ \ '__| / __| |/ / | | / _ \
|  _  \__ \ ||  __/ |  | \__ \   <  | || (_) |
|_| |_|___/\__\___|_|  |_|___/_|\_\ |_(_)___/



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 18:10:58 +00:00
Russell Bryant
2707e1ccd2 Create a branch for Asterisk 1.8.
___      _            _     _      _   ___
 / _ \ ___| |_ ___ _ __(_)___| | __ / | ( _ )
| |_| / __| __/ _ \ '__| / __| |/ / | | / _ \
|  _  \__ \ ||  __/ |  | \__ \   <  | || (_) |
|_| |_|___/\__\___|_|  |_|___/_|\_\ |_(_)___/



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 18:08:27 +00:00
Tilghman Lesher
f90409101e Merged revisions 278984 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r278984 | tilghman | 2010-07-23 12:04:15 -0500 (Fri, 23 Jul 2010) | 5 lines
  
  Establish a maximum version for openh323 (i.e. not opal), because chan_h323 will fail to load, even if it links.
  
  (issue #17679)
  Reported by: am
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 17:05:16 +00:00
Tilghman Lesher
ec482eac9c Merged revisions 278981 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r278981 | tilghman | 2010-07-23 11:42:25 -0500 (Fri, 23 Jul 2010) | 8 lines
  
  Avoid race with consolethread on shutdown (on parallel processors).
  
  (closes issue #17080)
   Reported by: sybasesql
   Patches: 
         20100721__issue17080.diff.txt uploaded by tilghman (license 14)
   Tested by: sybasesql
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 16:43:34 +00:00
Mark Michelson
d1ad460b3d SIP URI comparison fixes.
This initially was created to work around the issue of
using a string comparison instead of a binary comparison
for IP addresses. It evolved a bit when test cases were
created and it was discovered that comparison of URI
parameters was not working exactly as it should.

sip_uri_cmp() and its helpers have been moved to reqresp_parser.c
and a new test has been added.

(closes issue #17662)
Reported by: oej

Review: https://reviewboard.asterisk.org/r/792



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 16:33:52 +00:00
Tilghman Lesher
3ab0041118 Merge the realtime failover branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 16:19:21 +00:00
Tzafrir Cohen
76c1992f38 Some left-over hyphen-minus fixes in the man page
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 16:07:53 +00:00
Russell Bryant
09206a7db8 ... just kidding. Enable SIP by default. :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 15:57:23 +00:00
Russell Bryant
98f0f3933f Disable SIP support by default for Asterisk 1.8.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 15:57:01 +00:00
Mark Michelson
ffa69fd54d Well, who knew chan_ooh323 used udptl? I sure didn't!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 15:52:37 +00:00
Richard Mudgett
301505c4c4 Rename sig_pri_pri to sig_pri_span. More descriptive of concept.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 15:41:44 +00:00
Mark Michelson
57a92a6a7c Allow IPv6 addresses for UDPTL streams.
Review: https://reviewboard.asterisk.org/r/795



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 15:16:33 +00:00
Olle Johansson
98ad48e5d4 Minor corrections to the LDAP realtime driver
Review: https://reviewboard.asterisk.org/r/798/

Thanks Mark for a quick review!


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 13:37:17 +00:00
Paul Belanger
7d96f2d01e Portability updates for Makefiles.
When possible, use $(INSTALL).  This allows us to use the functionality within
install for setting directory / file permissions, a requirement for unprivileged
installation.

Also move any directory we plan to create within the installdirs macro. Plus
various other formatting issues.

(issue #17436)
Reported by: pabelanger
Patches:
      non-root.patch.v8 uploaded by pabelanger (license 224)
Tested by: pabelanger

Review: https://reviewboard.asterisk.org/r/654/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 13:26:41 +00:00
Alec L Davis
8b3c00a824 missed FXS kewl start polarityswitch when finally on hook.
(issue #17318)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 11:01:14 +00:00
Alec L Davis
85bfe38f2f Support FXS module Polarity Reversal on remote party Answer and Hangup
FXS lines normally connect to a telephone. However, when FXS lines are routed
to an external PBX or Key System to act as "external" or "CO" lines, it is
extremely difficult, if not impossible for the external PBX to know when
the call has been disconnected without receiving a polarity reversal on the line.

Now using answeronpolarityswitch and hanguponpolarityswitch keywords that
previously were used only for FXO ports, now applies like functionality for
an FXS port, but from the connected equipment's point of view.

(closes issue #17318)
Reported by: armeniki
Patches: 
      fxs_linepolarity.diff5.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

Review: https://reviewboard.asterisk.org/r/797/



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-22 23:14:50 +00:00