Changeset 4:f97202eba572
- Timestamp:
- 05/23/06 19:40:31 (3 years ago)
- Files:
-
- .hgignore (modified) (1 diff)
- eXosip/include/eXosip/eXosip.h (modified) (5 diffs)
- eXosip/src/eXosip.c (modified) (13 diffs)
- eXosip/src/eXutils.c (modified) (1 diff)
- eXosip/src/jcallback.c (modified) (8 diffs)
- eXosip/src/jdialog.c (modified) (3 diffs)
- eXosip/src/jevents.c (modified) (1 diff)
- eXosip/src/jpipe.c (modified) (2 diffs)
- eXosip/src/jrequest.c (modified) (2 diffs)
- eXosip/src/jresponse.c (modified) (13 diffs)
- eXosip/src/misc.c (modified) (1 diff)
- eXosip/src/sdp_offans.c (modified) (2 diffs)
- eXosip/src/udp.c (modified) (4 diffs)
- httptunnel/httptunnel.c (modified) (5 diffs)
- libosip2/include/osip2/osip.h (modified) (2 diffs)
- libosip2/include/osip2/osip_dialog.h (modified) (1 diff)
- libosip2/src/osip2/ict.c (modified) (1 diff)
- libosip2/src/osip2/ict_fsm.c (modified) (1 diff)
- libosip2/src/osip2/ist.c (modified) (1 diff)
- libosip2/src/osip2/ist_fsm.c (modified) (1 diff)
- libosip2/src/osip2/nict.c (modified) (1 diff)
- libosip2/src/osip2/nict_fsm.c (modified) (1 diff)
- libosip2/src/osip2/nist.c (modified) (1 diff)
- libosip2/src/osip2/nist_fsm.c (modified) (1 diff)
- libosip2/src/osip2/osip.c (modified) (2 diffs)
- libosip2/src/osip2/osip_dialog.c (modified) (3 diffs)
- libosip2/src/osip2/osip_event.c (modified) (1 diff)
- libosip2/src/osip2/osip_transaction.c (modified) (3 diffs)
- libosip2/src/osip2/port_condv.c (modified) (1 diff)
- libosip2/src/osipparser2/osip_port.c (modified) (1 diff)
- libosip2/src/osipparser2/osip_rfc3264.c (modified) (2 diffs)
- libosip2/src/osipparser2/osip_uri.c (modified) (1 diff)
- libosip2/src/osipparser2/sdp_message.c (modified) (1 diff)
- libs/curl/SConscript (modified) (1 diff)
- libs/curl/buildconf.bat (modified) (1 diff)
- libs/pixertool/include/pixertool/pixertool.h (modified) (3 diffs)
- libs/pixertool/src/ffmpeg/ffmpeg-pixertool.c (modified) (3 diffs)
- libs/pixertool/src/pixertool.cpp (modified) (2 diffs)
- libs/pixertool/src/quicktime/quicktime-pixertool.c (modified) (1 diff)
- libs/util/cutil/SConscript (modified) (1 diff)
- libs/util/cutil/include/cutil/safe-strings.h (added)
- libs/util/cutil/src/strlcat.c (added)
- libs/util/cutil/src/strlcpy.c (added)
- libs/util/util/include/util/Event.h (modified) (1 diff)
- libs/util/util/include/util/File.h (modified) (2 diffs)
- libs/util/util/include/util/Picture.h (modified) (2 diffs)
- libs/util/util/include/util/String.h (modified) (2 diffs)
- libs/util/util/include/util/StringList.h (modified) (1 diff)
- libs/util/util/include/util/Uuid.h (added)
- libs/util/util/src/File.cpp (modified) (3 diffs)
- libs/util/util/src/Logger.cpp (modified) (2 diffs)
- libs/util/util/src/Path.cpp (modified) (2 diffs)
- libs/util/util/src/Picture.cpp (modified) (1 diff)
- libs/util/util/src/String.cpp (modified) (2 diffs)
- libs/util/util/src/StringList.cpp (modified) (1 diff)
- libs/util/util/src/exception/Exception.cpp (added)
- libs/util/util/src/win/Uuid.cpp (modified) (1 diff)
- libs/webcam/include/IWebcamDriver.h (modified) (1 diff)
- libs/webcam/include/webcam/IWebcamDriver.h (modified) (15 diffs)
- libs/webcam/include/webcam/V4LWebcamDriver.h (modified) (1 diff)
- libs/webcam/include/webcam/WebcamDriver.h (modified) (7 diffs)
- libs/webcam/src/WebcamDriver.cpp (modified) (7 diffs)
- libs/webcam/src/quicktime/QuicktimeWebcamDriver.cpp (modified) (10 diffs)
- libs/webcam/src/v4l/V4LWebcamDriver.cpp (modified) (7 diffs)
- libs/webcam/src/webcam.cpp (modified) (2 diffs)
- miniua/SConscript (modified) (2 diffs)
- miniua/miniua.c (modified) (1 diff)
- phapi/SConscript (modified) (4 diffs)
- phapi/phapi.c (modified) (6 diffs)
- phapi/phapi.h (modified) (1 diff)
- phapi/phastream.h (modified) (3 diffs)
- phapi/phaudiodriver.c (modified) (3 diffs)
- phapi/phcodec-avcodec-wrapper.c (modified) (2 diffs)
- phapi/phcodec-avcodec-wrapper.h (modified) (2 diffs)
- phapi/phcodec-h263.c (modified) (2 diffs)
- phapi/phcodec.h (modified) (1 diff)
- phapi/phdebug.h (added)
- phapi/phmbuf.c (modified) (3 diffs)
- phapi/phmbuf.h (modified) (1 diff)
- phapi/phmedia-alsa.c (modified) (5 diffs)
- phapi/phmedia-audio-null.c (modified) (7 diffs)
- phapi/phmedia-audio.c (modified) (38 diffs)
- phapi/phmedia-portaudio.c (modified) (9 diffs)
- phapi/phrecorder.c (added)
- phapi/phrecorder.h (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
.hgignore
r0 r4 8 8 .tar.gz$ 9 9 .tgz$ 10 .vcproj$ 11 .sln$ 12 .suo$ 13 .ncb$ 14 .lib$ 10 15 debug/ 11 16 sconsign eXosip/include/eXosip/eXosip.h
r0 r4 28 28 #include <osipparser2/osip_parser.h> 29 29 #include <osip2/osip_negotiation.h> 30 #include <osip2/osip_dialog.h> 30 31 #include <osip2/osip.h> 31 32 … … 267 268 268 269 270 void eXosip_sdp_negotiation_set_mediaip(osip_negotiation_t *sn); 271 269 272 270 273 /** … … 492 495 int eXosip_retrieve_negotiated_specific_payload(int jid, char *payload_name, int pnsize); 493 496 497 int eXosip_retrieve_sdp_negotiation_specific_result(osip_negotiation_ctx_t *ctx, char *payload_name, int pnsize); 498 494 499 /** 495 500 * Set a new application context for an existing call … … 575 580 */ 576 581 int eXosip_answer_refer(int jid, int status); 582 583 584 struct eXosip_dialog_t; 585 586 int _eXosip_answer_refer_123456(struct eXosip_call_t *jc, struct eXosip_dialog_t *jd, int code); 577 587 578 588 /** @} */ … … 656 666 * @param expires Time between updates. 657 667 */ 658 int eXosip_subscribe_refresh(int sid, c har *expires);668 int eXosip_subscribe_refresh(int sid, const char *expires); 659 669 660 670 /** eXosip/src/eXosip.c
r0 r4 26 26 #include <eXosip/eXosip_cfg.h> 27 27 28 #include <osip2/osip.h> 28 29 #include <osip2/osip_mt.h> 29 30 #include <osip2/osip_condv.h> … … 846 847 osip_message_t *message; 847 848 osip_transaction_t *transaction; 848 jinfo_t *ji;849 eXosip_msg_t *jm = 0;850 849 851 850 int i; … … 911 910 { 912 911 osip_transaction_t *transaction; 913 osip_event_t *sipevent;914 912 osip_message_t *info; 915 913 eXosip_dialog_t *jd = NULL; … … 955 953 956 954 osip_message_set_content_type(info, content_type); 955 956 if ( ! body ) { 957 OSIP_TRACE (osip_trace 958 (__FILE__, __LINE__, OSIP_ERROR, NULL, 959 "eXosip: string body is NULL! ")); 960 return -2; 961 } 957 962 osip_message_set_body(info, body, strlen(body)); 958 963 … … 2248 2253 eXosip_dialog_t *tjd = NULL; 2249 2254 eXosip_call_t *tjc = NULL; 2250 char *tx_cid_str , *tx_uri_str;2255 char *tx_cid_str; 2251 2256 char *refer_to; 2252 2257 osip_uri_t *txuri; … … 2796 2801 /* modify the REGISTER request */ 2797 2802 { 2798 int osip_cseq_num = osip_atoi(reg->cseq->number); 2799 int length = strlen(reg->cseq->number); 2800 2803 int osip_cseq_num = 0; 2804 int length = 0; 2801 2805 2802 2806 osip_authorization_t *aut; 2803 2807 osip_proxy_authorization_t *proxy_aut; 2804 2808 2809 2810 if ( ! reg->cseq->number ) { 2811 fprintf(stderr, "%s,%d: reg->cseq->number is NULL", __FILE__, __LINE__); 2812 return -1; 2813 } 2814 2815 osip_cseq_num = osip_atoi(reg->cseq->number); 2816 length = strlen(reg->cseq->number); 2817 2818 2805 2819 aut = (osip_authorization_t *)osip_list_get(reg->authorizations, 0); 2806 2820 while (aut!=NULL) … … 2957 2971 /* modify the REGISTER request */ 2958 2972 { 2959 int length = strlen(org_request->cseq->number); 2973 int length; 2974 2975 if ( ! org_request->cseq->number ) { 2976 fprintf(stderr, "%s,%d: org_request->cseq->number is NULL", __FILE__, __LINE__); 2977 return -1; 2978 } 2979 2980 length = strlen(org_request->cseq->number); 2960 2981 osip_cseq_num = osip_atoi(org_request->cseq->number); 2961 2982 … … 3051 3072 3052 3073 osip_remove_transaction(eXosip.j_osip,tr); 3053 __osip_transaction_set_state(tr,MSG_IS_INVITE(org_request) ? ICT_TERMINATED : NICT_TERMINATED);3074 osip_transaction_set_state(tr,MSG_IS_INVITE(org_request) ? ICT_TERMINATED : NICT_TERMINATED); 3054 3075 osip_transaction_set_your_instance(transaction, (void*) jinfo); 3055 3076 … … 3072 3093 osip_message_t *publish; 3073 3094 osip_transaction_t *transaction; 3074 osip_event_t *sipevent;3075 3095 int i; 3076 3096 … … 3110 3130 struct addrinfo *addrinfo; 3111 3131 struct __eXosip_sockaddr addr; 3112 int i,len,oldTtl,n; 3132 int i,len,oldTtl; 3133 socklen_t n; 3113 3134 3114 3135 if (eXosip.j_stop_ua) return -1; … … 3216 3237 } 3217 3238 3218 int eXosip_subscribe_refresh (int sid, c har *expires)3239 int eXosip_subscribe_refresh (int sid, const char *expires) 3219 3240 { 3220 3241 int i; … … 3403 3424 osip_strncpy(subscription_state, "terminated;reason=noresource", 29); 3404 3425 } 3426 3427 if ( ! subscription_state ) { 3428 fprintf(stderr, "%s,%d: subscription_state is NULL", __FILE__, __LINE__); 3429 return -1; 3430 } 3431 3405 3432 tmp = subscription_state + strlen(subscription_state); 3433 3434 3406 3435 if (subscription_status!=EXOSIP_SUBCRSTATE_TERMINATED) 3407 3436 sprintf(tmp, "%i", 180); … … 3508 3537 osip_strncpy(subscription_state, "terminated;reason=noresource", 29); 3509 3538 } 3539 3540 if ( ! subscription_state ) { 3541 fprintf(stderr, "%s,%d: subscription_state is NULL", __FILE__, __LINE__); 3542 return -1; 3543 } 3544 3510 3545 tmp = subscription_state + strlen(subscription_state); 3511 3546 if (jn->n_ss_status!=EXOSIP_SUBCRSTATE_TERMINATED) eXosip/src/eXutils.c
r0 r4 479 479 int error; 480 480 char portbuf[10]; 481 481 482 if (service!=0) 482 483 snprintf(portbuf, sizeof(portbuf), "%i", service); 484 485 if (!hostname) { 486 OSIP_TRACE (osip_trace 487 (__FILE__, __LINE__, OSIP_INFO2, NULL, 488 "hostname NULL.\n")); 489 return -1; 490 } 483 491 484 492 memset (&hints, 0, sizeof (hints)); eXosip/src/jcallback.c
r0 r4 114 114 */ 115 115 int 116 _send_udp( void *buf, int len, int flags, const struct sockaddr *to, int tolen)116 _send_udp(const void *buf, int len, int flags, const struct sockaddr *to, int tolen) 117 117 { 118 118 int res; … … 719 719 if (MSG_IS_RESPONSE_FOR(sip, "OPTIONS")) 720 720 { 721 eXosip_event_t *je;722 721 if (jc==NULL) 723 722 { … … 856 855 { 857 856 osip_message_t *message; 858 int pos = 0;859 857 860 858 if (transaction->ist_context!=NULL) … … 878 876 { 879 877 osip_message_t *message; 880 osip_body_t *body; 881 sdp_message_t *sdp; 882 int i; 883 int pos = 0; 878 884 879 if (transaction->ict_context!=NULL) 885 880 /* local sdp is in INVITE (or ACK!) */ … … 1341 1336 if (MSG_IS_RESPONSE_FOR(sip, "OPTIONS")) 1342 1337 { 1343 eXosip_event_t *je; 1338 1344 1339 if (jc==NULL) 1345 1340 { … … 1480 1475 if (MSG_IS_RESPONSE_FOR(sip, "OPTIONS")) 1481 1476 { 1482 eXosip_event_t *je; 1477 1483 1478 if (jc==NULL) 1484 1479 { … … 1549 1544 if (MSG_IS_RESPONSE_FOR(sip, "OPTIONS")) 1550 1545 { 1551 eXosip_event_t *je; 1546 1552 1547 if (jc==NULL) 1553 1548 { … … 1731 1726 if (MSG_IS_RESPONSE_FOR(sip, "OPTIONS")) 1732 1727 { 1733 eXosip_event_t *je; 1728 1734 1729 if (jc==NULL) 1735 1730 { eXosip/src/jdialog.c
r0 r4 23 23 #endif 24 24 25 #include <time.h> 26 25 27 #include "eXosip2.h" 26 28 … … 175 177 int i; 176 178 eXosip_dialog_t *jd; 177 osip_contact_t *ct;178 179 179 180 *_jd = NULL; … … 229 230 { 230 231 231 printf("eXosip_dialog_free: id = %d jd=%08x\n", jd->d_id, jd);232 printf("eXosip_dialog_free: id = %d jd=%08x\n", jd->d_id, (unsigned int)jd); 232 233 233 234 clean_transaction_list(jd->d_inc_trs); eXosip/src/jevents.c
r0 r4 270 270 if (i==0) 271 271 { 272 int len = strlen(oldbody->body);273 274 272 if (je->msg_body) 275 273 osip_free(je->msg_body); eXosip/src/jpipe.c
r0 r4 18 18 */ 19 19 20 #include "jpipe.h" 21 22 #ifndef _WIN32 23 20 24 21 25 #ifdef ENABLE_MPATROL … … 23 27 #endif 24 28 25 #include "jpipe.h" 26 27 #ifndef WIN32 29 #include <stdlib.h> 30 #include <unistd.h> 31 32 33 34 28 35 29 36 jpipe_t * jpipe () eXosip/src/jrequest.c
r0 r4 117 117 #endif 118 118 int doing_register; 119 char *register_callid_number = NULL;120 119 121 120 i = osip_message_init(&request); … … 575 574 { 576 575 int i; 577 char *replaces;578 576 579 577 if (to!=NULL && *to=='\0') eXosip/src/jresponse.c
r0 r4 270 270 { 271 271 } 272 else if (0==str cmp("110",payload))272 else if (0==strncmp("110",payload,3)) 273 273 { 274 274 sdp_message_a_attribute_add (local_sdp, … … 277 277 osip_strdup ("110 20")); 278 278 } 279 else if (0==str cmp("111",payload))279 else if (0==strncmp("111",payload,3)) 280 280 { 281 281 sdp_message_a_attribute_add (local_sdp, … … 509 509 i = sdp_message_to_str(sdp, &body); 510 510 sdp_message_free(sdp); 511 if ( i!=0) {511 if ( ( i!=0 ) || ( ! body ) ) { 512 512 osip_message_free(response); 513 513 return -1; 514 514 } 515 515 516 i = osip_message_set_body(response, body, strlen(body)); 516 517 if (i!=0) { … … 574 575 } 575 576 576 if (300<=code<=399) 577 { 578 /* Should add contact fields */ 579 /* ... */ 580 } 577 /* eeeeeeekkk! should be OUT of wengophone! */ 578 /* if (300<=code<=399) */ 579 /* { */ 580 /* /\* Should add contact fields *\/ */ 581 /* /\* ... *\/ */ 582 /* } */ 581 583 582 584 osip_message_set_content_length(response, "0"); … … 593 595 594 596 595 int597 extern int 596 598 _eXosip_answer_refer_123456(eXosip_call_t *jc, eXosip_dialog_t *jd, int code) 597 599 { … … 625 627 } 626 628 627 if ( 200<=code<=299)629 if ( ( code >= 200 ) && ( code <= 299) ) 628 630 complete_answer_that_establish_a_dialog(response, tr->orig_request); 629 631 630 if (300<=code<=399) 631 { 632 /* Should add contact fields */ 633 /* ... */ 634 } 632 /* Yet another eeek */ 633 /* if (300<=code<=399) */ 634 /* { */ 635 /* /\* Should add contact fields *\/ */ 636 /* /\* ... *\/ */ 637 /* } */ 635 638 636 639 osip_message_set_content_length(response, "0"); … … 740 743 /* request that estabish a dialog: */ 741 744 /* 12.1.1 UAS Behavior */ 742 {743 745 i = complete_answer_that_establish_a_dialog(*answer, tr->orig_request); 744 746 if (i!=0) goto g2atii_error_1;; /* ?? */ 745 }746 747 747 748 return 0; … … 783 784 } 784 785 785 if (300<=code<=399) 786 { 787 /* Should add contact fields */ 788 /* ... */ 789 } 786 /* just another eeek */ 787 /* if (300<=code<=399) */ 788 /* { */ 789 /* /\* Should add contact fields *\/ */ 790 /* /\* ... *\/ */ 791 /* } */ 790 792 791 793 osip_message_set_content_length(*answer, "0"); … … 923 925 } 924 926 927 if ( ! body ) { 928 fprintf(stderr, "%s,%d: body is NULL\n", __FILE__, __LINE__); 929 return -1; 930 } 931 932 925 933 i = osip_message_set_body(response, body, strlen(body)); 926 934 if (i!=0) { … … 937 945 /* request that estabish a dialog: */ 938 946 /* 12.1.1 UAS Behavior */ 939 {940 947 i = complete_answer_that_establish_a_dialog(response, tr->orig_request); 941 if (i!=0) goto g2atii_error_1;; /* ?? */ 942 } 948 if (i!=0) goto g2atii_error_1; /* ?? */ 943 949 /* THIS RESPONSE MUST BE SENT RELIABILY until the final ACK is received !! */ 944 950 /* this response must be stored at the upper layer!!! (it will be destroyed*/ … … 1053 1059 return 0; 1054 1060 } 1061 1062 if ( ! body ) { 1063 fprintf(stderr, "%s,%d: body is NULL\n", __FILE__, __LINE__); 1064 return -1; 1065 } 1055 1066 1056 1067 i = osip_message_set_body(response, body, strlen(body)); … … 1144 1155 } 1145 1156 1146 if ( 300<=code<=399 && (contact != 0))1157 if ( ( code >= 300 ) && ( code <= 399 ) && ( contact != 0 ) ) 1147 1158 { 1148 1159 osip_message_clean_contacts(response); … … 1314 1325 } 1315 1326 1316 if (300<=code<=399) 1317 { 1318 /* Should add contact fields*/1319 /* ...*/1320 } 1327 /* if (300<=code<=399) */ 1328 /* { */ 1329 /* /\* Should add contact fields *\/ */ 1330 /* /\* ... *\/ */ 1331 /* } */ 1321 1332 1322 1333 evt_answer = osip_new_outgoing_sipmessage(response); eXosip/src/misc.c
r0 r4 55 55 eXosip_remove_transaction_from_call(osip_transaction_t *tr, eXosip_call_t *jc) 56 56 { 57 osip_transaction_t *inc_tr;58 osip_transaction_t *out_tr;59 57 eXosip_dialog_t *jd; 60 int pos=0;61 58 62 59 if (!tr) eXosip/src/sdp_offans.c
r0 r4 210 210 211 211 212 void eXosip_sdp_negotiation_set_mediaip(osip_negotiation_t *sn) 212 extern void 213 eXosip_sdp_negotiation_set_mediaip(osip_negotiation_t *sn) 213 214 { 214 215 osip_free(sn->o_addr); … … 386 387 387 388 388 int eXosip_retrieve_sdp_negotiation_specific_result(osip_negotiation_ctx_t *ctx, char *payload_name, int pnsize) 389 extern int 390 eXosip_retrieve_sdp_negotiation_specific_result(osip_negotiation_ctx_t *ctx, char *payload_name, int pnsize) 389 391 { 390 392 sdp_message_t *local_sdp = 0; eXosip/src/udp.c
r0 r4 20 20 #include <stdlib.h> 21 21 #include <errno.h> 22 #include <time.h> 22 23 23 24 #ifdef ENABLE_MPATROL … … 399 400 ctype = osip_message_get_content_type(evt->sip); 400 401 401 if (0 && ctype==NULL || ctype->type==NULL || ctype->subtype==NULL) 402 { 402 if ( ( ctype == NULL ) || ( ctype->type == NULL ) || ( ctype->subtype == NULL) ) { 403 403 send_default_answer(jd, transaction, evt, 400, "Missing Header", "Missing Content-Type Header", __LINE__); 404 404 return ; 405 } 406 407 if (0 && !ctype_is(ctype, "message", "sipfrag") && !ctype_is(ctype, "application", "sip")) 408 { 405 } 406 407 if ( ! ( ctype_is(ctype, "message", "sipfrag") ) && ! ( ctype_is(ctype, "application", "sip") ) ) { 409 408 send_default_answer(jd, transaction, evt, 501, "Unsupported body type", "Unsupported body type", __LINE__); 410 409 return ; 411 }410 } 412 411 413 412 osip_message_get_body(evt->sip, 0, &body); 414 if (0 && body==NULL || body->body==NULL) 415 { 413 if ( ( body == NULL ) || ( body->body == NULL ) ) { 416 414 send_default_answer(jd, transaction, evt, 400, "Missing Body", "Missing Body", __LINE__); 417 415 return ; 418 }416 } 419 417 420 418 421 419 { 422 420 eXosip_event_t *je; 423 int len; 421 424 422 je = eXosip_event_init_for_call(EXOSIP_CALL_REFER_STATUS, jc, jd); 425 423 if (je==NULL) return; … … 2030 2028 return ; 2031 2029 } else { 2032 __osip_transaction_set_state(old_trn, NIST_TERMINATED);2030 osip_transaction_set_state(old_trn, NIST_TERMINATED); 2033 2031 osip_list_remove_element(jd->d_inc_trs, old_trn); 2034 2032 osip_list_add_nodup(eXosip.j_transactions, old_trn, 0); … … 2284 2282 2285 2283 2286 i= osip_find_transaction_and_add_event(eXosip.j_osip, sipevent);2287 if ( i!=0)2284 transaction = osip_find_transaction_and_add_event(eXosip.j_osip, sipevent); 2285 if (transaction == NULL) 2288 2286 { 2289 2287 /* this event has no transaction, */ httptunnel/httptunnel.c
r0 r4 44 44 #define SOCKET int 45 45 46 #endif 47 48 #ifndef MSG_NOSIGNAL 49 #define MSG_NOSIGNAL 0 46 50 #endif 47 51 … … 461 465 { 462 466 467 int i = 1; 463 468 sock = socket(PF_INET, SOCK_STREAM, 0); 464 469 if (sock == -1) … … 468 473 } 469 474 475 #ifdef SO_NOSIGPIPE 476 setsockopt(sock, SOL_SOCKET, SO_NOSIGPIPE, &i, sizeof(i)); 477 #endif 478 470 479 hs->fd = sock; 471 480 addr.sin_port = (unsigned short) htons(httpServerPort); … … 511 520 else 512 521 #endif 513 nbytes = send(hs->fd, query, (int) strlen(query), 0);522 nbytes = send(hs->fd, query, (int) strlen(query), MSG_NOSIGNAL); 514 523 515 524 if (nbytes < 0) … … 623 632 else 624 633 #endif 625 send_bytes = send(hs->fd, (char *) ptr2, size2send, 0);634 send_bytes = send(hs->fd, (char *) ptr2, size2send, MSG_NOSIGNAL); 626 635 627 636 if (send_bytes < 0) libosip2/include/osip2/osip.h
r0 r4 782 782 783 783 784 int osip_transaction_set_state (osip_transaction_t * transaction, state_t state); 785 786 784 787 #ifndef DOXYGEN 785 788 /** … … 806 809 * @param evt The element representing the SIP MESSAGE. 807 810 */ 808 intosip_find_transaction_and_add_event (osip_t * osip, osip_event_t * evt);811 osip_transaction_t *osip_find_transaction_and_add_event (osip_t * osip, osip_event_t * evt); 809 812 810 813 /** libosip2/include/osip2/osip_dialog.h
r0 r4 220 220 221 221 222 int osip_dialog_build_replaces_value(osip_dialog_t * dialog, char **str); 223 224 225 222 226 #ifdef __cplusplus 223 227 } libosip2/src/osip2/ict.c
r0 r4 17 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 20 #include <stdlib.h> 19 21 20 22 #include <osip2/internal.h> libosip2/src/osip2/ict_fsm.c
r0 r4 17 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 20 #include <stdlib.h> 19 21 20 22 #include <osip2/internal.h> libosip2/src/osip2/ist.c
r0 r4 17 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 20 #include <stdlib.h> 19 21 20 22 #include <osip2/internal.h> libosip2/src/osip2/ist_fsm.c
r0 r4 17 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 20 #include <stdlib.h> 19 21 20 22 #include <osip2/internal.h> libosip2/src/osip2/nict.c
r0 r4 17 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 20 #include <stdlib.h> 19 21 20 22 #include <osip2/internal.h> libosip2/src/osip2/nict_fsm.c
r0 r4 18 18 */ 19 19 20 #include <stdlib.h> 21 20 22 #include <osip2/internal.h> 21 23 #include <osip2/osip.h> libosip2/src/osip2/nist.c
r0 r4 17 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 20 #include <stdlib.h> 19 21 20 22 #include <osip2/internal.h> libosip2/src/osip2/nist_fsm.c
r0 r4 17 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 20 #include <stdlib.h> 19 21 20 22 #include <osip2/internal.h> libosip2/src/osip2/osip.c
r0 r4 17 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 20 #include <stdlib.h> 19 21 20 22 #include <osip2/internal.h> … … 743 745 #endif 744 746 745 int 747 osip_transaction_t * 746 748 osip_find_transaction_and_add_event (osip_t * osip, osip_event_t * evt) 747 749 { 748 750 osip_transaction_t *transaction = __osip_find_transaction (osip, evt, 1); 749 751 750 if (transaction == NULL) 751 return -1; 752 return 0; 752 return transaction; 753 753 } 754 754 libosip2/src/osip2/osip_dialog.c
r0 r4 18 18 */ 19 19 20 #include <stdlib.h> 21 20 22 #include <osip2/internal.h> 21 23 #include <osip2/osip.h> … … 309 311 { 310 312 311 const char * from = osip_replaces_get_from_tag(rep);312 const char * to = osip_replaces_get_to_tag(rep);313 const char * from; 314 const char * to; 313 315 char *callid; 314 316 int i; 317 318 from = (const char *) osip_replaces_get_from_tag((osip_replaces_t *)rep); 319 to = (const char *) osip_replaces_get_to_tag((osip_replaces_t *)rep); 315 320 316 321 if (-1 == osip_call_id_to_str(rep->call_id, &callid)) … … 329 334 #endif 330 335 331 int osip_dialog_build_replaces_value(osip_dialog_t * dialog, char **str) 336 extern int 337 osip_dialog_build_replaces_value(osip_dialog_t * dialog, char **str) 332 338 { 333 339 char *to, *from; libosip2/src/osip2/osip_event.c
