<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://docs.yate.ro/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=SIP_IPv6_Support</id>
		<title>SIP IPv6 Support - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=SIP_IPv6_Support"/>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=SIP_IPv6_Support&amp;action=history"/>
		<updated>2026-05-12T18:11:01Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=SIP_IPv6_Support&amp;diff=7027&amp;oldid=prev</id>
		<title>Marian: Added SIP IPv6 support page</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=SIP_IPv6_Support&amp;diff=7027&amp;oldid=prev"/>
				<updated>2013-10-21T07:54:04Z</updated>
		
		<summary type="html">&lt;p&gt;Added SIP IPv6 support page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Description==&lt;br /&gt;
&lt;br /&gt;
This page describes IPv6 support in the SIP channel.&lt;br /&gt;
&lt;br /&gt;
==IPv6 address usage==&lt;br /&gt;
&lt;br /&gt;
When an IPv6 address is specified in a SIP URI it must be enclosed in square brackets.&amp;lt;br&amp;gt;&lt;br /&gt;
regexroute.conf example:&lt;br /&gt;
 [default]&lt;br /&gt;
 ^1$=sip/sip:1@[2a00::1:2]&lt;br /&gt;
&lt;br /&gt;
The URI parser will fail if the address is not enclosed in square brackets.&amp;lt;br&amp;gt;&lt;br /&gt;
E.g. '''sip/sip:1@2a00::1:2''' will be parsed as host='2a00' and port=':1:2'.&lt;br /&gt;
&lt;br /&gt;
When an IPv6 address is set in configuration followed by a port it must be enclosed in square brackets. It is not mandatory to put the square brackets when the port is missing.&amp;lt;br&amp;gt;&lt;br /&gt;
accfile.conf example:&lt;br /&gt;
 [1]&lt;br /&gt;
 protocol=sip&lt;br /&gt;
 username=1&lt;br /&gt;
 registrar=[2a00::1:2]:9000&lt;br /&gt;
 &lt;br /&gt;
 [2]&lt;br /&gt;
 protocol=sip&lt;br /&gt;
 username=2&lt;br /&gt;
 registrar=2a00::1:2&lt;br /&gt;
&lt;br /&gt;
When an IPv6 address is used to bind to a local interface an interface name can be added after the address.&amp;lt;br&amp;gt;&lt;br /&gt;
The interface name is required for Link Local addresses (fe80::/10). For these addresses bind will fail if no interface is specified or the address is not assigned to the specified interface.&amp;lt;br&amp;gt;&lt;br /&gt;
ysipchan.conf example:&lt;br /&gt;
 [general]&lt;br /&gt;
 tcp_out_rtp_localip=fe80::1:2%eth0&lt;br /&gt;
 &lt;br /&gt;
 [listener udp6]&lt;br /&gt;
 type=udp&lt;br /&gt;
 addr=::1%lo&lt;br /&gt;
&lt;br /&gt;
==IPv6 support enable==&lt;br /&gt;
&lt;br /&gt;
The global parameter '''ipv6_support''' controls how the addresses are used.&amp;lt;br&amp;gt;&lt;br /&gt;
If enabled the module will first try IPv6 addresses then IPv4.&amp;lt;br&amp;gt;&lt;br /&gt;
If disabled the module will always try to bind or connect to IPv4 addresses.&amp;lt;br&amp;gt;&lt;br /&gt;
ysipchan.conf:&lt;br /&gt;
 [general]&lt;br /&gt;
 ; ipv6_support: boolean: Enable or disable IPv6 support&lt;br /&gt;
 ; This parameter is applied on reload for new connections or listeners&lt;br /&gt;
 ; This parameter is ignored if yate was not built with IPv6 support&lt;br /&gt;
 ; Defaults to no&lt;br /&gt;
 ;ipv6_support=no&lt;br /&gt;
&lt;br /&gt;
==Listeners==&lt;br /&gt;
&lt;br /&gt;
The '''ipv6''' parameter of the listeners controls the listen address family.&amp;lt;br&amp;gt;&lt;br /&gt;
The parameter is present because the user is required to clearly state what type of listener it should be created (detecting the address family is not enough: a local host name may set in bind address).&amp;lt;br&amp;gt;&lt;br /&gt;
If global IPv6 support is not enabled the listener won't start.&amp;lt;br&amp;gt;&lt;br /&gt;
Example:&lt;br /&gt;
 [listener udp6]&lt;br /&gt;
 type=udp&lt;br /&gt;
 addr=2c00::1:2&lt;br /&gt;
 ipv6=yes&lt;br /&gt;
&lt;br /&gt;
==Calls==&lt;br /&gt;
&lt;br /&gt;
IPv6 addresses are handled in SIP URIs.&amp;lt;br&amp;gt;&lt;br /&gt;
regexroute.conf example:&lt;br /&gt;
 [default]&lt;br /&gt;
 ^1$=sip/sip:1@[2a00::1:2]&lt;br /&gt;
&lt;br /&gt;
==Generate SIP messages==&lt;br /&gt;
&lt;br /&gt;
SIP messages can be generated to IPv6 addresses by setting the '''ip_transport_remoteip''' or '''host''' parameters to an IPv6 address.&lt;br /&gt;
&lt;br /&gt;
==Line registration==&lt;br /&gt;
&lt;br /&gt;
Lines can be registered to an IPv6 registrar by setting an IPv6 address or domain name.&lt;br /&gt;
&lt;br /&gt;
==NOTES==&lt;br /&gt;
* The local and remote address family must always be the same. E.g. trying to send a message from a local IPv4 address to a remote IPv6 address (or IPv6 to IPv4) will fail.&lt;br /&gt;
Wrong configuration example:&amp;lt;br&amp;gt;&lt;br /&gt;
ysipchan.conf:&lt;br /&gt;
 [listener udp4]&lt;br /&gt;
 type=udp&lt;br /&gt;
 addr=10.0.0.1&lt;br /&gt;
&lt;br /&gt;
regexroute.conf:&lt;br /&gt;
 [default]&lt;br /&gt;
 ^1$=sip/sip:1@[2a00::1:2];oconnection_id=udp4&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* http://tools.ietf.org/html/rfc4291&lt;/div&gt;</summary>
		<author><name>Marian</name></author>	</entry>

	</feed>