Changeset 5899 for pjproject/trunk/pjsip/include/pjsua2/call.hpp
- Timestamp:
- Oct 17, 2018 4:38:39 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua2/call.hpp
r5877 r5899 785 785 * The destination where the call will be transferred to. 786 786 */ 787 string dstUri;787 string dstUri; 788 788 789 789 /** 790 790 * Status code to be returned for the call transfer request. On input, 791 * it contains status code 20 0.792 */ 793 pjsip_status_code statusCode;791 * it contains status code 202. 792 */ 793 pjsip_status_code statusCode; 794 794 795 795 /** … … 797 797 * for the call being transferred. 798 798 */ 799 CallSetting opt; 799 CallSetting opt; 800 801 /** 802 * New Call derived object instantiated by application when the call 803 * transfer is about to be accepted. 804 */ 805 Call *newCall; 800 806 }; 801 807 … … 867 873 * The new call id. 868 874 */ 869 pjsua_call_id newCallId; 875 pjsua_call_id newCallId; 876 877 /** 878 * New Call derived object instantiated by application. 879 */ 880 Call *newCall; 870 881 }; 871 882 … … 1717 1728 /** 1718 1729 * Notify application on call being transferred (i.e. REFER is received). 1719 * Application can decide to accept/reject transfer request 1720 * by setting the code (default is 202). When this callback 1721 * is not implemented, the default behavior is to accept the 1722 * transfer. 1730 * Application can decide to accept/reject transfer request by setting 1731 * the code (default is 202). When this callback is not implemented, 1732 * the default behavior is to accept the transfer. 1733 * 1734 * If application decides to accept the transfer request, it must also 1735 * instantiate the new Call object for the transfer operation and return 1736 * this new Call object to prm.newCall. 1737 * 1738 * If application does not specify new Call object, library will reuse the 1739 * existing Call object for initiating the new call (to the transfer 1740 * destination). In this case, any events from both calls (transferred and 1741 * transferring) will be delivered to the same Call object, where the call 1742 * ID will be switched back and forth between callbacks. Application must 1743 * be careful to not destroy the Call object when receiving disconnection 1744 * event of the transferred call after the transfer process is completed. 1723 1745 * 1724 1746 * @param prm Callback parameter. … … 1753 1775 * 1754 1776 * After this callback is called, normally PJSUA-API will disconnect 1755 * this call and establish a new call \a newCallId. 1777 * this call and establish a new call. To be able to control the call, 1778 * e.g: hold, transfer, change media parameters, application must 1779 * instantiate a new Call object for the new call using call ID 1780 * specified in prm.newCallId, and return the Call object via 1781 * prm.newCall. 1756 1782 * 1757 1783 * @param prm Callback parameter. … … 1953 1979 std::vector<Media *> medias; 1954 1980 pj_pool_t *sdp_pool; 1981 Call *child; /* New outgoing call in call transfer. */ 1955 1982 }; 1956 1983
Note: See TracChangeset
for help on using the changeset viewer.