2016-03-21 15:42:43 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "mncc.h"
|
2016-03-22 13:15:17 +00:00
|
|
|
#include "sip.h"
|
2016-03-21 15:42:43 +00:00
|
|
|
|
|
|
|
struct app_config {
|
|
|
|
struct {
|
|
|
|
const char *local_addr;
|
|
|
|
int local_port;
|
|
|
|
|
|
|
|
const char *remote_addr;
|
|
|
|
int remote_port;
|
2016-03-22 13:15:17 +00:00
|
|
|
struct sip_agent agent;
|
2016-03-21 15:42:43 +00:00
|
|
|
} sip;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
const char *path;
|
|
|
|
struct mncc_connection conn;
|
|
|
|
} mncc;
|
|
|
|
|
|
|
|
//int use_imsi_as_id;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct app_config g_app;
|
2016-03-22 15:31:26 +00:00
|
|
|
|
|
|
|
void app_setup(struct app_config *cfg);
|
|
|
|
void app_mncc_disconnected(struct mncc_connection *conn);
|