cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
912
Views
0
Helpful
3
Replies

Multiple Registrars, Incoming and outbound calls on SIP Trunks Fail

CiscoAzs
Level 1
Level 1

Dear colleagues
I have a problems with my Voice Gateway. The company has a router (CME) 2921 c IOS Version 15.4 (3) M4.
We need to connect 5 SIP (SIP-UA) DID numbers on the router, the ISP has provided the following parameters:

IP Address x.x.x.x
Proxy Address z.z.z.z
Username 204845 & Password qwertty
Username 204846 & Password qwertty
Username 204847 & Password qwertty
Username 204848 & Password qwertty
Username 204849 & Password qwertty

I faced with the following types of problems:
1. Not registered all 5 numbers. Is registered only one.
2. Incoming call works, but no voice/sound.  Solved, the problem was routing and bindings
3. Outgoing calls fail.


Please tell me what I did wrong. Below my config and debug logs.

!
voice service voip
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
no supplementary-service sip handle-replaces
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
sip
registrar server expires max 3600 min 3600
asymmetric payload full
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
codec preference 3 g729br8
codec preference 4 g729r8
codec preference 5 g723r63
codec preference 6 g723ar63------

!
voice register global
mode cme
source-address 10.118.35.1 port 5060
max-dn 30
max-pool 30
load 3905 CP3905.9-4-1SR2-2
load 9951 sip9951.9-4-2SR2-2.loads
load 7821 sip78xx.10-3-1-12.loads
load 7861 sip78xx.10-3-1-12.loads
authenticate register
timezone 37
time-format 24
date-format D/M/Y
url directory http://10.100.4.14:8080/ccmcip/xmldirectory.jsp
tftp-path flash:
file text
create profile sync 0062190404198223
camera
video
!

____

!

voice register dn 30
number 5300
allow watch
name Reception
no-reg
label Reception
mwi
!
voice register pool 30
busy-trigger-per-button 2
id mac C800.84AB.BC25
type 7861
number 1 dn 30
presence call-list
voice-class codec 1
username XXXX password XXXX

___

!
!
voice translation-rule 1
rule 1 /204845/ /5300/
rule 2 /204846/ /5300/
rule 3 /204847/ /5300/
rule 4 /204848/ /5300/
rule 5 /204849/ /5300/
!
voice translation-rule 2
rule 1 /0/ //
!
!
voice translation-profile test_in
translate called 1
!
voice translation-profile test_out
translate called 2
!
voice translation-profile test_reject9
translate calling 4
translate called 2
___

!
interface GigabitEthernet0/0
description To_Core_SW
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.35
description Voice
encapsulation dot1Q 35
ip address 10.118.35.1 255.255.255.0
!
interface GigabitEthernet0/0.444
description SIP Trunk
encapsulation dot1Q 444
ip address 10.69.2.250 255.255.255.252

!

!
dial-peer voice 111 voip
description ****Incoming****
translation-profile incoming test_in
session protocol sipv2
session target sip-server
session transport udp
incoming called-number .%
voice-class codec 1
voice-class sip bind control source-interface GigabitEthernet0/0.444
voice-class sip bind media source-interface GigabitEthernet0/0.444
dtmf-relay rtp-nte
no dtmf-interworking
no vad
!
dial-peer voice 46 pots
destination-pattern 204846
authentication username 204846 password qwertty
!
dial-peer voice 47 pots
destination-pattern 204847
authentication username 204847 password qwertty
!
dial-peer voice 48 pots
destination-pattern 204848
authentication username 204848 password qwertty
!
dial-peer voice 49 pots
destination-pattern 204849
authentication username 204849 password qwertty
!
dial-peer voice 45 pots
destination-pattern 204845
authentication username 204845 password qwertty
!

dial-peer voice 110 voip
translation-profile outgoing test_out
destination-pattern 0.T
session protocol sipv2
session target ipv4:192.168.153.38
session transport udp
voice-class sip bind control source-interface GigabitEthernet0/0.35
voice-class sip bind media source-interface GigabitEthernet0/0.35
dtmf-relay rtp-nte cisco-rtp
no dtmf-interworking
codec g711ulaw
no vad

!
presence
presence call-list
server 10.100.4.14
watcher all
allow subscribe
!
sip-ua
credentials username 204845 password qwertty realm 192.168.153.38
credentials username 204846 password qwertty realm 192.168.153.38
credentials username 204847 password qwertty realm 192.168.153.38
credentials username 204848 password qwertty realm 192.168.153.38
credentials username 204849 password qwertty realm 192.168.153.38
authentication username 204845@192.168.153.38 password qwertty
retry invite 3
retry response 3
retry bye 3
retry cancel 3
retry options 2
registrar ipv4:192.168.153.38 expires 3600
sip-server dns:192.168.153.38
connection-reuse
host-registrar
presence enable
!

MYVGW1#sh sip-ua register status
Line peer expires(sec) reg survival P-Associ-URI
================================ ========== ============ === ======== ============
204845 -1 1641 yes normal
204846 -1 22 no normal
204847 -1 22 no normal
204848 -1 22 no normal
204849 -1 22 no normal
MYVGW1#

3 Replies 3

Tagir Temirgaliyev
Spotlight
Spotlight

why ?

dial-peer voice 46 pots ?

Because cisco suggest 

http://www.cisco.com/c/en/us/td/docs/ios/voice/sip/configuration/guide/15_1/sip_15_1_book/sip_cg-multi-registrars.html#wp1070173

Andrii Shendryk
Level 1
Level 1

Faced with a similar case with my provider 

for sip-ua section try something like:

sip-ua 

credentials username 204845 password qwertty realm 192.168.153.38
credentials username 204846 password qwertty realm 192.168.153.38
credentials username 204847 password qwertty realm 192.168.153.38
credentials username 204848 password qwertty realm 192.168.153.38
credentials username 204849 password qwertty realm 192.168.153.38

authentication username 204845@192.168.153.38 password qwertty realm 204845

authentication username 204846@192.168.153.38 password qwertty realm 204846

authentication username 204847@192.168.153.38 password qwertty realm 204847

authentication username 204848@192.168.153.38 password qwertty realm 204848

authentication username 204849@192.168.153.38 password qwertty realm 204849