Changeset 4724
- Timestamp:
- Jan 31, 2014 8:52:09 AM (11 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/ioqueue.h
r4359 r4724 643 643 * Instruct the I/O Queue to read from the specified handle. This function 644 644 * returns immediately (i.e. non-blocking) regardless whether some data has 645 * been transfer ed. If the operation can't complete immediately, caller will645 * been transferred. If the operation can't complete immediately, caller will 646 646 * be notified about the completion when it calls pj_ioqueue_poll(). If data 647 647 * is immediately available, the function will return PJ_SUCCESS and the … … 729 729 * Instruct the I/O Queue to write to the handle. This function will return 730 730 * immediately (i.e. non-blocking) regardless whether some data has been 731 * transfer ed. If the function can't complete immediately, the caller will731 * transferred. If the function can't complete immediately, the caller will 732 732 * be notified about the completion when it calls pj_ioqueue_poll(). If 733 * operation completes immediately and data has been transfer ed, the function733 * operation completes immediately and data has been transferred, the function 734 734 * returns PJ_SUCCESS and the callback will NOT be called. 735 735 * … … 753 753 * 754 754 * @return 755 * - PJ_SUCCESS If data was immediately transfer ed. In this case, no755 * - PJ_SUCCESS If data was immediately transferred. In this case, no 756 756 * pending operation has been scheduled and the callback 757 757 * WILL NOT be called. 758 758 * - PJ_EPENDING If the operation has been queued. Once data base been 759 * transfer ed, the callback will be called.759 * transferred, the callback will be called. 760 760 * - non-zero The return value indicates the error code. 761 761 */ … … 770 770 * Instruct the I/O Queue to write to the handle. This function will return 771 771 * immediately (i.e. non-blocking) regardless whether some data has been 772 * transfer ed. If the function can't complete immediately, the caller will772 * transferred. If the function can't complete immediately, the caller will 773 773 * be notified about the completion when it calls pj_ioqueue_poll(). If 774 * operation completes immediately and data has been transfer ed, the function774 * operation completes immediately and data has been transferred, the function 775 775 * returns PJ_SUCCESS and the callback will NOT be called. 776 776 * -
pjproject/trunk/pjlib/src/pj/ioqueue_winnt.c
r3553 r4724 634 634 /* 635 635 * Poll the I/O Completion Port, execute callback, 636 * and return the key and bytes transfer ed of the last operation.636 * and return the key and bytes transferred of the last operation. 637 637 */ 638 638 static pj_bool_t poll_iocp( HANDLE hIocp, DWORD dwTimeout, 639 639 pj_ssize_t *p_bytes, pj_ioqueue_key_t **p_key ) 640 640 { 641 DWORD dwBytesTransfer ed, dwKey;641 DWORD dwBytesTransferred, dwKey; 642 642 generic_overlapped *pOv; 643 643 pj_ioqueue_key_t *key; … … 646 646 647 647 /* Poll for completion status. */ 648 rcGetQueued = GetQueuedCompletionStatus(hIocp, &dwBytesTransfer ed,648 rcGetQueued = GetQueuedCompletionStatus(hIocp, &dwBytesTransferred, 649 649 &dwKey, (OVERLAPPED**)&pOv, 650 650 dwTimeout); … … 660 660 /* Event was dequeued for either successfull or failed I/O */ 661 661 key = (pj_ioqueue_key_t*)dwKey; 662 size_status = dwBytesTransfer ed;662 size_status = dwBytesTransferred; 663 663 664 664 /* Report to caller regardless */ … … 1382 1382 { 1383 1383 BOOL rc; 1384 DWORD bytesTransfer ed;1384 DWORD bytesTransferred; 1385 1385 1386 1386 rc = GetOverlappedResult( key->hnd, (LPOVERLAPPED)op_key, 1387 &bytesTransfer ed, FALSE );1387 &bytesTransferred, FALSE ); 1388 1388 1389 1389 if (rc == FALSE) { -
pjproject/trunk/pjsip-apps/src/confbot/confbot.py
r2912 r4724 198 198 199 199 def on_call_transfer_request(self, call, dst, code): 200 msg = "%(uri)s is transfer ing the call to %(dst)s" % \200 msg = "%(uri)s is transferring the call to %(dst)s" % \ 201 201 {'uri': self.uri, 'dst': dst} 202 202 self.bot.broadcast_pager(None, msg) -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r4634 r4724 783 783 if (status_code/100 == 2) { 784 784 PJ_LOG(3,(THIS_FILE, 785 "Call %d: call transfer ed successfully, disconnecting call",785 "Call %d: call transferred successfully, disconnecting call", 786 786 call_id)); 787 787 pjsua_call_hangup(call_id, PJSIP_SC_GONE, NULL, NULL); -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_cli.c
r4714 r4724 1800 1800 static pj_str_t err_same_num = 1801 1801 {"Destination call number must not be the " 1802 "same as the call being transfer ed\n", 74};1802 "same as the call being transferred\n", 74}; 1803 1803 1804 1804 pj_cli_sess_write_msg(cval->sess, err_same_num.ptr, -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_legacy.c
r4714 r4724 1164 1164 if (dst_call == call) { 1165 1165 puts("Destination call number must not be the same " 1166 "as the call being transfer ed");1166 "as the call being transferred"); 1167 1167 return; 1168 1168 } -
pjproject/trunk/pjsip-apps/src/py_pjsua/pjsua_app.py
r4714 r4724 158 158 159 159 if status_code/100 == 2: 160 write_log(3, "Call " + `call_id` + " : call transfer ed successfully, disconnecting call")160 write_log(3, "Call " + `call_id` + " : call transferred successfully, disconnecting call") 161 161 status = py_pjsua.call_hangup(call_id, 410, None, None) 162 162 p_cont = 0 … … 424 424 status = py_pjsua.call_xfer(g_current_call, url, msg_data); 425 425 if status != 0: 426 py_pjsua.perror(THIS_FILE, "Error transfer ing call ", status)426 py_pjsua.perror(THIS_FILE, "Error transferring call ", status) 427 427 else: 428 write_log(3, "Call transfer ed to " + url)428 write_log(3, "Call transferred to " + url) 429 429 430 430 def xfer_call_replaces(): … … 459 459 460 460 if dst_call == call: 461 print "Destination call number must not be the same as the call being transfer ed"461 print "Destination call number must not be the same as the call being transferred" 462 462 return 463 463 -
pjproject/trunk/pjsip-apps/src/py_pjsua/py_pjsua.c
r3553 r4724 175 175 176 176 /* 177 * Notify application on call being transfer ed.177 * Notify application on call being transferred. 178 178 * !modified @061206 179 179 */ -
pjproject/trunk/pjsip-apps/src/python/_pjsua.c
r4609 r4724 209 209 210 210 /* 211 * Notify application on call being transfer ed.211 * Notify application on call being transferred. 212 212 * !modified @061206 213 213 */ -
pjproject/trunk/pjsip-apps/src/python/_pjsua.h
r4609 r4724 333 333 "on_call_transfer_request", T_OBJECT_EX, 334 334 offsetof(PyObj_pjsua_callback, on_call_transfer_request), 0, 335 "Notify application on call being transfer ed. "335 "Notify application on call being transferred. " 336 336 "Application can decide to accept/reject transfer request " 337 337 "by setting the code (default is 200). When this callback " -
pjproject/trunk/pjsip-apps/src/python/pjsua.py
r4611 r4724 1387 1387 1388 1388 def on_transfer_request(self, dst, code): 1389 """Notification that call is being transfer ed by remote party.1389 """Notification that call is being transferred by remote party. 1390 1390 1391 1391 Application can decide to accept/reject transfer request by returning -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r4704 r4724 757 757 758 758 /** 759 * Notify application on call being transfer ed (i.e. REFER is received).759 * Notify application on call being transferred (i.e. REFER is received). 760 760 * Application can decide to accept/reject transfer request 761 761 * by setting the code (default is 202). When this callback … … 766 766 * @param call_id The call index. 767 767 * @param dst The destination where the call will be 768 * transfer ed to.768 * transferred to. 769 769 * @param code Status code to be returned for the call transfer 770 770 * request. On input, it contains status code 200. … … 775 775 776 776 /** 777 * Notify application on call being transfer ed (i.e. REFER is received).777 * Notify application on call being transferred (i.e. REFER is received). 778 778 * Application can decide to accept/reject transfer request 779 779 * by setting the code (default is 202). When this callback … … 783 783 * @param call_id The call index. 784 784 * @param dst The destination where the call will be 785 * transfer ed to.785 * transferred to. 786 786 * @param code Status code to be returned for the call transfer 787 787 * request. On input, it contains status code 200. 788 788 * @param opt The current call setting, application can update 789 * this setting for the call being transfer ed.789 * this setting for the call being transferred. 790 790 */ 791 791 void (*on_call_transfer_request2)(pjsua_call_id call_id, … … 4652 4652 * of the call transfer request. 4653 4653 * 4654 * @param call_id The call id to be transfer ed.4654 * @param call_id The call id to be transferred. 4655 4655 * @param dest URI of new target to be contacted. The URI may be 4656 4656 * in name address or addr-spec format. … … 4677 4677 * the call with us with the new call from the REFER recipient. 4678 4678 * 4679 * @param call_id The call id to be transfer ed.4679 * @param call_id The call id to be transferred. 4680 4680 * @param dest_call_id The call id to be replaced. 4681 4681 * @param options Application may specify PJSUA_XFER_NO_REQUIRE_REPLACES -
pjproject/trunk/pjsip/include/pjsua2/call.hpp
r4704 r4724 727 727 { 728 728 /** 729 * The destination where the call will be transfer ed to.729 * The destination where the call will be transferred to. 730 730 */ 731 731 string dstUri; … … 739 739 /** 740 740 * The current call setting, application can update this setting 741 * for the call being transfer ed.741 * for the call being transferred. 742 742 */ 743 743 CallSetting opt; … … 1530 1530 1531 1531 /** 1532 * Notify application on call being transfer ed (i.e. REFER is received).1532 * Notify application on call being transferred (i.e. REFER is received). 1533 1533 * Application can decide to accept/reject transfer request 1534 1534 * by setting the code (default is 202). When this callback -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r4714 r4724 4032 4032 if (refer_sub && pj_stricmp2(&refer_sub->hvalue, "false")==0) { 4033 4033 /* Since no subscription is desired, assume that call has been 4034 * transfer ed successfully.4034 * transferred successfully. 4035 4035 */ 4036 4036 if (call && pjsua_var.ua_cfg.cb.on_call_transfer_status) { … … 4203 4203 * Follow transfer (REFER) request. 4204 4204 */ 4205 static void on_call_transfer ed( pjsip_inv_session *inv,4205 static void on_call_transferred( pjsip_inv_session *inv, 4206 4206 pjsip_rx_data *rdata ) 4207 4207 { … … 4281 4281 } 4282 4282 4283 PJ_LOG(3,(THIS_FILE, "Call to %.*s is being transfer ed to %.*s",4283 PJ_LOG(3,(THIS_FILE, "Call to %.*s is being transferred to %.*s", 4284 4284 (int)inv->dlg->remote.info_str.slen, 4285 4285 inv->dlg->remote.info_str.ptr, … … 4487 4487 * Incoming REFER request. 4488 4488 */ 4489 on_call_transfer ed(call->inv, e->body.tsx_state.src.rdata);4489 on_call_transferred(call->inv, e->body.tsx_state.src.rdata); 4490 4490 4491 4491 } -
pjproject/trunk/tests/pjsua/scripts-sipp/transfer-attended.py
r4188 r4724 42 42 [1, "", "X"], 43 43 [1, "", "1"], 44 [0, "Call .* is being transfer ed", ""],44 [0, "Call .* is being transferred", ""], 45 45 [1, "Subscription state .* ACCEPTED", ""], 46 46 [0, const.STATE_CALLING, ""], 47 47 [2, "Call .* is being replaced", ""], 48 [1, "call transfer ed successfully", ""],48 [1, "call transferred successfully", ""], 49 49 [0, const.MEDIA_ACTIVE, ""], 50 50 [2, const.MEDIA_ACTIVE, ""], -
pjproject/trunk/tests/pjsua/scripts-sipp/transfer-unattended.py
r4188 r4724 26 26 [0, const.MEDIA_ACTIVE, ""], 27 27 [2, const.MEDIA_ACTIVE, ""], 28 [1, "call transfer ed successfully", ""],28 [1, "call transferred successfully", ""], 29 29 [1, const.STATE_DISCONNECTED, ""] 30 30 ]
Note: See TracChangeset
for help on using the changeset viewer.