# "From User" on existing PJSIP trunk not written to endpoint (only applied when the trunk is recreated)

**URL:** https://forums.vitalpbx.org/t/from-user-on-existing-pjsip-trunk-not-written-to-endpoint-only-applied-when-the-trunk-is-recreated/6289
**Category:** Reporting an Issue
**Created:** [June 4, 2026, 4:36pm UTC](https://forums.vitalpbx.org/t/from-user-on-existing-pjsip-trunk-not-written-to-endpoint-only-applied-when-the-trunk-is-recreated/6289 "2026-06-04T16:36:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gruppolink](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/gruppolink/32/4560_2.png) [@gruppolink](https://forums.vitalpbx.org/u/gruppolink)
#### Post date: [June 4, 2026, 4:36pm UTC](https://forums.vitalpbx.org/t/from-user-on-existing-pjsip-trunk-not-written-to-endpoint-only-applied-when-the-trunk-is-recreated/6289/1 "2026-06-04T16:36:23Z")

</div>

Hi all,

I think I ran into a bug with the “From User” field on PJSIP trunks and would like to confirm whether it’s known.

Environment:

- VitalPBX: 4.5.3 R5
- O.S. Debian 12

Context:  
I have a PJSIP trunk to a provider (italian) that validates the user-part of the From URI against the authenticated SIP account. If the From user-part does not match the account username, the provider rejects the outbound INVITE with “403 Authentication Username Mismatch” (Asterisk reports Hangup Cause 21 / CHANUNAVAIL). To satisfy this, the user-part of the From header must equal the auth username, so I set it through the trunk’s “From User” field.

Problem:  
When I set or modify “From User” on an existing trunk and then Save + Apply Changes, the value is NOT written to the generated PJSIP endpoint. “pjsip show endpoint myendpointname” shows from\_user empty. A manual “core reload” / “module reload res\_pjsip.so” makes no difference.

Workaround that worked:  
Deleting and recreating the trunk from scratch, entering the same “From User” value, writes from\_user correctly. It then appears in “pjsip show endpoint” and the From header goes out as expected (the provider accepts the INVITE and the call reaches 180 Ringing).

So it looks like “From User” is only persisted to the endpoint on trunk creation, not when editing an existing trunk.

Questions:

1. Is this a known issue, or already fixed in a newer release?
2. Can edits to “From User” (and similar identity fields) be made to propagate on Save + Apply Changes, without having to recreate the trunk?

This seems to be the same class of issue reported previously where contact\_user was not written to the endpoint. For reference, adding from\_user / contact\_user manually via pjsip\_custom.conf (appending to the endpoint section) also works as a workaround.

Thanks!
