summaryrefslogtreecommitdiff
path: root/test/call.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-04-02 14:44:27 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-04-02 14:44:27 +0200
commit059b6a9f597419adc331ca7e1e2b40b090d907a1 (patch)
tree441eae974d945e1d3bcb89009ca9929e4d42d312 /test/call.c
parenta80081cc08f65e3cd99d7b94cb1f849ee94dc47a (diff)
add test for SIP with 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 = {