Work on informing user when call is held by the peer

This commit is contained in:
Juha Heinanen
2021-12-16 11:02:36 +02:00
parent 07147e80c5
commit f8d3c0060e
7 changed files with 60 additions and 15 deletions

View File

@ -200,6 +200,12 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev,
case UA_EVENT_CALL_ESTABLISHED:
len = re_snprintf(event_buf, sizeof event_buf, "call established");
break;
case UA_EVENT_CALL_REMOTE_SDP:
if (strcmp(prm, "offer") != 0)
return;
ardir = sdp_media_rdir(stream_sdpmedia(audio_strm(call_audio(call))));
len = re_snprintf(event_buf, sizeof event_buf, "call update,%d", ardir);
break;
case UA_EVENT_CALL_MENC:
if (prm[0] == '0')
len = re_snprintf(event_buf, sizeof event_buf, "call secure");