]> 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-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Tue, 30 Jan 2024 18:59:05 +0000 (18:59 +0000)
commitdb945243e6f1f10f2ecd8b8ee0d80d0fc714f04c
tree237e944e4ad30f2e72e705aaae4ca97bd22d064d
parentf2ac52617298f317fcc673a9ad671fdb4f6a0b0f
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