notify user about registration failure

This commit is contained in:
Juha Heinanen
2018-12-13 11:09:21 +02:00
parent 4a7b3b100b
commit 5a3d14d773
2 changed files with 10 additions and 2 deletions

View File

@ -99,9 +99,11 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev,
case UA_EVENT_REGISTERING:
case UA_EVENT_UNREGISTERING:
case UA_EVENT_REGISTER_OK:
case UA_EVENT_REGISTER_FAIL:
re_snprintf(event_buf, sizeof event_buf, "%s", ua_event_reg_str(ev));
break;
case UA_EVENT_REGISTER_FAIL:
re_snprintf(event_buf, sizeof event_buf, "registering failed,%s", prm);
break;
case UA_EVENT_CALL_INCOMING:
if (list_count(ua_calls(ua)) > 1) {
play = mem_deref(play);