Hi All,
I’m using asterisk 1.8 with a cisco 7975g sip phone. when the phone is connected to the same subnet as the asterisk server, it works without issue.
when we take the phone to the remote site (connected via VPN), we get stuck on SIP/2.0 401 Unauthorized
the server is 192.168.10.51 and the phone is 192.168.4.101. There is no firewall in the middle or nat.
config is below.
mypbx*CLI> sip show settings
Global Settings:
UDP Bindaddress: 0.0.0.0:5060
TCP SIP Bindaddress: Disabled
TLS SIP Bindaddress: Disabled
Videosupport: No
Textsupport: No
Ignore SDP sess. ver.: No
AutoCreate Peer: No
Match Auth Username: No
Allow unknown access: Yes
Allow subscriptions: Yes
Allow overlap dialing: Yes
Allow promisc. redir: No
Enable call counters: No
SIP domain support: No
Realm. auth: No
Our auth realm asterisk
Use domains as realms: No
Call to non-local dom.: Yes
URI user is phone no: No
Always auth rejects: Yes
Direct RTP setup: No
User Agent: FPBX-2.10.1(1.8.20.1)
SDP Session Name: Asterisk PBX 1.8.20.1
SDP Owner Name: root
Reg. context: (not set)
Regexten on Qualify: No
Legacy userfield parse: No
Caller ID: Unknown
From: Domain:
Record SIP history: Off
Call Events: Off
Auth. Failure Events: Off
T.38 support: Yes
T.38 EC mode: FEC
T.38 MaxDtgrm: -1
SIP realtime: Disabled
Qualify Freq : 60000 ms
Q.850 Reason header: No
Store SIP_CAUSE: No
Network QoS Settings:
IP ToS SIP: CS3
IP ToS RTP audio: EF
IP ToS RTP video: AF41
IP ToS RTP text: CS0
802.1p CoS SIP: 4
802.1p CoS RTP audio: 5
802.1p CoS RTP video: 6
802.1p CoS RTP text: 5
Jitterbuffer enabled: No
Network Settings:
SIP address remapping: Enabled using externaddr
Externhost:
Externaddr: 50.20.134.24:0
Externrefresh: 10
Localnet: 192.168.10.0/255.255.255.0
192.168.4.0/255.255.255.0
192.168.1.0/255.255.255.0
Global Signalling Settings:
Codecs: 0xe (gsm|ulaw|alaw)
Codec Order: ulaw:20,alaw:20,gsm:20
Relax DTMF: No
RFC2833 Compensation: No
Symmetric RTP: Yes
Compact SIP headers: No
RTP Keepalive: 0 (Disabled)
RTP Timeout: 30
RTP Hold Timeout: 300
MWI NOTIFY mime type: application/simple-message-summary
DNS SRV lookup: No
Pedantic SIP support: Yes
Reg. min duration 60 secs
Reg. max duration: 3600 secs
Reg. default duration: 120 secs
Outbound reg. timeout: 20 secs
Outbound reg. attempts: 0
Notify ringing state: Yes
Include CID: No
Notify hold state: Yes
SIP Transfer mode: open
Max Call Bitrate: 384 kbps
Auto-Framing: No
Outb. proxy:
Session Timers: Accept
Session Refresher: uas
Session Expires: 1800 secs
Session Min-SE: 90 secs
Timer T1: 500
Timer T1 minimum: 100
Timer B: 32000
No premature media: Yes
Max forwards: 70
Default Settings:
Allowed transports: UDP
Outbound transport: UDP
Context: from-sip-external
Force rport: Yes
DTMF: rfc2833
Qualify: 0
Use ClientCode: No
Progress inband: Never
Language:
MOH Interpret: default
MOH Suggest:
Voice Mail Extension: *97
[314]
deny=0.0.0.0/0.0.0.0
secret=cisco123
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=no
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp
encryption=no
callgroup=
pickupgroup=
dial=SIP/314
mailbox=314@default
permit=0.0.0.0/0.0.0.0
callerid=Home Office <314>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic
<— SIP read from UDP:192.168.4.101:49156 —>
REGISTER sip:192.168.10.51 SIP/2.0
Via: SIP/2.0/UDP 192.168.4.101:49156;branch=z9hG4bK48195c24
From: sip:314@192.168.10.51;tag=64168dbb8f890061584fad37-6f315ab6
To: sip:314@192.168.10.51
Call-ID: 64168dbb-8f890003-4e99673d-4105878e@192.168.4.101
Max-Forwards: 70
Date: Sun, 02 Jun 2013 23:34:14 GMT
CSeq: 148 REGISTER
User-Agent: Cisco-CP7975G/8.5.3
Contact: sip:314@192.168.4.101:49156;transport=udp;+sip.instance=“urn:uuid:00000000-0000-0000-0000-64168dbb8f89”;+u.sip!model.ccm.cisco.com="437"
Supported: (null),X-cisco-xsi-7.0.1
Content-Length: 0
Reason: SIP;cause=200;text="cisco-alarm:20 Name=SEP64168DBB8F89 Load=SIP75.8-5-4S Last=phone-keypad"
Expires: 3600
<------------->
— (14 headers 0 lines) —
Sending to 192.168.4.101:49156 (no NAT)
<— Transmitting (no NAT) to 192.168.4.101:49156 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.4.101:49156;branch=z9hG4bK48195c24;received=192.168.4.101
From: sip:314@192.168.10.51;tag=64168dbb8f890061584fad37-6f315ab6
To: sip:314@192.168.10.51;tag=as1c0b7cc2
Call-ID: 64168dbb-8f890003-4e99673d-4105878e@192.168.4.101
CSeq: 148 REGISTER
Server: FPBX-2.10.1(1.8.20.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="2270ab6d"
Content-Length: 0