parking_tests: Fix assertions and possibly crashes in res_parking unit tests
authorJonathan Rose <jrose@digium.com>
Wed, 15 Oct 2014 19:17:29 +0000 (19:17 +0000)
committerJonathan Rose <jrose@digium.com>
Wed, 15 Oct 2014 19:17:29 +0000 (19:17 +0000)
commit3d58066de94ffd2a2c44986be36bf26d49b1ce64
tree3d786f427046e650bb87557d75e97e2a5b66855d
parent90c98d384b8e8dec92d3a913993160cb2bb1580e
parking_tests: Fix assertions and possibly crashes in res_parking unit tests

Assertions were caused by attempting to play music on hold to a channel with
no formats. Parking unit test channels were given formats and a technology so
that they would be able to pretend to read/write frames.

ASTERISK-24413 #close
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/4075/
........

Merged revisions 425611 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@425613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/parking/parking_tests.c