12-08-2014 11:34 AM - edited 03-17-2019 01:15 AM
Hi
I'm new in CME and I have to configure sip trunk. I cannot register to sip trunk (telephones works only locally), I'm not sure that I misconfigure something or there is a problem in provider site, mu config:
ip dhcp excluded-address 10.200.200.1 10.200.200.100
!
ip dhcp pool lan
network 10.254.254.0 255.255.255.0
default-router 10.254.254.1
dns-server 8.8.8.8
!
ip dhcp pool voice
network 10.200.200.0 255.255.255.0
option 150 ip 10.200.200.1
default-router 10.200.200.1
dns-server 8.8.8.8
!
!
!
ip name-server 8.8.8.8
ip name-server 8.8.4.4
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
supplementary-service h450.12
no supplementary-service sip moved-temporarily
no supplementary-service sip refer
h323
sip
registrar server expires max 1200 min 300
localhost dns:sip.inea.com.pl
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
!
!
!
!
voice translation-rule 3
rule 1 /^601/ /612228601/
rule 8 /^6\(..$\)/ /6122286\1/
!
voice translation-rule 4
rule 1 /^9\(.*\)/ /\1/
!
voice translation-rule 13
rule 1 /612228601/ /601/
!
!
voice translation-profile FROMSIPINEA
translate called 13
!
voice translation-profile TOSIPINEA
translate calling 3
translate called 4
!
!
voice-card 0
!
!
!
!
!
!
!
!
!
interface Loopback0
description $FW_INSIDE$
ip address 10.200.201.2 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface FastEthernet0/0
ip address dhcp
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface Integrated-Service-Engine0/0
ip unnumbered Loopback0
ip nat inside
ip virtual-reassembly in
shutdown
service-module ip address 10.200.201.1 255.255.255.0
service-module ip default-gateway 10.200.201.2
!
interface FastEthernet0/1/0
!
interface FastEthernet0/1/1
switchport voice vlan 100
!
interface FastEthernet0/1/2
!
interface FastEthernet0/1/3
!
interface FastEthernet0/1/4
!
interface FastEthernet0/1/5
!
interface FastEthernet0/1/6
!
interface FastEthernet0/1/7
!
interface FastEthernet0/1/8
!
interface Dot11Radio0/5/0
no ip address
shutdown
speed basic-1.0 basic-2.0 basic-5.5 6.0 9.0 basic-11.0 12.0 18.0 24.0 36.0 48.0 54.0
station-role root
!
interface Vlan1
ip address 10.254.254.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface Vlan100
ip address 10.200.200.1 255.255.255.0
!
ip forward-protocol nd
!
ip http server
ip http authentication local
no ip http secure-server
ip nat inside source list NAT interface FastEthernet0/0 overload
ip route 10.200.201.2 255.255.255.255 Integrated-Service-Engine0/0
!
ip access-list extended NAT
permit ip 10.254.254.0 0.0.0.255 any
!
logging esm config
!
!
!
!
tftp-server flash:/phones/521_524/cp524g-8-1-17.bin
tftp-server flash:/phones/50x-30x/spa50x-30x-7-4-8a.bin
tftp-server flash:/phones/7945_7965/apps45.8-5-4TH1-6.sbn
tftp-server flash:/phones/7945_7965/cnu45.8-5-4TH1-6.sbn
tftp-server flash:/phones/7945_7965/cvm45sccp.8-5-4TH1-6.sbn
tftp-server flash:/phones/7945_7965/dsp45.8-5-4TH1-6.sbn
tftp-server flash:/phones/7945_7965/jar45sccp.8-5-4TH1-6.sbn
tftp-server flash:/phones/7945_7965/SCCP45.8-5-4S.loads
tftp-server flash:/phones/7945_7965/term45.default.loads
tftp-server flash:/phones/7945_7965/term65.default.loads
tftp-server flash:/phones/7975/apps75.8-5-4TH1-6.sbn
tftp-server flash:/phones/7975/cnu75.8-5-4TH1-6.sbn
tftp-server flash:/phones/7975/cvm75sccp.8-5-4TH1-6.sbn
tftp-server flash:/phones/7975/dsp75.8-5-4TH1-6.sbn
tftp-server flash:/phones/7975/jar75sccp.8-5-4TH1-6.sbn
tftp-server flash:/phones/7975/SCCP75.8-5-4S.loads
tftp-server flash:/phones/7975/term75.default.loads
tftp-server flash:/Desktops/320x212x12/List.xml
tftp-server flash:/Desktops/320x212x12/List.xml.BAK
tftp-server flash:/Desktops/320x212x16
tftp-server flash:/Desktops/320x212x16/List.xml
tftp-server flash:/Desktops/320x212x16/List.xml.BAK
tftp-server flash:/Desktops/320x216x16
tftp-server flash:/Desktops/320x216x16/List.xml
tftp-server flash:/Desktops/320x216x16/List.xml.BAK
tftp-server flash:/Desktops/CampusNight.png
tftp-server flash:/Desktops/CiscoFountain.png
tftp-server flash:/Desktops/CiscoLogo.png
tftp-server flash:/Desktops/Fountain.png
tftp-server flash:/Desktops/MorroRock.png
tftp-server flash:/Desktops/NantucketFlowers.png
tftp-server flash:/Desktops/TN-CampusNight.png
tftp-server flash:/Desktops/TN-CiscoFountain.png
tftp-server flash:/Desktops/TN-CiscoLogo.png
tftp-server flash:/Desktops/TN-Fountain.png
tftp-server flash:/Desktops/TN-MorroRock.png
tftp-server flash:/Desktops/TN-NantucketFlowers.png
tftp-server flash:/bacdprompts/app-b-acd-3.0.0.2.tcl
tftp-server flash:/bacdprompts/app-b-acd-aa-3.0.0.2.tcl
tftp-server flash:/bacdprompts/en_bacd_allagentsbusy.au
tftp-server flash:/bacdprompts/en_bacd_disconnect.au
tftp-server flash:/bacdprompts/en_bacd_enter_dest.au
tftp-server flash:/bacdprompts/en_bacd_invalidoption.au
tftp-server flash:/bacdprompts/en_bacd_music_on_hold.au
tftp-server flash:/bacdprompts/en_bacd_options_menu.au
tftp-server flash:/bacdprompts/en_bacd_welcome.au
tftp-server flash:/bacdprompts/en_bacd_xferto_operator.au
tftp-server flash:/ringtones/Analog1.raw
tftp-server flash:/ringtones/Analog2.raw
tftp-server flash:/ringtones/AreYouThere.raw
tftp-server flash:/ringtones/AreYouThereF.raw
tftp-server flash:/ringtones/Bass.raw
tftp-server flash:/ringtones/CallBack.raw
tftp-server flash:/ringtones/Chime.raw
tftp-server flash:/ringtones/Classic1.raw
tftp-server flash:/ringtones/Classic2.raw
tftp-server flash:/ringtones/ClockShop.raw
tftp-server flash:/ringtones/DistinctiveRingList.xml
tftp-server flash:/ringtones/Drums1.raw
tftp-server flash:/ringtones/Drums2.raw
tftp-server flash:/ringtones/FilmScore.raw
tftp-server flash:/ringtones/HarpSynth.raw
tftp-server flash:/ringtones/Jamaica.raw
tftp-server flash:/ringtones/KotoEffect.raw
tftp-server flash:/ringtones/MusicBox.raw
tftp-server flash:/ringtones/Piano1.raw
tftp-server flash:/ringtones/Piano2.raw
tftp-server flash:/ringtones/Pop.raw
tftp-server flash:/ringtones/Pulse1.raw
tftp-server flash:/ringtones/Ring1.raw
tftp-server flash:/ringtones/Ring2.raw
tftp-server flash:/ringtones/Ring3.raw
tftp-server flash:/ringtones/Ring4.raw
tftp-server flash:/ringtones/Ring5.raw
tftp-server flash:/ringtones/Ring6.raw
tftp-server flash:/ringtones/Ring7.raw
tftp-server flash:/ringtones/RingList.xml
tftp-server flash:/ringtones/Sax1.raw
tftp-server flash:/ringtones/Sax2.raw
tftp-server flash:/ringtones/Vibe.raw
tftp-server flash:/ringtones/RingList.xml.BAK
tftp-server flash:/ringtones/DistinctiveRingList.xml.BAK
tftp-server flash:/phones/525/spa525g-7-4-8.bin
!
!
control-plane
!
!
voice-port 0/0/0
compand-type a-law
cptone PL
timeouts ringing infinity
bearer-cap Speech
station-id name FAX
station-id number 39
caller-id enable
!
voice-port 0/0/1
timeouts ringing infinity
station-id number 302
caller-id enable
!
voice-port 0/0/2
timeouts ringing infinity
station-id number 303
caller-id enable
!
voice-port 0/0/3
timeouts ringing infinity
station-id number 304
caller-id enable
!
voice-port 0/1/0
compand-type a-law
bearer-cap Speech
!
voice-port 0/1/1
compand-type a-law
bearer-cap Speech
!
voice-port 0/1/2
!
voice-port 0/1/3
!
voice-port 0/4/0
auto-cut-through
signal immediate
input gain auto-control -15
description Music On Hold Port
!
sccp local Loopback0
sccp ccm 10.200.200.1 identifier 1 version 3.1
sccp
!
dial-peer voice 2003 voip
translation-profile outgoing TOSIPINEA
max-conn 10
destination-pattern 9T
session protocol sipv2
session target dns:sip.inea.com.pl
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 2011 voip
translation-profile incoming FROMSIPINEA
session protocol sipv2
session target dns:sip.inea.com.pl
incoming called-number .
dtmf-relay rtp-nte
codec g711ulaw
no vad
!
dial-peer voice 2000 voip
destination-pattern 55
session protocol sipv2
session target ipv4:10.200.201.2
codec g711ulaw
no vad
!
dial-peer voice 2002 voip
destination-pattern 57
session protocol sipv2
session target ipv4:10.200.201.2
codec g711ulaw
no vad
!
!
sip-ua
credentials username xxx password 7 xxx realm sip.inea.com.pl
authentication username xxx password 7 xxx
registrar dns:sip.inea.com.pl expires 3600
sip-server dns:sip.inea.com.pl
!
!
!
telephony-service
max-ephones 30
max-dn 50
ip source-address 10.200.200.1 port 2000
max-redirect 20
auto assign 10 to 19
auto assign 5 to 8 type anl
auto assign 1 to 50
caller-id block code *1
calling-number initiator
timeouts interdigit 5
url services http://10.200.201.1/voiceview/common/login.do
url authentication http://10.200.201.2/CCMCIP/authenticate.asp
cnf-file location flash:
cnf-file perphone
user-locale U1 PL
network-locale U2
load 7914 S00105000300
load 7911 SCCP11.8-4-2S
load 7912 CP7912080003SCCP070409A
load 7960-7940 P00308000500
load 7945 SCCP45.8-4-2S
load 7961 SCCP41.8-4-2S
load 7961GE SCCP41.8-4-2S
load 7970 SCCP70.8-4-2S
load 7975 SCCP75.8-4-2S
load ata ATA030203SCCP051201A
time-zone 23
time-format 24
date-format dd-mm-yy
live-record 559
voicemail 555
max-conferences 8 gain -6
call-forward pattern .T
call-forward system redirecting-expanded
moh music_on_hold.au
multicast moh 239.10.16.16 port 2000
web admin system name admin secret 5 $1$7beF$5XM6uSxKNjYO.L891qPP51
dn-webedit
time-webedit
transfer-system full-consult dss
transfer-pattern 9.T
transfer-pattern .T
secondary-dialtone 9
create cnf-files version-stamp Jan 01 2002 00:00:00
!
!
ephone-dn 1 dual-line
number 601
label zwierz-601
!
!
ephone-dn 3
number 603
label zwierz-komp603
!
!
ephone 1
device-security-mode none
mac-address BC16.F517.9069
type 7945
button 1:1
!
!
!
ephone 2
device-security-mode none
mac-address A088.B400.4EC8
button 1:3
!
!
!
line con 0
no modem enable
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
line vty 0 4
transport input all
!
end
Some debugs when calling outside:
ent:
INVITE sip:501430117@sip.inea.com.pl:5060 SIP/2.0
Via: SIP/2.0/UDP 46.238.91.217:5060;branch=z9hG4bKB8763
Remote-Party-ID: <sip:612228603@sip.inea.com.pl>;party=calling;screen=no;privacy=off
From: <sip:612228603@sip.inea.com.pl>;tag=C2DEBBC-1E02
To: <sip:501430117@sip.inea.com.pl>
Date: Mon, 08 Dec 2014 19:22:05 GMT
Call-ID: 542C04F3-7E4611E4-8C429A57-1420FF99@sip.inea.com.pl
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Min-SE: 1800
Cisco-Guid: 1359491080-2118521316-2352847447-0337706905
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1418066525
Contact: <sip:612228603@46.238.91.217:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 286
v=0
o=CiscoSystemsSIP-GW-UserAgent 5815 9696 IN IP4 46.238.91.217
s=SIP Call
c=IN IP4 46.238.91.217
t=0 0
m=audio 19528 RTP/AVP 0 8 101 19
c=IN IP4 46.238.91.217
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:19 CN/8000
*Dec 8 19:22:05.441: //820/510830088C3D/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 46.238.91.217:5060;branch=z9hG4bKB8763;received=46.238.91.217
From: <sip:612228603@sip.inea.com.pl>;tag=C2DEBBC-1E02
To: <sip:501430117@sip.inea.com.pl>;tag=as73746a2c
Call-ID: 542C04F3-7E4611E4-8C429A57-1420FF99@sip.inea.com.pl
CSeq: 101 INVITE
User-Agent: Adescom CTM5000
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Max-Forwards: 70
Content-Length: 0
*Dec 8 19:22:05.449: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
ACK sip:501430117@sip.inea.com.pl:5060 SIP/2.0
Via: SIP/2.0/UDP 46.238.91.217:5060;branch=z9hG4bKB8763
From: <sip:612228603@sip.inea.com.pl>;tag=C2DEBBC-1E02
To: <sip:501430117@sip.inea.com.pl>;tag=as73746a2c
Date: Mon, 08 Dec 2014 19:22:05 GMT
Call-ID: 542C04F3-7E4611E4-8C429A57-1420FF99@sip.inea.com.pl
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0
I'm thinking about message SIP/2.0 403 Forbidden - is that mean that regisrtat is rejecting?
Please help, thanks in advance.
Solved! Go to Solution.
12-10-2014 04:17 AM
Hello
Try this
voice service voip
ip address authenticate
(enter the ip of sip trunk)
sip
bind all source-interface <IP address of Interface>
sip-ua
registrar ipv4: (Enter the IP address of registrar server provided by service provider)
sip-server ipv4: (Enter the IP address of registrar server provided by service provider)
credentials username XXXX password XXXX
12-08-2014 01:22 PM
Yes, contact provider. Because you get 403, it means you have contacted provider, but something is wrong.
JH
12-12-2014 06:48 AM
Thanks for replies.
Little progress:
*Dec 12 14:47:37.423: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
REGISTER sip:sip.inea.com.pl:5060 SIP/2.0
Via: SIP/2.0/UDP 46.238.91.217:5060;branch=z9hG4bK15B1CA9
From: <sip:601@sip.inea.com.pl>;tag=1FCC13B0-11DB
To: <sip:601@sip.inea.com.pl>
Date: Fri, 12 Dec 2014 14:47:37 GMT
Call-ID: D7B949FE-7E3711E4-89759A57-1420FF99
User-Agent: Cisco-SIPGateway/IOS-12.x
Max-Forwards: 70
Timestamp: 1418395657
CSeq: 1861 REGISTER
Contact: <sip:601@46.238.91.217:5060>
Expires: 3600
Supported: path
Content-Length: 0
*Dec 12 14:47:37.431: //10449/000000000000/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 404 Not found
Via: SIP/2.0/UDP 46.238.91.217:5060;branch=z9hG4bK15B1CA9;received=46.238.91.217
From: <sip:601@sip.inea.com.pl>;tag=1FCC13B0-11DB
To: <sip:601@sip.inea.com.pl>;tag=as06e5c8aa
Call-ID: D7B949FE-7E3711E4-89759A57-1420FF99
CSeq: 1861 REGISTER
User-Agent: Adescom CTM5000
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Max-Forwards: 70
Content-Length: 0
*Dec 12 14:48:07.731: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
REGISTER sip:sip.inea.com.pl:5060 SIP/2.0
Via: SIP/2.0/UDP 46.238.91.217:5060;branch=z9hG4bK15B2B14
From: <sip:603@sip.inea.com.pl>;tag=1FCC8A10-2B6
To: <sip:603@sip.inea.com.pl>
Date: Fri, 12 Dec 2014 14:48:07 GMT
Call-ID: D7B9E626-7E3711E4-89779A57-1420FF99
User-Agent: Cisco-SIPGateway/IOS-12.x
Max-Forwards: 70
Timestamp: 1418395687
CSeq: 1861 REGISTER
Contact: <sip:603@46.238.91.217:5060>
Expires: 3600
Supported: path
Content-Length: 0
*Dec 12 14:48:07.735: //10450/000000000000/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 404 Not found
Via: SIP/2.0/UDP 46.238.91.217:5060;branch=z9hG4bK15B2B14;received=46.238.91.217
From: <sip:603@sip.inea.com.pl>;tag=1FCC8A10-2B6
To: <sip:603@sip.inea.com.pl>;tag=as57ec6cf7
Call-ID: D7B9E626-7E3711E4-89779A57-1420FF99
CSeq: 1861 REGISTER
User-Agent: Adescom CTM5000
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Max-Forwards: 70
Content-Length: 0
*Dec 12 14:48:12.559: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
OPTIONS sip:SIP_USERNAME@46.238.91.217:5060 SIP/2.0
Via: SIP/2.0/UDP 62.21.102.138:5060;branch=z9hG4bK4223c9d5;rport
From: "adescom" <sip:adescom@62.21.102.138>;tag=as6eae1f7d
To: <sip:SIP_USERNAME@46.238.91.217:5060>
Contact: <sip:adescom@62.21.102.138>
Call-ID: 2446f2825e1843252a78416a29f5f3af3016033896
CSeq: 102 OPTIONS
User-Agent: Adescom CTM5000
Max-Forwards: 70
Date: Fri, 12 Dec 2014 14:42:52 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Content-Length: 0
*Dec 12 14:48:12.563: //10451/BB26B160BE89/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 62.21.102.138:5060;branch=z9hG4bK4223c9d5;rport
From: "adescom" <sip:adescom@62.21.102.138>;tag=as6eae1f7d
To: <sip:SIP_USERNAME@46.238.91.217:5060>;tag=1FCC9CF0-1882
Date: Fri, 12 Dec 2014 14:48:12 GMT
Call-ID: 2446f2825e1843252a78416a29f5f3af3016033896
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 102 OPTIONS
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIF Y, INFO, REGISTER
Allow-Events: telephone-event
Accept: application/sdp
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Content-Type: application/sdp
Content-Length: 172
v=0
o=CiscoSystemsSIP-GW-UserAgent 8834 4637 IN IP4 46.238.91.217
s=SIP Call
c=IN IP4 46.238.91.217
t=0 0
m=audio 0 RTP/AVP 18 0 8 9 4 2 15 3
c=IN IP4 46.238.91.217
My SIP_USERNAME now is registering but also local number 601, 603 want also register to sip. And I still can't call outside.
Regards
12-14-2014 04:11 AM
I found issue, everything is working correctly, both inciming and outgoing calls.
Regards
12-15-2014 04:27 AM
How did the issue got resolved? Please update
12-15-2014 05:57 AM
3 things:
- service provider gave me wrong password
- misconfiguration in sip-profiles
- Toll-Fraud Prevention
12-15-2014 09:21 AM
Good to hear that.
Please mark the question as answered and rate the useful posts.
Thanks
12-10-2014 04:17 AM
Hello
Try this
voice service voip
ip address authenticate
(enter the ip of sip trunk)
sip
bind all source-interface <IP address of Interface>
sip-ua
registrar ipv4: (Enter the IP address of registrar server provided by service provider)
sip-server ipv4: (Enter the IP address of registrar server provided by service provider)
credentials username XXXX password XXXX
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