diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-22 20:56:45 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-22 21:04:56 +0100 |
commit | 29b556490f593a621e8356f5e64ced036152d306 (patch) | |
tree | 2481fa96a2784d190598bc299940882fdf537680 /src/call.h | |
parent | 90e713969110306cd979f0edcbbd86a46d97518a (diff) |
mncc: Dispatch setup and issue rtp create in response then continue
The code is not tested and might be broken. Parse the setup request
of a MO call, create a new "call" with a MNCC leg and then issue the
call to create a RTP socket. Once this has been done, release the call
as the code to open a second leg has not been written yet.
Diffstat (limited to 'src/call.h')
-rw-r--r-- | src/call.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -2,6 +2,8 @@ #include <osmocom/core/linuxlist.h> +#include "mncc_protocol.h" + struct sip_agent; struct mncc_connection; @@ -42,9 +44,18 @@ struct sip_call_leg { struct sip_agent *agent; }; +enum mncc_cc_state { + MNCC_CC_INITIAL, +}; + struct mncc_call_leg { struct call_leg base; + enum mncc_cc_state state; + uint32_t callref; + struct gsm_mncc_number called; + struct gsm_mncc_number calling; + struct mncc_connection *conn; }; @@ -53,3 +64,6 @@ void calls_init(void); void call_leg_release(struct call *call, struct call_leg *leg); + + +struct call *sip_call_mncc_create(void); |