Commit 7f57a2d5 authored by Emmanuel Milou's avatar Emmanuel Milou

screenshots

parent d400d0c1
......@@ -789,7 +789,7 @@ ManagerImpl::startVoiceMessageNotification(const AccountID& accountId, const std
ManagerImpl::stopVoiceMessageNotification(const AccountID& accountId)
{
// TODO : do not notify when no messages
if (_dbus) _dbus->getCallManager()->voiceMailNotify(accountId, 0 );
//if (_dbus) _dbus->getCallManager()->voiceMailNotify(accountId, 0 );
}
//THREAD=VoIP
......
......@@ -42,7 +42,6 @@ SIPAccount::registerVoIPLink()
_link->setFullName(Manager::instance().getConfigString(_accountID,SIP_FULL_NAME));
_link->setHostName(Manager::instance().getConfigString(_accountID,SIP_HOST_PART));
int useStun = Manager::instance().getConfigInt(_accountID,SIP_USE_STUN);
//_link->setAccountID( getAccountID() );
SIPVoIPLink* thislink = dynamic_cast<SIPVoIPLink*> (_link);
thislink->setStunServer(Manager::instance().getConfigString(_accountID,SIP_STUN_SERVER));
......
......@@ -57,7 +57,7 @@ SIPVoIPLink::SIPVoIPLink(const AccountID& accountID)
: VoIPLink(accountID), _localExternAddress("")
{
_evThread = new EventThread(this);
_initDone = false;
_nMsgVoicemail = 0;
_eXosipRegID = EXOSIP_ERROR_STD;
......@@ -78,7 +78,6 @@ SIPVoIPLink::~SIPVoIPLink()
bool
SIPVoIPLink::init()
{
_debug("INIT DONE : %d\n" , _initDone);
if (!_initDone) {
if (0 != eXosip_init()) {
_debug("! SIP Failure: Could not initialize eXosip\n");
......@@ -88,7 +87,7 @@ SIPVoIPLink::init()
// Pour éviter qu'on refasse l'init sans avoir considéré l'erreur,
// s'il y en a une ?
_initDone = true;
// check networking capabilities
if ( !checkNetwork() ) {
_debug("! SIP FAILURE: Unable to determine network capabilities\n");
......@@ -155,9 +154,7 @@ SIPVoIPLink::init()
void
SIPVoIPLink::terminate()
{
_debug("Terminate before\n");
terminateSIPCall();
_debug("Terminate after\n");
if (_initDone) {
// TODO The next line makes the daemon crash on
// account delete if at least one account is registered.
......@@ -213,6 +210,12 @@ SIPVoIPLink::loadSIPLocalIP()
return returnValue;
}
void
SIPVoIPLink::parseRequestUri( osip_uri_t* req )
{
_debug("%d\n",req->url_header);
}
void
SIPVoIPLink::getEvent()
{
......@@ -226,6 +229,10 @@ SIPVoIPLink::getEvent()
return;
}
parseRequestUri( event->request->req_uri);
//if(event->request->line != 0)
_debug("%s\n\n" , event->request->req_uri);
switch (event->type) {
/* REGISTER related events */
case EXOSIP_REGISTRATION_NEW: /** 00 < announce new registration. */
......
......@@ -89,6 +89,7 @@ public:
private:
void parseRequestUri( osip_uri_t* );
/** Terminate every call not hangup | brutal | Protected by mutex */
void terminateSIPCall();
......
......@@ -25,7 +25,7 @@
#include "voiplink.h"
#include "manager.h"
VoIPLink::VoIPLink(const AccountID& accountID) : _accountID(accountID), _localIPAddress("127.0.0.1"), _localPort(0), _registrationError(""), _initDone(false)
VoIPLink::VoIPLink(const AccountID& accountID) : _accountID(accountID), _localIPAddress("127.0.0.1"), _localPort(0), _registrationError(""), _initDone(false)
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment