[Asterisk-Dev] IPv6

Mikael Magnusson mikaelmagnusson at glocalnet.net
Mon Apr 4 16:01:06 MST 2005


On Mon, Apr 04, 2005 at 09:37:40PM +0100, David Woodhouse wrote:
> On Sun, 2005-04-03 at 20:30 +0200, Mikael Magnusson wrote:
> > The patch will need a lot of testing, since it
> > modifies (almost) all networking code in Asterisk.
> 
> As far as I can tell that needs doing anyway, because at the moment we
> don't even handle falling back to the second and subsequent A record,
> let alone falling back from AAAA to A records.
>
> How close are you to having something to share? Are you doing IAX2 while
> you're at it?
> 

The experimental IPv6 patch can be downloaded from [1].

It adds IPv6 support to the manager interface and the SIP and IAX2 channels.

It may break the IPv4 support, since It will never use IPv4 when
communicating with servers that have AAAA records. 

diffstat:
 Makefile                   |    3
 acl.c                      |  245 +++++++----
 channels/Makefile          |   16
 channels/chan_iax2.c       |  583 ++++++++++++++-------------
 channels/chan_sip.c        |  953 ++++++++++++++++++++++++++------------------
 channels/iax2-parser.c     |   36 +
 channels/iax2-parser.h     |    8
 include/asterisk/acl.h     |   23 -
 include/asterisk/manager.h |    3
 include/asterisk/net.h     |   90 ++++
 include/asterisk/rtp.h     |    9
 manager.c                  |   75 +--
 net.c                      |  960 +++++++++++++++++++++++++++++++++++++++++++++
 pbx/Makefile               |    4
 rtp.c                      |  376 +++++++++--------
 15 files changed, 2391 insertions(+), 993 deletions(-)

Use "bindaddr=[::0]" to enable both IPv4 and IPv6 support. And you
may not disable rtp checksums since UDP checksums are required for IPv6.

/Mikael

[1] http://www.hem.za.org/asterisk-ipv6_20050404-2.patch.gz




More information about the asterisk-dev mailing list