]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session.c: Correctly format SDP connection addresses.
authorSean Bright <sean@seanbright.com>
Sat, 27 Jan 2024 14:46:27 +0000 (09:46 -0500)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 7 Mar 2024 14:17:22 +0000 (14:17 +0000)
commit4d09fb191c11c385308eef5d054da1ea2ad7c89a
treec687a3a3cb248947862e382cedcac8336a277fe9
parent347494a130093d82bcc549ee8b43ae0f1341c454
res_pjsip_session.c: Correctly format SDP connection addresses.

Resolves a regression identified by @justinludwig involving the
rendering of IPv6 addresses in outgoing SDP.

Also updates `media_address` on PJSIP endpoints so that if we are able
to parse the configured value as an IP we store it in a format that we
can directly use later. Based on my reading of the code it appeared
that one could configure `media_address` as:

```
[foo]
type = endpoint
...
media_address = [2001:db8::]
```

And that value would be blindly copied into the outgoing SDP without
regard to its format.

Fixes #541

(cherry picked from commit 0fdaf7fc80aced62150a4a898ba21d400d7f4dab)
res/res_pjsip/pjsip_configuration.c
res/res_pjsip_session.c
res/res_pjsip_t38.c