奇怪的 SIP 注册,带有错误的 SIP 邀请召回

奇怪的 SIP 注册,带有错误的 SIP 邀请召回

我这里有一个智能手机应用程序(适用于 iOS 版本 4.2.16 的 DIVUS VIDEOPHONE 应用程序),它可以在 AVM Fritz!Box 7490 上进行 SIP REGISTER,然后应该会收到 SIP INVITE。我只是不知道...应用程序现在是进行了错误的 REGSITER 还是 Fritz!Box 进行了错误的 INVITE?当然可以肯定的是,192.0.0.1 无法通过 WAN 访问。

SIP 注册:

Internet Protocol Version 4, Src: 80.187.119.148, Dst: 79.237.225.35
    Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT)
    Total Length: 771
    Identification: 0x5448 (21576)
    Flags: 0x4000, Don't fragment
    Fragment offset: 0
    Time to live: 52
    Protocol: UDP (17)
    Header checksum: 0xf641 [validation disabled]
    Source: 80.187.119.148
    Destination: 79.237.225.35
User Datagram Protocol, Src Port: 27994, Dst Port: 5060
    Source Port: 27994
    Destination Port: 5060
    Length: 751
    Checksum: 0xf75e [unverified]
Session Initiation Protocol (REGISTER)
    Request-Line: REGISTER sip:foo.bar.net SIP/2.0
        Method: REGISTER
        Request-URI: sip:foo.bar.net
            Request-URI Host Part: foo.bar.net
        [Resent Packet: False]
    Message Header
        Via: SIP/2.0/UDP 192.0.0.1:10573;branch=z9hG4bK-524287-1---8db3ab2e48be0b2c;rport
            Transport: UDP
            Sent-by Address: 192.0.0.1
            Sent-by port: 10573
            Branch: z9hG4bK-524287-1---8db3ab2e48be0b2c
            RPort: rport
        Max-Forwards: 70
        Contact: <sip:[email protected]:10573>;+sip.instance="<urn:uuid:867E57BD-062C-7169-995D-C03CC0541C19>"
            Contact URI: sip:[email protected]:10573
                Contact URI User Part: tuer-iphone
                Contact URI Host Part: 192.0.0.1
                Contact URI Host Port: 10573
            Contact parameter: +sip.instance="<urn:uuid:867E57BD-062C-7169-995D-C03CC0541C19>"\r\n
        To: "tuer-iphone"<sip:[email protected]>
            SIP Display info: "tuer-iphone"
            SIP to address: sip:[email protected]
                SIP to address User Part: tuer-iphone
                SIP to address Host Part: foo.bar.net
        From: "tuer-iphone"<sip:[email protected]>;tag=ed68ae35
            SIP Display info: "tuer-iphone"
            SIP from address: sip:[email protected]
                SIP from address User Part: tuer-iphone
                SIP from address Host Part: foo.bar.net
            SIP from tag: ed68ae35
        Call-ID: 0RF7zFGABXSLst5gfmsDIw..
        [Generated Call-ID: 0RF7zFGABXSLst5gfmsDIw..]
        CSeq: 1 REGISTER
            Sequence Number: 1
            Method: REGISTER
        Expires: 60
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO, PUBLISH
        Supported: replaces, answermode, eventlist, outbound, path
        User-Agent: VIDEOPHONE agent
        Allow-Events: hold, talk, conference
        Content-Length: 0

SIP 邀请:

Internet Protocol Version 4, Src: 79.237.225.35, Dst: 192.0.0.1
    Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT)
    Total Length: 1255
    Identification: 0xf969 (63849)
    Flags: 0x0000
    Fragment offset: 0
    Time to live: 64
    Protocol: UDP (17)
    Header checksum: 0x8b8a [validation disabled]
    Source: 79.237.225.35
    Destination: 192.0.0.1
User Datagram Protocol, Src Port: 5060, Dst Port: 10168
    Source Port: 5060
    Destination Port: 10168
    Length: 1235
    Checksum: 0x2271 [unverified]
Session Initiation Protocol (INVITE)
    Request-Line: INVITE sip:[email protected]:10168 SIP/2.0
        Method: INVITE
        Request-URI: sip:[email protected]:10168
            Request-URI User Part: tuer-iphone
            Request-URI Host Part: 192.0.0.1
            Request-URI Host Port: 10168
        [Resent Packet: False]
    Message Header
        Via: SIP/2.0/UDP 79.237.225.35:5060;branch=z9hG4bKE574C2A06F46B037
            Transport: UDP
            Sent-by Address: 79.237.225.35
            Sent-by port: 5060
            Branch: z9hG4bKE574C2A06F46B037
        From: "Bauernstube" <sip:**[email protected]>;tag=BA5C24F75387FA12
            SIP Display info: "Bauernstube"
            SIP from address: sip:**[email protected]
                SIP from address User Part: **611
                SIP from address Host Part: fritz.box
            SIP from tag: BA5C24F75387FA12
        To: <sip:[email protected]:10168>;+sip.instance="<urn:uuid:867E57BD-062C-7169-995D-C03CC0541C19>"
            SIP to address: sip:[email protected]:10168
                SIP to address User Part: tuer-iphone
                SIP to address Host Part: 192.0.0.1
                SIP to address Host Port: 10168
        Call-ID: [email protected]
        [Generated Call-ID: [email protected]]
        CSeq: 25 INVITE
            Sequence Number: 25
            Method: INVITE
        Contact: <sip:[email protected]>
            Contact URI: sip:[email protected]
                Contact URI User Part: FB295F506401C13E567BBD9FC96B1
                Contact URI Host Part: 79.237.225.35
        Max-Forwards: 70
        P-Called-Party-ID: <sip:**[email protected]>
        Expires: 120
        Session-Expires: 600;refresher=uac
        Min-SE: 90
        User-Agent: AVM FRITZ!Box 7490 113.07.27 (May  4 2021)
        Supported: 100rel,replaces,timer
        Allow-Events: telephone-event,refer
        Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,PRACK,INFO,SUBSCRIBE,NOTIFY,REFER,MESSAGE,PUBLISH
        Content-Type: application/sdp
        Accept: application/sdp, multipart/mixed
        Accept-Encoding: identity
        Content-Length:   359
    Message Body
        Session Description Protocol
            Session Description Protocol Version (v): 0
            Owner/Creator, Session Id (o): user 8940975 8940975 IN IP4 79.237.225.35
                Owner Username: user
                Session ID: 8940975
                Session Version: 8940975
                Owner Network Type: IN
                Owner Address Type: IP4
                Owner Address: 79.237.225.35
            Session Name (s): call
            Connection Information (c): IN IP4 79.237.225.35
                Connection Network Type: IN
                Connection Address Type: IP4
                Connection Address: 79.237.225.35
            Time Description, active time (t): 0 0
                Session Start Time: 0
                Session Stop Time: 0
            Media Description, name and address (m): audio 7080 RTP/AVP 8 0 2 102 100 99 97 101
                Media Type: audio
                Media Port: 7080
                Media Protocol: RTP/AVP
                Media Format: ITU-T G.711 PCMA
                Media Format: ITU-T G.711 PCMU
                Media Format: ITU-T G.721
                Media Format: DynamicRTP-Type-102
                Media Format: DynamicRTP-Type-100
                Media Format: DynamicRTP-Type-99
                Media Format: DynamicRTP-Type-97
                Media Format: DynamicRTP-Type-101
            Media Attribute (a): sendrecv
            Media Attribute (a): rtpmap:2 G726-32/8000
                Media Attribute Fieldname: rtpmap
                Media Format: 2
                MIME Type: G726-32
                Sample Rate: 8000
            Media Attribute (a): rtpmap:102 G726-32/8000
                Media Attribute Fieldname: rtpmap
                Media Format: 102
                MIME Type: G726-32
                Sample Rate: 8000
            Media Attribute (a): rtpmap:100 G726-40/8000
                Media Attribute Fieldname: rtpmap
                Media Format: 100
                MIME Type: G726-40
                Sample Rate: 8000
            Media Attribute (a): rtpmap:99 G726-24/8000
                Media Attribute Fieldname: rtpmap
                Media Format: 99
                MIME Type: G726-24
                Sample Rate: 8000
            Media Attribute (a): rtpmap:97 iLBC/8000
                Media Attribute Fieldname: rtpmap
                Media Format: 97
                MIME Type: iLBC
                Sample Rate: 8000
            Media Attribute (a): fmtp:97 mode=30
                Media Attribute Fieldname: fmtp
                Media Format: 97 [iLBC]
                Media format specific parameters: mode=30
            Media Attribute (a): rtpmap:101 telephone-event/8000
                Media Attribute Fieldname: rtpmap
                Media Format: 101
                MIME Type: telephone-event
                Sample Rate: 8000
            Media Attribute (a): fmtp:101 0-15
                Media Attribute Fieldname: fmtp
                Media Format: 101 [telephone-event]
                Media format specific parameters: 0-15
            Media Attribute (a): rtcp:7081
                Media Attribute Fieldname: rtcp
                Media Attribute Value: 7081
            [Generated Call-ID: [email protected]]

请注意,这个问题不是关于如何让应用程序正常工作或正确配置我的路由器。我主要关心的是首先确定哪一方的行为不正确,然后我可以向该公司开具一张票。

答案1

也许两者都有。

在软电话设置中搜索 STUN 或公共 IP 等设置(尽管我猜公共 IP 不会一直起作用,因为这将是动态 IP)。如果没有 STUN,请咨询制造商。

在 fritzbox 中搜索与 NAT 相关的设置。处理来自其他网络的客户端时,常见的做法是忽略作为联系人发送的任何内容,而改用消息源地址。如果没有此设置,请咨询制造商。

相关内容