MT#8729 api-test callforward deflation

new format without sip:...
agranig/webphone
Gerhard Jungwirth 11 years ago
parent 49431fc9a2
commit cc778971a8

@ -163,7 +163,7 @@ cmp_ok ($cf1_id, '>', 0, "should be positive integer");
my $cf1put = JSON::from_json($res->decoded_content); my $cf1put = JSON::from_json($res->decoded_content);
is (ref $cf1put, "HASH", "should be hashref"); is (ref $cf1put, "HASH", "should be hashref");
is ($cf1put->{cfu}{destinations}->[0]->{timeout}, 200, "Check timeout of cft"); 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"); is ($cf1put->{cft}{destinations}->[1]->{destination}, "voicebox", "Check second destination of cft");
#write invalid 'timeout' #write invalid 'timeout'

Loading…
Cancel
Save