Network topology: user A ---- U1930 ---- PRA ----- PSTN
Prefix configuration: 9 --- local prefix, 90 ---- DDD prefix, 900 ---- IDD prefix.
The long number of user A (9031) is xxxx9031, the default number of the PRA trunk is xxxx9000.
When user A dial a local number, the CLI displayed on the called phone is the right number xxxx9031, but when he dial a national number or international number, the CLI displayed on the called phone is wrong, it displayed as xxxx9000 (the default number of the PRA trunk).
config protocol pra officeno 0 typeofclinumber subscriber
on U1930, force the type of CLI number as "subscriber" and test again, problem solved.
1. execute command "show prefix dn 90", we found the uselongCLI is configured as "YES", the configuration is right. No need to change it.
2. Trace the log of the abnormal situation (dial "90 + called number") by UCmaint tool. Right click the log of abnormal calls, choose "PRI/R2 ChartParse", result as below screenshot. From the log we know that U1930 has sent the right caller number (xxxx9031) to operator, but the operator change it.
3. To find out why the CLI number of national calls will be changed but local calls works well, we need to compare the SETUP message in both situation. So we trance a new log of the normal situation (dial "9 + called number"). result as below:
4. Compare the logs of normal situation and the one of abnormal situation, we found if the "Type of number " is "subscriber number", the CLI number will be right. But if the type is "national number", the CLI number will be changed to the default number of this PRA trunk.
it is very helpful to compare the log of normal situation and the logs of abnormal situation.