View | Details | Raw Unified | Return to bug 36948
Collapse All | Expand All

(-)a/C4/SIP/Sip/Configuration.pm (-2 / +6 lines)
Lines 39-46 sub new { Link Here
39
    my %listeners;
39
    my %listeners;
40
40
41
    # The key to the listeners hash is the 'port' component of the
41
    # The key to the listeners hash is the 'port' component of the
42
    # configuration, which is of the form '[host]:[port]/proto', and
42
    # configuration, which is of the form '[host]:[port]/proto[/IPv[46]]'
43
    # the 'proto' component could be upper-, lower-, or mixed-cased.
43
    # The 'proto' component could be upper-, lower-, or mixed-cased.
44
    # Regularize it here to lower-case, and then do the same below in
44
    # Regularize it here to lower-case, and then do the same below in
45
    # find_server() when building the keys to search the hash.
45
    # find_server() when building the keys to search the hash.
46
46
Lines 76-81 sub find_service { Link Here
76
        siplog( "LOG_DEBUG",
76
        siplog( "LOG_DEBUG",
77
            "Configuration::find_service: Trying $portstr" );
77
            "Configuration::find_service: Trying $portstr" );
78
        last if ( exists( ( $self->{listeners} )->{$portstr} ) );
78
        last if ( exists( ( $self->{listeners} )->{$portstr} ) );
79
        $portstr .= '/ipv4';    # lc, see ->new
80
        last if ( exists( ( $self->{listeners} )->{$portstr} ) );
81
        $portstr .= '/ipv6';    # lc, see ->new
82
        last if ( exists( ( $self->{listeners} )->{$portstr} ) );
79
    }
83
    }
80
    return $self->{listeners}->{$portstr};
84
    return $self->{listeners}->{$portstr};
81
}
85
}
(-)a/debian/templates/SIPconfig.xml (-2 / +2 lines)
Lines 20-32 Link Here
20
      protocol="NCIP/1.0" />
20
      protocol="NCIP/1.0" />
21
-->
21
-->
22
    <service
22
    <service
23
      port="127.0.0.1:8023/tcp"
23
      port="127.0.0.1:8023/tcp/IPv4"
24
      transport="telnet"
24
      transport="telnet"
25
      protocol="SIP/2.00"
25
      protocol="SIP/2.00"
26
      timeout="60" />
26
      timeout="60" />
27
27
28
    <service
28
    <service
29
      port="127.0.0.1:6001/tcp"
29
      port="127.0.0.1:6001/tcp/IPv4"
30
      transport="RAW"
30
      transport="RAW"
31
      protocol="SIP/2.00"
31
      protocol="SIP/2.00"
32
      client_timeout="600"
32
      client_timeout="600"
(-)a/etc/SIPconfig.xml (-3 / +2 lines)
Lines 29-41 Link Here
29
      protocol="NCIP/1.0" />
29
      protocol="NCIP/1.0" />
30
-->
30
-->
31
    <service
31
    <service
32
      port="8023/tcp"
32
      port="127.0.0.1:8023/tcp/IPv4"
33
      transport="telnet"
33
      transport="telnet"
34
      protocol="SIP/2.00"
34
      protocol="SIP/2.00"
35
      timeout="60" />
35
      timeout="60" />
36
36
37
    <service
37
    <service
38
      port="127.0.0.1:6001/tcp"
38
      port="127.0.0.1:6001/tcp/IPv4"
39
      transport="RAW"
39
      transport="RAW"
40
      protocol="SIP/2.00"
40
      protocol="SIP/2.00"
41
      client_timeout="600"
41
      client_timeout="600"
42
- 

Return to bug 36948