} else {
ERRORA("no session\n", SKYPOPEN_P_LOG);
}
- } else if (!tech_pvt || !tech_pvt->skype_call_id) {
+ } else if (!tech_pvt || !tech_pvt->skype_call_id[0]) {
ERRORA("No Call ID?\n", SKYPOPEN_P_LOG);
} else {
DEBUGA_SKYPE("We're in a call now (%s), let's refuse this one (%s)\n", SKYPOPEN_P_LOG, tech_pvt->skype_call_id, id);
DEBUGA_SKYPE
("NEW! name: %s, state: %d, value=%s, tech_pvt->callid_number=%s, tech_pvt->skype_user=%s\n",
SKYPOPEN_P_LOG, tech_pvt->name, tech_pvt->interface_state, value, tech_pvt->callid_number, tech_pvt->skype_user);
- } else if (!tech_pvt || !tech_pvt->skype_call_id) {
+ } else if (!tech_pvt || !tech_pvt->skype_call_id[0]) {
ERRORA("No Call ID?\n", SKYPOPEN_P_LOG);
} else {
DEBUGA_SKYPE("We're in a call now (%s), let's refuse this one (%s)\n", SKYPOPEN_P_LOG, tech_pvt->skype_call_id, id);
}
DEBUGA_SKYPE("NOT FOUND\n", SKYPOPEN_P_LOG);
- if (!tech_pvt || !tech_pvt->skype_call_id || !strlen(tech_pvt->skype_call_id)) {
+ if (!tech_pvt || !tech_pvt->skype_call_id[0]) {
/* we are not inside an active call */
- DEBUGA_SKYPE("We're NO MORE in a call now %s\n", SKYPOPEN_P_LOG, (tech_pvt && tech_pvt->skype_call_id) ? tech_pvt->skype_call_id : "");
+ DEBUGA_SKYPE("We're NO MORE in a call now %s\n", SKYPOPEN_P_LOG, tech_pvt ? tech_pvt->skype_call_id : "");
switch_mutex_unlock(globals.mutex);
} else {