dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

313 Commits

Author SHA1 Message Date
rmudgett 08f745838d Merged revisions 325935 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r325935 | rmudgett | 2011-06-30 15:39:45 -0500 (Thu, 30 Jun 2011) | 11 lines
  
  Misc minor changes in chan_sip.
  
  * Add load failure exit if primary SIP container(s) could not get created
  in chan_sip.c:load_module().
  
  * Removed a redundant static prototype.
  
  * Some typos.
  
  * Some whitespace.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@325936 f38db490-d61c-443f-a65b-d21fe96a405b
2011-06-30 20:47:44 +00:00
dvossel a0a6f963cb Addition of "outofcall_message_context" sip.conf option.
Review: https://reviewboard.asterisk.org/r/1265/



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@323212 f38db490-d61c-443f-a65b-d21fe96a405b
2011-06-13 19:43:57 +00:00
russell c321368c48 Support routing text messages outside of a call.
Asterisk now has protocol independent support for processing text messages
outside of a call.  Messages are routed through the Asterisk dialplan.
SIP MESSAGE and XMPP are currently supported.  There are options in sip.conf
and jabber.conf that enable these features.

There is a new application, MessageSend().  There are two new functions,
MESSAGE() and MESSAGE_DATA().  Documentation will be available on
the project wiki, wiki.asterisk.org.

Thanks to Terry Wilson for the assistance with development and to David Vossel
for helping with some additional testing.

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@321546 f38db490-d61c-443f-a65b-d21fe96a405b
2011-06-01 21:31:40 +00:00
jrose ef96ee5356 Merged revisions 319938 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r319938 | jrose | 2011-05-20 08:28:24 -0500 (Fri, 20 May 2011) | 12 lines
  
  Adds legacy_useroption_parsing to address interoperability concerns.
  
  With the new option engaged, Asterisk should interpret user fields with useroptions
  contained within the userfield of the uri by stripping them out of the original message
  whenever a semicolon is encountered in the userfield string.
  
  (closes issue #18344)
  Reported by: danimal
  Tested by: jrose
  
  Review: https://reviewboard.asterisk.org/r/1223/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@319939 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-20 13:42:15 +00:00
mnicholson 1c24e78eae Merged revisions 314628 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r314628 | mnicholson | 2011-04-21 13:24:05 -0500 (Thu, 21 Apr 2011) | 27 lines
  
  Merged revisions 314620 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r314620 | mnicholson | 2011-04-21 13:22:19 -0500 (Thu, 21 Apr 2011) | 20 lines
    
    Merged revisions 314607 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r314607 | mnicholson | 2011-04-21 13:19:21 -0500 (Thu, 21 Apr 2011) | 14 lines
      
      Added limits to the number of unauthenticated sessions TCP based protocols are allowed to have open simultaneously.  Also added timeouts for unauthenticated sessions where it made sense to do so.
      
      Unrelated, the manager interface now properly checks if the user has the "system" privilege before executing shell commands via the Originate action. 
      
      AST-2011-005
      AST-2011-006
      
      (closes issue #18787)
      Reported by: kobaz
      
      (related to issue #18996)
      Reported by: tzafrir
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@314666 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-21 18:32:50 +00:00
lmadsen d46f900580 Add 'description' field for CLI and Manager output
(closes issue #19076)
Reported by: lmadsen
Patches: 
      __20110408-channel-description.txt uploaded by lmadsen (license 10)
Tested by: lmadsen

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

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@313528 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-13 15:49:33 +00:00
mmichelson e8ef120f63 Merged revisions 309765 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r309765 | mmichelson | 2011-03-06 18:13:36 -0600 (Sun, 06 Mar 2011) | 3 lines
  
  Indicate that Asterisk uses the Allow header to determine if MESSAGE requests should be sent.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@309766 f38db490-d61c-443f-a65b-d21fe96a405b
2011-03-07 00:14:34 +00:00
twilson f64a32ec78 Merged revisions 308679 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r308679 | twilson | 2011-02-23 21:41:34 -0600 (Wed, 23 Feb 2011) | 15 lines
  
  Merged revisions 308678 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r308678 | twilson | 2011-02-23 21:38:22 -0600 (Wed, 23 Feb 2011) | 8 lines
    
    Use remotesecret to authenticate with a remote party
    
    The remotesecret option was only being used for outbound registration
    and not for placing calls. This patch uses remotesecret on outbound
    calls if it is set, otherwise secret is still used.
    
    Review: https://reviewboard.asterisk.org/r/1107/
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@308680 f38db490-d61c-443f-a65b-d21fe96a405b
2011-02-24 03:49:07 +00:00
lathama 9be7859cd6 Replacing doc/* and asterisk.pdf with wiki links
Adding links to http(s)://wiki.asterisk.org



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@305843 f38db490-d61c-443f-a65b-d21fe96a405b
2011-02-02 19:30:49 +00:00
lathama 25ac5b8990 Replacing doc/* with wiki links
Adding links to http(s)://wiki.asterisk.org



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@305799 f38db490-d61c-443f-a65b-d21fe96a405b
2011-02-02 18:59:29 +00:00
lathama d7508ff959 SIP Configuration Documentation
sip show settings reports qualifyfreq in milliseconds.
sip.conf configures qualifyfreg in seconds. 



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@305650 f38db490-d61c-443f-a65b-d21fe96a405b
2011-02-01 21:16:31 +00:00
qwell e1cff4ff5a Merged revisions 305247 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r305247 | qwell | 2011-01-31 16:25:23 -0600 (Mon, 31 Jan 2011) | 7 lines
  
  Add alternative name for config option.
  
  The SIP sample configuration had "tlscadir" as the option name, but chan_sip
  used the more correct "tlscapath".  Now both are accepted.
  
  Discovered (sort of) by a user on IRC in #asterisk
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@305248 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-31 22:26:06 +00:00
twilson 29a38c2de1 Merged revisions 302005 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r302005 | twilson | 2011-01-17 09:04:59 -0600 (Mon, 17 Jan 2011) | 2 lines
  
  Document "encryption" option in sip.conf.sample
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@302006 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-17 15:06:10 +00:00
marquis c8950237ef Merged revisions 298773 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r298773 | marquis | 2010-12-17 12:26:31 -0500 (Fri, 17 Dec 2010) | 10 lines
  
  Fix parsing of mwi => lines in sip.conf
  
  Reworking parsing of mwi => lines to resolve a segfault.  Also add a set of unit tests for the function that does the parsing.
  
  (closes issue #18350)
  Reported by: gbour
  Tested by: Marquis, gbour
  
  Review: https://reviewboard.asterisk.org/r/1053/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@298774 f38db490-d61c-443f-a65b-d21fe96a405b
2010-12-17 17:29:09 +00:00
dvossel 308a4ad725 Merged revisions 285006 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r285006 | dvossel | 2010-09-03 17:21:50 -0500 (Fri, 03 Sep 2010) | 9 lines
  
  Disables auth_options_request option by default.
  
  The auth_options_request option was created to do authentication
  on OPTIONS request just like INVITES are done.  Since it has been
  noted that some endpoints use OPTIONS requests as a way of qualifying
  a peer and that a 401 authentication response could result in
  interoperability issues, this option has been disabled by default.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@285007 f38db490-d61c-443f-a65b-d21fe96a405b
2010-09-03 22:23:47 +00:00
dvossel 984a550f3b Merged revisions 284950 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r284950 | dvossel | 2010-09-03 12:29:02 -0500 (Fri, 03 Sep 2010) | 14 lines
  
  authenticate OPTIONS requests just like we would an INVITE
  
  OPTIONS requests should be treated the same as an INVITE
  This includes authentication.  This patch adds the ability for
  incoming out of dialog OPTION requests to be authenticated
  before providing a response indicating whether an extension
  is available or not.  The authentication routine works the
  exact same way as it does for incoming INVITEs.  This means
  that if a peer has 'insecure=invite' in their peer definition,
  the same will be true for the processing of the OPTIONS request.
  
  Review: https://reviewboard.asterisk.org/r/881/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@284951 f38db490-d61c-443f-a65b-d21fe96a405b
2010-09-03 17:30:04 +00:00
dvossel 8ff9b62096 Merged revisions 283493 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r283493 | dvossel | 2010-08-24 15:34:03 -0500 (Tue, 24 Aug 2010) | 2 lines
  
  Changes the default behavior for sip.conf's pedantic option from "no" to "yes".
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@283494 f38db490-d61c-443f-a65b-d21fe96a405b
2010-08-24 20:36:35 +00:00
twilson 6ca1cec76f Merged revisions 282740 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r282740 | twilson | 2010-08-18 21:18:50 -0500 (Wed, 18 Aug 2010) | 16 lines
  
  Merged revisions 282730 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r282730 | twilson | 2010-08-18 21:14:28 -0500 (Wed, 18 Aug 2010) | 9 lines
    
    Merged revisions 282729 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r282729 | twilson | 2010-08-18 21:12:55 -0500 (Wed, 18 Aug 2010) | 2 lines
      
      Add some documentation about codec negotiation to sip.conf
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@282751 f38db490-d61c-443f-a65b-d21fe96a405b
2010-08-19 02:20:42 +00:00
dvossel 72db2e3006 Merged revisions 282302 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r282302 | dvossel | 2010-08-13 17:23:38 -0500 (Fri, 13 Aug 2010) | 10 lines
  
  remove current STUN support from chan_sip.c
  
  This patch removes the current broken/useless stun
  support from chan_sip.
  
  (closes issue #17622)
  Reported by: philipp2
  
  Review: https://reviewboard.asterisk.org/r/855/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@282304 f38db490-d61c-443f-a65b-d21fe96a405b
2010-08-13 22:27:20 +00:00
dvossel 30ec863881 Merged revisions 282269 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r282269 | dvossel | 2010-08-13 15:03:56 -0500 (Fri, 13 Aug 2010) | 4 lines
  
  res_stun_monitor for monitoring network changes behind a NAT device
  
  Review: https://reviewboard.asterisk.org/r/854
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@282270 f38db490-d61c-443f-a65b-d21fe96a405b
2010-08-13 20:05:44 +00:00
simon.perreault 2b70d4917f Merged revisions 281687 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r281687 | simon.perreault | 2010-08-11 09:30:59 -0400 (Wed, 11 Aug 2010) | 9 lines
  
  Fix parsing of IPv6 address literals in outboundproxy
  
  (closes issue #17757)
  Reported by: oej
  Patches:
        17757.diff uploaded by sperreault (license 252)
        sip.conf.diff uploaded by sperreault (license 252)
  Tested by: oej
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@281688 f38db490-d61c-443f-a65b-d21fe96a405b
2010-08-11 13:31:39 +00:00
russell 92f6466eff Merged revisions 281650 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r281650 | russell | 2010-08-10 16:47:31 -0500 (Tue, 10 Aug 2010) | 5 lines
  
  Change the default value for alwaysauthreject in sip.conf to "yes".
  
  (closes issue #17756)
  Reported by: oej
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@281651 f38db490-d61c-443f-a65b-d21fe96a405b
2010-08-10 21:50:24 +00:00
simon.perreault 5cbf88d9cd Merged revisions 281356 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r281356 | simon.perreault | 2010-08-09 10:31:40 -0400 (Mon, 09 Aug 2010) | 2 lines
  
  Added comment about IPv4-mapped IPv6 addresses and the output of netstat.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@281357 f38db490-d61c-443f-a65b-d21fe96a405b
2010-08-09 14:32:59 +00:00
simon.perreault 182b8b69af Merged revisions 280777 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r280777 | simon.perreault | 2010-08-03 15:53:07 -0400 (Tue, 03 Aug 2010) | 8 lines
  
  Better documentation related to IPv6.
  
  (closes issue #17737)
  Reported by: oej
  Patches:
        doc.diff uploaded by sperreault (license 252)
  Tested by: mmichelson
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@280779 f38db490-d61c-443f-a65b-d21fe96a405b
2010-08-03 19:58:59 +00:00
simon.perreault 497fcbf03e Reverted r280706 and r280707. Will commit in branch 1.8 and merge to trunk properly.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@280745 f38db490-d61c-443f-a65b-d21fe96a405b
2010-08-03 19:05:50 +00:00
simon.perreault 32ffdb54e1 Better documentation related to IPv6.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@280706 f38db490-d61c-443f-a65b-d21fe96a405b
2010-08-03 16:34:36 +00:00
mmichelson af242a2d4f Fix port setting of external address in SIP.
There are two changes here:

1. Since the externip setting can now have a port attached
to it, calling it "externip" is misleading. The option is now
documented and parsed as "externaddr." This also extends to the
"matchexterniplocally" setting. It is now documented and parsed
as "matchexternaddrlocally." The old names for the options may
still be used, but they are no longer used in the sip.conf.sample
file.

2. If no port is set for the externaddr, and UDP is the transport
to be used, then we will set the port of the externaddr to that of
the udpbindaddr. This was how things worked prior to the IPv6 merge,
so this is a regression fix.

(closes issue #17665)
Reported by: mmichelson
Patches: 
      17665.diff#2 uploaded by pprindeville (license 347)
Tested by: pprindeville



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@277873 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-19 17:16:23 +00:00
mmichelson ebd3af43fb Make ACLs IPv6-capable.
ACLs can now be configured to match IPv6 networks. This is only
relevant for ACLs in chan_sip for now since other channel drivers
do not support IPv6 addressing. However, once those channel drivers
are outfitted to support IPv6 addressing, the ACLs will already be
ready for IPv6 support.

https://reviewboard.asterisk.org/r/791



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@277814 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-19 14:17:16 +00:00
oej 33d90abf9b Clarify syntax changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@277028 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-16 12:13:45 +00:00
oej c7a055522d Add ability to configure the Max-Forwards header in the dialplan, as well as in
sip.conf configuration for the channel and for devices.

The Max-Forwards header is used to prevent loops in a SIP network. Each intermediary,
like SIP proxys and SBCs, decrement this counter and detects when it reaches zero,
at which point the SIP request is nicely killed in a SIP-friendly way.

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

Thanks to dvossel for the review and good advice.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@276951 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-16 10:00:58 +00:00
mmichelson c3c2e5edfd Add IPv6 to Asterisk.
This adds a generic API for accommodating IPv6 and IPv4 addresses
within Asterisk. While many files have been updated to make use of the
API, chan_sip and the RTP code are the files which actually support
IPv6 addresses at the time of this commit. The way has been paved for
easier upgrading for other files in the near future, though.

Big thanks go to Simon Perrault, Marc Blanchet, and Jean-Philippe Dionne
for their hard work on this.

(closes issue #17565)
Reported by: russell
Patches: 
      asteriskv6-test-report.pdf uploaded by russell (license 2)

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@274783 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-08 22:08:07 +00:00
jpeeler 4d488cc472 Merged revisions 274283 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r274283 | jpeeler | 2010-07-06 17:15:21 -0500 (Tue, 06 Jul 2010) | 7 lines
  
  Correct sip.conf.sample comments for prematuremedia option.
  
  (closes issue #17513)
  Reported by: festr
  Patches: 
        patch uploaded by festr (license 443)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@274316 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-06 22:23:35 +00:00
lmadsen 1beea4a70f Update note in sip.conf.sample.
Update note in sip.conf.sample about externip and externhost with STUN.

(closes issue #16323)
Reported by: klaus3000
Patches:
      sip.conf.sample-patch.txt uploaded by klaus3000 (license 65)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@268988 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-08 15:23:20 +00:00
rmudgett 245c5d9eb8 Generic Advice of Charge.
Asterisk Generic AOC Representation
- Generic AOC encode/decode routines.
  (Generic AOC must be encoded to be passed on the wire in the AST_CONTROL_AOC frame)
- AST_CONTROL_AOC frame type to represent generic encoded AOC data
- Manager events for AOC-S, AOC-D, and AOC-E messages

Asterisk App Support
- app_dial AOC-S pass-through support on call setup
- app_queue AOC-S pass-through support on call setup

AOC Unit Tests
- AOC Unit Tests for encode/decode routines
- AOC Unit Test for manager event representation.

SIP AOC Support
- Pass-through of generic AOC-D and AOC-E messages to snom phones via the
  snom AOC specification.
- Creation of chan_sip page3 flags for the addition of the new
  'snom_aoc_enabled' sip.conf option.

IAX AOC Support
- Natively supports AOC pass-through through the use of the new
  AST_CONTROL_AOC frame type

DAHDI AOC Support
- ETSI PRI full AOC Pass-through support
- 'aoc_enable' chan_dahdi.conf option for independently enabling
  pass-through of AOC-S, AOC-D, AOC-E.
- 'aoce_delayhangup' option for retrieving AOC-E on disconnect.
- DAHDI A() dial string option for requesting AOC services.
  example usage:
  ;requests AOC-S, AOC-D, and AOC-E on call setup
  exten=>1111,1,Dial(DAHDI/g1/1112/A(s,d,e))

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@267096 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-02 18:10:15 +00:00
twilson 8a617fe9cf Add support for direct media ACLs
directmediapermit/directmediadeny support to restrict which peers can do
directmedia based on ip address. In some networks not all phones are fully
routed, i.e. not all phones can ping each other. This patch adds a way to
restrict directmedia for certain peers between certain networks.

(closes issue #16645)
Reported by: raarts
Patches: 
      directmediapermit.patch uploaded by raarts (license 937)
Tested by: raarts

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@264626 f38db490-d61c-443f-a65b-d21fe96a405b
2010-05-20 17:54:02 +00:00
mmichelson 3f064a6900 Update sample dialstrings in sip.conf.sample file.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@257032 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-13 16:18:16 +00:00
mnicholson 41f49b7444 Removed documentation of the non existent 'both' option to 'faxdetect' in sip.conf
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@255751 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-01 16:09:26 +00:00
lmadsen 452541605f Add documentation clarifying when 't' and 'T' can be used.
(closes issue #17021)
Reported by: kovzol
Tested by: lmadsen, kovzol, davidw, ebroad

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@255504 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-31 17:48:09 +00:00
lmadsen 5aa915559b Replace some documentation from 1.6.x back into trunk.
This documentation associated wth tlsbindaddr is still useful so lets
synchronize it between trunk and 1.6.x branches.

(issue #17054)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@255066 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-26 19:27:56 +00:00
lmadsen cd1ffb0e02 Update confusing documentation for tlsbindaddr.
Update some confusing documentation for the tlsbindaddr
option in sip.conf.sample. Point at a link instead which
has better documentation.

(closes issue #17054)
Reported by: klaus3000

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@255021 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-26 19:07:38 +00:00
kpfleming a37e15e1be Improve handling of T.38 re-INVITEs that arrive before a T.38-capable
application is executing on a channel.

This patch addresses an issue found during working with end-users
using res_fax. If an incoming call is answered in the dialplan, or
jumps to the 'fax' extension due to reception of a CNG tone (with
faxdetect enabled), and then the remote endpoint sends a T.38
re-INVITE, it is possible for the channel's T.38 state to be
'T38_STATE_NEGOTIATING' when the application starts up. Unfortunately,
even if the application wants to use T.38, it can't respond to the
peer's negotiation request, because the AST_CONTROL_T38_PARAMETERS
control frame that chan_sip sent originally has been lost, and the
application needs the content of that frame to be able to formulate a
reply.

This patch adds a new 'request' type to AST_CONTROL_T38_PARAMETERS,
AST_T38_REQUEST_PARMS. If the application sends this request, chan_sip
will re-send the original control frame (with
AST_T38_REQUEST_NEGOTIATE as the request type), and the application
can respond as normal. If this occurs within the five second timeout
in chan_sip, the automatic cancellation of the peer reinvite will be
stopped, and the application will 'own' the negotiation process from
that point onwards.

This also improves the code path in chan_sip to allow sip_indicate(),
when called for AST_CONTROL_T38_PARAMETERS, to be able to return a
non-zero response, which should have been in place before since the
control frame *can* fail to be processed properly. It also modifies
ast_indicate() to return whatever result the channel driver returned
for this control frame, rather than converting all non-zero results
into '-1'. Finally, the new request type intentionally returns a
positive value, so that an application that sends
AST_T38_REQUEST_PARMS can know for certain whether the channel driver
accepted it and will be replying with a control frame of its own, or
whether it was ignored (if the sip_indicate()/ast_indicate() path had
properly supported failure responses before, this would not be
necessary).

This patch also modifies res_fax to take advantage of the new request.

In addition, this patch makes sip_t38_abort() actually lock the
private structure before doing its work... bad programmer, no donut.

This patch also enhances chan_sip's 'faxdetect' support to allow
triggering on T.38 re-INVITEs received as well as CNG tone detection.

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@254450 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-25 15:27:31 +00:00
twilson 88bfcb6713 Only change the RTP ssrc when we see that it has changed
This change basically reverts the change reviewed in
https://reviewboard.asterisk.org/r/374/ and instead limits the
updating of the RTP synchronization source to only those times when we
detect that the other side of the conversation has changed the ssrc.

The problem is that SRCUPDATE control frames are sent many times where
we don't want a new ssrc, including whenever Asterisk has to send DTMF
in a normal bridge. This is also not the first time that this mistake
has been made. The initial implementation of the ast_rtp_new_source
function also changed the ssrc--and then it was removed because of
this same issue. Then, we put it back in again to fix a different
issue. This patch attempts to only change the ssrc when we see that
the other side of the conversation has changed the ssrc.

It also renames some functions to make their purpose more clear.

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@252089 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-12 22:04:51 +00:00
dvossel 3b12e80473 fixes adaptive jitterbuffer configuration
When configuring the adaptive jitterbuffer, the target_extra
value not only could not be set from the configuration, but was
not even being set to its proper default.  This value is required
in order for the adaptive jitterbuffer to work correctly.  To resolve
this a config option has been added to expose this value to the conf
files, and a default value is provided when no config specific value
is present.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@249893 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-02 19:08:38 +00:00
mmichelson 3821fedd30 Remove useless sip options related to hash table size.
First off, these options weren't actually doing anything.
By the time the options were parsed, the peer and dialog
containers had already been allocated with their default
values.

Second, hash table size is something that doesn't really
make sense to change in a config file. If a user is that
interested in changing the hashtable size, he can modify
the source itself.

I have removed the parsing of the hash_peer, hash_user,
and hash_dialog options. I have removed the hash_user_size
variable altogether since it is not used at all. I also
changed hash_peer_size and hash_dialog_size to be constant,
and have changed the symbols to be in all caps as constants
typically are. I have also removed the entire section in
sip.conf.sample regarding configurable hashtable sizes.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@245192 f38db490-d61c-443f-a65b-d21fe96a405b
2010-02-06 14:43:03 +00:00
kpfleming 65b35834ec Clarify RTP NAT handling a bit.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240328 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-15 16:28:38 +00:00
lmadsen 80c08e252e Note that direct T.38 is not supported.
(closes issue #16411)
Reported by: stanusr
Patches:
      __20091210-sip.conf.sample-documentation.txt uploaded by lmadsen (license 10)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239520 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-12 18:22:45 +00:00
tzafrir 5148053833 Document the usefulness of explicit udp:// in the register string
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@238313 f38db490-d61c-443f-a65b-d21fe96a405b
2010-01-07 09:14:57 +00:00
jsmith 6d57c4602c Merged revisions 235181 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r235181 | jsmith | 2009-12-15 15:07:55 -0600 (Tue, 15 Dec 2009) | 4 lines
  
  Add a line showing that we can use CIDR notation.
  
  patch by jsmith, after discussion with jtodd
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@235298 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-16 05:24:58 +00:00
file 637beb5d89 Change fax detection in chan_sip so it behaves as one would expect.
Internally the way T.38 is negotiated has changed and the option no longer
reflects a behavior that is valid. It will now look for a CNG tone on
received calls and if present send the call to the 'fax' extension. It is
then up to the application or channel to request the switch over to T.38.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@230881 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-23 15:45:45 +00:00
lmadsen 49dbd96075 Update sip.conf.sample.
Just updating a spelling error and some capitalization in a
documentation update that Olle added. May the Swenglish be
with you.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@229639 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-12 13:54:45 +00:00