Skip to content

Commit

Permalink
[travis] update to check if call recording is over 100k
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbtv committed Mar 22, 2017
1 parent 1bff0b5 commit 90d6449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ script:
- docker exec -it asterisk1 asterisk -rx 'channel originate PJSIP/333@asterisk2 application playback tt-monkeys'
# Wait for the call to complete (believe it takes 16 seconds, we'll give it some padding)
- sleep 20
# Check out the size of the call recording (should have a known size.) was with "| grep 131680" but it failed.
- docker exec -it asterisk2 /bin/bash -c 'stat -c "%s" /var/spool/asterisk/monitor/test.ulaw'
# Check out the size of the call recording (should have a known size. check that it's over 100kB)
- docker exec -it asterisk2 /bin/bash -c 'ls -l /var/spool/asterisk/monitor/test.ulaw'
- docker exec -it asterisk2 /bin/bash -c 'if [ "$(stat -c '%s' /var/spool/asterisk/monitor/test.ulaw)" -lt "100000" ]; then exit 1; fi;'
# See that the CDR looks ok, that we got a call across.
- docker exec -it asterisk2 grep -Pi "333.+inbound.+ANSWERED" /var/log/asterisk/cdr-csv/Master.csv

Expand Down

0 comments on commit 90d6449

Please sign in to comment.