【问题标题】:Error "SIP/2.0 488 Not acceptable here"错误“SIP/2.0 488 此处不可接受”
【发布时间】:2015-12-14 21:40:12
【问题描述】:

我设置了用户“100”和“200”,我正在尝试使用项目 sipml5。

服务器记录了这两个在线电话上的用户“100”。

用户“200”记录在 sipml5 中,但要调用它会显示此错误:

`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.invitecontext.mediahandler | 4pk6rpr5p1mhfts149uk9t8l09v01c | acquiring local media`

`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.invitecontext.mediahandler | 4pk6rpr5p1mhfts149uk9t8l09v01c | acquired local media streams`

`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.invitecontext.mediahandler | 4pk6rpr5p1mhfts149uk9t8l09v01c | ICE candidate received: candidate:3879386089 1 udp 2122260223 172.16.1.209 60702 typ host generation 0`

`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.invitecontext.mediahandler | 4pk6rpr5p1mhfts149uk9t8l09v01c | ICE candidate received: candidate:3879386089 2 udp 2122260222 172.16.1.209 45410 typ host generation 0`

`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.invitecontext.mediahandler | 4pk6rpr5p1mhfts149uk9t8l09v01c | ICE candidate received: candidate:2847491865 1 tcp 1518280447 172.16.1.209 0 typ host tcptype active generation 0`

`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.invitecontext.mediahandler | 4pk6rpr5p1mhfts149uk9t8l09v01c | ICE candidate received: candidate:2847491865 2 tcp 1518280446 172.16.1.209 0 typ host tcptype active generation 0`

`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.invitecontext.mediahandler | 4pk6rpr5p1mhfts149uk9t8l09v01c | ICE candidate received: candidate:288014909 2 udp 1686052606 189.35.140.74 62060 typ srflx raddr 172.16.1.209 rport 45410 generation 0`

`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.invitecontext.mediahandler | 4pk6rpr5p1mhfts149uk9t8l09v01c | ICE candidate received: candidate:288014909 1 udp 1686052607 189.35.140.74 56282 typ srflx raddr 172.16.1.209 rport 60702 generation 0`

`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.transport | sending WebSocket message:`

`INVITE sip:100@172.16.1.203 SIP/2.0<br>
Via: SIP/2.0/WS cam6bslroe6a.invalid;branch=z9hG4bK7117302
Max-Forwards: 70
To: <sip:100@172.16.1.203>
From: "200" <sip:200@172.16.1.203>;tag=ur4c0oov9u
Call-ID: 4pk6rpr5p1mhfts149uk
CSeq: 7760 INVITE
Contact: <sip:040c805k@cam6bslroe6a.invalid;transport=ws;ob>
Allow: ACK,CANCEL,BYE,OPTIONS,INFO,NOTIFY,INVITE
Content-Type: application/sdp
Supported: outbound
User-Agent: SIP.js/0.7.2
Content-Length: 1777
`

`v=0
o=- 6908994037829104915 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS Mdtr3XiGc3ZYftGDwxeYDfspP9DqQwSRd17N
m=audio 56282 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126
c=IN IP4 189.35.140.74
a=rtcp:62060 IN IP4 189.35.140.74
a=candidate:3879386089 1 udp 2122260223 172.16.1.209 60702 typ host generation 0
a=candidate:3879386089 2 udp 2122260222 172.16.1.209 45410 typ host generation 0
a=candidate:2847491865 1 tcp 1518280447 172.16.1.209 0 typ host tcptype active generation 0
a=candidate:2847491865 2 tcp 1518280446 172.16.1.209 0 typ host tcptype active generation 0
a=candidate:288014909 2 udp 1686052606 189.35.140.74 62060 typ srflx raddr 172.16.1.209 rport 45410 generation 0
a=candidate:288014909 1 udp 1686052607 189.35.140.74 56282 typ srflx raddr 172.16.1.209 rport 60702 generation 0
a=ice-ufrag:FK6gzTOP0l95UM39
a=ice-pwd:1ehRZElxNwmCq6mQpetD78w+
a=fingerprint:sha-256 2C:93:D5:54:53:96:34:18:DA:A6:3C:1A:59:5A:32:6B:3E:70:79:78:85:AC:AA:26:8F:D6:0B:5E:9C:DB:4A:8C
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:2011742822 cname:/+L6wPj8ErBqYw3L
a=ssrc:2011742822 msid:Mdtr3XiGc3ZYftGDwxeYDfspP9DqQwSRd17N dce80b6d-4fed-4409-af6c-275e470a0d73
a=ssrc:2011742822 mslabel:Mdtr3XiGc3ZYftGDwxeYDfspP9DqQwSRd17N
a=ssrc:2011742822 label:dce80b6d-4fed-4409-af6c-275e470a0d73`


`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.transport | received WebSocket text message:`

`SIP/2.0 401 Unauthorized
Via: SIP/2.0/WS cam6bslroe6a.invalid;branch=z9hG4bK7117302;received=172.16.1.209
From: "200" <sip:200@172.16.1.203>;tag=ur4c0oov9u
To: <sip:100@172.16.1.203>;tag=as5f539d65
Call-ID: 4pk6rpr5p1mhfts149uk
CSeq: 7760 INVITE
Server: Asterisk PBX 13.6.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="26be674c"
Content-Length: 0`



`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.transport | sending WebSocket message:`

`ACK sip:100@172.16.1.203 SIP/2.0
Via: SIP/2.0/WS cam6bslroe6a.invalid;branch=z9hG4bK7117302
To: <sip:100@172.16.1.203>;tag=as5f539d65
From: "200" <sip:200@172.16.1.203>;tag=ur4c0oov9u
Call-ID: 4pk6rpr5p1mhfts149uk
Content-Length: 0
CSeq: 7760 ACK`



`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.transport | sending WebSocket message:`

`INVITE sip:100@172.16.1.203 SIP/2.0
Via: SIP/2.0/WS cam6bslroe6a.invalid;branch=z9hG4bK4757152
Max-Forwards: 70
To: <sip:100@172.16.1.203>
From: "200" <sip:200@172.16.1.203>;tag=ur4c0oov9u
Call-ID: 4pk6rpr5p1mhfts149uk
CSeq: 7761 INVITE
Authorization: Digest algorithm=MD5, username="200", realm="asterisk", nonce="26be674c", uri="sip:100@172.16.1.203", response="7c400e75f1605a4893b99438a18b9560"
Contact: <sip:040c805k@cam6bslroe6a.invalid;transport=ws;ob>
Allow: ACK,CANCEL,BYE,OPTIONS,INFO,NOTIFY,INVITE
Content-Type: application/sdp
Supported: outbound
User-Agent: SIP.js/0.7.2
Content-Length: 1777`

`v=0
o=- 6908994037829104915 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS Mdtr3XiGc3ZYftGDwxeYDfspP9DqQwSRd17N
m=audio 56282 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126
c=IN IP4 189.35.140.74
a=rtcp:62060 IN IP4 189.35.140.74
a=candidate:3879386089 1 udp 2122260223 172.16.1.209 60702 typ host generation 0
a=candidate:3879386089 2 udp 2122260222 172.16.1.209 45410 typ host generation 0
a=candidate:2847491865 1 tcp 1518280447 172.16.1.209 0 typ host tcptype active generation 0
a=candidate:2847491865 2 tcp 1518280446 172.16.1.209 0 typ host tcptype active generation 0
a=candidate:288014909 2 udp 1686052606 189.35.140.74 62060 typ srflx raddr 172.16.1.209 rport 45410 generation 0
a=candidate:288014909 1 udp 1686052607 189.35.140.74 56282 typ srflx raddr 172.16.1.209 rport 60702 generation 0
a=ice-ufrag:FK6gzTOP0l95UM39
a=ice-pwd:1ehRZElxNwmCq6mQpetD78w+
a=fingerprint:sha-256 2C:93:D5:54:53:96:34:18:DA:A6:3C:1A:59:5A:32:6B:3E:70:79:78:85:AC:AA:26:8F:D6:0B:5E:9C:DB:4A:8C
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:2011742822 cname:/+L6wPj8ErBqYw3L
a=ssrc:2011742822 msid:Mdtr3XiGc3ZYftGDwxeYDfspP9DqQwSRd17N dce80b6d-4fed-4409-af6c-275e470a0d73
a=ssrc:2011742822 mslabel:Mdtr3XiGc3ZYftGDwxeYDfspP9DqQwSRd17N
a=ssrc:2011742822 label:dce80b6d-4fed-4409-af6c-275e470a0d73`


`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.transaction.ict | z9hG4bK7117302 | Timer D expired for INVITE client transaction z9hG4bK7117302
Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.transport | received WebSocket text message:`

`SIP/2.0 488 Not acceptable here
Via: SIP/2.0/WS cam6bslroe6a.invalid;branch=z9hG4bK4757152;received=172.16.1.209
From: "200" <sip:200@172.16.1.203>;tag=ur4c0oov9u
To: <sip:100@172.16.1.203>;tag=as5f539d65
Call-ID: 4pk6rpr5p1mhfts149uk
CSeq: 7761 INVITE
Server: Asterisk PBX 13.6.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0`



`Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.transport | sending WebSocket message:`

`ACK sip:100@172.16.1.203 SIP/2.0
Via: SIP/2.0/WS cam6bslroe6a.invalid;branch=z9hG4bK4757152
To: <sip:100@172.16.1.203>;tag=as5f539d65
From: "200" <sip:200@172.16.1.203>;tag=ur4c0oov9u
Call-ID: 4pk6rpr5p1mhfts149uk
Content-Length: 0
CSeq: 7761 ACK`



    `Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.inviteclientcontext | closing INVITE session 4pk6rpr5p1mhfts149uk9t8l09v01c`

    `Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.invitecontext.mediahandler | 4pk6rpr5p1mhfts149uk9t8l09v01c | closing PeerConnection`

    `Mon Dec 14 2015 19:18:51 GMT-0200 (BRST) | sip.transaction.ict | z9hG4bK4757152 | Timer D expired for INVITE client transaction z9hG4bK4757152`

【问题讨论】:

  • 离题。不是编程问题。我们不是一般的服务器/软件技术支持。

标签: asterisk sip


【解决方案1】:

488应该意味着没有媒体兼容性。

获得 488 有几个原因:最常见的是您没有通用的编解码器。首先检查您的星号上是否支持和配置了作品。

由于 webrtc 兼容性,问题通常与以下用途有关:

UDP/TLS/RTP/SAVPF

而不是

RTP/SAVPF

ie:webrtc/ietf 标准尚未完全定义,仍在发展中。

您可以在此处查看可能重复的问题/答案:Freeswitch and webRTC: media rejected with 488

【讨论】:

  • 那么安装 Opus 有帮助吗?我也有同样的情况,我已经安装了 Opus。
【解决方案2】:

当我使用 SRTP 接听电话时,我遇到了这个问题。电话通过带有 488 的电话掉线。我可以毫无问题地拨打加密电话。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-07
    • 1970-01-01
    相关资源
    最近更新 更多