summaryrefslogtreecommitdiff
path: root/test/call.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-04-03 19:08:13 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-04-03 19:08:13 +0200
commitf53ec36a768e41c47c72fac6ad5c3e672e291688 (patch)
tree327624a8155e6c2e849834b097b905b694ac5b69 /test/call.c
parenta80081cc08f65e3cd99d7b94cb1f849ee94dc47a (diff)
parent9e16ab5a1a79c1ee43cd3c07faa54be83d83e38b (diff)
Merge pull request #121 from alfredh/test_sip_dns
Test sip dns
Diffstat (limited to 'test/call.c')
-rw-r--r--test/call.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/call.c b/test/call.c
index b597f3a..7bf3e26 100644
--- a/test/call.c
+++ b/test/call.c
@@ -48,6 +48,9 @@ struct fixture {
#define fixture_init(f) \
memset(f, 0, sizeof(*f)); \
\
+ err = ua_init("test", true, true, true, false); \
+ TEST_ERR(err); \
+ \
f->magic = MAGIC; \
aucodec_register(&dummy_pcma); \
\
@@ -75,7 +78,10 @@ struct fixture {
\
aucodec_unregister(&dummy_pcma); \
\
- uag_event_unregister(event_handler)
+ uag_event_unregister(event_handler); \
+ \
+ ua_stop_all(true); \
+ ua_close();
static struct aucodec dummy_pcma = {