Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Cisco 2901 router: VoIP Gateway configuration

Hello,

I'm trying to configure a 2901 CISCO gateway with a VWIC3 card as a VoIP gateway.
I'm using a VWIC3 card with only one port, connected to a ISDN primary trunk E1.
I have a DSP module to support 10 channels (It's only for testing)
I have an Asterisk (SIP PBX) connected to one of the ethernet interfaces (the same used for management).
I have configured VWIC3 card and the primary ISDN trunk with the following parameters:
type e1 0 0
codec complexity flex
isdn switch-type primary-net5
framing crc4
linecode hdb3
network-clock-participate wic 0
pri-group timeslots 1-10

I have also defined two dial-peers:
1) for incoming calls (calls from ISDN network). I want to send this calls to the SIP PBX (192.1.23.205)
dial-peer voice 1 voip
session target ipv4:192.1.23.205
incoming called-number 936019999
2) for outgoing calls: Calls from SIP PBX to ISDN (phone number 627892312)
dial-peer voice 2 pots
destination-pattern 6T
port 0/0/0:15

ciscoVoIPgateway.jpg

I have activated SIP debug and also ISDN debug (debug ccsip messages; debug isdn q931), but I don't get any information in console.
When I try the incoming call, I get a message from PSTN network saying that the number doesn't exists.
When I try the outgoing call, I get a SIP CANCEL message from Cisco router in my Asterisk PBX

I suppose there is something wrong in my configuration file (which is very simple) or maybe I need to define something else. So I attach the config file (only the most relevant lines). I hope some one could help me.


!
card type e1 0 0
logging buffered 51200 warnings
!
no aaa new-model
network-clock-participate wic 0
!
no ipv6 cef
ip source-route
no ip routing
no ip cef
!
isdn switch-type primary-net5
!
voice-card 0
!
voice service voip
signaling forward unconditional
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
sip
  ds0-num
!
license udi pid CISCO2901/K9 sn FGL16312187
license boot module c2900 technology-package uck9
license boot module c2900 technology-package datak9
hw-module pvdm 0/0
!
controller E1 0/0/0
pri-group timeslots 1-10,16
!
interface Embedded-Service-Engine0/0
no ip address
no ip route-cache
shutdown
!
interface GigabitEthernet0/0
description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-GE 0/0$
ip address 192.1.28.3 255.255.0.0
no ip route-cache
duplex auto
speed auto
no mop enabled
!
interface GigabitEthernet0/1
description $ES_LAN$
no ip address
no ip route-cache
shutdown
duplex auto
speed auto
!
interface Serial0/0/0:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice voice
no cdp enable!
!
voice-port 0/0/0:15
!
dial-peer voice 1 voip
session target ipv4:192.1.23.205
incoming called-number 936019999
!
dial-peer voice 2 pots
destination-pattern 6T
port 0/0/0:15
!

Everyone's tags (5)
1 ACCEPTED SOLUTION

Accepted Solutions
VIP Super Bronze

Cisco 2901 router: VoIP Gateway configuration

David,

The called number is '936019999'. Looking at your dial-peers, there is no pattern defined for this number...

This dial-peer matches the inbound leg of your call. This doesnt match for the outbound leg of the call. Secondly your inbound leg from the PSTN is  not a voip leg, its a POTS leg..

dial-peer voice 1 voip

session target ipv4:192.1.23.205

incoming called-number 936019999

You need to do the following:

dial-peer voice 1 pots

description inbound calls from PSTN

incoming called number .

direct-inward-dial

dial-peer voice 2 voip

description inbound calls from Asterisk

incoming called number .

session protocl sipv2

dtmf-relay rtp-nte

no vad

dial-peer voice 3 voip

sescription outbound calls to Asterisk

destination-pattern 936019999

session target ipv4:192.1.23.205

session protocol sipv2

dtmf-relay rtp-nte

no vad

Please rate all useful posts

"The essence of christianity is not the enthronement but the obliteration of self --William Barclay"

Please rate all useful posts "The essence of christianity is not the enthronement but the obliteration of self --William Barclay"
7 REPLIES
New Member

Cisco 2901 router: VoIP Gateway configuration

With debug isdn q931 enabled you should get some info when the call setup is attempted.    Can you run "show isdn status" on your 2901 and ensure the connection is good?

TONY

New Member

Cisco 2901 router: VoIP Gateway configuration

It seems to be OK, isn't it?

>show isdn status
Global ISDN Switchtype = primary-net5
ISDN Serial0/0/0:15 interface
    dsl 0, interface ISDN Switchtype = primary-net5
    Layer 1 Status:
    ACTIVE
    Layer 2 Status:
    TEI = 0, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED
    Layer 3 Status:
    0 Active Layer 3 Call(s)
    Active dsl 0 CCBs = 0
    The Free Channel Mask:  0x800003FF
    Number of L2 Discards = 0, L2 Session ID = 1
    Total Allocated ISDN CCBs = 0

New Member

Cisco 2901 router: VoIP Gateway configuration

Looks good enough.   Let's back up even fruther than.   When you've enterend the debug messages you're getting absolutly nothing in the console?   If that's the case you need to also enter "terminal monitor" in the CLI.

TONY

New Member

Cisco 2901 router: VoIP Gateway configuration

Thank you Tony!!

I forgot to enter "terminal monitor"

Now I can see the logs. But I don't understand what I'm doing wrong. The "CDP-4-DUPLEX_MISMATCH" seems suspicious. But I don't know why the 2901 is generating the "Cause i = 0x8081 - Unallocated/unassigned number" for incoming calls.

Logs for incoming calls (PSTN to SIP):

Dec 23 20:23:29.175: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on GigabitEthernet0/0 (not half duplex), with SEP0004f2b01793 Port 1 (half duplex).
Dec 23 20:23:33.059: ISDN Se0/0/0:15 Q931: RX <- SETUP pd = 8  callref = 0x300D
    Sending Complete
    Bearer Capability i = 0x8090A3
        Standard = CCITT
        Transfer Capability = Speech 
        Transfer Mode = Circuit
        Transfer Rate = 64 kbit/s
    Channel ID i = 0xA18381
        Preferred, Channel 1
    Calling Party Number i = 0x2183, '627892312'
        Plan:ISDN, Type:National
    Called Party Number i = 0xA1, '936019999'
        Plan:ISDN, Type:National
Dec 23 20:23:33.059: ISDN Se0/0/0:15 Q931: Received SETUP  callref = 0xB00D callID = 0x000A switch = primary-net5 interface = User
Dec 23 20:23:33.063: ISDN Se0/0/0:15 Q931: TX -> CALL_PROC pd = 8  callref = 0xB00D
    Channel ID i = 0xA98381
        Exclusive, Channel 1
Dec 23 20:23:33.063: ISDN Se0/0/0:15 Q931: TX -> DISCONNECT pd = 8  callref = 0xB00D
    Cause i = 0x8081 - Unallocated/unassigned number
Dec 23 20:23:33.315: ISDN Se0/0/0:15 Q931: RX <- RELEASE pd = 8  callref = 0x300D
Dec 23 20:23:33.315: ISDN Se0/0/0:15 Q931: TX -> RELEASE_COMP pd = 8  callref = 0xB00D
Dec 23 20:24:29.167: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on GigabitEthernet0/0 (not half duplex), with SEP0004f2b01793 Port 1 (half duplex).
Dec 23 20:25:29.159: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on GigabitEthernet0/0 (not half duplex), with SEP0004f2b01793 Port 1 (half duplex).

VIP Super Bronze

Cisco 2901 router: VoIP Gateway configuration

David,

The called number is '936019999'. Looking at your dial-peers, there is no pattern defined for this number...

This dial-peer matches the inbound leg of your call. This doesnt match for the outbound leg of the call. Secondly your inbound leg from the PSTN is  not a voip leg, its a POTS leg..

dial-peer voice 1 voip

session target ipv4:192.1.23.205

incoming called-number 936019999

You need to do the following:

dial-peer voice 1 pots

description inbound calls from PSTN

incoming called number .

direct-inward-dial

dial-peer voice 2 voip

description inbound calls from Asterisk

incoming called number .

session protocl sipv2

dtmf-relay rtp-nte

no vad

dial-peer voice 3 voip

sescription outbound calls to Asterisk

destination-pattern 936019999

session target ipv4:192.1.23.205

session protocol sipv2

dtmf-relay rtp-nte

no vad

Please rate all useful posts

"The essence of christianity is not the enthronement but the obliteration of self --William Barclay"

Please rate all useful posts "The essence of christianity is not the enthronement but the obliteration of self --William Barclay"

Cisco 2901 router: VoIP Gateway configuration

And also add sip interface binding command.


voice service voip

sip

bind media source-interface xxxxx

bind control source-interface xxxxx

Thanks

Manish

Rate all the helpful post.

New Member

Hello David,

Hello David,

thanks for your post. I have same architecture as espido1. incoming call work very well but outgoing call not work.

card type e1 0 3

!

network-clock-participate wic 3
network-clock-select 1 E1 0/3/0

!

isdn switch-type primary-ni

!

voice-card 0
 dspfarm
 dsp services dspfarm

!

voice class codec 1
 codec preference 1 g711alaw
 codec preference 2 g711ulaw
 codec preference 3 g729br8

!

controller E1 0/3/0
 pri-group timeslots 1-10,16
!
controller E1 0/3/1
 pri-group timeslots 10-20

!

interface Serial0/3/0:15
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 isdn bchan-number-order ascending
 no cdp enable
!
interface Serial0/3/1:15
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable

!

!

!

dial-peer voice 100 pots
 description # Appel entrant sur la E1 1#
 incoming called-number .
 direct-inward-dial

!

dial-peer voice 101 pots
 description appel sortant sur la E1 1
 destination-pattern .T
 port 0/3/0:15
!
dial-peer voice 102 pots
 description appels sortant sur ma E1 2
 preference 1
 destination-pattern .T
 port 0/3/1:15
!
dial-peer voice 98 voip
 description #incoming call from cucm
 session protocol sipv2
 incoming called-number .
 voice-class codec 1
 dtmf-relay rtp-nte
 no vad

!

dial-peer voice 99 voip
 description #appel vers le CUCM
 destination-pattern 3.......
 session protocol sipv2
 session target ipv4:172.16.5.1
 incoming called-number .
 voice-class codec 1
 dtmf-relay rtp-nte
no vad

!

4180
Views
5
Helpful
7
Replies
CreatePlease to create content