mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-07-04 19:32:01 +00:00
ceddde1006
When referredBy is not explicitly provided, the code was using callingNumber (user part only) combined with the SBC's internal IP from dlg.remote.uri. This produced a Referred-By with an IP address (e.g. sip:+number@10.x.x.x) that carriers like Verizon reject. Instead, extract the full sip: name-addr from the P-Asserted-Identity header, which preserves both the display name and the original FQDN (e.g. "Cha Van" <sip:+number@ims.lte.wal.verizon.com>). Falls back to the previous behavior when PAI is not available. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>