Comments (14)
Yeah
from jssip.
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.
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.
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.
Not at all. It is The instance_id
;-)
from jssip.
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.
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.
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.
Yes. First I will take it to the public API, and the document.
from jssip.
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.
No updates at all. Well set to 0.4.x
from jssip.
New UA configuration parameter: 'instance_id':
from jssip.
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.
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)
- For SIP server Account Register Working? HOT 2
- Abnormal session cancellation method under race condition
- Type definition errors in 3.10.0 HOT 1
- Error when getting video track status on Firefox
- Play audio or tone to remote user. HOT 2
- The new JsSIP.UA(configuration).call method does not return the status after execution
- import JsSIP from "jssip"; 打印JsSIP undefined HOT 2
- Error 'setLocalDescription' on Chrome HOT 1
- BYE: Request-URI does not point to us HOT 34
- Incorrect SDP a=sendrecv in firefox HOT 7
- I want to send and Receive message using JSSIP
- Sending a silent stream on latest Chrome HOT 1
- Error when trying to change the microphone during a call HOT 1
- Add custom header JsSIP - Asterisk HOT 1
- JsSIP processing re-INVITE HOT 1
- SDP is cut off between recieving 200 OK and the sdp event being emitted HOT 2
- On iOS, navigator.mediaDevices is `undefined` unless page is served in a secure context, but Errors are swallowed
- Why is there a 2-second delay when exiting? According to the source code, it seems to have no practical significance. HOT 3
- Codec Preference Selection Not Supported in JsSIP HOT 4
- "User denied media access"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jssip.