我正在使用PJSIP开源库进行AES加密.用于AES加密的库不是C编程中可用的内置库.所以,我已经使用外部库(Libmcrypt)进行AES加密.
我按照这个站点将libmcrypt库构建到我的机器(MAC OSX)中. https://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-10-yosemite-development-server/
https://gist.github.com/bricef/2436364
在构建这些库时,它在/ usr/local/lib / path中创建了一个动态库(libmcrypt.dylib).当使用lipo -info libmcrypt.dylib命令检查该库的体系结构时,它显示
Non-fat file: libmcrypt.dylib is architecture: x86_64
Run Code Online (Sandbox Code Playgroud)
但我正在使用PJSIP 为Android和IOS设备创建这些应用程序.他们的架构是armeabi(android)和armv7(IOS).
将libmcrypt.dylib(x86_64)链接到PJSIP库(armv7)时,会显示以下错误.
Undefined symbols for architecture armv7:
"_mcrypt_enc_get_block_size", referenced from:
_encrypt_AES in libpjsip-armv7-apple-darwin_ios.a(aes.o)
_decrypt_AES in libpjsip-armv7-apple-darwin_ios.a(aes.o)
"_mcrypt_generic", referenced from:
_encrypt_AES in libpjsip-armv7-apple-darwin_ios.a(aes.o)
"_mcrypt_generic_deinit", referenced from:
_encrypt_AES in libpjsip-armv7-apple-darwin_ios.a(aes.o)
_decrypt_AES in libpjsip-armv7-apple-darwin_ios.a(aes.o)
"_mcrypt_generic_init", referenced from:
_encrypt_AES in libpjsip-armv7-apple-darwin_ios.a(aes.o)
_decrypt_AES in libpjsip-armv7-apple-darwin_ios.a(aes.o)
"_mcrypt_module_close", referenced from:
_encrypt_AES in …Run Code Online (Sandbox Code Playgroud) 我有集成PJSIP与机器人.在我的应用程序中拨打电话时,扬声器工作正常,但录音麦克风音量太低.我的声音不能被另一方所能忍受.
注意:但在某些手机中它运行正常.
即使我尝试使用adjustStreamVolume(),setStreamVolume(),setMode(),adjustVolume()方法来增加我的音量级别,它也不会增加.请给我一个解决此问题的建议,以增加Android或PJSIP中的麦克风音量级别.
提前致谢.
我正在使用PJSIP开发iOS应用程序.我想通过PJSIP发送注册消息.我在用户名中有@,例如nandha@gmail.com.
我将@编码为%40并将帐户用户名添加为nandha%40gmail.com,并将SIP URL添加为sip:nandha%40gmail.com@142.23.16.20:2020
我将用户名和sip url传递给了PJSIP.帐户已成功添加,但无法向服务器发送任何REGISTER消息.
我认为它已经添加了编码的用户名和sip url.当发送注册消息时,它将值解码为nandha @ gmail.com @ 142.23.16.20:2020并且在@符号后需要IP PORT值,如gmail.com@142.23.16.20:2020
为什么PJSIP在编码用户名时不发送REGISTER消息?