Skip to content
Snippets Groups Projects
Commit 5abd4c87 authored by savoirfairelinux's avatar savoirfairelinux
Browse files

more robust in case of non-network

parent 04c86ff4
No related branches found
No related tags found
No related merge requests found
...@@ -81,8 +81,9 @@ Manager::selectAudioDriver (void) { ...@@ -81,8 +81,9 @@ Manager::selectAudioDriver (void) {
void void
Manager::sip_rtp_init (void) { Manager::sip_rtp_init (void) {
// Init the SIP and RTP stacks. // Init the SIP and RTP stacks.
sip->initSIP (); if ( sip->initSIP () != -1) {
sip->initRtpmapCodec (); sip->initRtpmapCodec ();
}
if (Config::getb(QString("Preferences/Options.autoregister"))) { if (Config::getb(QString("Preferences/Options.autoregister"))) {
// Register to the known proxies if available // Register to the known proxies if available
......
...@@ -96,7 +96,8 @@ SIP::initSIP (void) { ...@@ -96,7 +96,8 @@ SIP::initSIP (void) {
tmp = QString(PROGNAME) + "/" + QString(VERSION); tmp = QString(PROGNAME) + "/" + QString(VERSION);
// Set IP address // Set IP address
getLocalIp(); if ( getLocalIp() == -1 )
return -1;
srand (time(NULL)); srand (time(NULL));
if (eXosip_init (NULL, NULL, DEFAULT_SIP_PORT) != 0) { if (eXosip_init (NULL, NULL, DEFAULT_SIP_PORT) != 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment