copy sdp to the msc

lynxis/iuup
Alexander Couzens 9 months ago
parent 03bc63a1da
commit 2bcf2e4039
  1. 1
      src/mncc.c
  2. 2
      src/sip.c

@ -195,6 +195,7 @@ static bool send_rtp_connect(struct mncc_call_leg *leg, struct call_leg *other)
mncc.callref = leg->callref;
mncc.addr = other->addr;
mncc.payload_type = other->payload_type;
memcpy(mncc.sdp, other->sdp, sizeof(mncc.sdp));
/*
* FIXME: mncc.payload_msg_type should already be compatible.. but
* payload_type should be different..

@ -100,7 +100,7 @@ static void call_connect(struct sip_call_leg *leg, const sip_t *sip)
other->release_call(other);
return;
}
strncpy(leg->base.sdp, sip->sip_payload->pl_data, sizeof(leg->base.sdp) - 1);
LOGP(DSIP, LOGL_INFO, "leg(%p) is now connected(%s).\n", leg, sip->sip_call_id->i_id);
leg->state = SIP_CC_CONNECTED;
other->connect_call(other);

Loading…
Cancel
Save