Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-7971

telephone-event and Opus - rate mismatch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.20
    • Fix Version/s: 1.6
    • Component/s: freeswitch-core
    • Labels:
      None
    • Environment:
      Linux
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      58f127249081f9cbc69615ccc85c24a795866ea4
    • GIT Master Revision hash::
      58f127249081f9cbc69615ccc85c24a795866ea4
    • Target Version:
      1.6

      Description

      The telephone-event codec is offered by FS at 8 khz , remote clients expect it at 48 khz . This is about FS-7578 (https://freeswitch.org/jira/browse/FS-7578 ) . It looks like a regression, since I tested FS-7578 patch at the time - https://freeswitch.org/stash/projects/FS/repos/freeswitch/pull-requests/274/overview - and it was working .

      incorrect:

      2015-08-17 07:14:38.479806 [DEBUG] mod_sofia.c:799 Local SDP sofia/internal/38573251@46.x.x.x:
      v=0
      o=FreeSWITCH 1439786544 1439786545 IN IP4 46.x.x.x
      s=FreeSWITCH
      c=IN IP4 46.x.x.x
      t=0 0
      m=audio 23534 RTP/AVP 96 101
      a=rtpmap:96 opus/48000/2
      a=fmtp:96 useinbandfec=1; maxaveragebitrate=14000; maxplaybackrate=8000
      a=rtpmap:101 telephone-event/8000 <- wrong rate
      a=fmtp:101 0-16
      a=ptime:20
      a=sendrecv
      a=rtcp:23535 IN IP4 46.x.x.x

      correct (after patch):

      2015-08-17 07:29:15.539697 [DEBUG] mod_sofia.c:799 Local SDP sofia/internal/38573251@46.x.x.x:
      v=0
      o=FreeSWITCH 1439779885 1439779886 IN IP4 46.x.x.x
      s=FreeSWITCH
      c=IN IP4 46.x.x.x
      t=0 0
      m=audio 31070 RTP/AVP 96 101
      a=rtpmap:96 opus/48000/2
      a=fmtp:96 useinbandfec=1; maxaveragebitrate=14000; maxplaybackrate=8000
      a=rtpmap:101 telephone-event/48000 <- right rate
      a=fmtp:101 0-16
      a=ptime:20
      a=sendrecv
      a=rtcp:31071 IN IP4 46.x.x.x

      pull request coming.

        Attachments

          Activity

            People

            • Assignee:
              mikej Mike Jerris
              Reporter:
              dragos_oancea Dragos Oancea
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: