[Freeswitch-users] registration problem 403
Miha
miha at softnet.si
Tue Mar 12 15:24:47 MSK 2013
Hi Steve,
thanks for your replay.
I do not see any problem with password/domain. Same satting on different
user_agent and works ok.
Here is a sofia sip trace:
+OK log level [7]
recv 603 bytes from udp/[user_agent_ip]:5060 at 12:17:21.483898:
------------------------------------------------------------------------
REGISTER sip:enterprise.freeswitch.ip:5060 SIP/2.0
Via: SIP/2.0/UDP user_agent_ip;branch=z9hG4bKb437155cf07d0aafc
Max-Forwards: 70
From: 081603006.enterprise
<sip:081603006 at enterprise.freeswitch.ip:5060>;tag=6cad8109f7
To: 081603006.enterprise <sip:081603006 at enterprise.freeswitch.ip:5060>
Call-ID: 2edd6be274059ef7
CSeq: 1214273616 REGISTER
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, INFO
Contact: 081603006.enterprise
<sip:081603006 at user_agent_ip:5060;transport=udp>;expires=3600
Supported: path
User-Agent: ARRIS-TM902S release v.7.10.145.SIP SN/001DCE73F07F
Content-Length: 0
------------------------------------------------------------------------
2013-03-12 13:17:21.480286 [WARNING] sofia_reg.c:1502 SIP auth challenge
(REGISTER) on sofia profile 'internal' for
[081603006 at enterprise.freeswitch.ip] from ip user_agent_ip
send 709 bytes to udp/[user_agent_ip]:5060 at 12:17:21.489385:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP user_agent_ip;branch=z9hG4bKb437155cf07d0aafc
From: 081603006.enterprise
<sip:081603006 at enterprise.freeswitch.ip:5060>;tag=6cad8109f7
To: 081603006.enterprise
<sip:081603006 at enterprise.freeswitch.ip:5060>;tag=Sp2XN7D83Q95S
Call-ID: 2edd6be274059ef7
CSeq: 1214273616 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.2.6+git~20130104T154559Z~a4247651ca
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
WWW-Authenticate: Digest realm="enterprise.freeswitch.ip",
nonce="d7238919-e558-4179-9b37-53c7931f0ea3", algorithm=MD5, qop="auth"
Content-Length: 0
------------------------------------------------------------------------
recv 875 bytes from udp/[user_agent_ip]:5060 at 12:17:21.504475:
------------------------------------------------------------------------
REGISTER sip:enterprise.freeswitch.ip:5060 SIP/2.0
Via: SIP/2.0/UDP user_agent_ip;branch=z9hG4bK0f9e3669f4d198d3a
Max-Forwards: 70
From: 081603006.enterprise
<sip:081603006 at enterprise.freeswitch.ip:5060>;tag=6cad8109f7
To: 081603006.enterprise <sip:081603006 at enterprise.freeswitch.ip:5060>
Call-ID: 2edd6be274059ef7
CSeq: 1214273617 REGISTER
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, INFO
Authorization: Digest
username="081603006.enterprise",realm="enterprise.freeswitch.ip",nonce="d7238919-e558-4179-9b37-53c7931f0ea3",uri="sip:enterprise.freeswitch.ip:5060",response="520fa4505166ee74e9d88d893272a7a7",algorithm=MD5,qop=auth,cnonce="b2f67373",nc=00000001
Contact: 081603006.enterprise
<sip:081603006 at user_agent_ip:5060;transport=udp>;expires=3600
Supported: path
User-Agent: ARRIS-TM902S release v.7.10.145.SIP SN/001DCE73F07F
Content-Length: 0
------------------------------------------------------------------------
2013-03-12 13:17:21.500287 [WARNING] sofia_reg.c:1447 SIP auth failure
(REGISTER) on sofia profile 'internal' for
[081603006 at enterprise.freeswitch.ip] from ip user_agent_ip
send 573 bytes to udp/[user_agent_ip]:5060 at 12:17:21.509394:
------------------------------------------------------------------------
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP user_agent_ip;branch=z9hG4bK0f9e3669f4d198d3a
From: 081603006.enterprise
<sip:081603006 at enterprise.freeswitch.ip:5060>;tag=6cad8109f7
To: 081603006.enterprise
<sip:081603006 at enterprise.freeswitch.ip:5060>;tag=tZUpQ2yB10ZrN
Call-ID: 2edd6be274059ef7
CSeq: 1214273617 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.2.6+git~20130104T154559Z~a4247651ca
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Content-Length: 0
------------------------------------------------------------------------
recv 875 bytes from udp/[user_agent_ip]:5060 at 12:17:51.526234:
------------------------------------------------------------------------
REGISTER sip:enterprise.freeswitch.ip:5060 SIP/2.0
Via: SIP/2.0/UDP user_agent_ip;branch=z9hG4bKe805acf15a9fffd43
Max-Forwards: 70
From: 081603006.enterprise
<sip:081603006 at enterprise.freeswitch.ip:5060>;tag=6cad8109f7
To: 081603006.enterprise <sip:081603006 at enterprise.freeswitch.ip:5060>
Call-ID: 2edd6be274059ef7
CSeq: 1214273618 REGISTER
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, INFO
Authorization: Digest
username="081603006.enterprise",realm="enterprise.freeswitch.ip",nonce="d7238919-e558-4179-9b37-53c7931f0ea3",uri="sip:enterprise.freeswitch.ip:5060",response="0beca9aa5ee3f86304c88cb9f0dd242d",algorithm=MD5,qop=auth,cnonce="b2f67373",nc=00000002
Contact: 081603006.enterprise
<sip:081603006 at user_agent_ip:5060;transport=udp>;expires=3600
Supported: path
User-Agent: ARRIS-TM902S release v.7.10.145.SIP SN/001DCE73F07F
Content-Length: 0
------------------------------------------------------------------------
2013-03-12 13:17:51.530193 [WARNING] sofia_reg.c:1447 SIP auth failure
(REGISTER) on sofia profile 'internal' for
[081603006 at enterprise.freeswitch.ip] from ip user_agent_ip
send 573 bytes to udp/[user_agent_ip]:5060 at 12:17:51.532332:
------------------------------------------------------------------------
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP user_agent_ip;branch=z9hG4bKe805acf15a9fffd43
From: 081603006.enterprise
<sip:081603006 at enterprise.freeswitch.ip:5060>;tag=6cad8109f7
To: 081603006.enterprise
<sip:081603006 at enterprise.freeswitch.ip:5060>;tag=U8mFSXFFy9NBH
Call-ID: 2edd6be274059ef7
CSeq: 1214273618 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.2.6+git~20130104T154559Z~a4247651ca
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Content-Length: 0
------------------------------------------------------------------------
freeswitch at default>
Thanks!
Miha
Dne 3/12/2013 12:17 PM, pis(e Steven Ayre:
> That isn't a very readable SIP trace. Use 'sofia global siptrace on'
> instead.
>
> The most obvious would be an incorrect password/domain on the client.
>
> -Steve
>
>
>
> On 12 March 2013 09:56, Miha <miha at softnet.si
> <mailto:miha at softnet.si>> wrote:
>
> Hi,
>
> all of our user agents are registereing properly. Can some help me
> figure out why this one is beeing rejeted?
>
> my sip trace.
> http://pastebin.freeswitch.org/20682
>
> Thanks!
>
>
> Frame 7: 645 bytes on wire (5160 bits), 645 bytes captured (5160 bits)
> Ethernet II, Src: Cisco_76:c9:31 (00:16:c8:76:c9:31), Dst:
> Supermic_64:38:ff (00:30:48:64:38:ff)
> Internet Protocol Version 4, Src: user_agent_ip (user_agent_ip),
> Dst: freeswtich_ip (freeswtich_ip)
> User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
> Session Initiation Protocol
> Request-Line: REGISTER sip:enterprise.freeswitch.org:5060 SIP/2.0
> Method: REGISTER
> Request-URI: sip:enterprise.freeswitch.org:5060
> [Resent Packet: False]
> Message Header
> Via: SIP/2.0/UDP user_agent_ip;branch=z9hG4bK007ed7b3fda035653
> Transport: UDP
> Sent-by Address: user_agent_ip
> Branch: z9hG4bK007ed7b3fda035653
> Max-Forwards: 70
> From: 081603006.enterprise
> <sip:081603006 at enterprise.freeswitch.org:5060>;tag=a0ac7ed0e0
> SIP Display info: 081603006.enterprise
> SIP from address:
> sip:081603006 at enterprise.freeswitch.org:5060
> SIP from address User Part: 081603006
> SIP from address Host Part:
> enterprise.freeswitch.org <http://enterprise.freeswitch.org>
> SIP from address Host Port: 5060
> SIP tag: a0ac7ed0e0
> To: 081603006.enterprise
> <sip:081603006 at enterprise.freeswitch.org:5060>
> SIP Display info: 081603006.enterprise
> SIP to address:
> sip:081603006 at enterprise.freeswitch.org:5060
> SIP to address User Part: 081603006
> SIP to address Host Part:
> enterprise.freeswitch.org <http://enterprise.freeswitch.org>
> SIP to address Host Port: 5060
> Call-ID: 9b78f5c9e810d200
> CSeq: 1385547784 REGISTER
> Sequence Number: 1385547784
> Method: REGISTER
> Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, INFO
> Contact: 081603006.enterprise
> <sip:081603006 at user_agent_ip:5060;transport=udp>;expires=3600
> SIP Display info: 081603006.enterprise
> Contact-URI:
> sip:081603006 at user_agent_ip:5060;transport=udp
> Contactt-URI User Part: 081603006
> Contact-URI Host Part: user_agent_ip
> Contact-URI Host Port: 5060
> Contact parameter: transport=udp>
> Contact parameter: expires=3600
> Supported: path
> User-Agent: ARRIS-TM902S release v.7.10.145.SIP
> SN/001DCE73F07F
> Content-Length: 0
>
> No. Time Source Destination Protocol Length Info
> 8 153.860672 <tel:8%20153.860672> freeswtich_ip
> user_agent_ip SIP 751 Status: 401 Unauthorized (0
> bindings)
>
> Frame 8: 751 bytes on wire (6008 bits), 751 bytes captured (6008 bits)
> Ethernet II, Src: Supermic_64:38:ff (00:30:48:64:38:ff), Dst:
> Cisco_76:c9:31 (00:16:c8:76:c9:31)
> Internet Protocol Version 4, Src: freeswtich_ip (freeswtich_ip),
> Dst: user_agent_ip (user_agent_ip)
> User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
> Session Initiation Protocol
> Status-Line: SIP/2.0 401 Unauthorized
> Status-Code: 401
> [Resent Packet: False]
> [Request Frame: 7]
> [Response Time (ms): 1]
> Message Header
> Via: SIP/2.0/UDP user_agent_ip;branch=z9hG4bK007ed7b3fda035653
> Transport: UDP
> Sent-by Address: user_agent_ip
> Branch: z9hG4bK007ed7b3fda035653
> From: 081603006.enterprise
> <sip:081603006 at enterprise.freeswitch.org:5060>;tag=a0ac7ed0e0
> SIP Display info: 081603006.enterprise
> SIP from address:
> sip:081603006 at enterprise.freeswitch.org:5060
> SIP from address User Part: 081603006
> SIP from address Host Part:
> enterprise.freeswitch.org <http://enterprise.freeswitch.org>
> SIP from address Host Port: 5060
> SIP tag: a0ac7ed0e0
> To: 081603006.enterprise
> <sip:081603006 at enterprise.freeswitch.org:5060>;tag=2cr6m0BZBUUKg
> SIP Display info: 081603006.enterprise
> SIP to address:
> sip:081603006 at enterprise.freeswitch.org:5060
> SIP to address User Part: 081603006
> SIP to address Host Part:
> enterprise.freeswitch.org <http://enterprise.freeswitch.org>
> SIP to address Host Port: 5060
> SIP tag: 2cr6m0BZBUUKg
> Call-ID: 9b78f5c9e810d200
> CSeq: 1385547784 REGISTER
> Sequence Number: 1385547784
> Method: REGISTER
> User-Agent:
> FreeSWITCH-mod_sofia/1.2.3+git~20121004T033301Z~94664868a8
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO,
> UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
> Supported: timer, precondition, path, replaces
> WWW-Authenticate: Digest realm="enterprise.freeswitch.org
> <http://enterprise.freeswitch.org>",
> nonce="140088b8-c23a-461e-abb0-2ceef4bb16f4", algorithm=MD5,
> qop="auth"
> Authentication Scheme: Digest
> realm="enterprise.freeswitch.org
> <http://enterprise.freeswitch.org>"
> nonce="140088b8-c23a-461e-abb0-2ceef4bb16f4"
> algorithm=MD5
> qop="auth"
> Content-Length: 0
>
> No. Time Source Destination Protocol Length Info
> 9 153.875842 <tel:9%20153.875842> user_agent_ip
> freeswtich_ip SIP 917 Request: REGISTER
> sip:enterprise.freeswitch.org:5060
>
> Frame 9: 917 bytes on wire (7336 bits), 917 bytes captured (7336 bits)
> Ethernet II, Src: Cisco_76:c9:31 (00:16:c8:76:c9:31), Dst:
> Supermic_64:38:ff (00:30:48:64:38:ff)
> Internet Protocol Version 4, Src: user_agent_ip (user_agent_ip),
> Dst: freeswtich_ip (freeswtich_ip)
> User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
> Session Initiation Protocol
> Request-Line: REGISTER sip:enterprise.freeswitch.org:5060 SIP/2.0
> Method: REGISTER
> Request-URI: sip:enterprise.freeswitch.org:5060
> [Resent Packet: False]
> Message Header
> Via: SIP/2.0/UDP user_agent_ip;branch=z9hG4bK1cc3b9f75e01d9b85
> Transport: UDP
> Sent-by Address: user_agent_ip
> Branch: z9hG4bK1cc3b9f75e01d9b85
> Max-Forwards: 70
> From: 081603006.enterprise
> <sip:081603006 at enterprise.freeswitch.org:5060>;tag=a0ac7ed0e0
> SIP Display info: 081603006.enterprise
> SIP from address:
> sip:081603006 at enterprise.freeswitch.org:5060
> SIP from address User Part: 081603006
> SIP from address Host Part:
> enterprise.freeswitch.org <http://enterprise.freeswitch.org>
> SIP from address Host Port: 5060
> SIP tag: a0ac7ed0e0
> To: 081603006.enterprise
> <sip:081603006 at enterprise.freeswitch.org:5060>
> SIP Display info: 081603006.enterprise
> SIP to address:
> sip:081603006 at enterprise.freeswitch.org:5060
> SIP to address User Part: 081603006
> SIP to address Host Part:
> enterprise.freeswitch.org <http://enterprise.freeswitch.org>
> SIP to address Host Port: 5060
> Call-ID: 9b78f5c9e810d200
> CSeq: 1385547785 REGISTER
> Sequence Number: 1385547785
> Method: REGISTER
> Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, INFO
> [truncated] Authorization: Digest
> username="081603006.enterprise",realm="enterprise.freeswitch.org
> <http://enterprise.freeswitch.org>",nonce="140088b8-c23a-461e-abb0-2ceef4bb16f4",uri="sip:enterprise.freeswitch.org:5060",response="c9fbce339bb5aa1137ea34bf190619ac",algorithm
> Authentication Scheme: Digest
> username="081603006.enterprise"
> realm="enterprise.freeswitch.org
> <http://enterprise.freeswitch.org>"
> nonce="140088b8-c23a-461e-abb0-2ceef4bb16f4"
> uri="sip:enterprise.freeswitch.org:5060"
> response="c9fbce339bb5aa1137ea34bf190619ac"
> algorithm=MD5
> qop=auth
> cnonce="41fb0f25"
> nc=00000001
> Contact: 081603006.enterprise
> <sip:081603006 at user_agent_ip:5060;transport=udp>;expires=3600
> SIP Display info: 081603006.enterprise
> Contact-URI:
> sip:081603006 at user_agent_ip:5060;transport=udp
> Contactt-URI User Part: 081603006
> Contact-URI Host Part: user_agent_ip
> Contact-URI Host Port: 5060
> Contact parameter: transport=udp>
> Contact parameter: expires=3600
> Supported: path
> User-Agent: ARRIS-TM902S release v.7.10.145.SIP
> SN/001DCE73F07F
> Content-Length: 0
>
> No. Time Source Destination Protocol Length Info
> 10 153.876474 freeswtich_ip user_agent_ip SIP
> 615 Status: 403 Forbidden (0 bindings)
>
> Frame 10: 615 bytes on wire (4920 bits), 615 bytes captured (4920
> bits)
> Ethernet II, Src: Supermic_64:38:ff (00:30:48:64:38:ff), Dst:
> Cisco_76:c9:31 (00:16:c8:76:c9:31)
> Internet Protocol Version 4, Src: freeswtich_ip (freeswtich_ip),
> Dst: user_agent_ip (user_agent_ip)
> User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
> Session Initiation Protocol
> Status-Line: SIP/2.0 403 Forbidden
> Status-Code: 403
> [Resent Packet: False]
> [Request Frame: 9]
> [Response Time (ms): 0]
> Message Header
> Via: SIP/2.0/UDP user_agent_ip;branch=z9hG4bK1cc3b9f75e01d9b85
> Transport: UDP
> Sent-by Address: user_agent_ip
> Branch: z9hG4bK1cc3b9f75e01d9b85
> From: 081603006.enterprise
> <sip:081603006 at enterprise.freeswitch.org:5060>;tag=a0ac7ed0e0
> SIP Display info: 081603006.enterprise
> SIP from address:
> sip:081603006 at enterprise.freeswitch.org:5060
> SIP from address User Part: 081603006
> SIP from address Host Part:
> enterprise.freeswitch.org <http://enterprise.freeswitch.org>
> SIP from address Host Port: 5060
> SIP tag: a0ac7ed0e0
> To: 081603006.enterprise
> <sip:081603006 at enterprise.freeswitch.org:5060>;tag=3NHZpUv283H6B
> SIP Display info: 081603006.enterprise
> SIP to address:
> sip:081603006 at enterprise.freeswitch.org:5060
> SIP to address User Part: 081603006
> SIP to address Host Part:
> enterprise.freeswitch.org <http://enterprise.freeswitch.org>
> SIP to address Host Port: 5060
> SIP tag: 3NHZpUv283H6B
> Call-ID: 9b78f5c9e810d200
> CSeq: 1385547785 REGISTER
> Sequence Number: 1385547785
> Method: REGISTER
> User-Agent:
> FreeSWITCH-mod_sofia/1.2.3+git~20121004T033301Z~94664868a8
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO,
> UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
> Supported: timer, precondition, path, replaces
> Content-Length: 0
>
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130312/fa381fdd/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list