Sip 接收到从web客户端到softphone Twinkle的呼叫,但在下一时刻断开连接

Sip 接收到从web客户端到softphone Twinkle的呼叫,但在下一时刻断开连接,sip,webrtc,freeswitch,sip-server,sipml,Sip,Webrtc,Freeswitch,Sip Server,Sipml,我正在尝试从web客户端SipML5实时演示页面调用freeswitch的注册用户 现在有两个问题 1。有时用户1002已成功连接,并且能够在闪烁时呼叫用户1001但是呼叫一接到就被断开 为此,日志粘贴在此处。请看一看 自由开关日志 2014-05-11 00:02:47.548348 [CONSOLE] mod_voicemail.c:4066 Event Thread Started 2014-05-11 00:06:01.488350 [NOTICE] switch_channel.c:1

我正在尝试从web客户端SipML5实时演示页面调用freeswitch的注册用户

现在有两个问题

1。有时用户1002已成功连接,并且能够在闪烁时呼叫用户1001但是呼叫一接到就被断开

为此,日志粘贴在此处。请看一看

自由开关日志

2014-05-11 00:02:47.548348 [CONSOLE] mod_voicemail.c:4066 Event Thread Started
2014-05-11 00:06:01.488350 [NOTICE] switch_channel.c:1054 New Channel sofia/internal/1002@192.168.62.6 [3613d285-aa9d-4808-b5b6-85b60ab61a03]
2014-05-11 00:06:01.588349 [INFO] mod_dialplan_xml.c:558 Processing 1002 <1002>->1001 in context default
2014-05-11 00:06:01.588349 [INFO] switch_ivr_async.c:3631 Bound B-Leg: *1 execute_extension::dx XML features
2014-05-11 00:06:01.588349 [INFO] switch_ivr_async.c:3631 Bound B-Leg: *2 record_session::/usr/local/freeswitch/recordings/1002.2014-05-11-00-06-01.wav
2014-05-11 00:06:01.588349 [INFO] switch_ivr_async.c:3631 Bound B-Leg: *3 execute_extension::cf XML features
2014-05-11 00:06:01.588349 [INFO] switch_ivr_async.c:3631 Bound B-Leg: *4 execute_extension::att_xfer XML features
2014-05-11 00:06:01.588349 [NOTICE] switch_channel.c:1054 New Channel sofia/internal/sip:1001@192.168.62.6:5075 [e2a5e50b-87fd-41a6-bd52-c59aa1f7abf2]
2014-05-11 00:06:01.588349 [NOTICE] sofia.c:6287 Ring-Ready sofia/internal/sip:1001@192.168.62.6:5075!
2014-05-11 00:06:01.608350 [INFO] switch_ivr_originate.c:1191 Sending early media
2014-05-11 00:06:01.608350 [WARNING] switch_core_media.c:3455 Crypto not negotiated but required.
2014-05-11 00:06:01.608350 [ERR] mod_sofia.c:2201 CODEC NEGOTIATION ERROR.  SDP:
v=0
o=doubango 1983 678901 IN IP4 192.168.62.6
s=-
c=IN IP4 192.168.62.6
t=0 0
a=tcap:1 RTP/SAVPF RTP/SAVP RTP/AVPF
m=audio 51232 RTP/AVP 111 8 0 101
c=IN IP4 192.168.62.6
a=rtpmap:111 opus/48000/2
a=fmtp:111 maxplaybackrate=48000; sprop-maxcapturerate=48000; stereo=0; sprop-stereo=0; useinbandfec=0; usedtx=0
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
a=rtpmap:101 telephone-event/8000/1
a=fmtp:101 0-16
a=ptime:20
a=minptime:1
a=maxptime:255
a=silenceSupp:off - - - -
a=acap:1 crypto:1 AES_CM_128_HMAC_SHA1_80 inline:ZXnus9mDUN0KeIAH4oFY08wP7RU2jO0QCz0ATrrx
a=acap:2 crypto:2 AES_CM_128_HMAC_SHA1_32 inline:QVlx1ZwghQbqGNN1vldBCSx2+xNH1IOhoDYFuc85
a=pcfg:1 t=1 a=1,2
a=pcfg:2 t=2 a=1,2
a=pcfg:3 t=3
a=rtcp-mux
a=ssrc:2867390165 cname:019f5bad1e89245827816436cc655e35
a=ssrc:2867390165 mslabel:6994f7d1-6ce9-4fbd-acfd-84e5131ca2e2
a=ssrc:2867390165 label:doubango@audio
a=ice-ufrag:KORey5kawUsPr7u
a=ice-pwd:iXgoMD0A1kh0dPEU9KNXPl
a=candidate:kMxPxHHUa 1 udp 2130706431 192.168.62.6 51232 typ host
a=candidate:kMxPxHHUa 2 udp 2130706430 192.168.62.6 51233 typ host
a=candidate:DeKKSOIA3 1 udp 2130706175 192.168.49.170 53856 typ host
a=candidate:DeKKSOIA3 2 udp 2130706174 192.168.49.170 53857 typ host

2014-05-11 00:06:01.608350 [NOTICE] switch_channel.c:3432 Hangup sofia/internal/1002@192.168.62.6 [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]
2014-05-11 00:06:01.608350 [NOTICE] switch_ivr_originate.c:3782 Hangup sofia/internal/sip:1001@192.168.62.6:5075 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2014-05-11 00:06:01.608350 [NOTICE] switch_ivr_originate.c:2707 Cannot create outgoing channel of type [user] cause: [ORIGINATOR_CANCEL]
2014-05-11 00:06:01.608350 [INFO] mod_dptools.c:3234 Originate Failed.  Cause: ORIGINATOR_CANCEL
2014-05-11 00:06:01.608350 [NOTICE] switch_core_session.c:1622 Session 2 (sofia/internal/sip:1001@192.168.62.6:5075) Ended
2014-05-11 00:06:01.608350 [NOTICE] switch_core_session.c:1626 Close Channel sofia/internal/sip:1001@192.168.62.6:5075 [CS_DESTROY]
2014-05-11 00:06:01.608350 [NOTICE] switch_core_session.c:1622 Session 1 (sofia/internal/1002@192.168.62.6) Ended
2014-05-11 00:06:01.608350 [NOTICE] switch_core_session.c:1626 Close Channel sofia/internal/1002@192.168.62.6 [CS_DESTROY]

2.有时电话根本就不打。web客户端连接仅在按下呼叫按钮后保持状态-“呼叫正在进行…”。因此,FreeSwitch和webrtc2sip中不会生成任何日志

webrtc2sip config.xml文件内容如下->

<?xml version="1.0" encoding="utf-8" ?>
<!-- Please check the technical guide (http://webrtc2sip.org/technical-guide-1.0.pdf) for more information on how to adjust this file -->
<config>

  <debug-level>ERROR</debug-level>

  <transport>udp;*;10060</transport>
  <transport>ws;*;10060</transport>
  <transport>wss;*;10062</transport>
  <!--transport>tcp;*;10063</transport-->
  <!--transport>tls;*;10064</transport-->

  <enable-rtp-symetric>yes</enable-rtp-symetric>
  <enable-100rel>yes</enable-100rel>
  <enable-media-coder>yes</enable-media-coder>
  <enable-videojb>no</enable-videojb>
  <!--video-size-pref>vga</video-size-pref-->
  <rtp-buffsize>65535</rtp-buffsize>
  <avpf-tail-length>100;400</avpf-tail-length>
  <srtp-mode>optional</srtp-mode>
  <srtp-type>sdes;dtls</srtp-type>
  <dtmf-type>rfc4733</dtmf-type>

  <codecs>pcma;pcmu;speex;ilbc;opus</codecs>
  <codec-opus-maxrates>48000;48000</codec-opus-maxrates>

  <stun-server>stun.l.google.com;19302;stun-user@doubango.org;stun-password</stun-server>
  <enable-icestun>yes</enable-icestun>

  <max-fds>-1</max-fds>

  <!--nameserver>66.66.66.6</nameserver-->

  <!--ssl-certificates>
    C:/Projects/ssl/priv.pem;
    C:/Projects/ssl/pub.pem;
    C:/Projects/ssl/ca-cert.pem;
  </ssl-certificates-->

  <!-- ***CLICK-TO-CALL SERVICE*** -->

  <transport>c2c;*;10070</transport>
  <transport>c2cs;*;10072</transport>
  <database>sqlite;*</database>
  <!--account-mail>smtps;*;*;auth.smtp.1and1.fr;465;noreply@example.com;noreply@example.com;mysecret</account-mail-->
  <!--account-sip-caller>*;sip:a@example.com;a;example.com;mysecret</account-sip-caller-->

</config>

错误
udp;*;10060
ws;*;10060
wss;*;10062
对
对
对
不
65535
100;400
可选择的
sdes;dtls
rfc4733
pcma;pcmu;斯佩克斯;ilbc;作品
48000;48000
stun.l.google.com;19302;眩晕-user@doubango.org;眩晕密码
对
-1
c2c;*;10070
c2cs;*;10072
sqlite*
自由开关版本->1.5.12b

WebRTC2Sip版本->2.6.0

Chrome版本->31.0.1650.63

操作系统-Ubuntu 12.04

如果需要更多信息,请告诉我


谢谢

原因可能在这里:

2014-05-11 00:06:01.608350 [WARNING] switch_core_media.c:3455 Crypto not negotiated but required.
2014-05-11 00:06:01.608350 [ERR] mod_sofia.c:2201 CODEC NEGOTIATION ERROR.  SDP:
这后来导致了:

2014-05-11 00:06:01.608350 [NOTICE] switch_channel.c:3432 Hangup sofia/internal/1002@192.168.62.6 [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]

看起来有一个编解码器错误

看起来像freeswitch或介于两者之间的东西为
opus
添加了大量额外设置,我敢打赌
chrome
不完全支持其中一些编解码器设置。
2014-05-11 00:06:01.608350 [NOTICE] switch_channel.c:3432 Hangup sofia/internal/1002@192.168.62.6 [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]