Changeset 6026 for pjproject/trunk/pjsip/src/pjsua2/call.cpp
- Timestamp:
- Jun 12, 2019 6:00:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/call.cpp
r6024 r6026 445 445 } 446 446 447 CallInfo Call::getInfo() const throw(Error)447 CallInfo Call::getInfo() const PJSUA2_THROW(Error) 448 448 { 449 449 pjsua_call_info pj_ci; … … 500 500 } 501 501 502 AudioMedia Call::getAudioMedia(int med_idx) const throw(Error)502 AudioMedia Call::getAudioMedia(int med_idx) const PJSUA2_THROW(Error) 503 503 { 504 504 pjsua_call_info pj_ci; … … 538 538 } 539 539 540 VideoMedia Call::getEncodingVideoMedia(int med_idx) const throw(Error)540 VideoMedia Call::getEncodingVideoMedia(int med_idx) const PJSUA2_THROW(Error) 541 541 { 542 542 pjsua_call_info pj_ci; … … 576 576 } 577 577 578 VideoMedia Call::getDecodingVideoMedia(int med_idx) const throw(Error)578 VideoMedia Call::getDecodingVideoMedia(int med_idx) const PJSUA2_THROW(Error) 579 579 { 580 580 pjsua_call_info pj_ci; … … 636 636 } 637 637 638 pj_stun_nat_type Call::getRemNatType() throw(Error)638 pj_stun_nat_type Call::getRemNatType() PJSUA2_THROW(Error) 639 639 { 640 640 pj_stun_nat_type nat; … … 645 645 } 646 646 647 void Call::makeCall(const string &dst_uri, const CallOpParam &prm) throw(Error) 647 void Call::makeCall(const string &dst_uri, const CallOpParam &prm) 648 PJSUA2_THROW(Error) 648 649 { 649 650 pj_str_t pj_dst_uri = str2Pj(dst_uri); … … 655 656 } 656 657 657 void Call::answer(const CallOpParam &prm) throw(Error)658 void Call::answer(const CallOpParam &prm) PJSUA2_THROW(Error) 658 659 { 659 660 call_param param(prm.txOption, prm.opt, prm.reason, … … 661 662 662 663 if (param.sdp) { 663 PJSUA2_CHECK_EXPR( pjsua_call_answer_with_sdp(id, param.sdp, param.p_opt, 664 PJSUA2_CHECK_EXPR( pjsua_call_answer_with_sdp(id, param.sdp, 665 param.p_opt, 664 666 prm.statusCode, 665 667 param.p_reason, … … 672 674 } 673 675 674 void Call::hangup(const CallOpParam &prm) throw(Error)676 void Call::hangup(const CallOpParam &prm) PJSUA2_THROW(Error) 675 677 { 676 678 call_param param(prm.txOption, prm.opt, prm.reason); … … 680 682 } 681 683 682 void Call::setHold(const CallOpParam &prm) throw(Error)684 void Call::setHold(const CallOpParam &prm) PJSUA2_THROW(Error) 683 685 { 684 686 call_param param(prm.txOption, prm.opt, prm.reason); 685 687 686 PJSUA2_CHECK_EXPR( pjsua_call_set_hold2(id, prm.options, param.p_msg_data)); 687 } 688 689 void Call::reinvite(const CallOpParam &prm) throw(Error) 688 PJSUA2_CHECK_EXPR( pjsua_call_set_hold2(id, prm.options, 689 param.p_msg_data) ); 690 } 691 692 void Call::reinvite(const CallOpParam &prm) PJSUA2_THROW(Error) 690 693 { 691 694 call_param param(prm.txOption, prm.opt, prm.reason); 692 695 693 PJSUA2_CHECK_EXPR( pjsua_call_reinvite2(id, param.p_opt, param.p_msg_data)); 694 } 695 696 void Call::update(const CallOpParam &prm) throw(Error) 696 PJSUA2_CHECK_EXPR( pjsua_call_reinvite2(id, param.p_opt, 697 param.p_msg_data) ); 698 } 699 700 void Call::update(const CallOpParam &prm) PJSUA2_THROW(Error) 697 701 { 698 702 call_param param(prm.txOption, prm.opt, prm.reason); 699 703 700 PJSUA2_CHECK_EXPR( pjsua_call_update2(id, param.p_opt, param.p_msg_data) ); 701 } 702 703 void Call::xfer(const string &dest, const CallOpParam &prm) throw(Error) 704 PJSUA2_CHECK_EXPR( pjsua_call_update2(id, param.p_opt, 705 param.p_msg_data) ); 706 } 707 708 void Call::xfer(const string &dest, const CallOpParam &prm) 709 PJSUA2_THROW(Error) 704 710 { 705 711 call_param param(prm.txOption); … … 710 716 711 717 void Call::xferReplaces(const Call& dest_call, 712 const CallOpParam &prm) throw(Error)718 const CallOpParam &prm) PJSUA2_THROW(Error) 713 719 { 714 720 call_param param(prm.txOption); 715 721 716 722 PJSUA2_CHECK_EXPR(pjsua_call_xfer_replaces(id, dest_call.getId(), 717 prm.options, param.p_msg_data) ); 718 } 719 720 void Call::processRedirect(pjsip_redirect_op cmd) throw(Error) 723 prm.options, 724 param.p_msg_data) ); 725 } 726 727 void Call::processRedirect(pjsip_redirect_op cmd) PJSUA2_THROW(Error) 721 728 { 722 729 PJSUA2_CHECK_EXPR(pjsua_call_process_redirect(id, cmd)); 723 730 } 724 731 725 void Call::dialDtmf(const string &digits) throw(Error)732 void Call::dialDtmf(const string &digits) PJSUA2_THROW(Error) 726 733 { 727 734 pj_str_t pj_digits = str2Pj(digits); … … 730 737 } 731 738 732 void Call::sendDtmf(const CallSendDtmfParam ¶m) throw(Error)739 void Call::sendDtmf(const CallSendDtmfParam ¶m) PJSUA2_THROW(Error) 733 740 { 734 741 pjsua_call_send_dtmf_param pj_param = param.toPj(); … … 739 746 740 747 void Call::sendInstantMessage(const SendInstantMessageParam& prm) 741 throw(Error)748 PJSUA2_THROW(Error) 742 749 { 743 750 pj_str_t mime_type = str2Pj(prm.contentType); … … 750 757 751 758 void Call::sendTypingIndication(const SendTypingIndicationParam &prm) 752 throw(Error)759 PJSUA2_THROW(Error) 753 760 { 754 761 call_param param(prm.txOption); … … 760 767 } 761 768 762 void Call::sendRequest(const CallSendRequestParam &prm) throw(Error)769 void Call::sendRequest(const CallSendRequestParam &prm) PJSUA2_THROW(Error) 763 770 { 764 771 pj_str_t method = str2Pj(prm.method); 765 772 call_param param(prm.txOption); 766 773 767 PJSUA2_CHECK_EXPR(pjsua_call_send_request(id, &method, param.p_msg_data) ); 768 } 769 770 string Call::dump(bool with_media, const string indent) throw(Error) 774 PJSUA2_CHECK_EXPR(pjsua_call_send_request(id, &method, 775 param.p_msg_data) ); 776 } 777 778 string Call::dump(bool with_media, const string indent) PJSUA2_THROW(Error) 771 779 { 772 780 #if defined(PJMEDIA_HAS_RTCP_XR) && (PJMEDIA_HAS_RTCP_XR != 0) … … 804 812 805 813 void Call::vidSetStream(pjsua_call_vid_strm_op op, 806 const CallVidSetStreamParam ¶m) throw(Error) 814 const CallVidSetStreamParam ¶m) 815 PJSUA2_THROW(Error) 807 816 { 808 817 #if PJSUA_HAS_VIDEO … … 820 829 } 821 830 822 StreamInfo Call::getStreamInfo(unsigned med_idx) const throw(Error)831 StreamInfo Call::getStreamInfo(unsigned med_idx) const PJSUA2_THROW(Error) 823 832 { 824 833 pjsua_stream_info pj_si; … … 830 839 } 831 840 832 StreamStat Call::getStreamStat(unsigned med_idx) const throw(Error)841 StreamStat Call::getStreamStat(unsigned med_idx) const PJSUA2_THROW(Error) 833 842 { 834 843 pjsua_stream_stat pj_ss; … … 841 850 842 851 MediaTransportInfo Call::getMedTransportInfo(unsigned med_idx) const 843 throw(Error)852 PJSUA2_THROW(Error) 844 853 { 845 854 pjmedia_transport_info pj_mti;
Note: See TracChangeset
for help on using the changeset viewer.