dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

18509 Commits

Author SHA1 Message Date
kpfleming a9fb92854f Convert this branch to Opsound music-on-hold.
For more details:
http://blogs.digium.com/2009/08/18/asterisk-music-on-hold-changes/



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212922 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-18 20:29:37 +00:00
tilghman e925212260 Clarify some of the error messages, to help upgraders.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212883 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-18 19:49:52 +00:00
tilghman 0da4067de9 Make the default extconfig.conf match entries with the sample res_mysql.conf.
This eliminates a future source of possible confusion with the configuration of
1.6.1 and higher.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212857 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-18 19:25:09 +00:00
oej 2df678ca71 Small doxygen changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212844 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-18 18:57:28 +00:00
seanbright 47c42e6fb6 Merged revisions 212763 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r212763 | seanbright | 2009-08-18 12:36:00 -0400 (Tue, 18 Aug 2009) | 11 lines
  
  Delay the creation of temporary files until we have a valid manager command to handle.
  
  Without this patch, asterisk creates a temporary file before determining if the
  specified command is valid.  If invalid, we weren't properly cleaning up the file.
  
  (closes issue #15730)
  Reported by: zmehmood
  Patches:
        M15730.diff uploaded by junky (license 177)
  Tested by: zmehmood
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212764 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-18 16:38:36 +00:00
rmudgett a006d1d1a6 Merged revisions 212727 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r212727 | rmudgett | 2009-08-18 11:00:56 -0500 (Tue, 18 Aug 2009) | 1 line
  
  Removed some deadwood and added some doxygen comments.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212758 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-18 16:29:47 +00:00
kpfleming 99b05e8bf4 Relax check for XOPEN_VERSION.
It's not clear that we actually require XOPEN_VERSION to be 600 or greater
at this time, so skip the check for now.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212672 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-17 20:40:24 +00:00
tilghman ff93d9c264 Check the return value of opendir(3), or we may crash.
(closes issue #15720)
 Reported by: tobias_e


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212627 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-17 19:57:42 +00:00
seanbright be1a867384 Correct spelling of AGENTACCEPTDTMF in chan_agent.
(closes issue #15668)
Reported by: davidw


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212581 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-17 18:50:24 +00:00
seanbright 864cae562c Correct the return value check for ast_safe_system.
The logic here was reversed as ast_safe_system returns -1 on error and not on
success.  Fix suggested by reporter.

(closes issue #15667)
Reported by: loic


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212574 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-17 18:18:16 +00:00
jpeeler c8faf06662 Merged revisions 212498 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r212498 | jpeeler | 2009-08-17 11:34:56 -0500 (Mon, 17 Aug 2009) | 12 lines
  
  Fix segfault when reloading chan_misdn.
  
  If more ports were specified than configured in misdn.conf a reload would crash
  asterisk. The problem was the unconfigured port was using data from the
  previously configured port. When the data for an unconfigured port was freed a
  crash would result from the double free.
  
  (closes issue #12113)
  Reported by: agupta
  Patches:
        bug12113.patch uploaded by jpeeler (license 325)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212506 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-17 16:50:45 +00:00
kpfleming d32b7ae7b1 Define our desires for POSIX and X/OPEN API features properly.
Based on a post on the gcc-help mailing list and some subsequent reading,
we can increase our portability to various platforms by directly defining
the POSIX and X/OPEN API feature sets we wish to have available. This patch
does that, and also includes a double-check to ensure that the system
we are compiling on can actually provide the requested feature sets.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212463 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-17 16:25:10 +00:00
rmudgett 493dabadd3 Merged revisions 212430 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

Fix uninitialized variable causing random MWI indications.

(closes issue #15727)
Reported by: doda
Patches:
      dahdi_changes.patch uploaded by doda (license 853)

........
  r212430 | rmudgett | 2009-08-17 10:36:28 -0500 (Mon, 17 Aug 2009) | 1 line
  
  Fix uninitialized variable.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212431 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-17 15:42:51 +00:00
file 5a6957c04a Add two more API calls for getting the current glue and channel in bridging code.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212390 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-16 19:27:39 +00:00
mvanbaak 24a34a573a cast time_t type variables to long where needed.
This makes res_calendar.c compile on OpenBSD and the same
cast is used in a lot of other places where time_t type vars are used.

(closes issue #15656)
Reported by: mvanbaak
Patches:
      2009081100-rescalendarcompilefix.diff.txt uploaded by mvanbaak (license 7)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212343 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-15 11:36:19 +00:00
mvanbaak 499661cac0 Add an empty line after each option when printing the
documentation of a function/application.

This will make reading the docs on the CLI way more easy.

(closes issue #15694)
Reported by: mvanbaak
Patches:
      2009081100-extralinesoptionlist.diff.txt uploaded by mvanbaak (license 7)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212339 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-15 11:25:11 +00:00
jpeeler 23145775b4 Add braces where missing and a few whitespace fixes in sig_analog
(closes issue #15678)
Reported by: alecdavis
Patches:
      sig_analog_mainly_braces.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212291 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-14 23:07:51 +00:00
jpeeler 0b81a31cd6 More code that somehow got left out of sig_analog
* confirmanswer option now respected
* check and set waiting for dialtone timer
* unneeded needcallerid flag removed from analog_subchannel
* ss_astchan does not need to be a void pointer
* swap_channels callback updated to trunk
* analog_hangup now resets channel to default law


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212287 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-14 22:39:11 +00:00
tilghman 3203e40f43 Add SSL_VERIFYPEER, as requested on the -users list
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212249 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-14 17:36:40 +00:00
rmudgett e6038acbec Send a generic return result when we receive a CallDeflection facility message in chan_misdn.
ETSI 300-196 implies that a facility return result without arguments does
not have the operation-value.  This fact implies for ETSI that you can
only use the invoke-id to match requests with responses.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212199 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-13 17:33:44 +00:00
file 3b081ef0ff Add an API call for retrieving the engine in use by an RTP instance.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212161 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-13 16:44:54 +00:00
kpfleming cedc8495a0 Ensure that T38FaxVersion is put into outgoing SDP in the proper case.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212113 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-13 15:46:25 +00:00
file 0f0e599d9c Check an actual populated variable when seeing if we need to do video or not.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212067 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-13 13:51:04 +00:00
ghenry e61967a18f Fixed typo
(closes issue #15710)
Reported by: suretec



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@212027 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-13 11:37:12 +00:00
mnicholson fb6378f77d Merged revisions 211953 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r211953 | mnicholson | 2009-08-12 18:04:02 -0500 (Wed, 12 Aug 2009) | 10 lines
  
  This patch adds additional checking when generating queue log TRANSFER events.
  
  The additional checks prevent generation of false TRANSFER events in certain situations.
  
  (closes issue #14536)
  Reported by: aragon
  Patches:
        queue-log-xfer-fix1.diff uploaded by mnicholson (license 96)
  Tested by: aragon, mnicholson
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211957 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-12 23:14:36 +00:00
mnicholson 2ec43d0c94 This patch adds support for choosing a realm based on the domain in the From or To header in the incoming request. Eligible domains are taken from the domains list in the config file. This functionality is enabled when domainsasrealm is enabled in the config file.
(closes issue #11361)
Reported by: arkadia
Patches:
      sip_realm_mnich_to_added_2.patch uploaded by arkadia (license 233)
Tested by: arkadia


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211947 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-12 22:18:09 +00:00
jpeeler 01b8e52ac3 Fix chan_dahdi option ringtimeout
dahdi_read relies on the dahdi_pvt copy of ringt which was not getting set
in sig_analog. This patch adds a callback to do so.

(closes issue #15288)
Reported by: alecdavis
Patches:
      chan_dahdi.ringtimeout.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211908 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-12 20:47:45 +00:00
mnicholson 234deff0d4 Make asterisk handle 423 Interval Too Short messages better.
This change uses separate values for the acceptable minimum expiry provided by the 423 error and the expiry value stored in the configuration file.  Previously, the value pulled from the configuration file would be overwritten.

(closes issue #14366)
Reported by: Nick_Lewis
Patches:
      sip-expiry-fix1.diff uploaded by mnicholson (license 96)
      chan_sip.c-reqexpiry.patch uploaded by Nick (license 657)
Tested by: mnicholson


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211876 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-12 19:53:14 +00:00
mmichelson b934a2098e Blocked revisions 211807 via svnmerge
........
  r211807 | mmichelson | 2009-08-12 13:46:09 -0500 (Wed, 12 Aug 2009) | 10 lines
  
  Backport fix so that outbound CANCEL requests have same branch as challenged INVITEs.
  
  There already was code present to be sure that a CANCEL will contain the same branch-id
  as the INVITE it is cancelling. However, for INVITES which are challenged downstream,
  this mechanism did not work properly. Now this is taken care of.
  
  This is a backport of a fix already present in all 1.6.X branches and in trunk. It also
  fixes ABE-1907.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211809 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-12 18:47:51 +00:00
ghenry 8e506c55d2 Added three new attributes and applied a patch to res_config_ldap.c
attributetype ( AstAccountSubscribeContext
        NAME 'AstAccountSubscribeContext'
        DESC 'Asterisk subscribe context'
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)

attributetype ( AstAccountIpAddr
        NAME 'AstAccountIpAddr'
        DESC 'Asterisk aaccount IP address'
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)

attributetype ( AstAccountUserAgent
        NAME 'AstAccountUserAgent'
        DESC 'Asterisk account user context'
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)

and patch fix_empty_attributes_1.6.1.4_v2.patch 

(closes issue #13725)
Reported by: macogeek
Patches:
      fix_empty_attributes_1.6.1.4_v2.patch uploaded by xvisor (license 863)
Tested by: suretec




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211767 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-12 16:00:46 +00:00
russell 199ef7e3d8 Always specify which RTP engine is desired for a new RTP instance.
This fixes a crash reported in #asterisk-dev where chan_mgcp unexpectedly
allocated an RTP instance from res_rtp_multicast, since by not specifying an
engine, you get the first one in the list of engines.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211732 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-12 10:11:36 +00:00
rmudgett 593c44bc43 Encapsulate testing for which signaling styles are used by sig_pri.
Created the dahdi_sig_pri_lib_handles() function and
SIG_PRI_LIB_HANDLE_CASES macro to simplify testing for which signaling
styles are handled by sig_pri.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211675 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10 23:21:57 +00:00
tilghman 336c5f3dc6 Merged revisions 211583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r211583 | tilghman | 2009-08-10 14:48:48 -0500 (Mon, 10 Aug 2009) | 1 line
  
  Conversion specifiers, not format specifiers
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211584 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10 19:49:41 +00:00
tilghman d1ec1aa57d AST-2009-005
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211539 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10 19:20:57 +00:00
mvanbaak 4548c33d84 add manager events when a skinny device registers/unregisters
like we have in chan_sip

(closes issue #15499)
Reported by: arifzaman
Patches:
      2009072600-skinnymanagerevents.diff.txt uploaded by mvanbaak (license 7)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211475 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10 18:01:47 +00:00
jpeeler baf55cdd42 Fix PRI/BRI channels when in alarm condition to only be marked for hangup if
T309 is not enabled.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211435 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10 17:17:06 +00:00
rmudgett 9849a632bb Restoring some code to sig_pri. Not sure if it is really needed.
Putting some DSP code back into sig_pri that was removed by the
chan_dahdi/sig_pri reorganization.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211392 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10 15:53:23 +00:00
russell 4b2e61e8ee Fix up some issues with getting a channel by "name".
Even though the get_channel_by_name() API advertised that you could search by
name or uniqueid (just as the old API did), searching by uniqueid was not
actually implemented.  This patch fixes that problem.

The ast_channel_get_full() function now makes a second search attempt by
uniqueid if the parameter was a name.  The channel comparison function also
now knows how to compare by unqieueid.

Finally, a bug was fixed in passing where OBJ_POINTER was being passed in some
scenarios where it should not have been.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211390 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10 15:46:39 +00:00
file 818953e1c7 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: http://svn.digium.com/svn/asterisk/trunk@211347 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10 14:07:44 +00:00
tilghman 8718941fe1 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: http://svn.digium.com/svn/asterisk/trunk@211275 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-09 15:42:02 +00:00
tilghman 1a4692a9fa Check for NULL frame, before dereferencing pointer.
(closes issue #15617)
 Reported by: rain


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@211232 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-09 07:11:22 +00:00
rmudgett 673ecef518 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: http://svn.digium.com/svn/asterisk/trunk@211197 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-07 23:30:32 +00:00
rmudgett fd4a729b07 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: http://svn.digium.com/svn/asterisk/trunk@211191 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-07 23:17:41 +00:00
russell af617cf5c8 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: http://svn.digium.com/svn/asterisk/trunk@211113 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-07 20:12:21 +00:00
tilghman b68a676f22 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: http://svn.digium.com/svn/asterisk/trunk@211040 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-07 18:17:41 +00:00
kpfleming b33fdfb5ea 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: http://svn.digium.com/svn/asterisk/trunk@210992 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-07 13:08:00 +00:00
tilghman b03533a403 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: http://svn.digium.com/svn/asterisk/trunk@210914 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-06 21:46:01 +00:00
tilghman e32af8f0cf 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: http://svn.digium.com/svn/asterisk/trunk@210908 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-06 21:29:26 +00:00
rmudgett b59498747f 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: http://svn.digium.com/svn/asterisk/trunk@210869 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-06 20:15:11 +00:00
rmudgett 89401173c0 Sanity adjustments to pri_ss_thread for sig_pri environment.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@210866 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-06 19:52:11 +00:00