diff --git a/t/api-callforwards.t b/t/api-callforwards.t index 8696cd694b..a5d8580df0 100644 --- a/t/api-callforwards.t +++ b/t/api-callforwards.t @@ -163,7 +163,7 @@ cmp_ok ($cf1_id, '>', 0, "should be positive integer"); my $cf1put = JSON::from_json($res->decoded_content); is (ref $cf1put, "HASH", "should be hashref"); is ($cf1put->{cfu}{destinations}->[0]->{timeout}, 200, "Check timeout of cft"); - like ($cf1put->{cft}{destinations}->[0]->{destination}, qr/^sip:5678/, "Check first destination of cft"); + is ($cf1put->{cft}{destinations}->[0]->{destination}, "5678", "Check first destination of cft"); is ($cf1put->{cft}{destinations}->[1]->{destination}, "voicebox", "Check second destination of cft"); #write invalid 'timeout'