mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
skypopen: indented
This commit is contained in:
parent
bc067ebc69
commit
38215f9d5c
@ -618,7 +618,6 @@ static switch_status_t channel_on_hangup(switch_core_session_t *session)
|
||||
if (globals.calls < 0) {
|
||||
globals.calls = 0;
|
||||
}
|
||||
|
||||
//DEBUGA_SKYPE("debugging_hangup 9\n", SKYPOPEN_P_LOG);
|
||||
tech_pvt->interface_state = SKYPOPEN_STATE_DOWN;
|
||||
if (tech_pvt->skype_callflow == CALLFLOW_STATUS_FINISHED) {
|
||||
|
@ -227,7 +227,8 @@ int skypopen_signaling_read(private_t *tech_pvt)
|
||||
}
|
||||
} else if (!strncasecmp(message, "ERROR 36 Not online", 18)) {
|
||||
char msg_to_skype[256];
|
||||
ERRORA("Skype client is not online, eg: not connected to Skype network, probably got a temporary net outage: |||%s|||\n", SKYPOPEN_P_LOG, message);
|
||||
ERRORA("Skype client is not online, eg: not connected to Skype network, probably got a temporary net outage: |||%s|||\n",
|
||||
SKYPOPEN_P_LOG, message);
|
||||
if (strlen(tech_pvt->skype_call_id)) {
|
||||
sprintf(msg_to_skype, "ALTER CALL %s HANGUP", tech_pvt->skype_call_id);
|
||||
skypopen_signaling_write(tech_pvt, msg_to_skype);
|
||||
@ -240,7 +241,8 @@ int skypopen_signaling_read(private_t *tech_pvt)
|
||||
return CALLFLOW_INCOMING_HANGUP;
|
||||
} else if (!strncasecmp(message, "ERROR 589 ALTER CALL", 19)) {
|
||||
char msg_to_skype[256];
|
||||
DEBUGA_SKYPE("Skype client was not able to correctly manage tcp audio sockets, probably got a local or remote hangup: |||%s|||\n", SKYPOPEN_P_LOG, message);
|
||||
DEBUGA_SKYPE("Skype client was not able to correctly manage tcp audio sockets, probably got a local or remote hangup: |||%s|||\n",
|
||||
SKYPOPEN_P_LOG, message);
|
||||
if (strlen(tech_pvt->skype_call_id)) {
|
||||
sprintf(msg_to_skype, "ALTER CALL %s HANGUP", tech_pvt->skype_call_id);
|
||||
skypopen_signaling_write(tech_pvt, msg_to_skype);
|
||||
@ -604,7 +606,8 @@ int skypopen_signaling_read(private_t *tech_pvt)
|
||||
skypopen_strncpy(tech_pvt->skype_call_id, id, sizeof(tech_pvt->skype_call_id) - 1);
|
||||
DEBUGA_SKYPE("Our remote party in skype_call %s is RINGING\n", SKYPOPEN_P_LOG, id);
|
||||
if (remote_party_is_ringing(tech_pvt) != SWITCH_STATUS_SUCCESS) {
|
||||
DEBUGA_SKYPE("We are getting the RINGING from a call we probably canceled, trying to get out hanging up call id: %s.\n",
|
||||
DEBUGA_SKYPE
|
||||
("We are getting the RINGING from a call we probably canceled, trying to get out hanging up call id: %s.\n",
|
||||
SKYPOPEN_P_LOG, id);
|
||||
sprintf(msg_to_skype, "ALTER CALL %s END HANGUP", id);
|
||||
skypopen_signaling_write(tech_pvt, msg_to_skype);
|
||||
|
Loading…
x
Reference in New Issue
Block a user