- Timestamp:
- Jan 4, 2007 10:45:08 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/doxygen.h
r736 r875 56 56 * @subsection doc_ver_subsec Version 57 57 * 58 * This document corresponds to PJLIB version 0.5. 8.58 * This document corresponds to PJLIB version 0.5.9.5. 59 59 * 60 60 * -
pjproject/trunk/pjmedia/include/pjmedia/conference.h
r833 r875 32 32 * @brief The implementation of conference bridge 33 33 * @{ 34 * 35 * This describes the conference bridge implementation in PJMEDIA. The 36 * conference bridge provides powerful and very efficient mechanism to 37 * route the audio flow and mix the audio signal when required. 38 * 39 * Some more information about the media flow when conference bridge is 40 * used is described in http://www.pjsip.org/trac/wiki/media-flow . 34 41 */ 35 42 … … 98 105 * interface of the bridge by calling #pjmedia_conf_get_master_port(), and 99 106 * connect this port interface to a sound device port by calling 100 * #pjmedia_snd_port_connect(). 101 * 102 * The sound device is crucial for the bridge's operation, because it provides 103 * the bridge with necessary clock to process the audio frames periodically. 104 * Internally, the bridge runs when get_frame() to port zero is called. 107 * #pjmedia_snd_port_connect(), or to a master port (pjmedia_master_port) 108 * if application doesn't want to instantiate any sound devices. 109 * 110 * The sound device or master port are crucial for the bridge's operation, 111 * because it provides the bridge with necessary clock to process the audio 112 * frames periodically. Internally, the bridge runs when get_frame() to 113 * port zero is called. 105 114 * 106 115 * @param pool Pool to use to allocate the bridge and -
pjproject/trunk/pjmedia/include/pjmedia/session.h
r863 r875 281 281 * @param session The media session. 282 282 * @param index The stream index. 283 * @param ascii_digits String of ASCII digits (i.e. 0-9*# A-B).283 * @param ascii_digits String of ASCII digits (i.e. 0-9*##A-B). 284 284 * 285 285 * @return PJ_SUCCESS on success. -
pjproject/trunk/pjmedia/include/pjmedia/sound.h
r744 r875 254 254 * 255 255 * @param strm The stream to be queried. 256 * @param i Pointer to stream information to be filled up with256 * @param pi Pointer to stream information to be filled up with 257 257 * information about the stream. 258 258 * -
pjproject/trunk/pjmedia/include/pjmedia/tonegen.h
r694 r875 85 85 * to produce tones from an ASCII digits. 86 86 * Digit map used by a particular tone generator can be retrieved/set with 87 * #pjmedia_tonegen_get_digit_map() and #pjmedia_tonegen_ load_digit_map().87 * #pjmedia_tonegen_get_digit_map() and #pjmedia_tonegen_set_digit_map(). 88 88 */ 89 89 typedef struct pjmedia_tone_digit_map … … 95 95 short freq1; /**< First frequency. */ 96 96 short freq2; /**< Optional second frequency. */ 97 } digits[16]; 97 } digits[16]; /**< Array of digits in the digit map. */ 98 98 } pjmedia_tone_digit_map; 99 99 -
pjproject/trunk/pjsip/docs/doxygen.h
r736 r875 120 120 @subsection doc_ver Version 121 121 122 This document corresponds to PJSIP version 0.5. 8.122 This document corresponds to PJSIP version 0.5.9.5. 123 123 124 124 \n -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r865 r875 116 116 \code 117 117 118 #include <pjsua-lib/pjsua.h> 119 120 #define THIS_FILE __FILE__ 121 122 static pj_status_t app_init(void) 123 { 118 124 pjsua_config ua_cfg; 119 125 pjsua_logging_config log_cfg; 120 126 pjsua_media_config media_cfg; 127 pj_status_t status; 128 129 // Must create pjsua before anything else! 130 status = pjsua_create(); 131 if (status != PJ_SUCCESS) { 132 pjsua_perror(THIS_FILE, "Error initializing pjsua", status); 133 return status; 134 } 121 135 122 136 // Initialize configs with default settings. … … 141 155 return status; 142 156 } 143 .. 144 157 . 158 ... 159 } 145 160 \endcode 146 161 * … … 170 185 * may add, modify, or delete accounts, buddies, or change media settings 171 186 * during run-time. 187 * 188 * Sample code: 189 \code 190 static pj_status_t app_run(void) 191 { 192 pj_status_t status; 193 194 // Start pjsua 195 status = pjsua_start(); 196 if (status != PJ_SUCCESS) { 197 pjsua_destroy(); 198 pjsua_perror(THIS_FILE, "Error starting pjsua", status); 199 return status; 200 } 201 202 // Run application loop 203 while (1) { 204 char choice[10]; 205 206 printf("Select menu: "); 207 fgets(choice, sizeof(choice), stdin); 208 ... 209 } 210 } 211 \endcode 172 212 */ 173 213 … … 205 245 206 246 /** 207 * Logging configuration. 247 * Logging configuration, which can be (optionally) specified when calling 248 * #pjsua_init(). Application must call #pjsua_logging_config_default() to 249 * initialize this structure with the default values. 208 250 */ 209 251 typedef struct pjsua_logging_config … … 279 321 280 322 /** 281 * Application callbacks. 323 * This structure describes application callback to receive various event 324 * notification from PJSUA-API. All of these callbacks are OPTIONAL, 325 * although definitely application would want to implement some of 326 * the important callbacks (such as \a on_incoming_call). 282 327 */ 283 328 typedef struct pjsua_callback … … 322 367 323 368 /** 324 * Notify application on call being transfered .369 * Notify application on call being transfered (i.e. REFER is received). 325 370 * Application can decide to accept/reject transfer request 326 371 * by setting the code (default is 200). When this callback … … 471 516 472 517 /** 473 * PJSUA settings. 518 * This structure describes the settings to control the API and 519 * user agent behavior, and can be specified when calling #pjsua_init(). 520 * Before setting the values, application must call #pjsua_config_default() 521 * to initialize this structure with the default values. 474 522 */ 475 523 typedef struct pjsua_config … … 477 525 478 526 /** 479 * Maximum calls to support (default: 4) 527 * Maximum calls to support (default: 4). The value specified here 528 * must be smaller than the compile time maximum settings 529 * PJSUA_MAX_CALLS, which by default is 32. To increase this 530 * limit, the library must be recompiled with new PJSUA_MAX_CALLS 531 * value. 480 532 */ 481 533 unsigned max_calls; … … 504 556 505 557 /** 506 * Number of outbound proxies in the array.558 * Number of outbound proxies in the \a outbound_proxy array. 507 559 */ 508 560 unsigned outbound_proxy_cnt; … … 524 576 /** 525 577 * Array of credentials. These credentials will be used by all accounts, 526 * and can be used to authenticate against outbound proxies. 578 * and can be used to authenticate against outbound proxies. If the 579 * credential is specific to the account, then application should set 580 * the credential in the pjsua_acc_config rather than the credential 581 * here. 527 582 */ 528 583 pjsip_cred_info cred_info[PJSUA_ACC_MAX_PROXIES]; 529 584 530 585 /** 531 * Application callback. 586 * Application callback to receive various event notifications from 587 * the library. 532 588 */ 533 589 pjsua_callback cb; 534 590 535 591 /** 536 * User agent string (default empty) 592 * Optional user agent string (default empty). If it's empty, no 593 * User-Agent header will be sent with outgoing requests. 537 594 */ 538 595 pj_str_t user_agent; … … 597 654 /** 598 655 * This structure describes additional information to be sent with 599 * outgoing SIP message. 656 * outgoing SIP message. It can (optionally) be specified for example 657 * with #pjsua_call_make_call(), #pjsua_call_answer(), #pjsua_call_hangup(), 658 * #pjsua_call_set_hold(), #pjsua_call_send_im(), and many more. 659 * 660 * Application MUST call #pjsua_msg_data_init() to initialize this 661 * structure before setting its values. 600 662 */ 601 663 typedef struct pjsua_msg_data … … 648 710 * specified. 649 711 * 712 * Note that #pjsua_create() MUST be called before calling this function. 713 * 650 714 * @param ua_cfg User agent configuration. 651 715 * @param log_cfg Optional logging configuration. … … 664 728 * additional 665 729 * 730 * Application may call this function anytime after #pjsua_init(). 731 * 666 732 * @return PJ_SUCCESS on success, or the appropriate error code. 667 733 */ … … 670 736 671 737 /** 672 * Destroy pjsua. This function must be called once PJSUA is created. To 673 * make it easier for application, application may call this function 674 * several times with no danger. 738 * Destroy pjsua. Application is recommended to perform graceful shutdown 739 * before calling this function (such as unregister the account from the SIP 740 * server, terminate presense subscription, and hangup active calls), however, 741 * this function will do all of these if it finds there are active sessions 742 * that need to be terminated. This function will approximately block for 743 * one second to wait for replies from remote. 744 * 745 * Application.may safely call this function more than once if it doesn't 746 * keep track of it's state. 675 747 * 676 748 * @return PJ_SUCCESS on success, or the appropriate error code. … … 682 754 * Poll pjsua for events, and if necessary block the caller thread for 683 755 * the specified maximum interval (in miliseconds). 756 * 757 * Application doesn't normally need to call this function if it has 758 * configured worker thread (\a thread_cnt field) in pjsua_config structure, 759 * because polling then will be done by these worker threads instead. 684 760 * 685 761 * @param msec_timeout Maximum time to wait, in miliseconds. … … 693 769 694 770 /** 695 * Create memory pool. 771 * Create memory pool to be used by the application. Once application 772 * finished using the pool, it must be released with pj_pool_release(). 696 773 * 697 774 * @param name Optional pool name. … … 719 796 * Internal function to get SIP endpoint instance of pjsua, which is 720 797 * needed for example to register module, create transports, etc. 721 * Probably is only valid after #pjsua_init() is called.798 * Only valid after #pjsua_init() is called. 722 799 * 723 800 * @return SIP endpoint instance. … … 735 812 /** 736 813 * Internal function to get PJSUA pool factory. 737 * Only valid after #pjsua_ init() is called.814 * Only valid after #pjsua_create() is called. 738 815 * 739 816 * @return Pool factory currently used by PJSUA. … … 749 826 750 827 /** 751 * Verify that valid SIP url is given. 828 * This is a utility function to verify that valid SIP url is given. If the 829 * URL is valid, PJ_SUCCESS will be returned. 752 830 * 753 831 * @param c_url The URL, as NULL terminated string. … … 759 837 760 838 /** 761 * Display error message for the specified error code. 839 * This is a utility function to display error message for the specified 840 * error code. The error message will be sent to the log. 762 841 * 763 842 * @param sender The log sender field. … … 796 875 797 876 /** 798 * STUN configuration. 877 * This structure describes STUN configuration for SIP and media transport, 878 * and is embedded inside pjsua_transport_config structure. 799 879 */ 800 880 typedef struct pjsua_stun_config … … 841 921 /** 842 922 * Transport configuration for creating transports for both SIP 843 * and media. 923 * and media. Before setting some values to this structure, application 924 * MUST call #pjsua_transport_config_default() to initialize its 925 * values with default settings. 844 926 */ 845 927 typedef struct pjsua_transport_config … … 888 970 889 971 /** 890 * TLS settings. 972 * This specifies TLS settings for TLS transport. It is only be used 973 * when this transport config is being used to create a SIP TLS 974 * transport. 891 975 */ 892 976 pjsip_tls_setting tls_setting; … … 903 987 { 904 988 pj_bzero(cfg, sizeof(*cfg)); 989 pjsua_stun_config_default(&cfg->stun_config); 905 990 pjsip_tls_setting_default(&cfg->tls_setting); 906 991 } … … 908 993 909 994 /** 910 * Normalize STUN config. 995 * This is a utility function to normalize STUN config. It's only 996 * used internally by the library. 997 * 998 * @param cfg The STUN config to be initialized. 911 999 */ 912 1000 PJ_INLINE(void) pjsua_normalize_stun_config( pjsua_stun_config *cfg ) … … 958 1046 959 1047 /** 960 * Transport info. 1048 * This structure describes transport information returned by 1049 * #pjsua_transport_get_info() function. 961 1050 */ 962 1051 typedef struct pjsua_transport_info … … 1012 1101 1013 1102 /** 1014 * Create SIP transport. 1103 * Create and start a new SIP transport according to the specified 1104 * settings. 1015 1105 * 1016 1106 * @param type Transport type. … … 1079 1169 * Close the transport. If transport is forcefully closed, it will be 1080 1170 * immediately closed, and any pending transactions that are using the 1081 * transport may not terminate properly . Otherwise, the system will wait1082 * until all transactions are closed while preventing new users from1083 * using the transport, and will close the transport when it is safe to1084 * do so.1171 * transport may not terminate properly (it may even crash). Otherwise, 1172 * the system will wait until all transactions are closed while preventing 1173 * new users from using the transport, and will close the transport when 1174 * it is safe to do so. 1085 1175 * 1086 1176 * @param id Transport ID. … … 1169 1259 1170 1260 /** 1171 * Account configuration. 1261 * This structure describes account configuration to be specified when 1262 * adding a new account with #pjsua_acc_add(). Application MUST initialize 1263 * this structure first by calling #pjsua_acc_config_default(). 1172 1264 */ 1173 1265 typedef struct pjsua_acc_config … … 1198 1290 1199 1291 /** 1200 * Publish presence? 1292 * If this flag is set, the presence information of this account will 1293 * be PUBLISH-ed to the server where the account belongs. 1201 1294 */ 1202 1295 pj_bool_t publish_enabled; … … 1223 1316 * These proxies will be put in the route set for this account, with 1224 1317 * maintaining the orders (the first proxy in the array will be visited 1225 * first). 1318 * first). If global outbound proxies are configured in pjsua_config, 1319 * then these account proxies will be placed after the global outbound 1320 * proxies in the routeset. 1226 1321 */ 1227 1322 pj_str_t proxy[PJSUA_ACC_MAX_PROXIES]; … … 1352 1447 1353 1448 /** 1354 * Get default account. 1449 * Get default account to be used when receiving incoming requests (calls), 1450 * when the destination of the incoming call doesn't match any other 1451 * accounts. 1355 1452 * 1356 1453 * @return The default account ID, or PJSUA_INVALID_ID if no … … 1362 1459 /** 1363 1460 * Add a new account to pjsua. PJSUA must have been initialized (with 1364 * #pjsua_init()) before calling this function. 1461 * #pjsua_init()) before calling this function. If registration is configured 1462 * for this account, this function would also start the SIP registration 1463 * session with the SIP registrar server. This SIP registration session 1464 * will be maintained internally by the library, and application doesn't 1465 * need to do anything to maintain the registration session. 1466 * 1365 1467 * 1366 1468 * @param cfg Account configuration. … … 1401 1503 1402 1504 /** 1403 * Delete account. 1505 * Delete an account. This will unregister the account from the SIP server, 1506 * if necessary, and terminate server side presence subscriptions associated 1507 * with this account. 1404 1508 * 1405 1509 * @param acc_id Id of the account to be deleted. … … 1424 1528 /** 1425 1529 * Modify account's presence status to be advertised to remote/presence 1426 * subscribers. 1530 * subscribers. This would trigger the sending of outgoing NOTIFY request 1531 * if there are server side presence subscription for this account. 1427 1532 * 1428 1533 * @param acc_id The account ID. … … 1436 1541 1437 1542 /** 1438 * Update registration or perform unregistration. 1543 * Update registration or perform unregistration. If registration is 1544 * configured for this account, then initial SIP REGISTER will be sent 1545 * when the account is added with #pjsua_acc_add(). Application normally 1546 * only need to call this function if it wants to manually update the 1547 * registration or to unregister from the server. 1439 1548 * 1440 1549 * @param acc_id The account ID. … … 1449 1558 1450 1559 /** 1451 * Get account information.1560 * Get information about the specified account. 1452 1561 * 1453 1562 * @param acc_id Account identification. … … 1461 1570 1462 1571 /** 1463 * Enum accounts all account ids. 1572 * Enumerate all account currently active in the library. This will fill 1573 * the array with the account Ids, and application can then query the 1574 * account information for each id with #pjsua_acc_get_info(). 1575 * 1576 * @see pjsua_acc_enum_info(). 1464 1577 * 1465 1578 * @param ids Array of account IDs to be initialized. … … 1474 1587 1475 1588 /** 1476 * Enum accounts info.1589 * Enumerate account informations. 1477 1590 * 1478 1591 * @param info Array of account infos to be initialized. … … 1562 1675 1563 1676 /** 1564 * Max simultaneous calls.1677 * Maximum simultaneous calls. 1565 1678 */ 1566 1679 #ifndef PJSUA_MAX_CALLS … … 1571 1684 1572 1685 /** 1573 * Call media status. 1686 * This enumeration specifies the media status of a call, and it's part 1687 * of pjsua_call_info structure. 1574 1688 */ 1575 1689 typedef enum pjsua_call_media_status 1576 1690 { 1691 /** Call currently has no media */ 1577 1692 PJSUA_CALL_MEDIA_NONE, 1693 1694 /** The media is active */ 1578 1695 PJSUA_CALL_MEDIA_ACTIVE, 1696 1697 /** The media is currently put on hold by local endpoint */ 1579 1698 PJSUA_CALL_MEDIA_LOCAL_HOLD, 1699 1700 /** The media is currently put on hold by remote endpoint */ 1580 1701 PJSUA_CALL_MEDIA_REMOTE_HOLD, 1702 1581 1703 } pjsua_call_media_status; 1582 1704 1583 1705 1584 1706 /** 1585 * Call info.1707 * This structure describes the information and current status of a call. 1586 1708 */ 1587 1709 typedef struct pjsua_call_info … … 1669 1791 1670 1792 /** 1671 * Enumerate all active calls. 1793 * Enumerate all active calls. Application may then query the information and 1794 * state of each call by calling #pjsua_call_get_info(). 1672 1795 * 1673 1796 * @param ids Array of account IDs to be initialized. … … 1748 1871 1749 1872 /** 1750 * Attach application specific data to the call. 1873 * Attach application specific data to the call. Application can then 1874 * inspect this data by calling #pjsua_call_get_user_data(). 1751 1875 * 1752 1876 * @param call_id Call identification. … … 1760 1884 1761 1885 /** 1762 * Get user data attached to the call. 1886 * Get user data attached to the call, which has been previously set with 1887 * #pjsua_call_set_user_data(). 1763 1888 * 1764 1889 * @param call_id Call identification. … … 1770 1895 1771 1896 /** 1772 * Send response to incoming INVITE request. 1897 * Send response to incoming INVITE request. Depending on the status 1898 * code specified as parameter, this function may send provisional 1899 * response, establish the call, or terminate the call. 1773 1900 * 1774 1901 * @param call_id Incoming call identification. … … 1788 1915 /** 1789 1916 * Hangup call by using method that is appropriate according to the 1790 * call state. 1917 * call state. This function is different than answering the call with 1918 * 3xx-6xx response (with #pjsua_call_answer()), in that this function 1919 * will hangup the call regardless of the state and role of the call, 1920 * while #pjsua_call_answer() only works with incoming calls on EARLY 1921 * state. 1791 1922 * 1792 1923 * @param call_id Call identification. … … 1808 1939 1809 1940 /** 1810 * Put the specified call on hold. 1941 * Put the specified call on hold. This will send re-INVITE with the 1942 * appropriate SDP to inform remote that the call is being put on hold. 1943 * The final status of the request itself will be reported on the 1944 * \a on_call_media_state() callback, which inform the application that 1945 * the media state of the call has changed. 1811 1946 * 1812 1947 * @param call_id Call identification. … … 1821 1956 1822 1957 /** 1823 * Send re-INVITE (to release hold). 1958 * Send re-INVITE to release hold. 1959 * The final status of the request itself will be reported on the 1960 * \a on_call_media_state() callback, which inform the application that 1961 * the media state of the call has changed. 1824 1962 * 1825 1963 * @param call_id Call identification. … … 1840 1978 * REFER request to instruct remote call party to initiate a new INVITE 1841 1979 * session to the specified destination/target. 1980 * 1981 * If application is interested to monitor the successfulness and 1982 * the progress of the transfer request, it can implement 1983 * \a on_call_transfer_status() callback which will report the progress 1984 * of the call transfer request. 1842 1985 * 1843 1986 * @param call_id The call id to be transfered. … … 1930 2073 1931 2074 /** 1932 * Terminate all calls. 2075 * Terminate all calls. This will initiate #pjsua_call_hangup() for all 2076 * currently active calls. 1933 2077 */ 1934 2078 PJ_DECL(void) pjsua_call_hangup_all(void); … … 1978 2122 1979 2123 /** 1980 * Buddy configuration. 2124 * This structure describes buddy configuration when adding a buddy to 2125 * the buddy list with #pjsua_buddy_add(). Application MUST initialize 2126 * the structure with #pjsua_buddy_config_default() to initialize this 2127 * structure with default configuration. 1981 2128 */ 1982 2129 typedef struct pjsua_buddy_config … … 1996 2143 1997 2144 /** 1998 * Buddy's online status.2145 * This enumeration describes basic buddy's online status. 1999 2146 */ 2000 2147 typedef enum pjsua_buddy_status … … 2021 2168 2022 2169 /** 2023 * Buddy info. 2170 * This structure describes buddy info, which can be retrieved by calling 2171 * #pjsua_buddy_get_info(). 2024 2172 */ 2025 2173 typedef struct pjsua_buddy_info … … 2066 2214 2067 2215 /** 2216 * Set default values to the buddy config. 2217 */ 2218 PJ_INLINE(void) pjsua_buddy_config_default(pjsua_buddy_config *cfg) 2219 { 2220 pj_bzero(cfg, sizeof(*cfg)); 2221 } 2222 2223 2224 /** 2068 2225 * Get total number of buddies. 2069 2226 * … … 2084 2241 2085 2242 /** 2086 * Enum buddy IDs. 2243 * Enumerate all buddy IDs in the buddy list. Application then can use 2244 * #pjsua_buddy_get_info() to get the detail information for each buddy 2245 * id. 2087 2246 * 2088 2247 * @param ids Array of ids to be initialized. … … 2108 2267 2109 2268 /** 2110 * Add new buddy. 2269 * Add new buddy to the buddy list. If presence subscription is enabled 2270 * for this buddy, this function will also start the presence subscription 2271 * session immediately. 2111 2272 * 2112 2273 * @param cfg Buddy configuration. … … 2120 2281 2121 2282 /** 2122 * Delete buddy. 2283 * Delete the specified buddy from the buddy list. Any presence subscription 2284 * to this buddy will be terminated. 2123 2285 * 2124 2286 * @param buddy_id Buddy identification. … … 2130 2292 2131 2293 /** 2132 * Enable/disable buddy's presence monitoring. 2294 * Enable/disable buddy's presence monitoring. Once buddy's presence is 2295 * subscribed, application will be informed about buddy's presence status 2296 * changed via \a on_buddy_state() callback. 2133 2297 * 2134 2298 * @param buddy_id Buddy identification. … … 2143 2307 2144 2308 /** 2145 * Dump presence subscriptions to log file.2309 * Dump presence subscriptions to log. 2146 2310 * 2147 2311 * @param verbose Yes or no. … … 2271 2435 #endif 2272 2436 2437 /** 2438 * The default clock rate to be used by the conference bridge. 2439 */ 2273 2440 #ifndef PJSUA_DEFAULT_CLOCK_RATE 2274 2441 # define PJSUA_DEFAULT_CLOCK_RATE 16000 2275 2442 #endif 2276 2443 2444 /** 2445 * Default codec quality settings. 2446 */ 2277 2447 #ifndef PJSUA_DEFAULT_CODEC_QUALITY 2278 2448 # define PJSUA_DEFAULT_CODEC_QUALITY 5 2279 2449 #endif 2280 2450 2451 /** 2452 * Default iLBC mode. 2453 */ 2281 2454 #ifndef PJSUA_DEFAULT_ILBC_MODE 2282 2455 # define PJSUA_DEFAULT_ILBC_MODE 20 2283 2456 #endif 2284 2457 2285 2458 /** 2459 * The default echo canceller tail length. 2460 */ 2286 2461 #ifndef PJSUA_DEFAULT_EC_TAIL_LEN 2287 2462 # define PJSUA_DEFAULT_EC_TAIL_LEN 800 … … 2290 2465 2291 2466 /** 2292 * Media configuration. 2467 * This structure describes media configuration, which will be specified 2468 * when calling #pjsua_init(). Application MUST initialize this structure 2469 * by calling #pjsua_media_config_default(). 2293 2470 */ 2294 2471 struct pjsua_media_config … … 2296 2473 /** 2297 2474 * Clock rate to be applied to the conference bridge. 2298 * If value is zero, default clock rate will be used (16KHz). 2475 * If value is zero, default clock rate will be used 2476 * (PJSUA_DEFAULT_CLOCK_RATE, which by default is 16KHz). 2299 2477 */ 2300 2478 unsigned clock_rate; … … 2444 2622 2445 2623 /** 2446 * Codec config. 2624 * This structure describes codec information, which can be retrieved by 2625 * calling #pjsua_enum_codecs(). 2447 2626 */ 2448 2627 typedef struct pjsua_codec_info … … 2467 2646 2468 2647 /** 2469 * Conference port info. 2648 * This structure descibes information about a particular media port that 2649 * has been registered into the conference bridge. Application can query 2650 * this info by calling #pjsua_conf_get_port_info(). 2470 2651 */ 2471 2652 typedef struct pjsua_conf_port_info … … 2585 2766 /** 2586 2767 * Remove arbitrary slot from the conference bridge. Application should only 2587 * call this function if it registered the port manually. 2768 * call this function if it registered the port manually with previous call 2769 * to #pjsua_conf_add_port(). 2588 2770 * 2589 2771 * @param id The slot id of the port to be removed. … … 2818 3000 2819 3001 /** 2820 * Enum sound devices.3002 * Enum all sound devices installed in the system. 2821 3003 * 2822 3004 * @param info Array of info to be initialized. -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r863 r875 687 687 } else { 688 688 689 /* Notify application */ 690 if (pjsua_var.ua_cfg.cb.on_incoming_call) 689 /* Notify application if on_incoming_call() is overriden, 690 * otherwise hangup the call with 480 691 */ 692 if (pjsua_var.ua_cfg.cb.on_incoming_call) { 691 693 pjsua_var.ua_cfg.cb.on_incoming_call(acc_id, call_id, rdata); 692 694 } else { 695 pjsua_call_hangup(call_id, PJSIP_SC_TEMPORARILY_UNAVAILABLE, 696 NULL, NULL); 697 } 693 698 } 694 699
Note: See TracChangeset
for help on using the changeset viewer.