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
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
Hello, The uac_replace_from works like a charm. However, preferred/asserted identity are not supported by some of the pstn providers.
Thanks Jesse
On 9/06/2017, at 11:13 PM, 赵国杰 zhaoguojie2010@163.com 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?
https://www.google.co.nz/search?client=safari&rls=en&q=kamailio+repl... https://www.google.co.nz/search?client=safari&rls=en&q=kamailio+replace+caller+id&ie=UTF-8&oe=UTF-8&gfe_rd=cr&ei=c4Y6WYH5DcbN8gfGjo6IBg
First result is great.
-- Nathan Ward