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

Change-Id: Ia9010c270839832abbb0d7b7742a4bf8cda1d538
pull/1126/head
Richard Fuchs 5 years ago
parent 5d895fb7be
commit c9140f9f66

@ -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;

@ -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