- Timestamp:
- Dec 4, 2013 2:38:20 AM (11 years ago)
- Location:
- pjproject/branches/projects/pjsua2
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/java/Makefile
r4664 r4670 27 27 JAVA_BIN := $(dir $(JAVAC_PATH)) 28 28 JAVA_HOME := $(patsubst %/bin/,%,$(JAVA_BIN)) 29 else 30 ifeq (exists, $(shell test -d $(JAVA_HOME)/bin && echo exists )) 31 JAVA_BIN := $(JAVA_HOME)/bin 32 else 33 JAVA_BIN := $(JAVA_HOME) 34 endif 35 #$(error $(JAVA_BIN)) 29 36 endif 30 37 -
pjproject/branches/projects/pjsua2/pjsip/build/pjsua2_lib.vcproj
r4660 r4670 3130 3130 </File> 3131 3131 <File 3132 RelativePath="..\src\pjsua2\call.cpp" 3133 > 3134 </File> 3135 <File 3132 3136 RelativePath="..\src\pjsua2\endpoint.cpp" 3133 3137 > … … 3135 3139 <File 3136 3140 RelativePath="..\src\pjsua2\json.cpp" 3141 > 3142 </File> 3143 <File 3144 RelativePath="..\src\pjsua2\media.cpp" 3137 3145 > 3138 3146 </File> … … 3167 3175 </File> 3168 3176 <File 3177 RelativePath="..\include\pjsua2\call.hpp" 3178 > 3179 </File> 3180 <File 3169 3181 RelativePath="..\include\pjsua2\config.hpp" 3170 3182 > … … 3180 3192 <File 3181 3193 RelativePath="..\include\pjsua2\json.hpp" 3194 > 3195 </File> 3196 <File 3197 RelativePath="..\include\pjsua2\media.hpp" 3182 3198 > 3183 3199 </File> -
pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/call.hpp
r4666 r4670 445 445 * Local URI 446 446 */ 447 string localU RI;447 string localUri; 448 448 449 449 /** … … 455 455 * Remote URI 456 456 */ 457 string remoteU RI;457 string remoteUri; 458 458 459 459 /** … … 1452 1452 */ 1453 1453 virtual void onCallState(OnCallStateParam &prm) 1454 { }1454 { PJ_UNUSED_ARG(prm); } 1455 1455 1456 1456 /** … … 1464 1464 */ 1465 1465 virtual void onCallTsxState(OnCallTsxStateParam &prm) 1466 { }1466 { PJ_UNUSED_ARG(prm); } 1467 1467 1468 1468 /** … … 1476 1476 */ 1477 1477 virtual void onCallMediaState(OnCallMediaStateParam &prm) 1478 { }1478 { PJ_UNUSED_ARG(prm); } 1479 1479 1480 1480 /** … … 1488 1488 */ 1489 1489 virtual void onCallSdpCreated(OnCallSdpCreatedParam &prm) 1490 { }1490 { PJ_UNUSED_ARG(prm); } 1491 1491 1492 1492 /** … … 1499 1499 */ 1500 1500 virtual void onStreamCreated(OnStreamCreatedParam &prm) 1501 { }1501 { PJ_UNUSED_ARG(prm); } 1502 1502 1503 1503 /** … … 1508 1508 */ 1509 1509 virtual void onStreamDestroyed(OnStreamDestroyedParam &prm) 1510 { }1510 { PJ_UNUSED_ARG(prm); } 1511 1511 1512 1512 /** … … 1516 1516 */ 1517 1517 virtual void onDtmfDigit(OnDtmfDigitParam &prm) 1518 { }1518 { PJ_UNUSED_ARG(prm); } 1519 1519 1520 1520 /** … … 1528 1528 */ 1529 1529 virtual void onCallTransferRequest(OnCallTransferRequestParam &prm) 1530 { }1530 { PJ_UNUSED_ARG(prm); } 1531 1531 1532 1532 /** … … 1539 1539 */ 1540 1540 virtual void onCallTransferStatus(OnCallTransferStatusParam &prm) 1541 { }1541 { PJ_UNUSED_ARG(prm); } 1542 1542 1543 1543 /** … … 1548 1548 */ 1549 1549 virtual void onCallReplaceRequest(OnCallReplaceRequestParam &prm) 1550 { }1550 { PJ_UNUSED_ARG(prm); } 1551 1551 1552 1552 /** … … 1561 1561 */ 1562 1562 virtual void onCallReplaced(OnCallReplacedParam &prm) 1563 { }1563 { PJ_UNUSED_ARG(prm); } 1564 1564 1565 1565 /** … … 1575 1575 */ 1576 1576 virtual void onCallRxOffer(OnCallRxOfferParam &prm) 1577 { }1577 { PJ_UNUSED_ARG(prm); } 1578 1578 1579 1579 /** … … 1583 1583 */ 1584 1584 virtual void onInstantMessage(OnInstantMessageParam &prm) 1585 { }1585 { PJ_UNUSED_ARG(prm); } 1586 1586 1587 1587 /** … … 1592 1592 */ 1593 1593 virtual void onInstantMessageStatus(OnInstantMessageStatusParam &prm) 1594 { }1594 { PJ_UNUSED_ARG(prm); } 1595 1595 1596 1596 /** … … 1600 1600 */ 1601 1601 virtual void onTypingIndication(OnTypingIndicationParam &prm) 1602 { }1602 { PJ_UNUSED_ARG(prm); } 1603 1603 1604 1604 /** … … 1645 1645 virtual pjsip_redirect_op onCallRedirected(OnCallRedirectedParam &prm) 1646 1646 { 1647 PJ_UNUSED_ARG(prm); 1647 1648 return PJSIP_REDIRECT_STOP; 1648 1649 } … … 1654 1655 */ 1655 1656 virtual void onCallMediaTransportState(OnCallMediaTransportStateParam &prm) 1656 { }1657 { PJ_UNUSED_ARG(prm); } 1657 1658 1658 1659 /** … … 1667 1668 */ 1668 1669 virtual void onCallMediaEvent(OnCallMediaEventParam &prm) 1669 { }1670 { PJ_UNUSED_ARG(prm); } 1670 1671 1671 1672 /** … … 1683 1684 virtual void 1684 1685 onCreateMediaTransport(OnCreateMediaTransportParam &prm) 1685 { }1686 { PJ_UNUSED_ARG(prm); } 1686 1687 1687 1688 private: -
pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/endpoint.hpp
r4669 r4670 1135 1135 private: 1136 1136 /* 1137 * Account 1137 * Account & Call lookups 1138 1138 */ 1139 1139 static Account *lookupAcc(int acc_id, const char *op); 1140 static Call *lookupCall(int call_id, const char *op); 1140 1141 1141 1142 /* static callbacks */ -
pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/types.hpp
r4663 r4670 22 22 #ifdef _MSC_VER 23 23 # pragma warning( disable : 4290 ) // exception spec ignored 24 # pragma warning( disable : 4512 ) // can't generate assignment op 24 25 #endif 25 26 … … 85 86 86 87 /* 87 * Forward declaration of Account to be used88 * Forward declaration of Account and Call to be used 88 89 * by Endpoint. 89 90 */ 90 91 class Account; 92 class Call; 91 93 92 94 -
pjproject/branches/projects/pjsua2/pjsip/src/pjsua2/call.cpp
r4666 r4670 172 172 CallVidSetStreamParam::CallVidSetStreamParam() 173 173 { 174 #if PJSUA_HAS_VIDEO 174 175 pjsua_call_vid_strm_op_param prm; 175 176 … … 178 179 this->dir = prm.dir; 179 180 this->capDev = prm.cap_dev; 181 #endif 180 182 } 181 183 … … 242 244 void CallInfo::fromPj(const pjsua_call_info &pci) 243 245 { 244 intmi;246 unsigned mi; 245 247 246 248 id = pci.id; 247 249 role = pci.role; 248 250 accId = pci.acc_id; 249 localU RI= pj2Str(pci.local_info);251 localUri = pj2Str(pci.local_info); 250 252 localContact = pj2Str(pci.local_contact); 251 remoteU RI= pj2Str(pci.remote_info);253 remoteUri = pj2Str(pci.remote_info); 252 254 remoteContact = pj2Str(pci.remote_contact); 253 255 callIdString = pj2Str(pci.call_id); … … 259 261 connectDuration.fromPj(pci.connect_duration); 260 262 totalDuration.fromPj(pci.total_duration); 261 remOfferer = pci.rem_offerer;263 remOfferer = PJ2BOOL(pci.rem_offerer); 262 264 remAudioCount = pci.rem_aud_cnt; 263 265 remVideoCount = pci.rem_vid_cnt; … … 606 608 return pjsua_call_vid_stream_is_running(id, med_idx, dir); 607 609 #else 610 PJ_UNUSED_ARG(med_idx); 611 PJ_UNUSED_ARG(dir); 608 612 return false; 609 613 #endif … … 621 625 PJSUA2_CHECK_EXPR( pjsua_call_set_vid_strm(id, op, &prm) ); 622 626 #else 623 PJSUA2_RAISE_ERROR(PJ_EINVOP); 627 PJ_UNUSED_ARG(op); 628 PJ_UNUSED_ARG(param); 629 PJSUA2_RAISE_ERROR(PJ_EINVALIDOP); 624 630 #endif 625 631 } -
pjproject/branches/projects/pjsua2/pjsip/src/pjsua2/endpoint.cpp
r4669 r4670 19 19 #include <pjsua2/endpoint.hpp> 20 20 #include <pjsua2/account.hpp> 21 #include <pjsua2/call.hpp> 21 22 #include <pjsua2/presence.hpp> 22 23 #include <algorithm> … … 487 488 } 488 489 490 Call *Endpoint::lookupCall(int call_id, const char *op) 491 { 492 Call *call = Call::lookup(call_id); 493 if (!call) { 494 PJ_LOG(1,(THIS_FILE, 495 "Error: cannot find Call instance for call id %d in " 496 "%s", call_id, op)); 497 } 498 499 return call; 500 } 501 489 502 void Endpoint::on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id, 490 503 pjsip_rx_data *rdata) … … 596 609 597 610 if (call_id != PJSUA_INVALID_ID) { 598 // TODO: 599 // handle call pager 600 return; 611 Call *call = lookupCall(call_id, "on_pager2()"); 612 if (!call) { 613 /* Ignored */ 614 return; 615 } 616 617 call->onInstantMessage(prm); 601 618 } else { 602 619 Account *acc = lookupAcc(acc_id, "on_pager2()"); … … 632 649 633 650 if (call_id != PJSUA_INVALID_ID) { 634 // TODO: 635 // handle call pager 651 Call *call = lookupCall(call_id, "on_pager_status2()"); 652 if (!call) { 653 /* Ignored */ 654 return; 655 } 656 657 call->onInstantMessageStatus(prm); 636 658 } else { 637 659 Account *acc = lookupAcc(acc_id, "on_pager_status2()"); … … 661 683 662 684 if (call_id != PJSUA_INVALID_ID) { 663 // TODO: 664 // handle call indication 685 Call *call = lookupCall(call_id, "on_typing2()"); 686 if (!call) { 687 /* Ignored */ 688 return; 689 } 690 691 call->onTypingIndication(prm); 665 692 } else { 666 693 Account *acc = lookupAcc(acc_id, "on_typing2()"); … … 722 749 pjsip_event *e) 723 750 { 751 PJ_UNUSED_ARG(tsx); 752 724 753 Call *call = Call::lookup(call_id); 725 754 if (!call) { … … 858 887 prm.statusCode = (pjsip_status_code)st_code; 859 888 prm.reason = pj2Str(*st_text); 860 prm.finalNotify = final;861 prm.cont = *p_cont;889 prm.finalNotify = PJ2BOOL(final); 890 prm.cont = PJ2BOOL(*p_cont); 862 891 863 892 call->onCallTransferStatus(prm); … … 910 939 pjsua_call_setting *opt) 911 940 { 941 PJ_UNUSED_ARG(reserved); 942 912 943 Call *call = Call::lookup(call_id); 913 944 if (!call) { -
pjproject/branches/projects/pjsua2/pjsip/src/pjsua2/media.cpp
r4669 r4670 313 313 throw(Error) 314 314 { 315 PJ_UNUSED_ARG(max_size); 316 315 317 pj_str_t pj_name = str2Pj(file_name); 316 318 … … 427 429 bool AudDevManager::sndIsActive() const 428 430 { 429 return pjsua_snd_is_active();431 return PJ2BOOL(pjsua_snd_is_active()); 430 432 } 431 433
Note: See TracChangeset
for help on using the changeset viewer.