void callback_call_canceled ( void* av, int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onCancel); /* In case call is active */ stop_transmission(call_index); }
void callback_call_canceled ( int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onCancel); /* In case call is active */ stop_transmission(call_index); ((ToxWindow*)arg)->call_idx = -1; }
void callback_peer_timeout ( void* av, int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onPeerTimeout); stop_transmission(call_index); /* Call is stopped manually since there might be some other * actions that one can possibly take on timeout */ toxav_stop_call(ASettins.av, call_index); }
void callback_requ_timeout ( void* av, int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onRequestTimeout); }
void callback_call_ended ( void* av, int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onEnd); stop_transmission(call_index); }
void callback_call_rejected ( void* av, int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onReject); }
void callback_recv_ending ( void* av, int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onEnding); stop_transmission(call_index); }
void callback_recv_ringing ( void* av, int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onRinging); }
void callback_recv_invite ( void* av, int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onInvite); }
void callback_requ_timeout ( int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onRequestTimeout); ((ToxWindow*)arg)->call_idx = -1; }
void callback_call_ended ( int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onEnd); stop_transmission(call_index); ((ToxWindow*)arg)->call_idx = -1; }
void callback_recv_error ( int32_t call_index, void* arg ) { CB_BODY(call_index, arg, onError); stop_transmission(call_index); ((ToxWindow*)arg)->call_idx = -1; }