copy sdp to the msc

This commit is contained in:
Alexander Couzens 2022-01-01 23:43:11 +01:00
parent 03bc63a1da
commit 2bcf2e4039
2 changed files with 2 additions and 1 deletions

View File

@ -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..

View File

@ -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);