Alter P-Asserted-Identity

What script in the SBC is responsible for populating the P-Asserted-Identity? if i change the from number for my termination route the P-Asserted-Identity number is changed to show the same information as the FROM identity. I need to split this or write a new script to change the behavior of this remapping. Any help would be appreciated.

so the format that i need to have the P-Asserted-Identity.

would be something like this.

"original_called_number"original_called_number@host_ip:host_port

Thanks.

You need to write a new script for it. Please check the following link;

https://docs.telcobridges.com/tbwiki/Routing_script_tutorial:Mini_Development_Guide

Hi,

It should be possible to change the value of the P-Asserted-Identity on the outgoing call leg.

You should do it in a per-route basis, after the other parts of the routing script.

Example code for testing ( not verified ):

module PreservePAI

def set_pai(params)
call = params[:call]
out_calls = params[:out_calls]
routes = params[:routes]

#check on each route
routes.each_with_index do |route, idx|

  if route_col_true?(route[:set_pai], true)    

out_calls[idx][:private_address] = “sip:” + call[:calling] + “@” + current_nap_local_ip
log_trace 2, “Modified PAI:” + out_calls[idx].inspect
params
end # if route_col_true
end # routes.each
end #def set_pai
end #module

If you require customized support, you can contact either us or Telcobridges directly for professional services, and someone will assist you