07-30-2007 07:25 PM - edited 03-14-2019 10:50 PM
A customer needs to make 10 digits local call, which is 3 digits area code and 7 digits local number.
I configure two dial-peers, one for this 10 digits local call and one for the reguler 7 digits local calls.
dial-peer voice 90 pots
destination-pattern 9386.......
direct-inward-dial
port 0/1/0:23
forward-digits 10
dial-peer voice 92 pots
destination-pattern 9[2-9]......
direct-inward-dial
port 0/1/0:23
forward-digits 7
Problem:
Cannot make the 10 digits local calls. I dial 10 digits, only 7 digits is collected and forwarded.
Check the output of the command below:
sh dialplan number 93863290100
This 10 digits number matches both of dial-peer 90 and 92. It matches 2 digits with dial-peer 92 and matches 4 digits with dial-peer 90. But the longest matching rule seems not working here, the call went through dial-peer 92.
Online waiting..... Thanks!!
07-30-2007 11:34 PM
hi mic,
in "dial-peer voice 92 pots " do forward all difits by "forward-digts all" command
hope this will help.
rgrds,
07-31-2007 10:27 AM
The router will attempt to match digit by digit from the IP phone. As soon as one dial peer is matched, the router immediately places the call using the matching dial peer.
Use 9T for the second dial-peer and adjust the inter-digit timeout to prevent too long a wait after dialling.
Phil
07-31-2007 12:18 PM
The CME is not making 'longest match' decisions, but rather 'first match' and 'lower preference number' ones. The 'first match' rule is relevant to the order of dial-peers were entered into the router's configuration, and not the dial-peer number. So you have to enter them into the router in that order.
HTH
Regards,
08-02-2007 08:15 AM
add " no digit-strip " in the dial-peer 90
rate the answer if it resolve ur problem
thaks
Tom
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: