Translation profile on a voice-port or dial-peer

if you apply a translation-profile on the voice-port for an incoming call, it will have an effect “calling number” and “Peer address”

Example :-

voice translation-rule 2
rule 1 /(.+)/ /901/ type unknown unknown
rule 2 /(.+)/ /901/ type national national
rule 3 /(.+)/ /9001/ type international international

voice translation-profile 20
translate calling 2

Example of Translation profile on voice-port

voice-port 0/0/0
translation-profile incoming 20

1025806: Jun 13 11:44:14.731, PeerAddress 90123456789, PeerSubAddress , DisconnectCause 10 , DisconnectText normal call clearing
1025806: Jun 13 11:44:14.731: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=90123456789, Called Number=104839, Voice-Interface=0x4764ADC4,
Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH

Example of translation-profile on Dial-peer

dial-peer voice 1 pots
translation-profile incoming 20
incoming called-number .

1025859: Jun 13 11:50:14.445, PeerAddress 123456789, PeerSubAddress , DisconnectCause 10 , DisconnectText normal call clearing

1025859: Jun 13 11:50:14.445: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=123456789, Called Number=104839, Voice-Interface=0x4764ADC4,
Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH

this information is pretty useful when the billing software is looking at the calling party number or peer address it mask to a Name

Advertisements