cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
configure & troubleshoot anyconnect
666
Views
0
Helpful
6
Replies
Beginner

Cisco SIP trunk setup.

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!

2 ACCEPTED SOLUTIONS

Accepted Solutions
VIP Mentor

Cisco SIP trunk setup.

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"

Please rate all useful posts
VIP Mentor

Cisco SIP trunk setup.

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"

Please rate all useful posts
6 REPLIES 6
VIP Mentor

Cisco SIP trunk setup.

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"

Please rate all useful posts
Highlighted
Beginner

Cisco SIP trunk setup.

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

VIP Mentor

Cisco SIP trunk setup.

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"

Please rate all useful posts
Beginner

Cisco SIP trunk setup.

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

VIP Mentor

Cisco SIP trunk setup.

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"

Please rate all useful posts
Beginner

Cisco SIP trunk setup.

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.

CreatePlease to create content