Incoming Translation (prepend 9)

Unanswered Question
Jun 16th, 2009
User Badges:

Hi. I have question regarding incoming translations. I can make and recieve calls fine.

I currently dial out using a 9 and use a SIP trunk. I want to prepend a 9 to calling numbers so I can use the missed call button etc. This would also mean that if I have a directory entry such as

directory entry 10 90208 111 111 name EXAMPLE

I should be able to see EXAMPLE on the phone when 0208 111 111 calls. I will also be able to use EXAMPLE from the directory on the phone.

I tried to create the translation (below) and added to the SIP incoming dial peer (1000), but this does not have seemed to work.

Can anyone assist?

voice  translation-profile PREPEND_NINE
translate  calling 777


voice  translation-rule 777
rule  1 // /9\1/


dial-peer voice 1000 voip
permission term
description ** Incoming call from SIP trunk (Generic SIP Trunk Provider) **
voice-class codec 1
voice-class sip dtmf-relay force rtp-nte

translation-profile incoming ADD_NINE
session protocol sipv2
session target sip-server
incoming called-number .%
dtmf-relay rtp-nte
ip qos dscp cs3 signaling
no vad

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Skyler Spence Tue, 06/16/2009 - 07:04
User Badges:
  • Bronze, 100 points or more

Was this a typo?

voice  translation-profile PREPEND_NINE

translation-profile incoming ADD_NINE

Skyler Spence Tue, 06/16/2009 - 08:12
User Badges:
  • Bronze, 100 points or more

Ok, most likely what is happening here is that your incoming numbers are being sent with the E164 "+" prepended to the calling number.  After your current translation rule, the result then becomes 9+1xxxxxxxxxx which is an invalid E164 number and therefore the translation is rejected and the original calling number value is used.  Try changing your translation rule to

rule 1 /\+/ /9\1/

and tell me if that works.

dankennedy Tue, 06/16/2009 - 08:44
User Badges:

That didn't work. The SIP Provider seems to send to complete number (I am in the UK). I tested the translation after making the change you suggested and i get

DLXUC520#test voice translation-rule 777 012XXXXXXXX
012XXXXXXXX  Didn't match with any of rules

If I revert back to the orginal rule I was using I get the following.

DLXUC520#test voice translation-rule 777 012XXXXXXXX
Matched with rule 1
Original number: 012XXXXXXXX   Translated number: 9012XXXXXXXX

This would seem to work then, agreed?

But my missed calls do not have the prepended nine.

Any ideas?

Skyler Spence Tue, 06/16/2009 - 08:48
User Badges:
  • Bronze, 100 points or more

Check to make sure you are matching the correct inbound dial peer.  When configuring with CCA, if you have an incoming SIP trunk and you have configured inbound call routing (such as routing DID xxxxxxx to extension yyy) then you may have multiple inbound SIP dial-peers.  Check to see if this is the case.

You can check if the translation rule is being hit and if any errors are being produced with the

debug voice translation

command, be sure to use the "term mon" command to see the output.  Then try an incoming call and attach the output here (edit out your phone number before posting).

Steven Smith Tue, 06/16/2009 - 08:49
User Badges:
  • Gold, 750 points or more

If the rule is correct, the next possibility is that you aren't matching that dial peer on inbound calls.  I would make sure that this dial peer is being matched instead of another actually being matched, and the dial peer not being applied.

Marcos Hernandez Tue, 06/16/2009 - 08:52
User Badges:
  • Blue, 1500 points or more

CCA 2.0 offers an inbound dial plan test, under the Troubleshooting tab.


dankennedy Tue, 06/16/2009 - 09:18
User Badges:

You were correct. I had a dial-peer with a translation for the main number to a hunt group. As this was more specific it was being used.

I just had to add add a calling number translation under that peer.

Thanks very much for your help.


This Discussion