Browse Source

TT#81212 add function to change call state (own/foreign)

Change-Id: Ia9010c270839832abbb0d7b7742a4bf8cda1d538
pull/1126/head
Richard Fuchs 5 years ago
parent
commit
c9140f9f66
2 changed files with 9 additions and 0 deletions
  1. +8
    -0
      daemon/call.c
  2. +1
    -0
      include/call.h

+ 8
- 0
daemon/call.c View File

@ -118,6 +118,14 @@ out:
void call_make_own_foreign(struct call *c, int foreign) {
statistics_update_foreignown_dec(c);
c->foreign_call = foreign ? 1 : 0;
statistics_update_foreignown_inc(c);
}
/* called with hashlock held */
static void call_timer_iterator(struct call *c, struct iterator_helper *hlp) {
GList *it;


+ 1
- 0
include/call.h View File

@ -442,6 +442,7 @@ struct packet_stream *__packet_stream_new(struct call *call);
struct call *call_get_or_create(const str *callid, enum call_type);
struct call *call_get_opmode(const str *callid, enum call_opmode opmode);
void call_make_own_foreign(struct call *c, int foreign);
struct call_monologue *call_get_mono_dialogue(struct call *call, const str *fromtag, const str *totag,
const str *viabranch);
struct call *call_get(const str *callid);


Loading…
Cancel
Save