The value in the P-Charge-Info
header should be parsed for ANI, rather than the ANI just being the same as the CPN.
The P-Charge-Info header should also be able to be set on the outbound call using the ANI (using a pjsip.conf option). ANI2 should also be set in the From header on the outbound side (perhaps using another option).
For receiving calls, we should also support tel URI, see https://datatracker.ietf.org/doc/html/rfc8496#section-5.3
We should investigate whether any other headers would also ever be used for the ANI.
Tests should also be added for this case, similar to the recent OLI ones.
5/16/2025 8:14 PM — InterLinked
Would it make sense to also set the ANI name to the ANI number? What is the ANI number even supposed to be in the TDM world?
You must be
5/16/2025 8:08 PM — shane
Assuming that we effectively set the CALLERID(ANI-num) to the value of the phone number in the P-Charge-Info header, we should also clear the CALLERID(ANI-name), since it's no-longer valid.