summaryrefslogtreecommitdiff
path: root/Protocols/SIP/sip.cpp
diff options
context:
space:
mode:
authorpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2010-01-21 03:19:47 +0000
committerpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2010-01-21 03:19:47 +0000
commit29224b5cce3353b67784ada08165ff9259a5bee1 (patch)
treebad59af2de509f2a653e6358a4f495a6acfa8e9f /Protocols/SIP/sip.cpp
parent6622a1c224fab2c6299219b4e134a62f80880469 (diff)
SIP: 0.1.3.0
* Fix for going online after connecting error * Fix for reconection crash + Added stun server to client API + Added list of hosts to client API git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@214 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Protocols/SIP/sip.cpp')
-rw-r--r--Protocols/SIP/sip.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Protocols/SIP/sip.cpp b/Protocols/SIP/sip.cpp
index 138ad78..c68b538 100644
--- a/Protocols/SIP/sip.cpp
+++ b/Protocols/SIP/sip.cpp
@@ -30,7 +30,7 @@ PLUGININFOEX pluginInfo={
#else
"SIP protocol (Ansi)",
#endif
- PLUGIN_MAKE_VERSION(0,1,2,0),
+ PLUGIN_MAKE_VERSION(0,1,3,0),
"Provides support for SIP protocol",
"Ricardo Pescuma Domenecci",
"pescuma@miranda-im.org",
@@ -322,7 +322,7 @@ static INT_PTR ClientRegister(WPARAM wParam, LPARAM lParam)
return NULL;
SIPClient *cli = new SIPClient(reg);
- if (cli->Connect(reg->udp_port, reg->tcp_port, reg->tls_port) != 0)
+ if (cli->Connect(reg) != 0)
{
cli->Disconnect();
delete cli;
@@ -333,9 +333,11 @@ static INT_PTR ClientRegister(WPARAM wParam, LPARAM lParam)
SIP_CLIENT *ret = (SIP_CLIENT *) mir_alloc0(sizeof(SIP_CLIENT) + sizeof(SIPClient *));
ret->data = cli;
- * (TCHAR **) & ret->host = cli->host;
+ * (TCHAR **) & ret->udp_host = cli->udp.host;
* (int *) & ret->udp_port = cli->udp.port;
+ * (TCHAR **) & ret->tcp_host = cli->tcp.host;
* (int *) & ret->tcp_port = cli->tcp.port;
+ * (TCHAR **) & ret->tls_host = cli->tls.host;
* (int *) & ret->tls_port = cli->tls.port;
ret->Call = &ClientCall;
ret->DropCall = &ClientDropCall;