I managed to successfully get the binary working from this forum: https://www.mysipswitch.com/forum/viewt ... t=download
I then downloaded and compiled the sipswitch source from april 1st. It compiles fine, but I can not get the sipswitch to read the registrations.xml file.
This is the part of the config file that deals with the registrations:
Code: Select all
<!-- SIP Registration Agent Settings -->
<!-- <add key="RegistrationAgentDBStorageType" value="Postgresql" />
<add key="RegistrationAgentDBConnStr" value="Server=localhost;Port=5432;User Id=postgresuser;Password=postgresPassWord;Database=sipswitch;MaxPoolSize=5;MinPoolSize=0;Timeout=5;Encoding=UNICODE;" /> -->
<add key="RegistrationAgentDBStorageType" value="XML"/>
<add key="RegistrationAgentDBConnStr" value="registrations.xml" />
Code: Select all
c:\visual\MySipSwitch1\SIPSwitch.Service\bin\Debug>sipswitchservice.exe
sipswitch starting
Starting logging initialisation.
Logging initialised.
StorageTypesConverter unknown.
version=0.2.1.
pid=2684.
os=Microsoft Windows NT 5.1.2600 Service Pack 2.
current directory=c:\visual\MySipSwitch1\SIPSwitch.Service\bin\Debug.
SIPChannel socket on xxx.xxx.xxx.xxx:5060 listening started.
SIP Channel listener created xxx.xxx.xxx.xxx:5060.
SIPChannel socket on xxx.xxx.xxx.xxx:5085 listening started.
SIP Channel listener created xxx.xxx.xxx.xxx:5085.
The proxy console monitor was successfully started on xxx.xxx.xxx.xxx:4502.
STUNListener created xxx.xxx.xxx.xxx:3348.
Attempting to obtain random seed from random.org, timeout is 3s.
ProxyMonitor listening for clients on xxx.xxx.xxx.xxx:4502.
Random seed retrieved from random.org = 915217404.
STUN Server additional sockets, primary=xxx.xxx.xxx.xxx:37299, secondary=xxx.xxx.xxx.xxx:19950.
STUN server successfully initialised.
Starting file watch on c:\visual\MySipSwitch1\SIPSwitch.Service\bin\Debug and registrar.xml.
Registrar realm added: mydomain.dyndns.org.
alias added: *.
alias added: xxx.xxx.xxx.xxx:5060.
alias added: xxx.xxx.xxx.xxx:5085.
alias added: local.
SIP Registrar successfully initialised.
SIPChannel socket on xxx.xxx.xxx.xxx:11006 listening started.
SIP Channel listener created xxx.xxx.xxx.xxx:11006.
NATKeepAlive Relay instantiated on xxx.xxx.xxx.xxx:11006.
NATKeepAlives for SIP Registrar enabled, endpoint is xxx.xxx.xxx.xxx:11006.
SIPRegistrationAgent thread started.
Registration agent started.
Starting file watch on c:\visual\MySipSwitch1\SIPSwitch.Service\bin\Debug and dialplan-common.rby.
Starting file watch on c:\visual\MySipSwitch1\SIPSwitch.Service\bin\Debug and dialplans.xml.
DatabaseLogger started.
SIP Proxy web service was successfully started on http://xxx.xxx.xxx.xxx:8080/.
Also, a few other things:
- what does StorageTypesConverter unknown. mean?
- when I compiled the code I had to delete references to two files (SIPSwitch.Web\UpdateSettingsController.cs' and SIPSwitch.Web\PasswordRetriever.cs' )
- is there any easy way to add data into the sql tables I've created, or should I just use sql commands?
Thanks!