pjsua | Docker version | Continuous Deployment library
kandi X-RAY | pjsua Summary
kandi X-RAY | pjsua Summary
SIP user agent (cli) based on PJSUA. Docker version
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pjsua
pjsua Key Features
pjsua Examples and Code Snippets
Community Discussions
Trending Discussions on pjsua
QUESTION
I am trying to build MicroSIP version 3.20.7 for Windows 10 64-bit Operating System.
I already build PjProject (As mentioned in the documentation) and obtained all the .lib files for the same and now I am trying to use those .lib files for building MicroSIP as mentioned in the documentation over their website.
But I fall for an error of Unresolved External Symbols that is LNK2019 / LNK2001 / LNK1120.
(An image for the reference have been attached)
I am concluding with following steps.
- Download the source for PjProject and extract the source using 7Zip.
- Added a config_site.h file in the pjlib\include\pj.
- Using Visual Studio 2022, Open PjProject and select pjsua as the source project.
- Setting up the configuration for the project as -> Debug-Static for x64. and Build.
- After a successfull build I got all the .lib files for the PjProject and successfully deployed the pjsua project showing a cli menu for PjSIP.
- Now, I downloaded the latest source of MicroSIP 3.20.7 from the official website and extracted the source code using 7Zip.
- Setting the configuration for the project as Debug for x64, and including all the header files and library files from windows kit as well as the other media libraries to the Include Directories and Library Directories {Opus, SDL2, FFMPEG,x264, VPX, PjProject}
- I started to build the MicroSIP 3.20.7 and obtained the MicroSIP.lib file successfully.
But at the last where the build must give an executable file for MicroSIP, there are the list of error stating Unresolved External Symbols {LNK2019 / LNK2001 / LNK1120}
Below is the link to the image having all the error in console windows.
The error states the following message.
unresolved external symbol pjmedia_get_vid_subsys referenced in function "public: void __cdecl CmainDlg::OnTimer(unsigned __int64)" (?OnTimer@CmainDlg@@QEAAX_K@Z)
unresolved external symbol pjmedia_vid_dev_refrence referenced in function "public: void __cdecl CmainDlg::OnTimer(unsigned __int64)" (?OnTimer@CmainDlg@@QEAAX_K@Z).
etc there are other 17 error (Kindly take the refrence of above image.)
Below is the link to the image having error logged in output tab.
These are the message logged into the output tab
...ANSWER
Answered 2022-Jan-04 at 19:30It might be missing
QUESTION
I am trying to compile and build PjProject {PJSUA}, with both audio and video support into it. But falling into the errors everytime which is Unresolved_External_Symbols.
I am building this project for Windows-32-BIT using Visual Studio 2022 and toolchain set latest version that is v143.
I want to intialize the various codec {OPUS, OPENH264, FFMPEG, OPENSSL, SDL etc}. I will just ask about the OPUS LIBRARY.
The steps are as follows:
Got the source of latest version of PjProject and loaded the project in Visual Studio 2022.
Mention the Opus Include directory and Opus Library Directory after compiling and building LibOpus.
Making PJSUA as source project and Setting configuration as Debug-Static-Win32 and start building the project.
NOTE
- Other addition dependencies such as SDL header and lib file have been included already.
- The config_site.h have been used to define the codec use {#define PJMEDIA_HAS_OPUS_CODEC 1}
The error that I have received into the error log are as following:
...ANSWER
Answered 2022-Jan-27 at 05:38After a long try I get the solution as following:
- In config_site.h we need to mention and activate our codec for compilation as #define PJMEDIA_HAS_OPUS_CODEC
#define PJMEDIA_HAS_OPUS_CODEC must be active througout the program and rest function line that is #define PJMEDIA_HAS_OPUS_CODEC 1 must be clearly removed from the program to find the ease for the compilation which will ommit out the different function those are called during the build.
I would still refer that while building on windows use Microsoft Visual Studio latest Version along with the latest toolset to compile and built different programs for a Single Linker.
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 developing a multi-account SIP softphone with custom media transport. I need to manage multiple calls simultaneously. I have read in "PJSUA2 Book" (3 PJSUA2-High Level API / General concepts / Asynchronous Operations):
(...) all operations that involve sending and receiving SIP messages are asynchronous, meaning that the function that invokes the operation will complete immediately (...) When this function [pj::Call::makeCall] returns successfully, it does not mean that the call has been established, but rather it means that the call has been initiated successfully. You will be given the report of the call progress and/or completion in the onCallState() callback method of Call class.
So I thought that I could call pj::Call::makeCall
whenever/wherever I needed to initiate a call, the function would return nearly immediately and any progress would be reported in the callback methods. But today in my test environment I noticed a few seconds delay between the moment I called the function and it returned. Below there are detailed PJSIP logs that appear between makeCall
is called and it returned. One can see almost 4s gap before "RTP socket reachable":
ANSWER
Answered 2020-Aug-07 at 13:42After even more research I can reply to my own question. Maybe it could help someone...
I discovered makeCall
triggered two DNS queries for localhost which failed after nearly 2 second each. That would make nearly 4 second gap.
The solution is to disable localhost IP address resolution completely by adding
#define PJ_GETHOSTIP_DISABLE_LOCAL_RESOLUTION 1
into the pjlib/include/pj/config_site.h
configuration file and recompile the PJSIP library.
The issue turned out to be already known and has been resolved in case of iOS: https://trac.pjsip.org/repos/ticket/1342
There was somebody else who experienced the same problem on Linux: https://www.spinics.net/lists/pjsip/msg20517.html
QUESTION
I was using speech_recognition with a wav file that pjsua recorded, and it always ends with an error msg when I try to send the content of the file.
Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format
The file plays normally using MPV, and inspecting the file show that it's a PCM (I used the file command).
test2.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 16000 Hz
Looking up, I found a guy with a similar problem, the proposed solution (change a few parameters using the wave library) did not work out to me. After I use the wav.setparams((2, 2, 44100, 0, 'NONE', 'NONE'))
the audio became complete garbage, like ant's talking.
I really don't understand enough about sound files to understand what the "channels", "sampwidth", "framerate", "nframes", "comptype" and "compname" means...
...ANSWER
Answered 2020-Jul-03 at 15:20You've misunderstood the error message. PCM is intrinsic to the wave file format. There is no "PCM" version, and then a "Normal" version - The wave file format always uses Pulse Code Modulation (PCM) - that really just means that the samples that make up your signal are quantized digitally and contiguous. If your speech_recognition
function can't parse the wave file, it's not because of anything related to PCM.
I don't know anything about the SpeechRecognition
module (I'm assuming that's what you're using?). I also don't know anything about pjsua
. My guess is that pjsua
is possibly baking in some additional chunks in the header meta-data, which the SpeechRecognition
API isn't expecting. Is there any chance you can share the wave file via dropbox, etc?
Also, the reason your audio sounded like "ants talking" is because of the discrepency between the meta-data your wave file contains, and the meta-data you wrote to your new wave file. Your wave file is mono - that means one channel, you wrote two. Your file also has a samplerate of 16khz, but you wrote 44.1khz.
QUESTION
I'm trying to make a SIP request to a SIP server, using pjsua, a SIP client by pjsip (version 2.10, 2020-02-14). Starting the client this way:
...ANSWER
Answered 2020-May-18 at 07:57You should add ;transport=tcp
to your request URI each time.
You can read more here (link)
QUESTION
If I create an application using PJSUA, then after the pjsua_create() system call, a huge amount of debugging information falls onto the console of my application. This is convenient at the development stage, but after it interferes with the work with programm.
How can you predefine verbosity level of this debugging information? So that when pjsua_create() is called, it is already set.
Thank you for the informative answers.
...ANSWER
Answered 2020-Feb-26 at 15:47Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pjsua
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