introduce two functions, map_x_s() and map_s_x(), to map
authorLuigi Rizzo <rizzo@icir.org>
Mon, 23 Jul 2007 14:18:04 +0000 (14:18 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Mon, 23 Jul 2007 14:18:04 +0000 (14:18 +0000)
commitb1791d9349bd43ae1afd70340e1646138cc47b31
treed3a2cba0fc575ecf1cb259212eb28b7c47a07ecd
parent83609770c1040d4e1fbce0b621ac539a1d283cd2
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
channels/chan_sip.c