OK. I made ethereal capture (don't look on packet numbers - I've
removed some garbage packets from other hosts). Looks like the
situation you described: after Asterisk sends NOTIFY (with Via:
SIP/2.0/UDP 192.168.0.85:5060;branch=z9hG4bK00985972 - don't know is
it normal?), sofsip_cli crashes and this NOTIFY remain unanswered, and
all following NOTIFY messages are answered with ICMP "port
unreachable".
Here is one message, full log attached.

---------------------------------------------------
Frame 18 (523 bytes on wire, 523 bytes captured)
Ethernet II, Src: 192.168.0.85 (00:03:0d:1b:56:9e), Dst: 192.168.0.90
(00:90:27:c5:c6:2d)
Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90
(192.168.0.90)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
   Request-Line: NOTIFY sip:192.168.0.90;transport=udp SIP/2.0
   Message Header
       Via: SIP/2.0/UDP 192.168.0.85:5060;branch=z9hG4bK00985972
       From: "asterisk" <sip:[EMAIL PROTECTED]>;tag=as75c9aeeb
       To: <sip:192.168.0.90;transport=udp>
       Contact: <sip:[EMAIL PROTECTED]>
       Call-ID: [EMAIL PROTECTED]
       CSeq: 102 NOTIFY
       User-Agent: Asterisk PBX
       Event: message-summary
       Content-Type: application/simple-message-summary
       Content-Length: 42
   Message body
No.     Time        Source                Destination           Protocol Info
      4 2.198046    192.168.0.90          192.168.0.85          SIP      
Request: REGISTER sip:192.168.0.85

Frame 4 (528 bytes on wire, 528 bytes captured)
Ethernet II, Src: 192.168.0.90 (00:90:27:c5:c6:2d), Dst: 192.168.0.85 
(00:03:0d:1b:56:9e)
Internet Protocol, Src: 192.168.0.90 (192.168.0.90), Dst: 192.168.0.85 
(192.168.0.85)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
    Request-Line: REGISTER sip:192.168.0.85 SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 192.168.0.90;rport;branch=z9hG4bKFyBXecFeX2pgc
        Max-Forwards: 70
        From: <sip:[EMAIL PROTECTED]>;tag=F2KytN0j9gc9Q
        To: <sip:[EMAIL PROTECTED]>
        Call-ID: b797d705-964d-1229-4b9f-009027c5c62d
        CSeq: 70786989 REGISTER
        Contact: <sip:192.168.0.90;transport=udp>
        User-Agent: sofia-sip/1.12.0
        Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, 
NOTIFY, REFER, UPDATE
        Supported: timer, 100rel, path
        Content-Length: 0

No.     Time        Source                Destination           Protocol Info
      5 2.202837    192.168.0.85          Broadcast             ARP      Who 
has 192.168.0.90?  Tell 192.168.0.85

Frame 5 (42 bytes on wire, 42 bytes captured)
Ethernet II, Src: 192.168.0.85 (00:03:0d:1b:56:9e), Dst: Broadcast 
(ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No.     Time        Source                Destination           Protocol Info
      6 2.202942    192.168.0.90          192.168.0.85          ARP      
192.168.0.90 is at 00:90:27:c5:c6:2d

Frame 6 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: 192.168.0.90 (00:90:27:c5:c6:2d), Dst: 192.168.0.85 
(00:03:0d:1b:56:9e)
Address Resolution Protocol (reply)

No.     Time        Source                Destination           Protocol Info
      7 2.202961    192.168.0.85          192.168.0.90          SIP      
Status: 100 Trying    (1 bindings)

Frame 7 (401 bytes on wire, 401 bytes captured)
Ethernet II, Src: 192.168.0.85 (00:03:0d:1b:56:9e), Dst: 192.168.0.90 
(00:90:27:c5:c6:2d)
Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
    Status-Line: SIP/2.0 100 Trying
    Message Header
        Via: SIP/2.0/UDP 192.168.0.90;branch=z9hG4bKFyBXecFeX2pgc
        From: <sip:[EMAIL PROTECTED]>;tag=F2KytN0j9gc9Q
        To: <sip:[EMAIL PROTECTED]>
        Call-ID: b797d705-964d-1229-4b9f-009027c5c62d
        CSeq: 70786989 REGISTER
        User-Agent: Asterisk PBX
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
        Contact: <sip:[EMAIL PROTECTED]>
        Content-Length: 0

No.     Time        Source                Destination           Protocol Info
      8 2.203578    192.168.0.85          192.168.0.90          SIP      
Status: 401 Unauthorized    (1 bindings)

Frame 8 (483 bytes on wire, 483 bytes captured)
Ethernet II, Src: 192.168.0.85 (00:03:0d:1b:56:9e), Dst: 192.168.0.90 
(00:90:27:c5:c6:2d)
Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
    Status-Line: SIP/2.0 401 Unauthorized
    Message Header
        Via: SIP/2.0/UDP 192.168.0.90;branch=z9hG4bKFyBXecFeX2pgc
        From: <sip:[EMAIL PROTECTED]>;tag=F2KytN0j9gc9Q
        To: <sip:[EMAIL PROTECTED]>;tag=as0cf05da9
        Call-ID: b797d705-964d-1229-4b9f-009027c5c62d
        CSeq: 70786989 REGISTER
        User-Agent: Asterisk PBX
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
        Contact: <sip:[EMAIL PROTECTED]>
        WWW-Authenticate: Digest realm="asterisk", nonce="36745def"
        Content-Length: 0

No.     Time        Source                Destination           Protocol Info
     10 5.886436    192.168.0.90          192.168.0.85          SIP      
Request: REGISTER sip:192.168.0.85

Frame 10 (687 bytes on wire, 687 bytes captured)
Ethernet II, Src: 192.168.0.90 (00:90:27:c5:c6:2d), Dst: 192.168.0.85 
(00:03:0d:1b:56:9e)
Internet Protocol, Src: 192.168.0.90 (192.168.0.90), Dst: 192.168.0.85 
(192.168.0.85)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
    Request-Line: REGISTER sip:192.168.0.85 SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 192.168.0.90;rport;branch=z9hG4bKg74Ng7ZHtBD3Q
        Max-Forwards: 70
        From: <sip:[EMAIL PROTECTED]>;tag=F2KytN0j9gc9Q
        To: <sip:[EMAIL PROTECTED]>
        Call-ID: b797d705-964d-1229-4b9f-009027c5c62d
        CSeq: 70786990 REGISTER
        Contact: <sip:192.168.0.90;transport=udp>
        User-Agent: sofia-sip/1.12.0
        Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, 
NOTIFY, REFER, UPDATE
        Supported: timer, 100rel, path
        Authorization: Digest username="3000", realm="asterisk", 
nonce="36745def", algorithm=MD5, uri="sip:192.168.0.85", 
response="30b0ddc0e4b8936d998670932a87746c"
        Content-Length: 0

No.     Time        Source                Destination           Protocol Info
     11 5.887003    192.168.0.85          192.168.0.90          SIP      
Status: 100 Trying    (1 bindings)

Frame 11 (401 bytes on wire, 401 bytes captured)
Ethernet II, Src: 192.168.0.85 (00:03:0d:1b:56:9e), Dst: 192.168.0.90 
(00:90:27:c5:c6:2d)
Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
    Status-Line: SIP/2.0 100 Trying
    Message Header
        Via: SIP/2.0/UDP 192.168.0.90;branch=z9hG4bKg74Ng7ZHtBD3Q
        From: <sip:[EMAIL PROTECTED]>;tag=F2KytN0j9gc9Q
        To: <sip:[EMAIL PROTECTED]>
        Call-ID: b797d705-964d-1229-4b9f-009027c5c62d
        CSeq: 70786990 REGISTER
        User-Agent: Asterisk PBX
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
        Contact: <sip:[EMAIL PROTECTED]>
        Content-Length: 0

No.     Time        Source                Destination           Protocol Info
     12 5.923372    192.168.0.85          192.168.0.90          SIP      
Status: 200 OK    (1 bindings)

Frame 12 (484 bytes on wire, 484 bytes captured)
Ethernet II, Src: 192.168.0.85 (00:03:0d:1b:56:9e), Dst: 192.168.0.90 
(00:90:27:c5:c6:2d)
Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
    Status-Line: SIP/2.0 200 OK
    Message Header
        Via: SIP/2.0/UDP 192.168.0.90;branch=z9hG4bKg74Ng7ZHtBD3Q
        From: <sip:[EMAIL PROTECTED]>;tag=F2KytN0j9gc9Q
        To: <sip:[EMAIL PROTECTED]>;tag=as0cf05da9
        Call-ID: b797d705-964d-1229-4b9f-009027c5c62d
        CSeq: 70786990 REGISTER
        User-Agent: Asterisk PBX
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
        Expires: 120
        Contact: <sip:192.168.0.90;transport=udp>;expires=120
        Date: Tue, 25 Jul 2006 06:59:35 GMT
        Content-Length: 0

No.     Time        Source                Destination           Protocol Info
     13 6.933504    192.168.0.85          192.168.0.90          SIP      
Request: NOTIFY sip:192.168.0.90;transport=udp

Frame 13 (523 bytes on wire, 523 bytes captured)
Ethernet II, Src: 192.168.0.85 (00:03:0d:1b:56:9e), Dst: 192.168.0.90 
(00:90:27:c5:c6:2d)
Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
    Request-Line: NOTIFY sip:192.168.0.90;transport=udp SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 192.168.0.85:5060;branch=z9hG4bK00985972
        From: "asterisk" <sip:[EMAIL PROTECTED]>;tag=as75c9aeeb
        To: <sip:192.168.0.90;transport=udp>
        Contact: <sip:[EMAIL PROTECTED]>
        Call-ID: [EMAIL PROTECTED]
        CSeq: 102 NOTIFY
        User-Agent: Asterisk PBX
        Event: message-summary
        Content-Type: application/simple-message-summary
        Content-Length: 42
    Message body

No.     Time        Source                Destination           Protocol Info
     14 7.933601    192.168.0.85          192.168.0.90          SIP      
Request: NOTIFY sip:192.168.0.90;transport=udp

Frame 14 (523 bytes on wire, 523 bytes captured)
Ethernet II, Src: 192.168.0.85 (00:03:0d:1b:56:9e), Dst: 192.168.0.90 
(00:90:27:c5:c6:2d)
Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
    Request-Line: NOTIFY sip:192.168.0.90;transport=udp SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 192.168.0.85:5060;branch=z9hG4bK00985972
        From: "asterisk" <sip:[EMAIL PROTECTED]>;tag=as75c9aeeb
        To: <sip:192.168.0.90;transport=udp>
        Contact: <sip:[EMAIL PROTECTED]>
        Call-ID: [EMAIL PROTECTED]
        CSeq: 102 NOTIFY
        User-Agent: Asterisk PBX
        Event: message-summary
        Content-Type: application/simple-message-summary
        Content-Length: 42
    Message body

No.     Time        Source                Destination           Protocol Info
     15 7.933946    192.168.0.90          192.168.0.85          ICMP     
Destination unreachable (Port unreachable)

Frame 15 (551 bytes on wire, 551 bytes captured)
Ethernet II, Src: 192.168.0.90 (00:90:27:c5:c6:2d), Dst: 192.168.0.85 
(00:03:0d:1b:56:9e)
Internet Protocol, Src: 192.168.0.90 (192.168.0.90), Dst: 192.168.0.85 
(192.168.0.85)
Internet Control Message Protocol
    Type: 3 (Destination unreachable)
    Code: 3 (Port unreachable)
    Checksum: 0x80f7 [correct]
    Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
    User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
    Session Initiation Protocol
        Request-Line: NOTIFY sip:192.168.0.90;transport=udp SIP/2.0
        Message Header
            Via: SIP/2.0/UDP 192.168.0.85:5060;branch=z9hG4bK00985972
            From: "asterisk" <sip:[EMAIL PROTECTED]>;tag=as75c9aeeb
            To: <sip:192.168.0.90;transport=udp>
            Contact: <sip:[EMAIL PROTECTED]>
            Call-ID: [EMAIL PROTECTED]
            CSeq: 102 NOTIFY
            User-Agent: Asterisk PBX
            Event: message-summary
            Content-Type: application/simple-message-summary
            Content-Length: 42
        Message body

No.     Time        Source                Destination           Protocol Info
     16 8.938555    192.168.0.85          192.168.0.90          SIP      
Request: NOTIFY sip:192.168.0.90;transport=udp

Frame 16 (523 bytes on wire, 523 bytes captured)
Ethernet II, Src: 192.168.0.85 (00:03:0d:1b:56:9e), Dst: 192.168.0.90 
(00:90:27:c5:c6:2d)
Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
    Request-Line: NOTIFY sip:192.168.0.90;transport=udp SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 192.168.0.85:5060;branch=z9hG4bK00985972
        From: "asterisk" <sip:[EMAIL PROTECTED]>;tag=as75c9aeeb
        To: <sip:192.168.0.90;transport=udp>
        Contact: <sip:[EMAIL PROTECTED]>
        Call-ID: [EMAIL PROTECTED]
        CSeq: 102 NOTIFY
        User-Agent: Asterisk PBX
        Event: message-summary
        Content-Type: application/simple-message-summary
        Content-Length: 42
    Message body

No.     Time        Source                Destination           Protocol Info
     17 8.938897    192.168.0.90          192.168.0.85          ICMP     
Destination unreachable (Port unreachable)

Frame 17 (551 bytes on wire, 551 bytes captured)
Ethernet II, Src: 192.168.0.90 (00:90:27:c5:c6:2d), Dst: 192.168.0.85 
(00:03:0d:1b:56:9e)
Internet Protocol, Src: 192.168.0.90 (192.168.0.90), Dst: 192.168.0.85 
(192.168.0.85)
Internet Control Message Protocol
    Type: 3 (Destination unreachable)
    Code: 3 (Port unreachable)
    Checksum: 0x80f7 [correct]
    Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
    User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
    Session Initiation Protocol
        Request-Line: NOTIFY sip:192.168.0.90;transport=udp SIP/2.0
        Message Header
            Via: SIP/2.0/UDP 192.168.0.85:5060;branch=z9hG4bK00985972
            From: "asterisk" <sip:[EMAIL PROTECTED]>;tag=as75c9aeeb
            To: <sip:192.168.0.90;transport=udp>
            Contact: <sip:[EMAIL PROTECTED]>
            Call-ID: [EMAIL PROTECTED]
            CSeq: 102 NOTIFY
            User-Agent: Asterisk PBX
            Event: message-summary
            Content-Type: application/simple-message-summary
            Content-Length: 42
        Message body

No.     Time        Source                Destination           Protocol Info
     18 9.932984    192.168.0.85          192.168.0.90          SIP      
Request: NOTIFY sip:192.168.0.90;transport=udp

Frame 18 (523 bytes on wire, 523 bytes captured)
Ethernet II, Src: 192.168.0.85 (00:03:0d:1b:56:9e), Dst: 192.168.0.90 
(00:90:27:c5:c6:2d)
Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
Session Initiation Protocol
    Request-Line: NOTIFY sip:192.168.0.90;transport=udp SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 192.168.0.85:5060;branch=z9hG4bK00985972
        From: "asterisk" <sip:[EMAIL PROTECTED]>;tag=as75c9aeeb
        To: <sip:192.168.0.90;transport=udp>
        Contact: <sip:[EMAIL PROTECTED]>
        Call-ID: [EMAIL PROTECTED]
        CSeq: 102 NOTIFY
        User-Agent: Asterisk PBX
        Event: message-summary
        Content-Type: application/simple-message-summary
        Content-Length: 42
    Message body

No.     Time        Source                Destination           Protocol Info
     19 9.933326    192.168.0.90          192.168.0.85          ICMP     
Destination unreachable (Port unreachable)

Frame 19 (551 bytes on wire, 551 bytes captured)
Ethernet II, Src: 192.168.0.90 (00:90:27:c5:c6:2d), Dst: 192.168.0.85 
(00:03:0d:1b:56:9e)
Internet Protocol, Src: 192.168.0.90 (192.168.0.90), Dst: 192.168.0.85 
(192.168.0.85)
Internet Control Message Protocol
    Type: 3 (Destination unreachable)
    Code: 3 (Port unreachable)
    Checksum: 0x80f7 [correct]
    Internet Protocol, Src: 192.168.0.85 (192.168.0.85), Dst: 192.168.0.90 
(192.168.0.90)
    User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
    Session Initiation Protocol
        Request-Line: NOTIFY sip:192.168.0.90;transport=udp SIP/2.0
        Message Header
            Via: SIP/2.0/UDP 192.168.0.85:5060;branch=z9hG4bK00985972
            From: "asterisk" <sip:[EMAIL PROTECTED]>;tag=as75c9aeeb
            To: <sip:192.168.0.90;transport=udp>
            Contact: <sip:[EMAIL PROTECTED]>
            Call-ID: [EMAIL PROTECTED]
            CSeq: 102 NOTIFY
            User-Agent: Asterisk PBX
            Event: message-summary
            Content-Type: application/simple-message-summary
            Content-Length: 42
        Message body
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to