cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
438
Views
0
Helpful
1
Replies

Using Cube to allow WAN connection

Hi,

i would like to use Cisco UBE to permit SIP registration from Internet to my internal PBX. I've found many guide on internet and i've tried to implement first a simple registration of SIP client.

The problem is that my PBX "challenge" the incoming registration but the 401 message is sent to my client without WWW-Authentication Header:

Received:  (FROM PBX TO CUBE)
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.45.7:5060;branch=z9hG4bK1BA0D;received=192.168.45.7
From: <sip:74446@192.168.119.2>;tag=ED2F77C-1ED8
To: <sip:74446@192.168.119.2>;tag=as7523cfdb
Call-ID: 2D1A8286-15FD11E3-845EC86B-6AE4DA5F
CSeq: 2 REGISTER
User-Agent: Asterisk PBX (digium)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="0e224253"
Content-Length: 0


*Sep  6 07:31:27.890: //1449/2D19E65E845D/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 401 Unauthorized  (FROM CUBE TO CLIENT)
Via: SIP/2.0/UDP 89.97.241.139:40074;branch=z9hG4bK-d8754z-7330413f15d2cf9f-1---d8754z-
From: "74446"<sip:74446@85.37.38.197;transport=UDP>;tag=be084613
To: "74446"<sip:74446@85.37.38.197;transport=UDP>;tag=ED2F77C-C8E
Date: Fri, 06 Sep 2013 07:31:27 GMT
Call-ID: NWFhMThmZWVmZDFhNTg5MDQ3MTczYzQ0ZjUxYzA3Mzg.
Server: Cisco-SIPGateway/IOS-15.2.4.M3
CSeq: 1 REGISTER
Content-Length: 0

                  

Does anyone occurred the same issue? This is my configuration (i've removed other parts not useful)

voice service voip

no supplementary-service sip handle-replaces

fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none

sip

  registrar server

  registration passthrough registrar-index 1

 

 

dial-peer voice 1000 voip

incoming called-number 74...

voice-class sip registration passthrough registrar-index 1

!

!

sip-ua

aaa username proxy-auth

registrar 1 ipv4:192.168.119.2:5060 expires 3600 voice service voip
no supplementary-service sip handle-replaces
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
sip
  registrar server
  registration passthrough registrar-index 1
 
 
dial-peer voice 1000 voip
incoming called-number 74...
voice-class sip registration passthrough registrar-index 1
!
!
sip-ua
aaa username proxy-auth
registrar 1 ipv4:192.168.119.2:5060 expires 3600

1 Reply 1

paolo bevilacqua
Hall of Fame
Hall of Fame

You have configurer 'registrar server', so you are handling this in peer mode.          

Check

http://www.cisco.com/en/US/docs/ios-xml/ios/voice/cube_nano/configuration/15-mt/voi-sip-reg-proxy.html

In this case you need authentication username under dial-peer. voice class may not even be needed.

Or, remove registrar server for end-to-end mode.