]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_outbound_registration: only update the Expires header if the value has... master
authorMike Bradeen <mbradeen@sangoma.com>
Wed, 8 Apr 2026 17:03:04 +0000 (11:03 -0600)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 13 Apr 2026 14:15:14 +0000 (14:15 +0000)
commit8afbd78139be62509468c1cda5573bdf595f5481
tree8e3618dc806d242d483dce14d58f374d1a7ac948
parent5e837f1039907acce0277e549641ee9c1d917b07
res_pjsip_outbound_registration: only update the Expires header if the value has changed

The PJSIP outbound registration API has undocumented behavior when reconfiguring
the outbound registration if the expires value being set is the same as what was
previously set.

In this case PJSIP will remove the Expires header entirely from subsequent
outbound REGISTER requests. To eliminate this as an issue we now check the current
expires value against the configured expires value and only apply it if it differs.

This ensures that outbound REGISTER requests always contain an Expires header.

Resolves: #1859
res/res_pjsip_outbound_registration.c