summaryrefslogtreecommitdiffstats
path: root/src/app.h
blob: 96c890241a0e6c7c78618d1461a6232558050cc9 (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
28
29
30
31
32
33
34
#pragma once

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

struct call;

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

		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_route_call(struct call *call, const char *source, const char *port);

void app_mncc_disconnected(struct mncc_connection *conn);

const char *app_media_name(int pt_msg);