aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2022-01-01 23:43:11 +0100
committerAlexander Couzens <lynxis@fe80.eu>2022-01-01 23:43:11 +0100
commit2bcf2e403934222638cab333490cac9536fe113d (patch)
treefe08fdddafa1db149cb9e0d049fae8ef0db555d2
parent03bc63a1da6a2d9ffd765c09d5b8d8af1dbaa53d (diff)
copy sdp to the msclynxis/iuup
-rw-r--r--src/mncc.c1
-rw-r--r--src/sip.c2
2 files changed, 2 insertions, 1 deletions
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);