From 579bf3eb524d1001d5d786d0207568b487b60ba2 Mon Sep 17 00:00:00 2001 From: pescuma Date: Sat, 30 Jan 2010 06:05:24 +0000 Subject: sip: + Added info popups + Added SRTP option - Remove TCP connection for protocol (everybody seems to use UDP/TLS only) git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@219 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Protocols/SIP/SIPProto.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Protocols/SIP/SIPProto.h') diff --git a/Protocols/SIP/SIPProto.h b/Protocols/SIP/SIPProto.h index 889d633..bc3d11d 100644 --- a/Protocols/SIP/SIPProto.h +++ b/Protocols/SIP/SIPProto.h @@ -67,12 +67,13 @@ public: } proxy; BYTE publish; BYTE sendKeepAlive; + BYTE srtp; } opts; CRITICAL_SECTION cs; std::vector events; OptPageControl accountManagerCtrls[4]; - OptPageControl optionsCtrls[14]; + OptPageControl optionsCtrls[15]; SIPProto(const char *aProtoName, const TCHAR *aUserName); virtual ~SIPProto(); @@ -176,9 +177,11 @@ private: INT_PTR __cdecl CreateAccMgrUI(WPARAM wParam, LPARAM lParam); void ConfigureDevices(); - void BuildTelURI(TCHAR *out, int outSize, const TCHAR *number); - void BuildURI(TCHAR *out, int outSize, const TCHAR *user, const TCHAR *host = NULL, int port = 0, bool isTel = false); + void BuildTelURI(TCHAR *out, int outSize, const TCHAR *number, pjsip_transport_type_e transport = PJSIP_TRANSPORT_UDP); + void BuildURI(TCHAR *out, int outSize, const TCHAR *user, const TCHAR *host = NULL, int port = 0, + pjsip_transport_type_e transport = PJSIP_TRANSPORT_UDP, bool isTel = false); void CleanupURI(TCHAR *out, int outSize, const TCHAR *url); + bool HasTransportEnabled(pjsip_transport_type_e transport); // Voice services void NotifyCall(pjsua_call_id call_id, int state, HANDLE hContact = NULL, TCHAR *name = NULL, TCHAR *number = NULL); -- cgit v1.2.3