pjsua2 | PJSUA2 from PJSIP | TCP library
kandi X-RAY | pjsua2 Summary
kandi X-RAY | pjsua2 Summary
PJSUA2 from PJSIP
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handles incoming call activity
- Builds the accounts configs
- Gets the status text
- Save the configuration file
- Initializes the account
- Reads an object from a container
- Load the configuration from a JSON file
- Initialize endpoint
- Get information about a camera
- Converts a List of CameraSizeList to an array of ints
- Converts a float array into an integer array
- Displays the onInstantMessage param
- Handle a message
- Gets the call
- Called when the call is received
- Accepts a call and answers the response
- Show a video preview
- Notify the registration
- Initializes the preview
- Called when an option is selected
- Set the surface view
- Switch device
- Make a call to the buddy list
- On call media state
- Delete a buddy
- This method is called when a video capture surface is destroyed
pjsua2 Key Features
pjsua2 Examples and Code Snippets
Community Discussions
Trending Discussions on pjsua2
QUESTION
I can't find info on the net how to forward a call with pjsua2. Currently Im trying with the xfer method but Im getting:
...ANSWER
Answered 2022-Mar-18 at 16:38I did something like this and works, dont know if some other way exist:
(answering with no media, setting flag and in other thread xfering call to fwd_to string)
QUESTION
I started writing application with Qt5, Im running pjsua2_demo.cpp from pjproject-2.9/pjsip-apps/src/samples/ in a QThread with infinite while(1) loop to leave pjsua2 running forever.
When I make 1-2 calls it blocks/hangs at the makeCall() function here:
...ANSWER
Answered 2022-Feb-27 at 14:44I solved the problem, it was the version of pjproject. Now I tried with v2.10 and everything fine.
v2.12 and v2.11 don't work because they give me undefined references when I compile the demo app.
QUESTION
Let's asssume we've two phone and Phone1 & Phone2 they're both has custom sip header
[Phone1] ----calling----> [Phone2]
(This is onIncomingCallState for Phone2 and it can read header of Phone1)
[Phone1] <----answer---- [Phone2]
(This is answer for Phone2 and it send it's header with it's CallOpParam)
[Phone1] <----OnCallState----> [Phone2]
(This is on call state for both, Phone2 has Phone1's header, now Phone1 need to get Phone2's header.)
I'm writing the code at the level of PjSua2 with C++, i can see the log, Phone1 has access the value of header and when i sniff also with the wireshark i can see as well. But how can i handle it at the level of pjsua2, is there any call back or something else?
...ANSWER
Answered 2021-Oct-28 at 10:06Usually there are callbacks, in the on_call_media_state
. Here is some bare minimum:
QUESTION
How can i read below message: connection established while making call in pjsip pjsua2 for android app.
...
ANSWER
Answered 2021-Oct-27 at 09:08you will require. onCallTsxState call back function from call class to listen to Sip message shared during the call. I have already answered here at below link link
QUESTION
is it possible to build pjsip with opus-codec for windows as dll? I built pjsua2.dll alone but seems no way to use opus with it.
...ANSWER
Answered 2021-Oct-24 at 08:06I downloaded opus and pjsip , opened pjsip from visual studio solution, added opus projects to solution and made reference to them from libpjpproject, then build it using this link link
QUESTION
./configure --host=arm-elf-linux CC=aarch64-linux-gnu-gcc --disable-sdl --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-libwebrtc --disable-libyuv
make dep && make
...ANSWER
Answered 2021-Sep-27 at 12:41Some of the libraries to link may not be built with the same toolchain. You can check with objdump
.
Example (The "file format" may not be the exact result in your case):
QUESTION
I am new to PJSUA2, and I'm trying to make calls using this library. I already managed to authorize on remote sip server, but calling is more difficult. So, here is the code:
...ANSWER
Answered 2021-Jan-28 at 13:10I managed to figure it out, so I'll leave an answer if anyone has that problem. Turns out call was hanging up in a wrong way (or wasn't at all, dunno). To fix that, I changed my onCallState callback, it should be like this:
QUESTION
I have been going through Android Pjsip
pjsua2
sample app. It works but they didn't implemented registration listener. And couldn't find any good enough documentation as well. Eg for android native sip stack, they have registration listener for registration failure, registration success as well. Please help me with a sample code as well if its possible.
ANSWER
Answered 2020-Sep-16 at 14:12I guess you're talking about empty brackets beside notifyRegState at files sample.java and sample2.java in pjsip-apps sources. You can easily implement your own registration listener there.
QUESTION
I am using pjsip library through android ndk. I used Android NDK 16 to compile pjsip. One user (HTC One, Android 5.0.2) faced a lot of crashes while trying to start our project. This is the error:
...ANSWER
Answered 2020-Sep-17 at 10:44You probably compiled binaries with a higher API Level.
This is how they are defined in stdio.h
QUESTION
I am trying to close the activity i used for making voip by calling finish. But i have notice that at random time instead of closing current activity. it just close entire Android App. I have attached code from manifest as well.
...ANSWER
Answered 2020-Aug-20 at 20:23It looks like you are using some library that has native code running. Probably the native code is still running even after you've finished your Activity
and it is trying to access something that has been reclaimed by the garbage collector. This implies that you need to close or shutdown whatever is going on in the native code before you finish your Activity
.
Check the documentation for whatever native libraries you are using about how to release resources or shutdown background or pending operations.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pjsua2
You can use pjsua2 like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the pjsua2 component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page