summaryrefslogtreecommitdiffstats
path: root/src/app.h
blob: 4e5b3fa98d76f02ebdf68bdde99b726c6d1096e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "mncc.h"
#include "sip.h"

struct app_config {
	struct {
		const char *local_addr;
		int local_port;

		const char *remote_addr;
		int remote_port;
		struct sip_agent agent;
	} sip;

	struct {
		const char *path;
		struct mncc_connection conn;
	} mncc;

	//int use_imsi_as_id;
};

extern struct app_config g_app;

void app_setup(struct app_config *cfg);
void app_mncc_disconnected(struct mncc_connection *conn);