Giter Site home page Giter Site logo

Comments (7)

ibc avatar ibc commented on August 15, 2024

What is the "caller" here? To hard to figure out. I assume JsSTIP is not the "caller" in your scenario, but those things must be properly explained when reporting a bug.

So the fact that Firefox adds a a=sendrecv attribute at global SDP level is irrelevant. In the m=audio section there is a proper a=sendonly attribute that overrides the global one. If Asterisk doesn't understand it that's a bug in Asterisk side.

from jssip.

warenbe avatar warenbe commented on August 15, 2024

Hi

reproduced here also.
Asterisk 18.14

The issue exists in any call direction: either if it's incoming (session invte created by pbx) or outgoing (session invite created by jssip)

the SDP rfc say:

a=sendonly
This specifies that the tools should be started in send-only
mode. An example may be where a different unicast address is
to be used for a traffic destination than for a traffic source.
In such a case, two media descriptions may be used, one
sendonly and one recvonly. It can be either a session- or
media-level attribute, but would normally only be used as a
media attribute. It is not dependent on charset. Note that
sendonly applies only to the media, and any associated control
protocol (e.g., RTCP) SHOULD still be received and processed as
normal.

if i get it right, while its not invalid to put this in sesion level, it's preferable to put it in media level only.
we'll check what can be done in asterisk side but i thinks it's really better to be clean and put this attribute only in media level instead of both session and media.

from jssip.

ibc avatar ibc commented on August 15, 2024

but i thinks it's really better to be clean and put this attribute only in media level instead of both session and media.

This is not JsSIP decision. It's Firefox the one that generates its SDP with that attribute at session and media level. This is WebRTC. Browsers generate their SDPs, not us.

from jssip.

warenbe avatar warenbe commented on August 15, 2024

but i thinks it's really better to be clean and put this attribute only in media level instead of both session and media.

This is not JsSIP decision. It's Firefox the one that generates its SDP with that attribute at session and media level. This is WebRTC. Browsers generate their SDPs, not us.

interesting, i thought it was set by jssip.

from jssip.

ibc avatar ibc commented on August 15, 2024

JsSIP doesn't create SDP. It rewrites it a bit to change the sendrecv attribute at media level when calling hold() and unhold(), nothing else.

from jssip.

warenbe avatar warenbe commented on August 15, 2024

Noted. i'll check if this bug (but is it ?) is reported on mozilla bugreport, and i'll check if we can do something on asterisk level. i agree that asterisk should play MOH in any case.

from jssip.

ibc avatar ibc commented on August 15, 2024

Firefox could omit the session level attribute but that's not a bug. Asterisk is the problem since if should check the media level attribute if present and override the session level one.

from jssip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.