Last active
March 1, 2020 19:47
-
-
Save siniypin/7860029 to your computer and use it in GitHub Desktop.
Configuring pjsip4net from App.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<configSections> | |
<section name="sipua" type="pjsip4net.Configuration.SipUserAgentSettingsSection, pjsip4net, Culture=neutral, PublicKeyToken=null"/> | |
</configSections> | |
<sipua srtp="Disabled" secureSignaling="0" logMessages="true" logLevel="5" traceAndDebug="false" autoAnswer="true" autoConference="false" maxCalls="5"> | |
<accounts> | |
<!--<account accountId="sip:1000@66.240.xxx.xx:5080" registrarUri="sip:66.240.170.79:5080" | |
userName="1000" password="1234" realm="*" isDefault="true" | |
publishPresence="false" />--> | |
</accounts> | |
<sipTransport type="udp" Port="5060"/> | |
<networkSettings natInSDP="true" forceLooseRoute="false"> | |
<stun address="stun.stunprotocol.org"/> | |
<turn enabled="false" server="" type="udp" userName="" password="" realm=""/> | |
<ice enabled="true" noRTCP="false"/> | |
<proxies> | |
<add address="sip:192.168.1.1:5060"/> | |
</proxies> | |
</networkSettings> | |
<media isVADEnabled="true"/> | |
</sipua> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cfg = Configure.Pjsip4Net().FromConfig();//read configuration from .config file | |
var ua = cfg.Build().Start();//build and start |
Unable to load DLL 'pjsua.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}
@princetomy92 found a fix ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
its not working
it hits an exception "Exception has been thrown by the target of an invocation."