Problem with incoming PSTN call routing

Unanswered Question
Sep 29th, 2006

Hello there! I'm new to the Cisco IP telephony world, and am trying to get my head around how it all works. I have a nearly-running system at the moment - just one obstacle left.

We have a Cisco 2811 ISR running CCME 3.3. The router is connected to two ISDN BRI lines, and it serves some Cisco IP phones. Whenever an incoming call comes in from the PSTN, the caller will get a dial tone. If they then key in the extension number, it will connect them to the correct phone. Despite trying many things, I cannot get the router to look at the incoming called number, and to route it to the correct extension automatically. The ISDN service has 20 DDI numbers allocated to it.

I have set up the following dial-peers:

dial-peer voice 1 pots

incoming called-number .

direct-inward-dial

dial-peer voice 2 pots

incoming called-number .

direct-inward-dial

dial-peer voice 11 pots

destination-pattern .T

port 0/0/0

dial-peer voice 12 pots

destination-pattern .T

port 0/0/1

I have also tried putting port 0/0/0 and 0/0/1 into dial-peers 1 and 2, to no effect.

The only other line of interest (perhaps) is an entry in the telephony-service section:

dialplan-pattern 1 01234567... extension-length 3

The phone extensions we use are 8..

I'm obviously doing something silly, but after a whole week of struggling with this, can't work out where I'm going wrong.

Does anyone have any pointers?

As a small aside, how do I set the router up so that groups of ephone-dns have the same Caller ID? Say, for instance, I would like extensions 800-809 to show a Caller ID of 01234567800, and for extensions 810-819 to show a Caller ID of 01234567810... - would this be possible?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
Chris Deren Fri, 09/29/2006 - 13:42

Add "port 0/0/0" to dial-peer 1 and "port 0/0/1" to dial peer 2.

Chris

StanYau@begin-i... Sun, 10/01/2006 - 15:28

Thanks for the reply. As mentioned in my original post, this doesn't work for some reason (although I would have thought it did).

If I enter these into dial-peer 1 and 2, then it causes the router to hang up the call immediately. If I leave them out of dial-peer 1 and 2, then I get presented with the dial tone, and keying in the three digit extension number will then route my call...

Any ideas where it's going wrong?

anup.anand Mon, 10/02/2006 - 07:31

This is strange...

Can you place a test call and while the call is active do a "show call active voice brief". This will tell you which dial-peer the call is matching and lets see if there is something else that is happening. Please post the output of the command.

Regards,

Anup

anup.anand Mon, 10/02/2006 - 07:46

Regarding the caller-id, you can use Translation rules to make it happen.

1. Create a translation rule to change 800-809 to 01234567800 and 810-819 to 01234567810

voice translation-rule 1

rule 1 /^80./ /01234567800/

rule 2 /^81./ /01234567810/

2. Create a translation profile to change the calling numbers

voice translation-profile ANI

translate calling 1

3. Apply the translation profile to the dial-peers

dial-peer voice 11 pots

destination-pattern .T

port 0/0/0

translation-profile outgoing ANI

dial-peer voice 12 pots

destination-pattern .T

port 0/0/1

translation-profile outgoing ANI

Regards,

Anup

StanYau@begin-i... Mon, 10/02/2006 - 08:53

Hello Anup

Thanks for the feedback. In terms of receiving a call originating from a POTS connection, the following result is displayed:

CIS2811#show call active voice brief

: hs. + pid:

dur hh:mm:ss tx:/ rx:/

IP : rtt:ms pl:/ms lost://

delay://ms

media inactive detected: media cntrl rcvd: timestamp:

MODEMPASS buf:/ loss /

last s dur:/s

FR [int dlci cid] vad: dtmf: seq:

(payload size)

ATM [int vpi/vci cid] vad: dtmf: seq:

(payload size)

Tele (callID) [channel_id] tx://ms noise: acom:

> i/o:/ dBm

MODEMRELAY info:// xid:/ total://<

drops>

speeds(bps): local / remote /

Proxy :,,,,, endpt: /

anf>

bw: / codec: /

tx: /,/,/

tes>

rx: /,/,/

es>

Telephony call-legs: 1

SIP call-legs: 0

H323 call-legs: 0

Call agent controlled call-legs: 0

SCCP call-legs: 0

Multicast call-legs: 0

Total call-legs: 1

1248 : 394 436796580ms.1 +-1 pid:12 Answer connected

dur 00:00:00 tx:0/0 rx:0/0

Tele 0/0/1 (394) [0/0/1.1] tx:0/0/0ms None noise:0 acom:0 i/0:0/0 dBm

Telephony call-legs: 1

SIP call-legs: 0

H323 call-legs: 0

Call agent controlled call-legs: 0

SCCP call-legs: 0

Multicast call-legs: 0

Total call-legs: 1

If the extension is dialled after the caller hears the dial tone (in this case, extension 876), the following is output:

CIS2811#show call active voice brief

: hs. + pid:

dur hh:mm:ss tx:/ rx:/

IP : rtt:ms pl:/ms lost://

delay://ms

media inactive detected: media cntrl rcvd: timestamp:

MODEMPASS buf:/ loss /

last s dur:/s

FR [int dlci cid] vad: dtmf: seq:

(payload size)

ATM [int vpi/vci cid] vad: dtmf: seq:

(payload size)

Tele (callID) [channel_id] tx://ms noise: acom:

> i/o:/ dBm

MODEMRELAY info:// xid:/ total://<

drops>

speeds(bps): local / remote /

Proxy :,,,,, endpt: /

anf>

bw: / codec: /

tx: /,/,/

tes>

rx: /,/,/

es>

Telephony call-legs: 2

SIP call-legs: 0

H323 call-legs: 0

Call agent controlled call-legs: 0

SCCP call-legs: 0

Multicast call-legs: 0

Total call-legs: 2

1249 : 395 436889270ms.1 +-1 pid:12 Answer connected

dur 00:00:00 tx:0/0 rx:0/0

Tele 0/0/1 (395) [0/0/1.2] tx:0/0/0ms None noise:0 acom:0 i/0:0/0 dBm

1249 : 396 436892410ms.1 +-1 pid:20005 Originate 876 connecting

dur 00:00:00 tx:0/0 rx:0/0

Tele 50/0/7 (396) [50/0/7.0] tx:0/0/0ms None noise:0 acom:0 i/0:0/0 dBm

Telephony call-legs: 2

SIP call-legs: 0

H323 call-legs: 0

Call agent controlled call-legs: 0

SCCP call-legs: 0

Multicast call-legs: 0

Total call-legs: 2

Any input you may have would be most welcome. Many thanks! Also - thanks for posting details on how to use translation rules to specify a Caller ID.

StanYau@begin-i... Tue, 10/03/2006 - 01:14

To follow up from my last post, I have listed below the running-config output of the router in question:

CIS2811#show conf

Using 4942 out of 245752 bytes

!

version 12.4

service tcp-keepalives-in

service tcp-keepalives-out

service timestamps debug datetime msec

service timestamps log datetime msec

service password-encryption

service sequence-numbers

!

hostname CIS2811

!

boot-start-marker

boot-end-marker

!

security authentication failure rate 3 log

security passwords min-length 6

logging buffered 51200 debugging

logging console critical

enable secret 5 [snip]

!

no aaa new-model

!

resource policy

!

clock timezone gmt 0

clock summer-time GMT recurring

network-clock-participate wic 0

ip subnet-zero

ip tcp synwait-time 10

!

ip cef

!

ip domain name [snip].com

ip name-server 192.168.16.2

ip ssh time-out 60

ip ssh authentication-retries 2

isdn switch-type basic-net3

!

voice-card 0

no dspfarm

!

voice class codec 1

codec preference 2 g711alaw

!

!

crypto pki [snip]

! [SNIP] !

!

interface FastEthernet0/0

description $ETH-SW-LAUNCH$$INTF-INFO-FE 0/0$$ES_LAN$$FW_INSIDE$$ETH-LAN$

ip address 192.168.16.222 255.255.255.0

ip route-cache flow

duplex auto

speed auto

!

interface FastEthernet0/1

no ip address

ip route-cache flow

shutdown

duplex auto

speed auto

!

interface BRI0/0/0

no ip address

isdn switch-type basic-net3

isdn point-to-point-setup

isdn incoming-voice voice

isdn static-tei 0

isdn skipsend-idverify

!

interface BRI0/0/1

no ip address

isdn switch-type basic-net3

isdn point-to-point-setup

isdn incoming-voice voice

isdn static-tei 0

isdn skipsend-idverify

!

ip classless

!

ip http server

ip http authentication local

ip http secure-server

ip http timeout-policy idle 60 life 86400 requests 10000

ip http path flash:

!

no logging trap

!

tftp-server flash:CP7912060000SCCP050124A.sbin

!

control-plane

!

voice-port 0/0/0

compand-type a-law

cptone GB

!

voice-port 0/0/1

compand-type a-law

cptone GB

!

dial-peer voice 1 pots

incoming called-number .

direct-inward-dial

!

dial-peer voice 2 pots

incoming called-number .

direct-inward-dial

!

dial-peer voice 11 pots

destination-pattern .T

port 0/0/0

!

dial-peer voice 12 pots

destination-pattern .T

port 0/0/1

!

telephony-service

load 7912 CP7912060000SCCP050124A

max-ephones 15

max-dn 50

ip source-address 192.168.16.222 port 2000

network-locale GB

time-zone 21

time-format 24

date-format dd-mm-yy

create cnf-files version-stamp Jan 01 2002 00:00:00

dialplan-pattern 1 01234567... extension-length 3

max-conferences 8 gain -6

moh music-on-hold.au

web admin system name [snip] password [snip]

dn-webedit

time-webedit

transfer-system full-consult

!

ephone-dn 1 dual-line

number 890

label Conference 1

name Conference 1

!

![ephone-dn snip] !

!

ephone 1

mac-address 0001.0001.0001

type 7912

button 1c1

!

! [ephone snip]

!

banner login ^CAuthorized access only!

Disconnect IMMEDIATELY if you are not an authorized user!^C

!

line con 0

login local

transport output telnet

line aux 0

login local

transport output telnet

line vty 0 4

privilege level 15

login local

transport input telnet ssh

line vty 5 15

privilege level 15

login local

transport input telnet ssh

!

scheduler allocate 20000 1000

ntp server 192.168.16.2

!

end

anderson-david Tue, 10/03/2006 - 08:41

put direct-inward-dial on your out going dial peers and this should help ie the POTS dial peer thats associated with the voice ports

StanYau@begin-i... Tue, 10/03/2006 - 10:19

Hello!

Thanks for that. I have added "direct-inward-dial" to both dial-peers 11 and 12.

This causes any incoming call to hang up straight away - I am assuming that the router is unable to route the call appropriately, and is hanging up immediately.

Not sure where to go from here, unfortunately... :o( Any thoughts?

Chris Deren Tue, 10/03/2006 - 12:08

I just noticed that your dialplan-pattern is wrong. You need to adjust your dialplan-pattern to what your DID range is. So for example if your DIDs are 212-555-8000 thru 8099 with 4 digit extensions, then your dialplan-pattern should be:

dialplan-pattern 1 2125558... extension-lenght 4

if it's 3 digit then:

dialplan-pattern 1 2125558... extension-lenght 3

HTH, please rate all posts!

Chris

Actions

Login or Register to take actions

This Discussion

Posted September 29, 2006 at 12:26 PM
Stats:
Replies:9 Avg. Rating:
Views:357 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard