Minor code simplification
This commit is contained in:
@@ -196,10 +196,7 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev,
|
|||||||
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call incoming");
|
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call incoming");
|
||||||
break;
|
break;
|
||||||
case UA_EVENT_CALL_LOCAL_SDP:
|
case UA_EVENT_CALL_LOCAL_SDP:
|
||||||
if (strcmp(prm, "offer") != 0)
|
len = re_snprintf(event_buf, sizeof event_buf, "call %sed", prm);
|
||||||
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call offered");
|
|
||||||
else
|
|
||||||
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call answered");
|
|
||||||
break;
|
break;
|
||||||
case UA_EVENT_CALL_RINGING:
|
case UA_EVENT_CALL_RINGING:
|
||||||
play = mem_deref(play);
|
play = mem_deref(play);
|
||||||
|
|||||||
Reference in New Issue
Block a user