dect
/
asterisk
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asterisk/channels
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
..
h323 Comment out a rule that likes to run implicitly unnecessarily, breaking builds 2010-06-03 14:48:09 +00:00
misdn Merged revisions 296582 via svnmerge from 2010-11-29 20:54:27 +00:00
sip According to section 19.1.2 of RFC 3261: 2011-01-24 18:59:22 +00:00
xpmr AST-2009-005 2009-08-10 19:20:57 +00:00
Makefile Extract sig_ss7 out of chan_dahdi. 2010-06-07 20:04:42 +00:00
chan_agent.c Merged revisions 300521 via svnmerge from 2011-01-04 21:54:20 +00:00
chan_alsa.c Add load priority order, such that preload becomes unnecessary in most cases 2010-07-20 19:35:02 +00:00
chan_bridge.c Add load priority order, such that preload becomes unnecessary in most cases 2010-07-20 19:35:02 +00:00
chan_console.c Merged revisions 297535 via svnmerge from 2010-12-03 17:42:23 +00:00
chan_dahdi.c Merged revisions 303467 via svnmerge from 2011-01-24 17:21:12 +00:00
chan_gtalk.c Some scheduler API cleanup and improvements. 2010-12-20 17:15:54 +00:00
chan_h323.c Some scheduler API cleanup and improvements. 2010-12-20 17:15:54 +00:00
chan_iax2.c Merged revisions 300521 via svnmerge from 2011-01-04 21:54:20 +00:00
chan_jingle.c Some scheduler API cleanup and improvements. 2010-12-20 17:15:54 +00:00
chan_local.c Merged revisions 302412 via svnmerge from 2011-01-19 15:34:07 +00:00
chan_mgcp.c Some scheduler API cleanup and improvements. 2010-12-20 17:15:54 +00:00
chan_misdn.c Fix chan_misdn build after sched API changes. 2010-12-20 17:59:38 +00:00
chan_multicast_rtp.c Merged revisions 301851 via svnmerge from 2011-01-14 20:18:26 +00:00
chan_nbs.c Missed these two channel drivers on the codec_bits merge 2009-11-06 19:38:33 +00:00
chan_oss.c Support for GNU/kFreeBSD 2010-08-15 13:08:45 +00:00
chan_phone.c Merged revisions 284597 via svnmerge from 2010-09-02 05:02:54 +00:00
chan_phone.h rename DialTone.h to chan_phone.h because chan_phone.c is the only file using it 2008-05-28 20:00:21 +00:00
chan_sip.c According to section 19.1.2 of RFC 3261: 2011-01-24 18:59:22 +00:00
chan_skinny.c Some scheduler API cleanup and improvements. 2010-12-20 17:15:54 +00:00
chan_unistim.c Some scheduler API cleanup and improvements. 2010-12-20 17:15:54 +00:00
chan_usbradio.c Merged revisions 284666 via svnmerge from 2010-09-02 16:12:34 +00:00
chan_vpb.cc Expand the caller ANI field to an ast_party_id 2010-07-14 16:58:03 +00:00
console_board.c import the recent additions for video console into trunk, 2008-06-29 21:17:14 +00:00
console_gui.c Const-ify the world (or at least a good part of it) 2009-05-21 21:13:09 +00:00
console_video.c Merged revisions 284597 via svnmerge from 2010-09-02 05:02:54 +00:00
console_video.h implement the 'freeze' function for incoming frames; 2008-06-30 15:45:15 +00:00
iax2-parser.c Informational message, not an error. 2010-01-28 20:00:09 +00:00
iax2-parser.h Remove built-in AES code and use optional_api instead 2010-07-21 19:11:32 +00:00
iax2-provision.c AST-2009-005 2009-08-10 19:20:57 +00:00
iax2-provision.h Don't reload a configuration file if nothing has changed. 2007-08-16 21:09:46 +00:00
iax2.h Expand codec bitfield from 32 bits to 64 bits. 2009-11-04 14:05:12 +00:00
misdn_config.c Enhancements to connected line and redirecting work. 2010-05-17 15:36:31 +00:00
sig_analog.c Merged revisions 296167 via svnmerge from 2010-11-24 22:52:07 +00:00
sig_analog.h Merged revisions 296167 via svnmerge from 2010-11-24 22:52:07 +00:00
sig_pri.c Merged revisions 301946 via svnmerge from 2011-01-14 21:13:08 +00:00
sig_pri.h Optional HOLD/RETRIEVE signaling for PTMP TE when the bridge goes on and off hold. 2011-01-04 16:38:28 +00:00
sig_ss7.c Expand the caller ANI field to an ast_party_id 2010-07-14 16:58:03 +00:00
sig_ss7.h Extract sig_ss7_init_linkset() to sig_ss7. 2010-06-14 20:51:09 +00:00
vcodecs.c Const-ify the world (or at least a good part of it) 2009-05-21 21:13:09 +00:00
vgrabbers.c free memory used by the x11 grabber when closing it. 2008-07-14 16:50:54 +00:00