Hello,

there are couple of ways to achieve it, depending on the gateway to pstn.

1) update the From header username -- probably the safest way

  * see uac_replace_from(...) from uac module

2) add P-Asserted-Identity/P-Preferred-Identity headers

  * see append_hf()/insert_hf()/remove_hf() functions from textops module

3) set Remote-Party-Id headers -- only for old gateways -- same functions as for 2)

Cheers,
Daniel


On 09.06.17 13:13, 赵国杰 wrote:
Hello all.
     I have a kamailio server routing request to a pstn gw and I want to change the number displayed on callee side. Say the caller's user name is "test", and it calls the number 18512345678, and I want the incoming all number displayed on callee side to be 13587654321. How can I achieve this?

Thanks,
Jesse


 



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com