Changeset 48181f0 for skype


Ignore:
Timestamp:
2008-02-29T00:49:43Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
9fd7202
Parents:
acd9478
Message:

report call duration at the end

Location:
skype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skype/README

    racd9478 r48181f0  
    238238  communication is encrypted.
    239239
    240 - Managing outgoing calls:
     240- Managing outgoing calls (with call duration at the end):
    241241
    242242  * `account set skype/call nick`
  • skype/skype.c

    racd9478 r48181f0  
    8383        skype_call_status call_status;
    8484        char *call_id;
     85        char *call_duration;
    8586        /* Same for file transfers. */
    8687        skype_filetransfer_status filetransfer_status;
     
    599600                                                sd->call_status = SKYPE_CALL_UNPLACED;
    600601                                        }
     602                                        else if(!strncmp(info, "DURATION ", 9))
     603                                        {
     604                                                if(sd->call_duration)
     605                                                        g_free(sd->call_duration);
     606                                                sd->call_duration = g_strdup(info+9);
     607                                        }
    601608                                        else if(!strncmp(info, "PARTNER_HANDLE ", 15))
    602609                                        {
     
    618625                                                                        break;
    619626                                                                case SKYPE_CALL_FINISHED:
    620                                                                         imcb_log(ic, "You finished the call to the user %s.", info);
     627                                                                        if(sd->call_duration)
     628                                                                        {
     629                                                                                imcb_log(ic, "You finished the call to the user %s (duration: %s seconds).", info, sd->call_duration);
     630                                                                        }
     631                                                                        else
     632                                                                        {
     633                                                                                imcb_log(ic, "You finished the call to the user %s.", info);
     634                                                                        }
    621635                                                                        break;
    622636                                                                default:
Note: See TracChangeset for help on using the changeset viewer.