P Asserted Identity and Caller Id on inbound calls

We are receiving calls from provider on external profile. If provider send us P-Asserted-Identity, then this value override From field sent in SIP Invite.

How can we ignore P-Asserted-Identity and always using From field? We tried with setting caller-cid-type to none in external profile param, but it doesn’t work.

This is for ibound call, not for outbound.

BR,

Hello Gregor,
You can set the Caller ID in the Dialplan of the inbound call with something like:

<action application="set" data="origination_callee_id_name=${sip_from_user}"/>
<action application="set" data="origination_callee_id_number=${sip_from_user}"/>

This will force the CID to be whatever is the user field of the From Header.