Changeset 712
- Timestamp:
- Sep 13, 2006 10:45:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
r671 r712 591 591 592 592 PJ_LOG(5,(sub->obj_name, "Refreshing subscription.")); 593 status = pjsip_evsub_initiate(sub, &sub->method,593 status = pjsip_evsub_initiate(sub, NULL, 594 594 sub->expires->ivalue, 595 595 &tdata); … … 633 633 "send non-2xx response for previous NOTIFY). " 634 634 "Unsubscribing..")); 635 status = pjsip_evsub_initiate( sub, &sub->method, 0, &tdata);635 status = pjsip_evsub_initiate( sub, NULL, 0, &tdata); 636 636 if (status == PJ_SUCCESS) 637 637 pjsip_evsub_send_request(sub, tdata); … … 1364 1364 if (tsx->role == PJSIP_ROLE_UAC && 1365 1365 tsx->state == PJSIP_TSX_STATE_CALLING && 1366 pjsip_method_cmp(&tsx->method, &sub->method) == 0) 1366 (pjsip_method_cmp(&tsx->method, &sub->method) == 0 || 1367 pjsip_method_cmp(&tsx->method, &pjsip_subscribe_method) == 0)) 1367 1368 { 1368 1369 … … 1371 1372 { 1372 1373 PJ_LOG(4,(sub->obj_name, 1373 "Cancelling pending %.*s request", 1374 (int)sub->method.name.slen, sub->method.name.ptr)); 1374 "Cancelling pending subscription request")); 1375 1375 1376 1376 /* By convention, we use 490 (Request Updated) status code. … … 1471 1471 { 1472 1472 1473 if (pjsip_method_cmp(&tsx->method, &sub->method)==0) { 1473 if (pjsip_method_cmp(&tsx->method, &sub->method)==0 || 1474 pjsip_method_cmp(&tsx->method, &pjsip_subscribe_method)==0) 1475 { 1474 1476 1475 1477 /* Received response to outgoing request that establishes/refresh … … 1765 1767 { 1766 1768 1767 if (pjsip_method_cmp(&tsx->method, &sub->method) == 0) { 1769 if (pjsip_method_cmp(&tsx->method, &sub->method) == 0 || 1770 pjsip_method_cmp(&tsx->method, &pjsip_subscribe_method) == 0) 1771 { 1768 1772 1769 1773 /*
Note: See TracChangeset
for help on using the changeset viewer.