]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_messaging: Update To URI only if it is a SIP(S) URI
authorMaximilian Fridrich <m.fridrich@commend.com>
Thu, 7 May 2026 06:53:28 +0000 (08:53 +0200)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 12 May 2026 16:27:48 +0000 (16:27 +0000)
commitf4ed6a13fcd846a45e14213a05b02fcc2b914464
treef34b6e565ae4789542140b5b19cafa974f4a1899
parent4ec7509d939e187cc3644e2ef9a6447b9770d4fe
res_pjsip_messaging: Update To URI only if it is a SIP(S) URI

When a message is sent via ARI, the ARI endpoint only provides a To
field which is also used as destination field. This means that the To
field might not necessarily contain a SIP URI but might instead specify
an Asterisk endpoint (in MessageDestinationInfo format). This led to
many warnings even though the message was sent correctly.

The fix is to only call `ast_sip_update_to_uri` if the To field starts
with the sip: or sips: scheme.

Resolves: #1357
res/res_pjsip_messaging.c