I am using sipML5 for audio and video calls that use web socket. When I register a SIP account with details, it sends a request to the server for authentication with details and the server responds with Status(like 401 or 403 Forbidden etc.) in some sipMl.js function. Now I want to get the server response passed in to some Java function like in SIP servlets Process Response for further processing.
How to use sipML5 js with Mobicent SIP servlets?
393 Views Asked by vipin kumar At
2
There are 2 best solutions below
0
Jaime Casero
On
if you mean how to process the response coming from MobicentsSIPServlets in your Javascript, there is no specific way related to MobicentsSipServlets container, since this is plain SIP over Websocket signalling. In this case, yo ushould take a look to sipML5 doc, and how to regsiter callback JS function to process SIP responses.
From sipML5 doc it seems you may pass a JS function reference during registration as in sipML5 reg/login . Look contents of var eventsListener.
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in RESTCOMM
- Build Extended-jSS7
- Errors happened When I Build jSS7 with maven
- SendParameters weird behavior in jSS7
- Restcomm jain-slee jackson NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper
- where i could find latest binary distribution of jss7
- Restcomm USSD - do not return a dialog
- Restcomm USSD Gateway Installation (Community version)
- Token expiry of Rest Sharp API
- RCDevice is taking too long time to initialise
- Restcomm ClassCastException during creating SBB child relation
- jdiameter-ha-* ClassNotFoundException
- SCTP stay Disconnected
- RCConnection Error: setSDP Error: Failed to set remote offer sip: Called with SDP without DTLS fingerprint
- Incoming Mtp3 Message for nonlocal dpc=1111. But RemoteSpc is not found
- Restcomm JDBC Resource Adaptor Multiple Datasources
Related Questions in SIPML
- Call quality metrics in sipML5
- Asterisk Sipml5
- Issue on SIPML5 plugin integration on AWS with Asterisks server- 13 using WebRTC
- asterisk Call ID in sipml5
- sipML5 - Negotiate rtcpMuxPolicy
- SIP invite is not received until 180 seconds
- Automatic terminating a call when call made
- Javascript :Ringtone is not playing
- FreeSwitch WebRTC Call Termination
- WebRTC to PSTN call established but no audio
- Asterisk sslv3 alert handshake failure
- SIPML 5 Client and SipServlets not works Using WSS
- How to read Call-Info Header from Invite Message using sipml5
- DTLS-DTLS is not enabled
- How to use sipML5 js with Mobicent SIP servlets?
Related Questions in MOBICENTS-SIP-SERVLETS
- Are there any ways to fix Log4j vulnerability when it is being used as a transitive dependency
- SipServlet CRBT Implementation
- Restcomm Sipservlets docker with tomcat
- how to get user password in sip servlet
- Can't enable jboss security
- RestComm SIpServlet - Sip Servlet as Application Server in IMS network
- how to config jboss for sip servlet
- Mobicents disregards UDP retransmissions
- How to synchronize Servlet client transaction?
- Restcomm sip-servlets does not forward INVITE request
- Sip Servlets clustering on wildfly
- How to implement Kurento one to one video call tutorial with websocket Sip servlet
- Differences between SipApplicationSession and servletContext
- PChargingVectorParser of jain-sip-ri doesn't accept IPv6 in icid-value of P-Charging-Vector
- fail to forward bye when using mobicents proxy
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can have a look at https://github.com/RestComm/sip-servlets/tree/master/sip-servlets-examples/websocket-b2bua as example of how to handle responses and requests. This application is the out of the box WebRTC application that ships with RestComm SIP Servlets.
Please also read the JSR 289 Specification, it is a good resource to learn more about SIP Servlets in general.
Note: Mobicents brand has been renamed to Restcomm. See more at http://www.telestax.com/restcomm-moves-beyond-mobicents/