]> 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)
committerSean Bright <sean@seanbright.com>
Tue, 30 Jan 2024 18:59:02 +0000 (18:59 +0000)
commit9f20b4659fc897b8495c7a4c51dfe4365ab937bd
treecc8367620c0ac92302ac105b656978ec12457317
parent671b47cfda18cf63e776c74fac2e02f00aec58fd
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
res/res_pjsip/pjsip_configuration.c
res/res_pjsip_session.c
res/res_pjsip_t38.c