1

I am using trying to call from web client SipML5 live demo page to a registered user at freeswitch.

Now there are two problems.

1. Sometimes User 1002 is successfully connected and is able to make a call to user 1001 on twinkle. But call is disconnected as soon as it is received.

for this Logs are pasted here. please have a look.

Log of FreeSwitch

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]

Log of WebRTC2Sip

MSG: getaddrinfo(family=10, node=:: and service=0) failed: [Name or service not known]
***ERROR: function: "tnet_socket_create_2()" 
file: "src/tnet_socket.c" 
line: "143" 
MSG: tnet_getaddrinfo(family=10, hostname=:: and port=0) failed: [Name or service not known]
***ERROR: function: "tnet_socket_create_2()" 
file: "src/tnet_socket.c" 
line: "143" 
MSG: (SYSTEM)NETWORK ERROR ==>Success
***ERROR: function: "tnet_getaddrinfo()" 
file: "src/tnet_utils.c" 
line: "928" 
MSG: getaddrinfo(family=10, node=:: and service=0) failed: [Name or service not known]
***ERROR: function: "tnet_socket_create_2()" 
file: "src/tnet_socket.c" 
line: "143" 
MSG: tnet_getaddrinfo(family=10, hostname=:: and port=0) failed: [Name or service not known]
***ERROR: function: "tnet_socket_create_2()" 
file: "src/tnet_socket.c" 
line: "143" 
MSG: (SYSTEM)NETWORK ERROR ==>Success

and

Log of Chrome Java Script

2. Some times call is not made at all. web client connects just stays at the state - "Call in Progress..." after pressing call button. For this no log is produced in FreeSwitch and webrtc2sip. Chrome JS log is here.

webrtc2sip config.xml file content is this ->

<?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>

FreeSwitch version - > 1.5.12b

WebRTC2Sip Version -> 2.6.0

Chrome version -> 31.0.1650.63

OS - Ubuntu 12.04

Please let me know if more info is required.

Thanks

4

1 回答 1

1

可能原因在这里:

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]

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

于 2014-05-11T14:24:49.597 回答