modify event type and check if peeruri null
* add win dirent.h
modify event type
* remove win32/dirent.h
* remove answermode default
@@ -196,8 +196,8 @@ static int start_register(struct ua *ua, bool fallback)
fallback ? " fallback" : "", err);
ua_event(ua, fallback ?
- UA_EVENT_REGISTER_FAIL :
- UA_EVENT_FALLBACK_FAIL,
+ UA_EVENT_FALLBACK_FAIL :
+ UA_EVENT_REGISTER_FAIL,
NULL, "%m", err);
goto out;
}
@@ -395,6 +395,8 @@ static void call_event_handler(struct call *call, enum call_event ev,
MAGIC_CHECK(ua);
peeruri = call_peeruri(call);
+ if (!peeruri)
+ return;
switch (ev) {
