[cisco-voip] CCM - Leading zeroes on calling number
Vincent De Keyzer
vincent at dekeyzer.net
Thu Jan 27 07:46:24 EST 2005
Chris,
thanks, I get the idea. But I still have a problem.
Following your example, I wanted to do something like:
Rule 1 ^1.% 01 national national
Rule 2 ^2.% 02 national national
Rule 3 ^3.% 03 national national
Rule 4 ^4.% 04 national national
Rule 5 ^5.% 05 national national
Rule 6 ^6.% 06 national national
Rule 7 ^7.% 07 national national
Rule 8 ^8.% 08 national national
Rule 9 ^9.% 09 national national
Rule 11 ^1.% 001 international international
Rule 12 ^2.% 002 international international
Rule 13 ^3.% 003 international international
Rule 14 ^4.% 004 international international
Rule 15 ^5.% 005 international international
Rule 16 ^6.% 006 international international
Rule 17 ^7.% 007 international international
Rule 18 ^8.% 008 international international
Rule 19 ^9.% 009 international international.
But I can only apply 10 rules!...
eads(config)#translation-rule 20050127
eads(config-translate)#rule 11 ^1.% 01 international international
^
% Invalid input detected at '^' marker.
Is there no way to tell it in two rules only (one for national and one for
international)?
Something like:
* rule 1: if number starts by anything that is non-zero, and plan is
national, prefix with one zero
* rule 2: if number starts by anything that is non-zero, and plan is
international, prefix with two zeroes
But I'm not that good at regexps.
V
_____
From: chris donnelly [mailto:c.donnelly at skynetsystems.co.uk]
Sent: lundi 24 janvier 2005 17:35
To: Vincent De Keyzer; cisco-voip at puck.nether.net
Subject: RE: [cisco-voip] CCM - Leading zeroes on calling number
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/20050127/4fe7d769/attachment-0001.html
More information about the cisco-voip
mailing list