11-05-2013 03:18 AM - edited 03-16-2019 08:14 PM
Hello, friends!
I try to connect my cisco 3725 to SIP provider. IOS 12.4 I've set up commands below
sip-ua
authentication username {SIP ID} password {password}
calling-info pstn-to-sip from number set {SIP ID}
registrar dns:sipnet.ru:5060 expires 600
sip-server dns:sipnet.ru
Ping sipnet.ru is OK.
show sip-ua register status shows nothing. debug ccsip all is empty too.
It seems router doesn't initiate connection to SIP provider. What should I do else to make it work?
Thank you a lot!
Solved! Go to Solution.
11-05-2013 05:23 AM
You need to configure a dial-peer that will point to your sip provider.
dial-peer voice 1 voip
description **** OUTBOUND CALLS to ITSP *****
destination-pattern .T
session protocol sipv2
session target sip-server
dtmf-relay rtp-nte
codec g711ulaw
no vad
dial-peer voice 2 voip
incoming called number .
session protocol sipv2
ddtmf-relay rtp-nte
no vad
!
Do a test again and enable debug ccsip messages
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
11-06-2013 02:52 AM
Try this..
sip-ua
credentials number 123456 username XXXXX password XXXXX realm sipnet.ru
retry register 5
registrar dns:sipnet.ru expires 3600 auth-realm sipnet.ru
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
11-05-2013 03:34 AM
Mikhail..
Can you give us a full description of your setup..
CUCM---->sip-----Gateway---sip---->ITSP ????
Can you also share your config
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
11-05-2013 04:25 AM
I use CME.
I just newbie in Cisco Voice, so my configuration is pretty simple. Firstly I want to do this
R3725(CME)---->SIP---->sipnet.ru
Full config below. Almost everything by default.
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
clock timezone MSK 4
no ip icmp rate-limit unreachable
ip cef
!
!
!
!
ip domain name home.local
ip name-server 8.8.8.8
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
voice rtp send-recv
!
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.137.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 192.168.137.1
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
sip-ua
authentication username {SIP ID} password {Pass}
calling-info pstn-to-sip from number set {SIP ID}
registrar dns:sipnet.ru:5060 expires 600
sip-server dns:sipnet.ru
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
ntp clock-period 17179899
ntp server 89.175.22.41
!
end
11-05-2013 05:23 AM
You need to configure a dial-peer that will point to your sip provider.
dial-peer voice 1 voip
description **** OUTBOUND CALLS to ITSP *****
destination-pattern .T
session protocol sipv2
session target sip-server
dtmf-relay rtp-nte
codec g711ulaw
no vad
dial-peer voice 2 voip
incoming called number .
session protocol sipv2
ddtmf-relay rtp-nte
no vad
!
Do a test again and enable debug ccsip messages
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
11-05-2013 08:16 PM
Thank you for answers! I've added peers and it works now! There is one thing left.
Show sip-ua register status still doesn't show anything. Seems connection to my sip provider establishes only at the call time. What else can I add to my config to make my connection permanent. Working config for me is:
voice rtp send-recv
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
dial-peer voice 2 pots
description Inbound from Telephony
incoming called-number .
direct-inward-dial
dial-peer voice 3 voip
description Outbound to SIPNET
destination-pattern .T
voice-class codec 1
session protocol sipv2
session target sip-server
dtmf-relay rtp-nte
no vad
sip-ua
authentication username {SIP ID} password {Pass}
calling-info pstn-to-sip from number set {SIP ID}
registrar dns:sipnet.ru:5060 expires 600
sip-server dns:sipnet.ru
telephony-service
max-ephones 5
max-dn 5
ip source-address 192.168.100.1 port 2000
auto assign 1 to 5
calling-number initiator
time-zone 32
create cnf-files version-stamp 7960 Nov 04 2013 11:40:14
max-conferences 8 gain -6
transfer-system full-consult
ephone-dn 1 dual-line
number 1000 no-reg primary
ephone 1
mac-address 0015.5D0A.0514
type CIPC
button 1:1
11-06-2013 02:52 AM
Try this..
sip-ua
credentials number 123456 username XXXXX password XXXXX realm sipnet.ru
retry register 5
registrar dns:sipnet.ru expires 3600 auth-realm sipnet.ru
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
11-08-2013 02:10 AM
Thanks again, Aokanlawon! You were right! After adding "credentials number username XXXXX password XXXXX realm sipnet.ru" it works!
show sip-ua register status
shows my registration!
I see my cisco router on SIP Provider side too.
There is one thing left. I had to update my IOS to c3725-adventerprisek9_ivs-mz.124-15.T14 to input "credentials command". On previous version of IOS I didn't have it.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide