diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2022-01-01 23:43:11 +0100 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2022-01-01 23:43:11 +0100 |
commit | 2bcf2e403934222638cab333490cac9536fe113d (patch) | |
tree | fe08fdddafa1db149cb9e0d049fae8ef0db555d2 | |
parent | 03bc63a1da6a2d9ffd765c09d5b8d8af1dbaa53d (diff) |
copy sdp to the msclynxis/iuup
-rw-r--r-- | src/mncc.c | 1 | ||||
-rw-r--r-- | src/sip.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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); |