10-17-2012 03:32 PM - edited 03-16-2019 01:44 PM
Hi all,
I have a problem with my system. I have C2801 and 4 phones (2 SIP phones and 2 SCCP phones). I'm trying to configure SIP trunk and SIP phones to work on 1 system so router can work as SIP client (for trunk) and SIP server (for phones) but I can't get it to work. I configured SIP trunk and every phone can phone out without any problem, SIP phones can phone SCCP phones but when I try to phone other SIP phone I can hear ring tone but when I pickup I can't hear anything on caller phone I can hear busy tone. When I try to phone from SCCP phones to SIP phones I can hear then ringing but when I pickup I can't hear anything and after a second I hear busy tone on caller phone. My config:
voice service voip
ip address trusted list
ipv4 0.0.0.0 0.0.0.0
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
sip
bind control source-interface FastEthernet0/1.2
bind media source-interface FastEthernet0/1.2
registrar server
outbound-proxy dns:nat.voiptalk.org
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
voice register global
mode cme
source-address 10.250.102.1 port 5060
max-dn 100
max-pool 20
load 7912 CP7912080001SIP060412A.sbin
authenticate register
timezone 21
time-format 24
date-format YY-M-D
tftp-path flash:
file text
create profile sync 0009204454385451
camera
video
voice register dn 1
number 301
name x301 SIP
label x301 SIP
voice register dn 2
number 302
name x302 SIP
label x302 SIP
voice register pool 1
id mac 0016.471A.68B2
type 7912
number 1 dn 1
voice-class codec 1
username 301 password 123456
voice register pool 2
id mac 0017.940F.3B93
type 7912
number 1 dn 2
voice-class codec 1
username 302 password 123456
If anyone needs more config please let me know which part you need.
Regards,
Pawel
Solved! Go to Solution.
10-17-2012 03:54 PM
first, remove this 2 lines
sip
bind control source-interface FastEthernet0/1.2 -->
bind media source-interface FastEthernet0/1.2 -->
second, add this CLI, since all sip INVITE go out to SIP trunk becuase of outbound-proxy
voice register global
no outbound-proxy
10-17-2012 04:55 PM
did you recreate phone profile?, if not.
voice register global
create profile
reset
or cold start phones.
10-18-2012 05:11 AM
10-17-2012 03:42 PM
If using 7912, convert them to SCCP.
Everything will work fine after you do.
10-17-2012 03:44 PM
I use 7912 but I'm doing some testing and I need to get this problem resolved by using SIP phones (In office we have few 9971 which only work with SIP).
10-17-2012 03:54 PM
first, remove this 2 lines
sip
bind control source-interface FastEthernet0/1.2 -->
bind media source-interface FastEthernet0/1.2 -->
second, add this CLI, since all sip INVITE go out to SIP trunk becuase of outbound-proxy
voice register global
no outbound-proxy
10-17-2012 04:36 PM
Workins as a charm. Thank you very much.
If you dont mind me asking one more question. When I debug CCSIP messages I can see that phones are still trying to go out and register with SIP trunk. Any idea why and how I can turn them off?
Debug:
Oct 18 2012 00:28:58.313: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
REGISTER sip:voiptalk.org:5060 SIP/2.0
Via: SIP/2.0/UDP MY-PUBLIC-IP-ADDRESS:5060;branch=z9hG4bK13C2094
From: <>>302@voiptalk.org>;tag=A5C0CC-127D
To: <>>302@voiptalk.org>
Date: Wed, 17 Oct 2012 23:28:58 GMT
Call-ID: 10D97814-17D811E2-80CD8B7C-5EBF8837
User-Agent: Cisco-SIPGateway/IOS-12.x
Max-Forwards: 70
Timestamp: 1350516538
CSeq: 84 REGISTER
Contact: <302>302>
Expires: 3600
Supported: path
Content-Length: 0
Oct 18 2012 00:28:58.341: //509/000000000000/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP MY-PUBLIC-IP-ADDRESS:5060;rport=56918;received=MY-PUBLIC-IP-ADDRESS;branch=z9hG4bK13C2094
From: <>>302@voiptalk.org>;tag=A5C0CC-127D
To: <>>302@voiptalk.org>;tag=fd79486175647ed1617969929fdaad02.2f34
Call-ID: 10D97814-17D811E2-80CD8B7C-5EBF8837
CSeq: 84 REGISTER
WWW-Authenticate: Digest realm="voiptalk.org", nonce="507f3f5800000ae6dbb39d438e1afbf5c95d3ba0759d9cf0"
Server: OpenSIPS (1.5.3-notls (x86_64/linux))
Content-Length: 0
Oct 18 2012 00:28:58.345: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
REGISTER sip:voiptalk.org:5060 SIP/2.0
Via: SIP/2.0/UDP MY-PUBLIC-IP-ADDRESS:5060;branch=z9hG4bK13D1F65
From: <>>302@voiptalk.org>;tag=A5C0CC-127D
To: <>>302@voiptalk.org>
Date: Wed, 17 Oct 2012 23:28:58 GMT
Call-ID: 10D97814-17D811E2-80CD8B7C-5EBF8837
User-Agent: Cisco-SIPGateway/IOS-12.x
Max-Forwards: 70
Timestamp: 1350516538
CSeq: 85 REGISTER
Contact: <302>302>
Expires: 3600
Authorization: Digest username="USERNAME",realm="voiptalk.org",uri="sip:voiptalk.org:5060",response="79b2ec89b12c9ab4ccee237c78ce0ddf",nonce="507f3f5800000ae6dbb39d438e1afbf5c95d3ba0759d9cf0",algorithm=md5
Content-Length: 0
Oct 18 2012 00:28:58.381: //509/000000000000/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 403 Forbidden auth ID
Via: SIP/2.0/UDP MY-PUBLIC-IP-ADDRESS:5060;rport=56918;received=MY-PUBLIC-IP-ADDRESS;branch=z9hG4bK13D1F65
From: <>>302@voiptalk.org>;tag=A5C0CC-127D
To: <>>302@voiptalk.org>;tag=fd79486175647ed1617969929fdaad02.3f93
Call-ID: 10D97814-17D811E2-80CD8B7C-5EBF8837
CSeq: 85 REGISTER
Server: OpenSIPS (1.5.3-notls (x86_64/linux))
Content-Length: 0
10-17-2012 04:55 PM
did you recreate phone profile?, if not.
voice register global
create profile
reset
or cold start phones.
10-17-2012 05:16 PM
Yes I did but it looks like it wasn't applied after reset. After I erased config from phone it picked up new file and messages looks correctly now. Thank you very much again for your help.
Regards,
Pawel
10-18-2012 04:03 AM
Hi Dangsu,
I believe my last message was little premature.
I just checked (next day and router restart later) and SIP numbers are still trying to register with voiptalk. Do you have any suggesttions?
Regards,
Pawel
10-18-2012 05:11 AM
voice register dn xx
no-reg
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