]> 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:00 +0000 (18:59 +0000)
commit0fdaf7fc80aced62150a4a898ba21d400d7f4dab
tree8b30042094e77185f2e03e40fb8e8a8978dc9e6c
parent2aaf28c95f7d084028ea07b901c8e2417085d00d
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