Changeset 447:e8e3b471e274 in qutecom-2.2 for wifo/phapi/phapi-old.c
- Timestamp:
- Dec 3, 2009 3:48:32 PM (3 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
wifo/phapi/phapi-old.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wifo/phapi/phapi-old.c
r425 r447 3498 3498 info.localUri = je->local_uri; 3499 3499 info.userData = je->external_reference; 3500 if (je->status_code == 486) 3501 { 3500 switch(je->status_code) { 3501 3502 case 486: 3502 3503 info.event = phCALLBUSY; 3503 3504 info.u.remoteUri = je->remote_uri; 3504 3505 3505 owplFireCallEvent(ca->cid, CALLSTATE_DISCONNECTED, CALLSTATE_DISCONNECTED_BUSY, ca->remote_uri, 0); 3506 } 3507 else 3508 { 3506 break; 3507 3508 case 404: 3509 info.event = phCALLERROR; 3510 info.u.remoteUri = je->remote_uri; 3511 owplFireCallEvent(ca->cid, CALLSTATE_DISCONNECTED, CALLSTATE_DISCONNECTED_USER_NOT_FOUND, ca->remote_uri, 0); 3512 break; 3513 3514 case 603: 3515 info.event = phCALLERROR; 3516 info.u.remoteUri = je->remote_uri; 3517 owplFireCallEvent(ca->cid, CALLSTATE_DISCONNECTED, CALLSTATE_DISCONNECTED_REJECTED, ca->remote_uri, 0); 3518 break; 3519 3520 case 480: 3521 info.event = phCALLERROR; 3522 info.u.remoteUri = je->remote_uri; 3523 owplFireCallEvent(ca->cid, CALLSTATE_DISCONNECTED, CALLSTATE_DISCONNECTED_USER_NOT_AVAILABLE, ca->remote_uri, 0); 3524 break; 3525 3526 default: 3509 3527 info.event = phCALLERROR; 3510 3528 info.u.errorCode = je->status_code; 3511 3512 3529 owplFireCallEvent(ca->cid, CALLSTATE_DISCONNECTED, CALLSTATE_DISCONNECTED_UNKNOWN, ca->remote_uri, 0); 3513 } 3530 break; 3531 3532 } 3533 3514 3534 3515 3535 if (phcb->callProgress) { … … 4381 4401 owplFireSubscriptionEvent(je->sid, OWPL_SUBSCRIPTION_ACTIVE, SUBSCRIPTION_CAUSE_NORMAL, je->remote_uri, 0); 4382 4402 } 4383 else if (je->type == EXOSIP_SUBSCRIPTION_REQUESTFAILURE )4384 { 4385 if (je->status_code == 481) {4403 else if (je->type == EXOSIP_SUBSCRIPTION_REQUESTFAILURE || je->type == EXOSIP_SUBSCRIPTION_SERVERFAILURE) 4404 { 4405 if (je->status_code < 200 || je->status_code > 299) { 4386 4406 char proxyBuf[256]; 4387 4407 int n = sizeof(proxyBuf); … … 4533 4553 4534 4554 case EXOSIP_SUBSCRIPTION_REQUESTFAILURE: 4555 case EXOSIP_SUBSCRIPTION_SERVERFAILURE: 4535 4556 case EXOSIP_SUBSCRIPTION_ANSWERED: 4536 4557 ph_subscription_progress(je); … … 4765 4786 4766 4787 case EXOSIP_SUBSCRIPTION_REQUESTFAILURE: 4788 case EXOSIP_SUBSCRIPTION_SERVERFAILURE: 4767 4789 case EXOSIP_SUBSCRIPTION_ANSWERED: 4768 4790 ph_subscription_progress(je);
Note: See TracChangeset
for help on using the changeset viewer.
