Commit 5abd4c87 authored by savoirfairelinux's avatar savoirfairelinux

more robust in case of non-network

parent 04c86ff4
......@@ -81,8 +81,9 @@ Manager::selectAudioDriver (void) {
void
Manager::sip_rtp_init (void) {
// Init the SIP and RTP stacks.
sip->initSIP ();
sip->initRtpmapCodec ();
if ( sip->initSIP () != -1) {
sip->initRtpmapCodec ();
}
if (Config::getb(QString("Preferences/Options.autoregister"))) {
// Register to the known proxies if available
......
......@@ -96,7 +96,8 @@ SIP::initSIP (void) {
tmp = QString(PROGNAME) + "/" + QString(VERSION);
// Set IP address
getLocalIp();
if ( getLocalIp() == -1 )
return -1;
srand (time(NULL));
if (eXosip_init (NULL, NULL, DEFAULT_SIP_PORT) != 0) {
......
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