sip: Mark call as MT call in preparation for incoming calls

zecke/mt-mncc-call
Holger Hans Peter Freyther 7 years ago
parent b927a0bbde
commit 6f039c158d
  1. 6
      src/call.h
  2. 1
      src/sip.c

@ -71,6 +71,11 @@ enum sip_cc_state {
SIP_CC_CONNECTED,
};
enum sip_dir {
SIP_DIR_MO,
SIP_DIR_MT,
};
struct sip_call_leg {
/* base class */
struct call_leg base;
@ -81,6 +86,7 @@ struct sip_call_leg {
/* per instance members */
struct nua_handle_s *nua_handle;
enum sip_cc_state state;
enum sip_dir dir;
const char *wanted_codec;
};

@ -251,6 +251,7 @@ static int send_invite(struct sip_agent *agent, struct sip_call_leg *leg,
leg->wanted_codec);
leg->state = SIP_CC_INITIAL;
leg->dir = SIP_DIR_MT;
nua_invite(leg->nua_handle,
SIPTAG_FROM_STR(from),
SIPTAG_TO_STR(to),

Loading…
Cancel
Save