Changeset 75:1b7a0f00f4a0 in verona
Legend:
- Unmodified
- Added
- Removed
-
phapi/phapi.c
r73 r75 266 266 267 267 268 MY_DLLEXPORT phCallbacks_t *phcb;269 270 MY_DLLEXPORT int phIsInitialized;271 272 MY_DLLEXPORT int phDebugLevel = 0;273 MY_DLLEXPORT char *phLogFileName = 0;268 PHAPI_EXPORT phCallbacks_t *phcb; 269 270 PHAPI_EXPORT int phIsInitialized; 271 272 PHAPI_EXPORT int phDebugLevel = 0; 273 PHAPI_EXPORT char *phLogFileName = 0; 274 274 275 275 … … 279 279 280 280 unsigned short phCallBackPort = PH_CALLBACK_PORT; 281 MY_DLLEXPORT unsigned short phServerPort = PH_SERVER_PORT; 281 PHAPI_EXPORT unsigned short phServerPort = PH_SERVER_PORT; 282 282 283 283 static int ph_busyFlag; … … 402 402 403 403 404 MY_DLLEXPORT ph_config_t *ph_get_config()404 PHAPI_EXPORT ph_config_t *ph_get_config() 405 405 { 406 406 return &phcfg; … … 906 906 907 907 908 MY_DLLEXPORT int 908 PHAPI_EXPORT int 909 909 phGetAudioVersion() 910 910 { … … 932 932 } 933 933 934 MY_DLLEXPORT int 934 PHAPI_EXPORT int 935 935 phGetNatInfo(char *ntstr, int ntlen, char *fwip, int fwiplen) 936 936 { … … 946 946 947 947 948 MY_DLLEXPORT int948 PHAPI_EXPORT int 949 949 phSetUaString(const char *uastr) 950 950 { … … 954 954 955 955 956 MY_DLLEXPORT956 PHAPI_EXPORT 957 957 phAddCustomHeader(const char *reqnames, const char *hdrname, const char *hdrval) 958 958 { … … 1041 1041 1042 1042 1043 MY_DLLEXPORT int 1043 PHAPI_EXPORT int 1044 1044 phLinePlaceCall2(int vlid, const char *uri, void *userdata, int rcid, int streams) 1045 1045 { … … 1048 1048 1049 1049 1050 MY_DLLEXPORT int 1050 PHAPI_EXPORT int 1051 1051 phLinePlaceCall3(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev) 1052 1052 { … … 1054 1054 } 1055 1055 1056 MY_DLLEXPORT int 1056 PHAPI_EXPORT int 1057 1057 phLinePlaceCall4(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev, const char *audio_addr, const char *video_addr) 1058 1058 { … … 1062 1062 1063 1063 1064 MY_DLLEXPORT int 1064 PHAPI_EXPORT int 1065 1065 phLinePlaceMcCall(int vlid, const char *uri, void *userdata, int streams, const char *adev) 1066 1066 { … … 1229 1229 1230 1230 1231 MY_DLLEXPORT int 1231 PHAPI_EXPORT int 1232 1232 phLinePlaceCall(int vlid, const char *uri, void *userdata, int rcid) 1233 1233 { … … 1235 1235 } 1236 1236 1237 MY_DLLEXPORT int1237 PHAPI_EXPORT int 1238 1238 phLineSendMessage(int vlid, const char *uri, const char *buff, const char *mime) 1239 1239 { … … 1245 1245 1246 1246 1247 MY_DLLEXPORT int1247 PHAPI_EXPORT int 1248 1248 phLineSendMessage2(int vlid, const char *target, const char *uri, 1249 1249 const char *buff, const char *mime, const char *sipcid) … … 1285 1285 } 1286 1286 1287 MY_DLLEXPORT int1287 PHAPI_EXPORT int 1288 1288 phCallSendMessage(int cid, const char *buff, const char *mime) 1289 1289 { … … 1310 1310 1311 1311 1312 MY_DLLEXPORT int 1312 PHAPI_EXPORT int 1313 1313 phSendMessage(const char *from, const char *uri, 1314 1314 const char *buff, const char *mime) … … 1329 1329 1330 1330 1331 MY_DLLEXPORT int 1331 PHAPI_EXPORT int 1332 1332 phLineSubscribe(int vlid, const char *uri, const int winfo) 1333 1333 { … … 1359 1359 1360 1360 1361 MY_DLLEXPORT int 1361 PHAPI_EXPORT int 1362 1362 phLineUnsubscribe(int vlid, const char *uri, const int winfo) 1363 1363 { … … 1392 1392 1393 1393 1394 MY_DLLEXPORT int1394 PHAPI_EXPORT int 1395 1395 phSubscribe(const char *from, const char *to, const int winfo) 1396 1396 { … … 1412 1412 1413 1413 1414 MY_DLLEXPORT int 1414 PHAPI_EXPORT int 1415 1415 phLinePublish(int vlid, const char *uri, int winfo, const char * content_type, const char * content) 1416 1416 { … … 1420 1420 1421 1421 1422 MY_DLLEXPORT int 1422 PHAPI_EXPORT int 1423 1423 phLinePublish2(int vlid, const char *uri, const char *evt, const char *ctt, const char *body, int expires) 1424 1424 { … … 1465 1465 } 1466 1466 1467 MY_DLLEXPORT int1467 PHAPI_EXPORT int 1468 1468 phPublish(const char *from, const char *to, const int winfo, const char * content_type, const char * content) 1469 1469 { … … 1485 1485 } 1486 1486 1487 MY_DLLEXPORT void1487 PHAPI_EXPORT void 1488 1488 phRefresh() 1489 1489 { … … 1496 1496 1497 1497 1498 MY_DLLEXPORT int1498 PHAPI_EXPORT int 1499 1499 phLineSendOptions(int vlid, const char *to) 1500 1500 { … … 1532 1532 1533 1533 1534 MY_DLLEXPORT int 1534 PHAPI_EXPORT int 1535 1535 phSendOptions(const char *from, const char *uri) 1536 1536 { … … 1555 1555 1556 1556 1557 MY_DLLEXPORT int 1557 PHAPI_EXPORT int 1558 1558 phAcceptCall2(int cid, void *userData) 1559 1559 { … … 1561 1561 } 1562 1562 1563 MY_DLLEXPORT int 1563 PHAPI_EXPORT int 1564 1564 phAcceptCall3(int cid, void *userData, int streams) 1565 1565 { … … 1601 1601 1602 1602 1603 MY_DLLEXPORT int 1603 PHAPI_EXPORT int 1604 1604 phAcceptCall4(int cid, void *userData, int streams, const char *audio_addr, const char *video_addr) 1605 1605 { … … 1708 1708 } 1709 1709 1710 MY_DLLEXPORT int 1710 PHAPI_EXPORT int 1711 1711 phAcceptMcCall(int cid, const char *adev, const char *audioaddr, int port) 1712 1712 { … … 1771 1771 } 1772 1772 1773 MY_DLLEXPORT int 1773 PHAPI_EXPORT int 1774 1774 phAcceptMcCall2(int cid, int mcid) 1775 1775 { … … 1849 1849 1850 1850 1851 MY_DLLEXPORT int1851 PHAPI_EXPORT int 1852 1852 phLineGetMobility(int vlid) 1853 1853 { … … 2097 2097 2098 2098 2099 MY_DLLEXPORT int 2099 PHAPI_EXPORT int 2100 2100 phAcceptCall5(int cid, void *userData, int streams, ...) 2101 2101 { … … 2127 2127 2128 2128 2129 MY_DLLEXPORT int 2129 PHAPI_EXPORT int 2130 2130 phRejectCall(int cid, int reason) 2131 2131 { … … 2150 2150 } 2151 2151 2152 MY_DLLEXPORT int 2152 PHAPI_EXPORT int 2153 2153 phRejectCall2(int cid, const char *uri,int reason) 2154 2154 { … … 2175 2175 2176 2176 2177 MY_DLLEXPORT int 2177 PHAPI_EXPORT int 2178 2178 phRingingCall(int cid) 2179 2179 { … … 2192 2192 2193 2193 2194 MY_DLLEXPORT int 2194 PHAPI_EXPORT int 2195 2195 phCloseCall(int cid) 2196 2196 { … … 2249 2249 2250 2250 2251 MY_DLLEXPORT int phCallStartMedia(int cid, int streamFlags)2251 PHAPI_EXPORT int phCallStartMedia(int cid, int streamFlags) 2252 2252 { 2253 2253 int i; … … 2268 2268 } 2269 2269 2270 MY_DLLEXPORT int 2270 PHAPI_EXPORT int 2271 2271 phBlindTransferCall(int cid, const char *uri) 2272 2272 { … … 2299 2299 2300 2300 2301 MY_DLLEXPORT int 2301 PHAPI_EXPORT int 2302 2302 phTransferCall(int cid, int tcid) 2303 2303 { … … 2343 2343 2344 2344 2345 MY_DLLEXPORT int 2345 PHAPI_EXPORT int 2346 2346 phSetContact(int vlid, const char *uri) 2347 2347 { … … 2349 2349 } 2350 2350 2351 MY_DLLEXPORT int 2351 PHAPI_EXPORT int 2352 2352 phSetContact2(int vlid, const char *uri, int translate) 2353 2353 { … … 2387 2387 2388 2388 2389 MY_DLLEXPORT int 2389 PHAPI_EXPORT int 2390 2390 phConf(int cid1, int cid2) 2391 2391 { … … 2402 2402 } 2403 2403 2404 MY_DLLEXPORT int 2404 PHAPI_EXPORT int 2405 2405 phStopConf(int cid1, int cid2) 2406 2406 { … … 2420 2420 2421 2421 2422 MY_DLLEXPORT int 2422 PHAPI_EXPORT int 2423 2423 phResumeCall(int cid) 2424 2424 { … … 2462 2462 2463 2463 2464 MY_DLLEXPORT int 2464 PHAPI_EXPORT int 2465 2465 phHoldCall(int cid) 2466 2466 { … … 2495 2495 2496 2496 2497 MY_DLLEXPORT int 2497 PHAPI_EXPORT int 2498 2498 phSetFollowMe(const char *uri) 2499 2499 { … … 2513 2513 2514 2514 2515 MY_DLLEXPORT int 2515 PHAPI_EXPORT int 2516 2516 phSetBusy(int busyFlag) 2517 2517 { … … 2521 2521 2522 2522 2523 MY_DLLEXPORT int 2523 PHAPI_EXPORT int 2524 2524 phLineSetFollowMe(int vlid, const char *uri) 2525 2525 { … … 2546 2546 2547 2547 2548 MY_DLLEXPORT int 2548 PHAPI_EXPORT int 2549 2549 phLineSetBusy(int vlid, int busyFlag) 2550 2550 { … … 2564 2564 2565 2565 2566 MY_DLLEXPORT int2566 PHAPI_EXPORT int 2567 2567 phAddAuthInfo(const char *username, const char *userid, 2568 2568 const char *passwd, const char *ha1, … … 2656 2656 2657 2657 2658 MY_DLLEXPORT int 2658 PHAPI_EXPORT int 2659 2659 phSendDtmf(int cid, int dtmfEvent, int mode) 2660 2660 { … … 2723 2723 2724 2724 2725 MY_DLLEXPORT int 2725 PHAPI_EXPORT int 2726 2726 phPlaySoundFile(const char *fileName , int loop) 2727 2727 { … … 2731 2731 2732 2732 2733 MY_DLLEXPORT int 2733 PHAPI_EXPORT int 2734 2734 phSendSoundFile(int cid, const char *fileName) 2735 2735 { … … 2751 2751 2752 2752 2753 MY_DLLEXPORT int 2753 PHAPI_EXPORT int 2754 2754 phStopSoundFile() 2755 2755 { … … 2758 2758 2759 2759 2760 MY_DLLEXPORT int 2760 PHAPI_EXPORT int 2761 2761 phSetSpeakerVolume(int cid, int volume) 2762 2762 { … … 2774 2774 2775 2775 2776 MY_DLLEXPORT int 2776 PHAPI_EXPORT int 2777 2777 phSetRecLevel(int cid, int level) 2778 2778 { … … 2792 2792 2793 2793 2794 MY_DLLEXPORT int 2794 PHAPI_EXPORT int 2795 2795 phAddVline(const char* username, const char *server, const char* proxy, int regTimeout) 2796 2796 { … … 2832 2832 #define nonull(x) ((x) ? (x) : emptystr) 2833 2833 2834 MY_DLLEXPORT int2834 PHAPI_EXPORT int 2835 2835 phAddVline2(const char *displayname, const char* username, const char *server, const char* proxy, int regTimeout) 2836 2836 { 2837 2837 return phAddVline3(displayname, username, server, proxy, regTimeout, 0); 2838 2838 } 2839 MY_DLLEXPORT int2839 PHAPI_EXPORT int 2840 2840 phAddVline3(const char *displayname, const char* username, const char *server, const char* proxy, int regTimeout, int mobility) 2841 2841 … … 2954 2954 2955 2955 2956 MY_DLLEXPORT int 2956 PHAPI_EXPORT int 2957 2957 phDelVline(int vlid) 2958 2958 { … … 3001 3001 3002 3002 3003 MY_DLLEXPORT int phChangeAudioDevices(const char *devstr)3003 PHAPI_EXPORT int phChangeAudioDevices(const char *devstr) 3004 3004 { 3005 3005 if (devstr) … … 3859 3859 3860 3860 3861 MY_DLLEXPORT int3861 PHAPI_EXPORT int 3862 3862 phCallGetSipCallID(int cid, char* buf, int bufsize) 3863 3863 { … … 3889 3889 3890 3890 3891 MY_DLLEXPORT int 3891 PHAPI_EXPORT int 3892 3892 phInit(phCallbacks_t *cbk, char * server, int asyncmode) 3893 3893 { … … 4054 4054 * terminate ph api 4055 4055 */ 4056 MY_DLLEXPORT void 4056 PHAPI_EXPORT void 4057 4057 phTerminate() 4058 4058 { … … 4128 4128 * poll for phApi events.c 4129 4129 */ 4130 MY_DLLEXPORT int4130 PHAPI_EXPORT int 4131 4131 phPoll() 4132 4132 { … … 4207 4207 4208 4208 4209 MY_DLLEXPORT int phCallGetCodecs(int cid, char *audioCodecBuf, int aBufLen, char *videoCodecBuf, int vBufLen)4209 PHAPI_EXPORT int phCallGetCodecs(int cid, char *audioCodecBuf, int aBufLen, char *videoCodecBuf, int vBufLen) 4210 4210 { 4211 4211 phcall_t *ca = ph_locate_call_by_cid(cid); … … 4229 4229 } 4230 4230 4231 MY_DLLEXPORT int 4231 PHAPI_EXPORT int 4232 4232 phCallGetMediaInfo(int cid, struct ph_confirmed_media_info *mi) 4233 4233 { … … 6020 6020 6021 6021 #ifdef QOS_DEBUG_ENABLE 6022 MY_DLLEXPORT void phrtcp_QoS_enable_rtcp_report(int ToF)6022 PHAPI_EXPORT void phrtcp_QoS_enable_rtcp_report(int ToF) 6023 6023 { 6024 6024 ortcp_enable_rtcp_report(ToF); 6025 6025 } 6026 MY_DLLEXPORT void phrtcp_report_set_cb(jt_rtcpCallbacks_t *cbk)6026 PHAPI_EXPORT void phrtcp_report_set_cb(jt_rtcpCallbacks_t *cbk) 6027 6027 { 6028 6028 ortcp_report_set_cb(cbk); 6029 6029 } 6030 MY_DLLEXPORT int phrtcp_report_begin()6030 PHAPI_EXPORT int phrtcp_report_begin() 6031 6031 { 6032 6032 phrtcp_QoS_enable_rtcp_report(1); 6033 6033 ortcp_report_begin(); 6034 6034 } 6035 MY_DLLEXPORT int phrtcp_report_end()6035 PHAPI_EXPORT int phrtcp_report_end() 6036 6036 { 6037 6037 ortcp_report_end(); -
phapi/phapi.h
r74 r75 123 123 #ifdef WIN32 124 124 #if defined(BUILD_PHAPI_DLL) 125 #define MY_DLLEXPORT __declspec(dllexport)125 #define PHAPI_EXPORT __declspec(dllexport) 126 126 #elif defined(PHAPI_DLL) 127 #define MY_DLLEXPORT __declspec(dllimport)127 #define PHAPI_EXPORT __declspec(dllimport) 128 128 #endif 129 129 #endif 130 130 131 #ifndef MY_DLLEXPORT132 #define MY_DLLEXPORT131 #ifndef PHAPI_EXPORT 132 #define PHAPI_EXPORT 133 133 #endif 134 134 … … 191 191 * @return -1 in case of error vlid in case of success 192 192 */ 193 MY_DLLEXPORT int phAddVline(const char* username, const char *host, const char* proxy, int regTimeout);194 MY_DLLEXPORT int phAddVline2(const char* displayname, const char* username, const char *host, const char* proxy, int regTimeout);195 MY_DLLEXPORT int phAddVline3(const char* displayname, const char* username, const char *host, const char* proxy, int regTimeout, int mobility);193 PHAPI_EXPORT int phAddVline(const char* username, const char *host, const char* proxy, int regTimeout); 194 PHAPI_EXPORT int phAddVline2(const char* displayname, const char* username, const char *host, const char* proxy, int regTimeout); 195 PHAPI_EXPORT int phAddVline3(const char* displayname, const char* username, const char *host, const char* proxy, int regTimeout, int mobility); 196 196 197 197 /** … … 202 202 * @return 0 in case of success 203 203 */ 204 MY_DLLEXPORT int phDelVline(int vlid);204 PHAPI_EXPORT int phDelVline(int vlid); 205 205 206 206 … … 242 242 * @return if positive the call id else error indication 243 243 */ 244 MY_DLLEXPORT int phLinePlaceCall(int vlid, const char *uri, void *userData, int rcid);245 MY_DLLEXPORT int phLinePlaceCall2(int vlid, const char *uri, void *userData, int rcid, int streams);246 MY_DLLEXPORT int phLinePlaceCall4(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev, const char *audio_addr, const char *video_addr);247 MY_DLLEXPORT int phLinePlaceCall5(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev, ...);244 PHAPI_EXPORT int phLinePlaceCall(int vlid, const char *uri, void *userData, int rcid); 245 PHAPI_EXPORT int phLinePlaceCall2(int vlid, const char *uri, void *userData, int rcid, int streams); 246 PHAPI_EXPORT int phLinePlaceCall4(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev, const char *audio_addr, const char *video_addr); 247 PHAPI_EXPORT int phLinePlaceCall5(int vlid, const char *uri, void *userdata, int rcid, int streams, const char *adev, ...); 248 248 249 249 /** … … 253 253 * @return 0 in case of success 254 254 */ 255 MY_DLLEXPORT int phAcceptCall2(int cid, void *userData);256 MY_DLLEXPORT int phAcceptCall3(int cid, void *userData, int streams);257 MY_DLLEXPORT int phAcceptCall4(int cid, void *userData, int streams, const char *audio_addr, const char *video_addr);258 MY_DLLEXPORT int phAcceptCall5(int cid, void *userData, int streams, ...);255 PHAPI_EXPORT int phAcceptCall2(int cid, void *userData); 256 PHAPI_EXPORT int phAcceptCall3(int cid, void *userData, int streams); 257 PHAPI_EXPORT int phAcceptCall4(int cid, void *userData, int streams, const char *audio_addr, const char *video_addr); 258 PHAPI_EXPORT int phAcceptCall5(int cid, void *userData, int streams, ...); 259 259 260 260 /* … … 266 266 * @param port port number for the audio stream 267 267 */ 268 MY_DLLEXPORT int phAcceptMcCall(int cid, const char *adev, const char *audioaddr, int port);268 PHAPI_EXPORT int phAcceptMcCall(int cid, const char *adev, const char *audioaddr, int port); 269 269 270 270 … … 276 276 * @param port port number for the audio stream 277 277 */ 278 MY_DLLEXPORT int phAcceptMcCall2(int cid, int mcid);278 PHAPI_EXPORT int phAcceptMcCall2(int cid, int mcid); 279 279 280 280 … … 289 289 * @param adev audio device for call 290 290 */ 291 MY_DLLEXPORT int phLinePlaceMcCall(int vlid, const char *uri, void *userdata, int streams, const char *adev);291 PHAPI_EXPORT int phLinePlaceMcCall(int vlid, const char *uri, void *userdata, int streams, const char *adev); 292 292 293 293 … … 304 304 * @return 0 in case of success 305 305 */ 306 MY_DLLEXPORT int phRejectCall(int cid, int reason);307 MY_DLLEXPORT int phRejectCall2(int cid, const char *uri,int reason);306 PHAPI_EXPORT int phRejectCall(int cid, int reason); 307 PHAPI_EXPORT int phRejectCall2(int cid, const char *uri,int reason); 308 308 309 309 … … 314 314 * @return 0 in case of success 315 315 */ 316 MY_DLLEXPORT int phRingingCall(int cid);316 PHAPI_EXPORT int phRingingCall(int cid); 317 317 318 318 /** … … 322 322 * @return 0 in case of success 323 323 */ 324 MY_DLLEXPORT int phCloseCall(int cid);324 PHAPI_EXPORT int phCloseCall(int cid); 325 325 326 326 /** … … 331 331 * @return txid used in the subsequent transferProgress callback 332 332 */ 333 MY_DLLEXPORT int phBlindTransferCall(int cid, const char *uri);333 PHAPI_EXPORT int phBlindTransferCall(int cid, const char *uri); 334 334 335 335 /** … … 340 340 * @return txid used in the subsequent transferProgress callback 341 341 */ 342 MY_DLLEXPORT int phTransferCall(int cid, int targetCid);342 PHAPI_EXPORT int phTransferCall(int cid, int targetCid); 343 343 344 344 /** … … 348 348 * @return 0 in case of success 349 349 */ 350 MY_DLLEXPORT int phResumeCall(int cid);350 PHAPI_EXPORT int phResumeCall(int cid); 351 351 352 352 /** … … 356 356 * @return 0 in case of success 357 357 */ 358 MY_DLLEXPORT int phHoldCall(int cid);359 360 361 362 MY_DLLEXPORT int phCallStartMedia(int cid, int streamFlags);363 MY_DLLEXPORT int phCallGetMediaInfo(int cid, struct ph_confirmed_media_info *mi);358 PHAPI_EXPORT int phHoldCall(int cid); 359 360 361 362 PHAPI_EXPORT int phCallStartMedia(int cid, int streamFlags); 363 PHAPI_EXPORT int phCallGetMediaInfo(int cid, struct ph_confirmed_media_info *mi); 364 364 365 365 /** … … 370 370 * @param bufsize size of te idbuf 371 371 */ 372 MY_DLLEXPORT int phCallGetSipCallID(int cid, char *idbuf, int bufsize);372 PHAPI_EXPORT int phCallGetSipCallID(int cid, char *idbuf, int bufsize); 373 373 374 374 … … 386 386 387 387 388 MY_DLLEXPORT int phLineSetFollowMe(int vlid, const char *uri);388 PHAPI_EXPORT int phLineSetFollowMe(int vlid, const char *uri); 389 389 390 390 /** … … 395 395 * @return 0 in case of success 396 396 */ 397 MY_DLLEXPORT int phLineSetBusy(int vlid, int busyFlag);397 PHAPI_EXPORT int phLineSetBusy(int vlid, int busyFlag); 398 398 399 399 … … 415 415 * @return if positive msgid 416 416 */ 417 MY_DLLEXPORT int phLineSendMessage(int vlid, const char *uri, 417 PHAPI_EXPORT int phLineSendMessage(int vlid, const char *uri, 418 418 const char *buff, const char *mime); 419 MY_DLLEXPORT int phLineSendMessage2(int vlid, const char *target, const char *uri, 419 PHAPI_EXPORT int phLineSendMessage2(int vlid, const char *target, const char *uri, 420 420 const char *buff, const char *mime, 421 421 const char *sipcid); 422 MY_DLLEXPORT int phCallSendMessage(int cid, const char *buff, const char *mime);422 PHAPI_EXPORT int phCallSendMessage(int cid, const char *buff, const char *mime); 423 423 424 424 … … 443 443 * @return 0 if success else -1 444 444 */ 445 MY_DLLEXPORT int phLineSubscribe(int vlid, const char *to, const int winfo);445 PHAPI_EXPORT int phLineSubscribe(int vlid, const char *to, const int winfo); 446 446 447 447 /** … … 453 453 * @return 0 if success else -1 454 454 */ 455 MY_DLLEXPORT int phLineUnsubscribe(int vlid, const char *to, const int winfo);455 PHAPI_EXPORT int phLineUnsubscribe(int vlid, const char *to, const int winfo); 456 456 457 457 /** … … 467 467 * @return 0 if success else -1 468 468 */ 469 MY_DLLEXPORT int phLinePublish(int vlid, const char *to, const int winfo, const char * content_type, const char * content);470 MY_DLLEXPORT int phLinePublish2(int vlid, const char *to, const char *evt, const char * content_type, const char * content,469 PHAPI_EXPORT int phLinePublish(int vlid, const char *to, const int winfo, const char * content_type, const char * content); 470 PHAPI_EXPORT int phLinePublish2(int vlid, const char *to, const char *evt, const char * content_type, const char * content, 471 471 int expires); 472 472 … … 493 493 #define PH_DTMF_MODE_SIP 4 494 494 #define PH_DTMF_MODE_SIPRELAY 8 495 MY_DLLEXPORT int phSendDtmf(int cid, int dtmfChar, int mode);495 PHAPI_EXPORT int phSendDtmf(int cid, int dtmfChar, int mode); 496 496 497 497 /** … … 503 503 * @return 0 in case of success 504 504 */ 505 MY_DLLEXPORT int phPlaySoundFile(const char *fileName , int loop);505 PHAPI_EXPORT int phPlaySoundFile(const char *fileName , int loop); 506 506 507 507 /** … … 510 510 * @return 0 in case of success 511 511 */ 512 MY_DLLEXPORT int phStopSoundFile( void );512 PHAPI_EXPORT int phStopSoundFile( void ); 513 513 514 514 /** … … 520 520 * @return 0 in case of success 521 521 */ 522 MY_DLLEXPORT int phSendSoundFile(int cid, const char *fileName);522 PHAPI_EXPORT int phSendSoundFile(int cid, const char *fileName); 523 523 524 524 /** … … 529 529 * @return 0 in case of success 530 530 */ 531 MY_DLLEXPORT int phSetSpeakerVolume(int cid, int volume);531 PHAPI_EXPORT int phSetSpeakerVolume(int cid, int volume); 532 532 533 533 /** … … 538 538 * @return 0 in case of success 539 539 */ 540 MY_DLLEXPORT int phSetRecLevel(int cid, int level);540 PHAPI_EXPORT int phSetRecLevel(int cid, int level); 541 541 542 542 /** … … 549 549 * 550 550 */ 551 MY_DLLEXPORT int phChangeAudioDevices(const char *devstr);551 PHAPI_EXPORT int phChangeAudioDevices(const char *devstr); 552 552 553 553 … … 559 559 * @return 0 if succeeds, an error value otherwise 560 560 */ 561 MY_DLLEXPORT int phSetUaString(const char *uastr);561 PHAPI_EXPORT int phSetUaString(const char *uastr); 562 562 563 563 … … 569 569 * @return 0 if succeeds, an error value otherwise 570 570 */ 571 MY_DLLEXPORT int phAddCustomHeader(const char *reqnames, const char *hdrname, const char *hdrval);571 PHAPI_EXPORT int phAddCustomHeader(const char *reqnames, const char *hdrname, const char *hdrval); 572 572 573 573 … … 594 594 * 595 595 */ 596 MY_DLLEXPORT int phConfCreate(int cid);596 PHAPI_EXPORT int phConfCreate(int cid); 597 597 598 598 /** … … 604 604 * 605 605 */ 606 MY_DLLEXPORT int phLineConfInvite(int vlid, int cfid, const char *uri);606 PHAPI_EXPORT int phLineConfInvite(int vlid, int cfid, const char *uri); 607 607 608 608 /** … … 615 615 * 616 616 */ 617 MY_DLLEXPORT int phConfAddMember(int cfid, int callid);617 PHAPI_EXPORT int phConfAddMember(int cfid, int callid); 618 618 619 619 /** … … 628 628 * 629 629 */ 630 MY_DLLEXPORT int phConfRemoveMember(int cfid, int cid);630 PHAPI_EXPORT int phConfRemoveMember(int cfid, int cid); 631 631 632 632 /** … … 639 639 * 640 640 */ 641 MY_DLLEXPORT int phConfClose(int cfid);641 PHAPI_EXPORT int phConfClose(int cfid); 642 642 643 643 … … 652 652 * 653 653 */ 654 MY_DLLEXPORT int phConf(int cid1, int cid2);654 PHAPI_EXPORT int phConf(int cid1, int cid2); 655 655 656 656 /** … … 662 662 * 663 663 */ 664 MY_DLLEXPORT int phStopConf(int cid1, int cid2);664 PHAPI_EXPORT int phStopConf(int cid1, int cid2); 665 665 666 666 … … 678 678 * 679 679 */ 680 MY_DLLEXPORT int phSetContact(int vlid, const char *uri);681 MY_DLLEXPORT int phSetContact2(int vlid, const char *uri, int translate);680 PHAPI_EXPORT int phSetContact(int vlid, const char *uri); 681 PHAPI_EXPORT int phSetContact2(int vlid, const char *uri, int translate); 682 682 683 683 … … 690 690 * @return -- 0 in case of success 691 691 */ 692 MY_DLLEXPORT int phLineGetSipAddress(int vlid, char buf[], int bufsize);692 PHAPI_EXPORT int phLineGetSipAddress(int vlid, char buf[], int bufsize); 693 693 694 694 /** … … 699 699 * @param to -- uri to put in the To: header 700 700 */ 701 MY_DLLEXPORT int phLineSendOptions(int vlid, const char *to);701 PHAPI_EXPORT int phLineSendOptions(int vlid, const char *to); 702 702 703 703 /** … … 711 711 * 712 712 */ 713 MY_DLLEXPORT int phGetNatInfo(char *natType, int ntlen, char *fwip, int fwiplen);713 PHAPI_EXPORT int phGetNatInfo(char *natType, int ntlen, char *fwip, int fwiplen); 714 714 715 715 enum ph_line_mobility … … 729 729 * 730 730 */ 731 MY_DLLEXPORT int phLineGetMobility(int vlid);731 PHAPI_EXPORT int phLineGetMobility(int vlid); 732 732 733 733 … … 744 744 */ 745 745 746 MY_DLLEXPORT int phCallGetCodecs(int cid, char *audioCodecBuf, int aBufLen, char *videoCodecBuf, int vBufLen); 746 PHAPI_EXPORT int phCallGetCodecs(int cid, char *audioCodecBuf, int aBufLen, char *videoCodecBuf, int vBufLen); 747 747 748 748 … … 751 751 * @brief Try to crash the application 752 752 */ 753 MY_DLLEXPORT int phCrash();753 PHAPI_EXPORT int phCrash(); 754 754 755 755 … … 934 934 * 935 935 */ 936 MY_DLLEXPORT extern phCallbacks_t *phcb;936 PHAPI_EXPORT extern phCallbacks_t *phcb; 937 937 938 938 /** … … 949 949 * in client/server mode this parameter has client local meaning. 950 950 */ 951 MY_DLLEXPORT int phInit(phCallbacks_t *cbk, char *server, int asyncmode);951 PHAPI_EXPORT int phInit(phCallbacks_t *cbk, char *server, int asyncmode); 952 952 953 953 /** 954 954 * Terminate phApi 955 955 */ 956 MY_DLLEXPORT void phTerminate( void );956 PHAPI_EXPORT void phTerminate( void ); 957 957 958 958 /** … … 968 968 * @return 0 in case of success 969 969 */ 970 MY_DLLEXPORT int phAddAuthInfo(const char *username, const char *userid,970 PHAPI_EXPORT int phAddAuthInfo(const char *username, const char *userid, 971 971 const char *passwd, const char *ha1, 972 972 const char *realm); … … 986 986 * setup a tunnel with given parameters. 987 987 */ 988 MY_DLLEXPORT int phTunnelConfig(const char* http_proxy, const int http_proxy_port,988 PHAPI_EXPORT int phTunnelConfig(const char* http_proxy, const int http_proxy_port, 989 989 const char* httpt_server, const int httpt_server_port, 990 990 const char *proxy_user, const char* proxy_passwd, … … 996 996 0 : Otherwise 997 997 */ 998 MY_DLLEXPORT extern int phIsInitialized;998 PHAPI_EXPORT extern int phIsInitialized; 999 999 1000 1000 /** … … 1004 1004 * 1005 1005 */ 1006 MY_DLLEXPORT int phGetVersion(void);1006 PHAPI_EXPORT int phGetVersion(void); 1007 1007 1008 1008 /** 1009 1009 * poll for phApi events 1010 1010 */ 1011 MY_DLLEXPORT int phPoll( void );1011 PHAPI_EXPORT int phPoll( void ); 1012 1012 1013 1013 … … 1015 1015 * Set debugging level (between 0 and 9) 1016 1016 */ 1017 MY_DLLEXPORT void phSetDebugLevel(int);1018 MY_DLLEXPORT int phGetDebugLevel();1017 PHAPI_EXPORT void phSetDebugLevel(int); 1018 PHAPI_EXPORT int phGetDebugLevel(); 1019 1019 1020 1020 … … 1022 1022 * Define log file name 1023 1023 */ 1024 MY_DLLEXPORT void phSetLogFileName(const char *name);1024 PHAPI_EXPORT void phSetLogFileName(const char *name); 1025 1025 1026 1026 … … 1028 1028 * Internal function. Do a register for all virtual lines 1029 1029 */ 1030 MY_DLLEXPORT void phRefresh(void);1030 PHAPI_EXPORT void phRefresh(void); 1031 1031 1032 1032 /** 1033 1033 * In the case of rpc mode, the phapi server port 1034 1034 */ 1035 MY_DLLEXPORT extern unsigned short phServerPort;1035 PHAPI_EXPORT extern unsigned short phServerPort; 1036 1036 1037 1037 … … 1047 1047 /********************VIDEO*********************/ 1048 1048 1049 MY_DLLEXPORT int phVideoControlChangeFps(int callid, int fps);1050 MY_DLLEXPORT int phVideoControlChangeQuality(int callid, int quality);1051 MY_DLLEXPORT int phVideoControlSetCameraFlip(int flip);1052 MY_DLLEXPORT int phVideoControlSetWebcamCaptureResolution(int width, int height);1053 MY_DLLEXPORT int phVideoControlSetBitrate(int callid, int maxrate, int minrate);1054 MY_DLLEXPORT void phVideoControlCodecSet(int, struct ph_videocodecconfig_s *);1055 MY_DLLEXPORT void phVideoControlCodecGet(int, struct ph_videocodecconfig_s *);1049 PHAPI_EXPORT int phVideoControlChangeFps(int callid, int fps); 1050 PHAPI_EXPORT int phVideoControlChangeQuality(int callid, int quality); 1051 PHAPI_EXPORT int phVideoControlSetCameraFlip(int flip); 1052 PHAPI_EXPORT int phVideoControlSetWebcamCaptureResolution(int width, int height); 1053 PHAPI_EXPORT int phVideoControlSetBitrate(int callid, int maxrate, int minrate); 1054 PHAPI_EXPORT void phVideoControlCodecSet(int, struct ph_videocodecconfig_s *); 1055 PHAPI_EXPORT void phVideoControlCodecGet(int, struct ph_videocodecconfig_s *); 1056 1056 1057 1057 … … 1135 1135 */ 1136 1136 1137 MY_DLLEXPORT ph_config_t *ph_get_config();1137 PHAPI_EXPORT ph_config_t *ph_get_config(); 1138 1138 1139 1139 1140 1140 /* JT */ 1141 1141 #ifdef QOS_DEBUG_ENABLE 1142 MY_DLLEXPORT void phrtcp_QoS_enable_rtcp_report(int ToF);1143 MY_DLLEXPORT void phrtcp_report_set_cb(jt_rtcpCallbacks_t *cbk);1144 MY_DLLEXPORT int phrtcp_report_begin();1145 MY_DLLEXPORT int phrtcp_report_end();1142 PHAPI_EXPORT void phrtcp_QoS_enable_rtcp_report(int ToF); 1143 PHAPI_EXPORT void phrtcp_report_set_cb(jt_rtcpCallbacks_t *cbk); 1144 PHAPI_EXPORT int phrtcp_report_begin(); 1145 PHAPI_EXPORT int phrtcp_report_end(); 1146 1146 #endif /* QOS_DEBUG_ENABLE */ 1147 1147
Note: See TracChangeset
for help on using the changeset viewer.
