dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

1648 Commits

Author SHA1 Message Date
jrose 2964f0b216 Merged revisions 323610 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r323610 | jrose | 2011-06-15 11:09:24 -0500 (Wed, 15 Jun 2011) | 7 lines
  
  Adds PQclear calls on result to various parts of res_conf_pgsql
  
  (closes issue ASTERISK-17812)
  Reported by: byronclark
  Patches: 
        pgsql_pqclear.patch uploaded by byronclark (license 1200)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@323621 f38db490-d61c-443f-a65b-d21fe96a405b
2011-06-15 16:19:38 +00:00
twilson bdb71463e7 Merged revisions 323370 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r323370 | twilson | 2011-06-14 09:33:55 -0700 (Tue, 14 Jun 2011) | 10 lines
  
  Add rtpkeepalives back to 1.8
  
  The RTP-engine conversion left out support for handling rtpkeepalives.
  This patch adds them back.
  
  (closes issue ASTERISK-17304)
  Reported by: lmadsen
  
  Review: https://reviewboard.asterisk.org/r/1226/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@323374 f38db490-d61c-443f-a65b-d21fe96a405b
2011-06-14 17:03:37 +00:00
lmadsen a2d2fc70bc Merged revisions 323154 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r323154 | lmadsen | 2011-06-13 15:00:41 -0400 (Mon, 13 Jun 2011) | 6 lines
  
  Tweak documentation for AGI Hangup command.
  
  (closes issue ASTERISK-17999)
  Reported by: Ben Klang
  Patches:
       hangup-doc.diff - uploaded by Ben Klang (License #5876)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@323155 f38db490-d61c-443f-a65b-d21fe96a405b
2011-06-13 19:03:46 +00:00
russell 855a87a67b Actually check the "sendtodialplan" option setting for xmpp.
(closes issue ASTERISK-17978)
Reported by: elguero
Patches:
    stop_messages_going_to_dialplan.patch (license #5026)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@322244 f38db490-d61c-443f-a65b-d21fe96a405b
2011-06-07 19:17:31 +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
rmudgett 1788f7e5bd Merged revisions 321436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r321436 | rmudgett | 2011-05-27 19:27:52 -0500 (Fri, 27 May 2011) | 4 lines
  
  Some hagi launch cleanup.
  
  Inspired by issue 19256.  This patch would also fix the crash.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@321445 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-28 00:29:48 +00:00
tilghman 695a84cd48 Merged revisions 320445 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r320445 | tilghman | 2011-05-22 18:34:57 -0500 (Sun, 22 May 2011) | 15 lines
  
  Merged revisions 320444 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r320444 | tilghman | 2011-05-22 18:25:51 -0500 (Sun, 22 May 2011) | 8 lines
    
    Don't crash when the connection fails.
    
    (closes issue #19250)
     Reported by: seadweller
     Patches: 
           20110514__issue19250.diff.txt uploaded by tilghman (license 14)
     Tested by: seadweller, sum
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@320446 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-22 23:36:02 +00:00
irroot b77d873929 When a error in T.38 negotiation happens or its rejected on a channel the
state of the channel reverts to unknown this should be rejected.
 
 this is important for negotiating T.38 gateway see #13405

 This patch adds a option T38_REJECTED that behaves as T38_DISABLED except it reports state rejected.

 Trivial Change to res_fax to honnor UNAVAILABLE and REJECTED states.

 (closes issue #18889)
 Reported by: irroot
 Tested by: irroot, darkbasic, 	mnicholson

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@319087 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-16 14:56:53 +00:00
pabelanger ff70754342 Merged revisions 319085 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r319085 | pabelanger | 2011-05-16 10:35:21 -0400 (Mon, 16 May 2011) | 10 lines
  
  Support gmime-2.4
  
  (closes issue #18863)
  Reported by: tzafrir
  Patches:
        gmime-2.4-18.diff uploaded by tzafrir (license 46)
        Tested by: tzafrir
  
  Review: https://reviewboard.asterisk.org/r/1213/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@319086 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-16 14:38:16 +00:00
bbryant 1c9b452aa6 Merged revisions 318919 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r318919 | bbryant | 2011-05-13 14:04:50 -0400 (Fri, 13 May 2011) | 10 lines
  
  This patch fixes an issue with SRTP which makes HOLD/UNHOLD impossible when too
  much time has passed between sending audio.
  
  (closes issue #18206)
  Reported by: bernhardsi
  Patches: 
        res_srtp_unhold.patch uploaded by bernhards (license 1138)
  Tested by: bernhards, notthematrix
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@318920 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-13 18:06:27 +00:00
rmudgett 8df09c05ca Merged revisions 318351 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r318351 | rmudgett | 2011-05-09 18:15:32 -0500 (Mon, 09 May 2011) | 6 lines
  
  Remove references to res_features and its export file.
  
  The contents of res/res_features.c was moved to into main/features.c
  awhile ago.  There is no longer any need for the res/Makefile to reference
  res_features or the res_features linker exports file to exist.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@318352 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-09 23:16:12 +00:00
russell caab296fd8 Merged revisions 318057 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r318057 | russell | 2011-05-07 18:35:37 -0500 (Sat, 07 May 2011) | 8 lines
  
  res_config_curl: fix a crash with static realtime.
  
  (closes issue #18413)
  Reported by: jmls
  Patches:
        20101202__issue18413.diff.txt uploaded by tilghman (license 14)
  Tested by: jmls
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@318058 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-07 23:36:41 +00:00
dvossel b646c2e2e1 Merged revisions 317918 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r317918 | dvossel | 2011-05-06 16:06:55 -0500 (Fri, 06 May 2011) | 7 lines
  
  Fixes missing colon from To/From headers in RTCP manager events.
  
  (closes issue #18221)
  Reported by: clegall_proformatique
  Patches:
        18221_1.patch uploaded by ebroad (license 878)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@317920 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-06 21:10:30 +00:00
russell bce37370d3 Add "calendar show types" CLI command.
(closes issue #18246)
Reported by: junky
Patches:
      calendar_types.diff uploaded by junky (license 177)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@317483 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-05 23:10:27 +00:00
russell 09c11738f2 Merged revisions 317474 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r317474 | russell | 2011-05-05 17:36:33 -0500 (Thu, 05 May 2011) | 2 lines
  
  Fix more "set but unused" warnings.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@317475 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-05 22:44:52 +00:00
russell 681ceaeaac Merged revisions 316265 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r316265 | russell | 2011-05-03 14:55:49 -0500 (Tue, 03 May 2011) | 5 lines
  
  Fix a bunch of compiler warnings generated by gcc 4.6.0.
  
  Most of these are -Wunused-but-set-variable, but there were a few others
  mixed in here, as well.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@316293 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-03 20:45:32 +00:00
dvossel c5f4332a6a Merged revisions 316215 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r316215 | dvossel | 2011-05-03 13:49:48 -0500 (Tue, 03 May 2011) | 9 lines
  
  Fixes a random crash (NULL reference) in res_odbc.c.
  
  (closes issue #19180)
  Reported by: pruiz
  Patches: 
        tmp.diff uploaded by pruiz (license 1152)
  Tested by: pruiz, seanbright
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@316216 f38db490-d61c-443f-a65b-d21fe96a405b
2011-05-03 18:51:41 +00:00
tzafrir 5ee5c42f0f Merged revisions 314779 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r314779 | tzafrir | 2011-04-22 16:59:43 +0300 (ו', 22 אפר 2011) | 2 lines
  
  Fix a few typos (shown by Lintian)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@314824 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-22 14:49:47 +00:00
russell 5a219f333e Merged revisions 314780 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r314780 | russell | 2011-04-22 09:02:23 -0500 (Fri, 22 Apr 2011) | 18 lines
  
  Merged revisions 314778 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r314778 | russell | 2011-04-22 08:58:03 -0500 (Fri, 22 Apr 2011) | 11 lines
    
    Initialize buffers in getvar and getvarfull.
    
    Initialize the buffers used to hold the result from GET VARIABLE or
    GET VARIABLE FULL.  The bug report shows func_read returning garbage in
    the result.  It assumed that the buffer passed in was initialized, like many
    other functions do.  In the more common code path (through the dialplan), it
    is initialized, so just initialize it here too.
    
    (closes issue #19050)
    Reported by: johnz
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@314781 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-22 14:08:02 +00:00
dvossel c7b7b920af New HD ConfBridge conferencing application.
Includes a new highly optimized and customizable
ConfBridge application capable of mixing audio at
sample rates ranging from 8khz-192khz.

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@314598 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-21 18:11:40 +00:00
rmudgett e294083a12 Merged revisions 314069 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r314069 | rmudgett | 2011-04-18 11:10:10 -0500 (Mon, 18 Apr 2011) | 22 lines
  
  The AsyncAGI command loop is lax in the value it returns for the return status.
  
  * Return correct status: SUCCESS/FAILED/HANGUP.  Previously, abnormal
  exits from the command loop such as hangup would return SUCCESS.
  
  * The "asyncagi break" command now returns SUCCESS and is now the only way
  to break the command loop with that status.  Previously, it returned
  FAILED.
  
  * The AMI event AsyncAGI End is no longer sent if the AsyncAGI Start event
  is not sent.  Previously, this happened because of an error setting up the
  AGI pipes.
  
  * All executed AGI commands now get an AsyncAGI Exec result event.
  Previously, if the command returned failure (because of hangup), the
  command loop just exited with FAILURE and did not send the AsyncAGI Exec
  result event.
  
  * Makes sure that the channel frame queue is empty on hangup.
  
  Review: https://reviewboard.asterisk.org/r/1183/
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@314080 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-18 16:27:14 +00:00
twilson a9368dbd84 Sets video mark bit on format field correctly
This fixes a regression in the media architecture change
where video frames did not have their video mark set
correctly.  dvossel wrote this. twilson kindly committed
this, mmichelson found the bug.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@313822 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-14 21:53:01 +00:00
rmudgett 32198d4329 Merged revisions 313700 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r313700 | rmudgett | 2011-04-13 17:52:47 -0500 (Wed, 13 Apr 2011) | 5 lines
  
  Revert flushing stale AsyncAGI commands from -r313615.
  
  It looks like it was intentional to leave any commands or in-flight
  commands in the queue in case Async AGI is run again on the call.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@313701 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-13 22:54:08 +00:00
rmudgett 4ff120bb0f Merged revisions 313658 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r313658 | rmudgett | 2011-04-13 12:47:43 -0500 (Wed, 13 Apr 2011) | 2 lines
  
  Miscellaneous AGI diagnostic message cleanup and code optimization.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@313659 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-13 17:51:14 +00:00
rmudgett f5d7b06ff4 Merged revisions 313615 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r313615 | rmudgett | 2011-04-13 12:18:49 -0500 (Wed, 13 Apr 2011) | 5 lines
  
  * Add missing channel lock to handle_cli_agi_add_cmd().
  
  * Flush any Async AGI commands left over from earlier Async AGI control of
  the call.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@313629 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-13 17:21:50 +00:00
rmudgett 3de0f5e8b2 Merged revisions 313588 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r313588 | rmudgett | 2011-04-13 11:31:50 -0500 (Wed, 13 Apr 2011) | 55 lines
  
  Merged revisions 313579 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r313579 | rmudgett | 2011-04-13 11:29:49 -0500 (Wed, 13 Apr 2011) | 48 lines
    
    Merged revisions 313545 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r313545 | rmudgett | 2011-04-13 11:21:24 -0500 (Wed, 13 Apr 2011) | 41 lines
      
      Asterisk does not hangup a channel after endpoint hangs up.
      
      If the call that the dialplan started an AGI script for is hungup while
      the AGI script is in the middle of a command then the AGI script is not
      notified of the hangup.  There are many AGI Exec commands that this can
      happen with.  The reported applications have been: Background, Wait, Read,
      and Dial.  Also the AGI Get Data command.
      
      * Don't wait on the Asterisk channel after it has hung up.  The channel is
      likely to never need servicing again.
      
      * Restored the AGI script's ability to return the AGI_RESULT_HANGUP value
      in run_agi().  It previously only could return AGI_RESULT_SUCCESS or
      AGI_RESULT_FAILURE after the DeadAGI and AGI applications were merged.
      
      (closes issue #17954)
      Reported by: mn3250
      Patches:
            issue17954_v1.8.patch uploaded by rmudgett (license 664)
            issue17954_v1.6.2.patch uploaded by rmudgett (license 664)
            issue17954_v1.4.patch uploaded by rmudgett (license 664)
      Tested by: rmudgett
      JIRA SWP-2171
      
      (closes issue #18492)
      Reported by: devmod
      Tested by: rmudgett
      JIRA SWP-2761
      
      (closes issue #18935)
      Reported by: nvitaly
      Tested by: astmiv, rmudgett
      JIRA SWP-3216
      
      (closes issue #17393)
      Reported by: siby
      Tested by: rmudgett
      JIRA SWP-2727
      
      Review: https://reviewboard.asterisk.org/r/1165/
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@313606 f38db490-d61c-443f-a65b-d21fe96a405b
2011-04-13 16:37:06 +00:00
jrose 57b175a00b Merged revisions 311352 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r311352 | jrose | 2011-03-18 11:19:05 -0500 (Fri, 18 Mar 2011) | 10 lines
  
  Changes some print statements/events to use a blank string in place of NULL if the string in question is NULL.
  
  This is supposed to improve Solaris compatibility since Solaris goes berserk when trying to output NULL strings.
  
  (closes issue #18759)
  Reported by: bklang
  Patches:
        null-strings.patch uploaded by bklang (license 919)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@311373 f38db490-d61c-443f-a65b-d21fe96a405b
2011-03-18 16:24:19 +00:00
mnicholson 7587e4d3a2 Merged revisions 311342 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r311342 | mnicholson | 2011-03-18 11:02:50 -0500 (Fri, 18 Mar 2011) | 2 lines
  
  Properly populate the LOCALSTATIONID channel variable.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@311343 f38db490-d61c-443f-a65b-d21fe96a405b
2011-03-18 16:03:51 +00:00
twilson 3faeef27fe Merged revisions 310240 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r310240 | twilson | 2011-03-10 10:05:45 -0600 (Thu, 10 Mar 2011) | 13 lines
  
  Add \r\n to remaining http headers passed to ast_http_send
  
  r309204 changed the behavior of ast_http_send. It now requires headers
  to be passed with trailing \r\n. This change updates the remaining
  instances in the code that did not pass the \r\n.
  
  (closes issue #18186)
  Reported by: nivaldomjunior
  Patches: 
        res_phoneprov.c.diff uploaded by lathama (license 1028)
        manager.diff.txt uploaded by twilson (license 396)
  Tested by: lathama
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@310241 f38db490-d61c-443f-a65b-d21fe96a405b
2011-03-10 16:09:09 +00:00
tilghman 781b6a189e Merged revisions 310142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r310142 | tilghman | 2011-03-09 23:53:29 -0600 (Wed, 09 Mar 2011) | 19 lines
  
  Merged revisions 310141 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r310141 | tilghman | 2011-03-09 23:51:37 -0600 (Wed, 09 Mar 2011) | 12 lines
    
    Merged revisions 310140 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r310140 | tilghman | 2011-03-09 23:38:44 -0600 (Wed, 09 Mar 2011) | 5 lines
      
      Initialize column size to 0 to deal with a potential UnixODBC bug on 64-bit systems.
      
      (closes issue #18295)
       Reported by: pruiz
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@310143 f38db490-d61c-443f-a65b-d21fe96a405b
2011-03-10 05:54:53 +00:00
twilson 2e447e2379 Merged revisions 310039 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r310039 | twilson | 2011-03-08 10:10:50 -0800 (Tue, 08 Mar 2011) | 11 lines
  
  Spelling fix in "calendar show calendar"
  
  s/Cartegories/Catagories/
  
  (closes issue #18931)
  Reported by: pdugas
  Patches: 
        res_calendar.c.patch uploaded by pdugas (license 1222)
  
  Review: [full review board URL with trailing slash]
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@310045 f38db490-d61c-443f-a65b-d21fe96a405b
2011-03-08 18:19:46 +00:00
twilson 77bc3aa8e3 Add setvar option to calendaring
Adding the setvar option with variable substitution on the value allows things
like setting the outbound caller id name to the summary of a calendar event,
etc. Values could be chained together as they are appended in order to do some
scripting if necessary.

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@309640 f38db490-d61c-443f-a65b-d21fe96a405b
2011-03-04 23:22:39 +00:00
dvossel f27e928f05 Media Project Phase2: SILK 8khz-24khz, SLINEAR 8khz-192khz, SPEEX 32khz, hd audio ConfBridge, and other stuff
-Functional changes
1. Dynamic global format list build by codecs defined in codecs.conf
2. SILK 8khz, 12khz, 16khz, and 24khz with custom attributes defined in codecs.conf
3. Negotiation of SILK attributes in chan_sip.
4. SPEEX 32khz with translation
5. SLINEAR 8khz, 12khz, 24khz, 32khz, 44.1khz, 48khz, 96khz, 192khz with translation
   using codec_resample.c
6. Various changes to RTP code required to properly handle the dynamic format list
   and formats with attributes.
7. ConfBridge now dynamically jumps to the best possible sample rate.  This allows
   for conferences to take advantage of HD audio (Which sounds awesome)
8. Audiohooks are no longer limited to 8khz audio, and most effects have been
   updated to take advantage of this such as Volume, DENOISE, PITCH_SHIFT.
9. codec_resample now uses its own code rather than depending on libresample.

-Organizational changes
Global format list is moved from frame.c to format.c
Various format specific functions moved from frame.c to format.c

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@308582 f38db490-d61c-443f-a65b-d21fe96a405b
2011-02-22 23:04:49 +00:00
tilghman 1ff4b3b0b3 Merged revisions 307793 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r307793 | tilghman | 2011-02-14 14:16:55 -0600 (Mon, 14 Feb 2011) | 15 lines
  
  Merged revisions 307792 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r307792 | tilghman | 2011-02-14 14:10:28 -0600 (Mon, 14 Feb 2011) | 8 lines
    
    Increment usage count at first reference, to avoid a race condition with many threads creating connections all at once.
    
    (issue #18156)
     Reported by: asgaroth
     Patches: 
           20110214__issue18156.diff.txt uploaded by tilghman (license 14)
     Tested by: tilghman
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@307795 f38db490-d61c-443f-a65b-d21fe96a405b
2011-02-14 20:18:02 +00:00
pabelanger 6705f03406 Replace ast_log(LOG_DEBUG, ...) with ast_debug()
(closes issue #18556)
Reported by: kkm

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@306258 f38db490-d61c-443f-a65b-d21fe96a405b
2011-02-04 16:55:39 +00:00
dvossel 4aca3187a3 Asterisk media architecture conversion - no more format bitfields
This patch is the foundation of an entire new way of looking at media in Asterisk.
The code present in this patch is everything required to complete phase1 of my
Media Architecture proposal.  For more information about this project visit the link below.
https://wiki.asterisk.org/wiki/display/AST/Media+Architecture+Proposal

The primary function of this patch is to convert all the usages of format
bitfields in Asterisk to use the new format and format_cap APIs.  Functionally
no change in behavior should be present in this patch.  Thanks to twilson
and russell for all the time they spent reviewing these changes.

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



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@306010 f38db490-d61c-443f-a65b-d21fe96a405b
2011-02-03 16:22:10 +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
qwell 66357f7b79 Merged revisions 305473 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r305473 | qwell | 2011-02-01 11:04:23 -0600 (Tue, 01 Feb 2011) | 23 lines
  
  Merged revisions 305472 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r305472 | qwell | 2011-02-01 11:02:09 -0600 (Tue, 01 Feb 2011) | 16 lines
    
    Merged revisions 305471 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r305471 | qwell | 2011-02-01 11:00:55 -0600 (Tue, 01 Feb 2011) | 9 lines
      
      Close file descriptor for timing source when a MOH class gets destroyed.
      
      (closes issue #18457)
      Reported by: mcallist
      Patches: 
            18457-closetimer.diff uploaded by qwell (license 4)
            18457-closetimer_trunk.diff uploaded by qwell (license 4)
      Tested by: qwell, loloski
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@305474 f38db490-d61c-443f-a65b-d21fe96a405b
2011-02-01 17:05:38 +00:00
qwell a534391181 Merged revisions 305198 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r305198 | qwell | 2011-01-31 15:30:44 -0600 (Mon, 31 Jan 2011) | 2 lines
  
  Fix compile error.  pseudofd no longer exists.
........


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

................
  r305131 | qwell | 2011-01-31 15:00:25 -0600 (Mon, 31 Jan 2011) | 16 lines
  
  Merged revisions 305130 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ................
    r305130 | qwell | 2011-01-31 14:59:37 -0600 (Mon, 31 Jan 2011) | 9 lines
    
    Merged revisions 305129 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.4
    
    ........
      r305129 | qwell | 2011-01-31 14:56:25 -0600 (Mon, 31 Jan 2011) | 2 lines
      
      Set file descriptors to -1 on creation, so that we don't see weirdness later.
    ........
  ................
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@305132 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-31 21:01:28 +00:00
lathama 7b4e3a8260 Add Function and Application Relationships to documentation
Add and extend the see-also sections to the documentation for applications
and functions in an effort to expand the online documentation of the wiki.
Also check for and update any links to moved documentation in the doc folder.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@304913 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-30 00:22:59 +00:00
seanbright 89879ed42a Merged revisions 304866 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r304866 | seanbright | 2011-01-29 18:07:18 -0500 (Sat, 29 Jan 2011) | 14 lines
  
  Merged revisions 304865 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r304865 | seanbright | 2011-01-29 18:05:25 -0500 (Sat, 29 Jan 2011) | 7 lines
    
    Plug some memory leaks in the LDAP realtime driver.
    
    (closes issue #18435)
    Reported by: zaltar
    Patches:
          res_config_ldap.patch uploaded by zaltar (license 1148)
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@304867 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-29 23:10:06 +00:00
bbryant 763292a661 Patch that fixes the "realtime show pgsql cache" command crash when giving a
table name, because of the use of an uninitialized variable. Fixes an error
introduced in r300882.

(closes issue #18605)
Reported by: romain_proformatique
Patches:
      res_config_pgsql_fix.patch uploaded by romain proformatique (license 975)
Tested by: romain_proformatique



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@304600 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-27 20:09:33 +00:00
kpfleming c2f34c05c0 Fix bug with 'F' option for ReceiveFAX and SendFAX.
Skipping the call to set_t38_fax_caps() caused the FAX session
details to not be marked as supporting audio FAX either... the
function's name is a bit misleading. This patch restores the
single bit of non-T.38 behavior from that function when audio
mode is forced.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@304599 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-27 20:07:05 +00:00
kpfleming e7e20f3836 Rename the SendFAX/ReceiveFAX 'force audio' option.
The recently added option to disable usage of T.38 for a single
session should have been named 'F' for 'force audio', since that
is really what the user is asking to happen (and it's a positive
option instead of a negative option that way).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@304422 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-27 15:57:52 +00:00
kpfleming 7a57c7974b Add ability to disable T.38 usage for specific SendFAX/ReceiveFAX sessions.
Sometimes during troubleshooting it can be useful to disable T.38 usage in order
to narrow down a problem. This patch adds an 'n' option to SendFAX and ReceiveFAX
so that can be done without having to disable T.38 usage entirely for the peer
that Asterisk is communicating with.

(inspired by trying to assist Bryant Zimmerman on asterisk-users)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@304342 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-26 22:39:07 +00:00
mnicholson 93d5f14c6a Merged revisions 303907 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r303907 | mnicholson | 2011-01-25 14:56:12 -0600 (Tue, 25 Jan 2011) | 2 lines
  
  Reimplemented fax session reservation to reverse the ABI breakage introduced in r297486.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@304152 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-26 19:58:14 +00:00
mnicholson 9dd80bbb53 According to section 19.1.2 of RFC 3261:
For each component, the set of valid BNF expansions defines exactly
  which characters may appear unescaped.  All other characters MUST be
  escaped.

This patch modifies ast_uri_encode() to encode strings in line with this recommendation.  This patch also adds an ast_escape_quoted() function which escapes '"' and '\' characters in quoted strings in accordance with section 25.1 of RFC 3261.  The ast_uri_encode() function has also been modified to take an ast_flags struct describing the set of rules it should use when escaping characters to allow for it to escape SIP URIs in addition to HTTP URIs and other types of URIs or variations of those two URI types in the future.

The ast_uri_decode() function has also been modified to accept an ast_flags struct describing the set of rules to use when decoding to enable decoding '+' as ' ' in legacy http URLs.

The unit tests for these functions have also been updated.

ABE-2705

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


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@303509 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-24 18:59:22 +00:00
qwell 8409c0cad4 Merged revisions 302600 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r302600 | qwell | 2011-01-19 14:14:40 -0600 (Wed, 19 Jan 2011) | 1 line
  
  Fix typo pointed out on asterisk-users list.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@302601 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-19 20:15:54 +00:00
seanbright 0f183e35d1 Merged revisions 302549 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r302549 | seanbright | 2011-01-19 13:43:11 -0500 (Wed, 19 Jan 2011) | 17 lines
  
  Merged revisions 302548 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
  
  ........
    r302548 | seanbright | 2011-01-19 13:37:09 -0500 (Wed, 19 Jan 2011) | 10 lines
    
    Properly handle partial reads from fgets() when handling AGIs.
    
    When fgets() failed with EAGAIN, we were continually decrementing the available
    space left in our buffer, resulting in botched command handling.
    
    (closes issue #16032)
    Reported by: notahat
    Patches:
          agi_buffer_patch2.diff uploaded by fnordian (license 110)
  ........
................


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@302550 f38db490-d61c-443f-a65b-d21fe96a405b
2011-01-19 18:45:44 +00:00