MT#12555 allow port in callforward URIs

Change-Id: Ic006ff0930b68f4cff20df416c4b8fbce4f8d4f7
changes/17/1717/2
Gerhard Jungwirth 11 years ago
parent 1a2a467345
commit d743766939

@ -55,7 +55,7 @@ apply(
my $checked;
if ($user && $domain) {
if ( $user =~ m/^(sip:)?[a-zA-Z0-9\+\-\.]*$/ &&
$domain =~ m/^[^;\?:]*$/ ) {
$domain =~ m/^[^;\?:][^;\?]*$/ ) {
$checked = $value;
}
}

@ -69,6 +69,24 @@ my $configs = [
},
},
},
{
works => 1,
config => {
destination => {
destination => 'uri',
uri => { destination => 'alice@10.0.0.1:1234' },
},
},
},
{
works => 1,
config => {
destination => {
destination => 'uri',
uri => { destination => 'foo@bar.com:1234' },
},
},
},
];
for my $conf (@{$configs}) {

Loading…
Cancel
Save