MNCC<->SIP bridge; attaches to OsmoMSC to interface with external SIP VoIP telephony
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
741 B

#pragma once
#include <osmocom/core/select.h>
#include <osmocom/core/timer.h>
#include <osmocom/core/utils.h>
#include <stdint.h>
struct app_config;
struct call;
enum {
struct mncc_connection {
int state;
struct app_config *app;
struct osmo_fd fd;
struct osmo_timer_list reconnect;
uint32_t last_callref;
/* callback for application logic */
void (*on_disconnect)(struct mncc_connection *);
void mncc_connection_init(struct mncc_connection *conn, struct app_config *cfg);
void mncc_connection_start(struct mncc_connection *conn);
int mncc_create_remote_leg(struct mncc_connection *conn, struct call *call);
extern const struct value_string mncc_conn_state_vals[];