Giter Site home page Giter Site logo

Comments (14)

jmillan avatar jmillan commented on July 16, 2024

Yeah

from jssip.

saghul avatar saghul commented on July 16, 2024

Can we call that "instance_id" ? The implementation uses a URN, but as a concept it expresses an instance identifier: https://tools.ietf.org/html/rfc5626#section-4.1

Also, should jsSIP verify that the given instance id is a valid urn?

from jssip.

jmillan avatar jmillan commented on July 16, 2024

This parameter already exists and its name is instance_id ;-). It is a non public configuration parameter right now.

Of course, it will verify the urn syntax.

from jssip.

saghul avatar saghul commented on July 16, 2024

José Luis Millán wrote:

This parameter already exists and its name is |instance_id| ;-). It is
a non public configuration parameter right now.

Of course, it will verify the urn syntax.


Reply to this email directly or view it on GitHub
#49 (comment).

Great! I hope you don't planto change it to "urn" ;-)

from jssip.

jmillan avatar jmillan commented on July 16, 2024

Not at all. It is The instance_id ;-)

from jssip.

ibc avatar ibc commented on July 16, 2024

instance_id is a proper name, but +sip.instance Contact header param requires a URN so validation of the field is required (otherwise parsing errors could occur somewhere.

Could you please write an example of such a parameter usage?

from jssip.

jmillan avatar jmillan commented on July 16, 2024

It is already implemented internally. I will make the parameter public so it will be validated against the proper syntax as any configuration parameter does.

The following can be seen from a running UA instance.

coolPhone.configuration.instance_id -> 1758eab0-806c-40bb-a88d-710b99503965

The Contact header in a Register request is generated as it needs to:

Contact: <sip:[email protected];transport=ws>;reg-id=1;+sip.instance="<urn:uuid:1758eab0-806c-40bb-a88d-710b99503965>";expires=600

from jssip.

ibc avatar ibc commented on July 16, 2024

Please, properly document in the API that the value must not contain "urn:uuid:" nor "<" and ">".

Theorically the user provided value should be an entire URN (i.e.: "urn:uuid:xxxx-xxxx-xxxx-xxxx") but we can require just the "xxxx-xxxx-xxxx" fragment if properly documented.

from jssip.

jmillan avatar jmillan commented on July 16, 2024

Yes. First I will take it to the public API, and the document.

from jssip.

ibc avatar ibc commented on July 16, 2024

Updates to this issue please? It is marked for 0.3.x but AFAIK it is not. If so better leaving it for 0.4.x.

from jssip.

jmillan avatar jmillan commented on July 16, 2024

No updates at all. Well set to 0.4.x

from jssip.

jmillan avatar jmillan commented on July 16, 2024

New UA configuration parameter: 'instance_id':

764dc90

from jssip.

walidsynclio avatar walidsynclio commented on July 16, 2024

HI,
I tried to set instance_id but no luck.
coolPhone.instance_id says undefined.
Even if I add instance_id to configuration it does not show up in the sip request packet. it has some other vlue in sip request packet.
Thanks

from jssip.

jmillan avatar jmillan commented on July 16, 2024

Hi @walidsynclio,

The instance_id is a new configuratin parameter in the 'devel' branch. It is not in the current 'master' branch. Are you using the 'devel'?

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.