From 2bcf2e403934222638cab333490cac9536fe113d Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sat, 1 Jan 2022 23:43:11 +0100 Subject: [PATCH] copy sdp to the msc --- src/mncc.c | 1 + src/sip.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mncc.c b/src/mncc.c index f302b3e..f3762db 100644 --- a/src/mncc.c +++ b/src/mncc.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.. diff --git a/src/sip.c b/src/sip.c index 9124752..152bcdf 100644 --- a/src/sip.c +++ b/src/sip.c @@ -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);