Changeset acd9478 for skype


Ignore:
Timestamp:
2008-02-29T00:43:02Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
48181f0
Parents:
239b036
Message:

report 'finished' when call finishes
till now we reported only cancelled calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    r239b036 racd9478  
    4444        SKYPE_CALL_UNPLACED,
    4545        SKYPE_CALL_CANCELLED,
     46        SKYPE_CALL_FINISHED,
    4647        /* This means we are ringing somebody, not somebody rings us. */
    4748        SKYPE_CALL_RINGING_OUT
     
    584585                                                sd->call_status = SKYPE_CALL_CANCELLED;
    585586                                        }
     587                                        else if(!strcmp(info, "STATUS FINISHED"))
     588                                        {
     589                                                g_snprintf(buf, 1024, "GET CALL %s PARTNER_HANDLE\n", id);
     590                                                skype_write( ic, buf, strlen( buf ) );
     591                                                sd->call_status = SKYPE_CALL_FINISHED;
     592                                        }
    586593                                        else if(!strcmp(info, "STATUS UNPLACED"))
    587594                                        {
     
    609616                                                                case SKYPE_CALL_CANCELLED:
    610617                                                                        imcb_log(ic, "You cancelled the call to the user %s.", info);
     618                                                                        break;
     619                                                                case SKYPE_CALL_FINISHED:
     620                                                                        imcb_log(ic, "You finished the call to the user %s.", info);
    611621                                                                        break;
    612622                                                                default:
Note: See TracChangeset for help on using the changeset viewer.