Changeset a92fb07


Ignore:
Timestamp:
2008-02-29T01:10:01Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
d87daf3
Parents:
9fd7202
Message:

detect when the call is refused

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    r9fd7202 ra92fb07  
    4545        SKYPE_CALL_CANCELLED,
    4646        SKYPE_CALL_FINISHED,
     47        SKYPE_CALL_REFUSED,
    4748        /* This means we are ringing somebody, not somebody rings us. */
    4849        SKYPE_CALL_RINGING_OUT
     
    592593                                                sd->call_status = SKYPE_CALL_FINISHED;
    593594                                        }
     595                                        else if(!strcmp(info, "STATUS REFUSED"))
     596                                        {
     597                                                g_snprintf(buf, 1024, "GET CALL %s PARTNER_HANDLE\n", id);
     598                                                skype_write( ic, buf, strlen( buf ) );
     599                                                sd->call_status = SKYPE_CALL_REFUSED;
     600                                        }
    594601                                        else if(!strcmp(info, "STATUS UNPLACED"))
    595602                                        {
     
    623630                                                                case SKYPE_CALL_CANCELLED:
    624631                                                                        imcb_log(ic, "You cancelled the call to the user %s.", info);
     632                                                                        break;
     633                                                                case SKYPE_CALL_REFUSED:
     634                                                                        imcb_log(ic, "The user %s refused the call.", info);
    625635                                                                        break;
    626636                                                                case SKYPE_CALL_FINISHED:
Note: See TracChangeset for help on using the changeset viewer.