asterisk/channels
Luigi Rizzo b1791d9349 introduce two functions, map_x_s() and map_s_x(), to map
between integers and strings using a single translation table,
and use them in a few places instead of ad-hoc routines
that duplicate the table.

On passing, note that REFER_CONFIRMED is never used, and add a
few comments.

Nothing to backport here.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-23 14:18:04 +00:00
..
h323 Merged revisions 53131 via svnmerge from 2007-02-03 10:12:20 +00:00
misdn Allow chan_misdn to build in dev-mode 2007-07-19 04:45:20 +00:00
DialTone.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
Makefile it really seems pointless to run gentone to create these header files every time we build Asterisk... 2007-07-06 15:47:16 +00:00
answer.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
busy.h it really seems pointless to run gentone to create these header files every time we build Asterisk... 2007-07-06 15:47:16 +00:00
chan_agent.c Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second 2007-07-18 19:47:20 +00:00
chan_alsa.c Add a massive set of changes for converting to use the ast_debug() macro. 2007-06-14 19:39:12 +00:00
chan_features.c Add a massive set of changes for converting to use the ast_debug() macro. 2007-06-14 19:39:12 +00:00
chan_gtalk.c Merged revisions 72331 via svnmerge from 2007-06-27 22:58:53 +00:00
chan_h323.c Merged revisions 75619 via svnmerge from 2007-07-18 15:26:52 +00:00
chan_iax2.c Merged revisions 76485 via svnmerge from 2007-07-23 12:29:46 +00:00
chan_jingle.c Silly jingle... 2007-06-27 23:14:39 +00:00
chan_local.c After some study, thought, comparing, etc. I've backed out the previous universal mod to make ast_flags a 64 bit thing. Instead, I added a 64-bit version of ast_flags (ast_flags64), and 64-bit versions of the test-flag, set-flag, etc. macros, and an app_parse_options64 routine, and I use these in app_dial alone, to eliminate the 30-option limit it had grown to meet. There is room now for 32 more options and flags. I was heavily tempted to implement some of the other ideas that were presented, but this solution does not intro any new versions of dial, doesn't have a different API, has a minimal/zero impact on code outside of dial, and doesn't seriously (I hope) affect the code structure of dial. It's the best I can think of right now. My goal was NOT to rewrite dial. I leave that to a future, coordinated effort. 2007-07-19 23:24:27 +00:00
chan_mgcp.c Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second 2007-07-18 19:47:20 +00:00
chan_misdn.c added general Jitterbuffer Implementation. #9960 2007-07-05 07:45:21 +00:00
chan_nbs.c Add a massive set of changes for converting to use the ast_debug() macro. 2007-06-14 19:39:12 +00:00
chan_oss.c Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes 2007-06-06 21:20:11 +00:00
chan_phone.c Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second 2007-07-18 19:47:20 +00:00
chan_sip.c introduce two functions, map_x_s() and map_s_x(), to map 2007-07-23 14:18:04 +00:00
chan_skinny.c Use autoconf logic to determine byte swapping macro presence. This should now also use other macros if present. 2007-07-23 13:46:57 +00:00
chan_vpb.cc Merged revisions 73398 via svnmerge from 2007-07-05 15:29:24 +00:00
chan_zap.c Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second 2007-07-18 19:47:20 +00:00
gentone-ulaw.c remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
gentone.c remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
iax2-parser.c Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second 2007-07-18 19:47:20 +00:00
iax2-parser.h Merged revisions 75445 via svnmerge from 2007-07-17 20:49:09 +00:00
iax2-provision.c After some study, thought, comparing, etc. I've backed out the previous universal mod to make ast_flags a 64 bit thing. Instead, I added a 64-bit version of ast_flags (ast_flags64), and 64-bit versions of the test-flag, set-flag, etc. macros, and an app_parse_options64 routine, and I use these in app_dial alone, to eliminate the 30-option limit it had grown to meet. There is room now for 32 more options and flags. I was heavily tempted to implement some of the other ideas that were presented, but this solution does not intro any new versions of dial, doesn't have a different API, has a minimal/zero impact on code outside of dial, and doesn't seriously (I hope) affect the code structure of dial. It's the best I can think of right now. My goal was NOT to rewrite dial. I leave that to a future, coordinated effort. 2007-07-19 23:24:27 +00:00
iax2-provision.h After some study, thought, comparing, etc. I've backed out the previous universal mod to make ast_flags a 64 bit thing. Instead, I added a 64-bit version of ast_flags (ast_flags64), and 64-bit versions of the test-flag, set-flag, etc. macros, and an app_parse_options64 routine, and I use these in app_dial alone, to eliminate the 30-option limit it had grown to meet. There is room now for 32 more options and flags. I was heavily tempted to implement some of the other ideas that were presented, but this solution does not intro any new versions of dial, doesn't have a different API, has a minimal/zero impact on code outside of dial, and doesn't seriously (I hope) affect the code structure of dial. It's the best I can think of right now. My goal was NOT to rewrite dial. I leave that to a future, coordinated effort. 2007-07-19 23:24:27 +00:00
iax2.h Reformat some of iax2.h and convert comments to doxygen format 2007-04-28 21:26:00 +00:00
misdn_config.c added general Jitterbuffer Implementation. #9960 2007-07-05 07:45:21 +00:00
ring10.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
ringtone.h it really seems pointless to run gentone to create these header files every time we build Asterisk... 2007-07-06 15:47:16 +00:00