cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Walkthrough Wednesdays
1536
Views
0
Helpful
6
Replies
Rolando Valenzuela
Enthusiast

Incoming SIP dial-peer

Hello Community

I'm trying to setup an incoming SIP trunk with one ISP and I'm seeing all the INVITE messages, but my 2921 is not responding back :( below is my relevant configuration, any advice is welcome.

Basically I want to receive calls with dial-peer 20 or 21 and forward the call to CUCM using dial-peer 4

voice service voip
allow-connections sip to sip
sip
 bind control source-interface GigabitEthernet0/0
 bind media source-interface GigabitEthernet0/0
 header-passing
 midcall-signaling passthru
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g729r8
!
dial-peer voice 4 voip
description FROM ROUTER TO CUCM
preference 5
destination-pattern 8.........$
session protocol sipv2
session target ipv4:10.10.10.10
incoming called-number .
voice-class codec 1
dtmf-relay rtp-nte sip-kpml sip-notify
no vad
!
dial-peer voice 20 voip
description FROM ISP TO ROUTER (1)
session protocol sipv2
session target ipv4:50.50.50.50
incoming called-number 8006782222
voice-class codec 1
!
dial-peer voice 21 voip
description FROM ISP TO ROUTER (2)
session protocol sipv2
session target ipv4:60.60.60.60
incoming called-number .
voice-class codec 1
!

Thank you!

6 REPLIES 6
Brandon Buffin
Advisor

If you run "debug voip dialpeer" do you see the call hitting the gateway? Is the call using one of your inbound dial peers?

Brandon

Hi Brandon!

Thanks for the suggestion, and it fact the call is using dial peer 4 :) BUT the SIP sessions fails, despite my phone is able to answer the call :( since I keep seeing INVITE messages coming using debug ccsip all.

Attached the results.

Thank you!

Rolando A. Valenzuela

Hi

I am guessing you are running the 15.1 or higher version of the IOS. Hence it may be due to the "toll fraud avoidance" feature of the IOS

Please try putting this under your CUBE configuration

voice service voip
 no ip address trusted authenticate

If this works, then you definitely would want to add the IP Addresses of the SIP Service Provider in the Trusted List.

HTH

Plz rate all helpful posts.

Hi HTH

I'm running version 15.2 actually, but after adding that command I not replying to the INVITE messages, if that matters the router is behind a firewall, the SIP provider is sending the traffic to the public IP 199.33.33.33 and then I'm translating that to 10.10.10.10, makes sense?

Regards.

Rolando A. Valenzuela.

Hi Rolando,

It may be something to do with the NAT. Are you using Static NAT?

More over, could you please post the entire sequence of the "ccsip messages"

Regards

PS: HTH = Hope that helps :-)

Yeap, static NAT

nat (transit,outside2) source static obj-10.10.10.10 obj-199.33.33.33

attached is the debug message.

Thanks again for all the help.

Rolando A. Valenzuela.

Content for Community-Ad

Spotlight Awards 2021