[cisco-voip] CCM - Leading zeroes on calling number
chris donnelly
c.donnelly at skynetsystems.co.uk
Mon Jan 24 11:34:54 EST 2005
We do it this way....
translation-rule 1
Rule 1 ^0.% 90
Rule 2 ^1.% 901
Rule 3 ^2.% 902
Rule 4 ^3.% 903
Rule 5 ^4.% 904
Rule 6 ^5.% 905
Rule 7 ^6.% 906
Rule 8 ^7.% 907
Rule 9 ^8.% 908
Rule 10 ^9.% 909
Then apply the translation rule to a dial-peer
dial-peer voice 102 voip
preference 2
destination-pattern xxx
progress_ind setup enable 3
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
translate-outgoing calling 1
modem passthrough nse codec g711ulaw
voice-class codec 1
voice-class h323 1
session target ipv4:xxx.xxx.xxx.xxx
dtmf-relay h245-alphanumeric
fax-relay ecm disable
fax rate disable
fax nsf 000000
fax protocol none
no vad
_____
From: Vincent De Keyzer [mailto:vincent at dekeyzer.net]
Sent: 24 January 2005 14:02
To: cisco-voip at puck.nether.net
Subject: [cisco-voip] CCM - Leading zeroes on calling number
Hello,
I am facing (maybe because I'm in Europe) a cosmetic issue with
CallManager and a Cisco2821 as gateway.
When I receive an incoming call on the gateway, the set-up message
appears as follows:
Jan 24 14:45:16.918 CET: ISDN Se0/0/0:15 Q931: RX <- SETUP pd = 8
callref = 0x7194
Sending Complete
Bearer Capability i = 0x8090A3
Standard = CCITT
Transer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA9838A
Exclusive, Channel 10
Calling Party Number i = 0x2181, '23334455'
Plan:ISDN, Type:National
Called Party Number i = 0xA1, '24447722'
Plan:ISDN, Type:National
Sending Complete
When the call hits my IP phone, it shows calling number '23334455'
instead of what I had wished, which is '023334455' (since it's a
national call).
In the same way, for an international call from, say, France, I would
receive on the PRI '33612345678' and 'Type: International', which I
would like to appear on the display of the IP phone as '0033612345678'.
How can I add one or two zeros to the calling number based depending on
its type ('National' or 'International')?
Vincent
_____________________________________________________________________
This message has been checked for all known viruses by the MessageLabs
Virus Control Centre.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://puck.nether.net/pipermail/cisco-voip/attachments/20050124/5340c7cf/attachment-0001.html
More information about the cisco-voip
mailing list