summaryrefslogtreecommitdiff
path: root/test/call.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/call.c')
-rw-r--r--test/call.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/call.c b/test/call.c
index d1b3ed1..dfb39dd 100644
--- a/test/call.c
+++ b/test/call.c
@@ -87,8 +87,11 @@ static void event_handler(struct ua *ua, enum ua_event ev,
int err = 0;
(void)prm;
- ASSERT_TRUE(ua != NULL);
- ASSERT_TRUE(call != NULL);
+#if 0
+ re_printf("[ %s ] event: %s (%s)\n",
+ ua_aor(ua), uag_event_str(ev), prm);
+#endif
+
ASSERT_TRUE(f != NULL);
ASSERT_EQ(MAGIC, f->magic);
@@ -97,15 +100,10 @@ static void event_handler(struct ua *ua, enum ua_event ev,
else if (ua == f->b.ua)
ag = &f->b;
else {
- warning("ua not found\n");
+ warning("ua %p not found\n", ua);
return;
}
-#if 0
- re_printf("[ %s ] event: %s (%s)\n",
- ua_aor(ua), uag_event_str(ev), prm);
-#endif
-
switch (ev) {
case UA_EVENT_CALL_INCOMING: