- Timestamp:
- Mar 6, 2013 6:58:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_im.c
r4173 r4424 513 513 pjsip_tx_data *tdata; 514 514 const pj_str_t mime_text_plain = pj_str("text/plain"); 515 const pj_str_t STR_CONTACT = { "Contact", 7 };516 515 pjsip_media_type media_type; 517 516 pjsua_im_data *im_data; 518 517 pjsua_acc *acc; 519 pj_str_t contact;520 518 pj_status_t status; 521 519 … … 552 550 * set in the account. 553 551 */ 552 /* Ticket #1632: According to RFC 3428: 553 * MESSAGE requests do not initiate dialogs. 554 * User Agents MUST NOT insert Contact header fields into MESSAGE requests 555 */ 556 /* 554 557 if (acc->contact.slen) { 555 558 contact = acc->contact; … … 566 569 pjsip_generic_string_hdr_create(tdata->pool, 567 570 &STR_CONTACT, &contact)); 571 */ 568 572 569 573 /* Create IM data to keep message details and give it back to … … 628 632 const pjsua_msg_data *msg_data) 629 633 { 630 const pj_str_t STR_CONTACT = { "Contact", 7 };631 634 pjsua_im_data *im_data; 632 635 pjsip_tx_data *tdata; 633 636 pjsua_acc *acc; 634 pj_str_t contact;635 637 pj_status_t status; 636 638 … … 665 667 * set in the account. 666 668 */ 669 /* Ticket #1632: According to RFC 3428: 670 * MESSAGE requests do not initiate dialogs. 671 * User Agents MUST NOT insert Contact header fields into MESSAGE requests 672 */ 673 /* 667 674 if (acc->contact.slen) { 668 675 contact = acc->contact; … … 679 686 pjsip_generic_string_hdr_create(tdata->pool, 680 687 &STR_CONTACT, &contact)); 681 688 */ 682 689 683 690 /* Create "application/im-iscomposing+xml" msg body. */
Note: See TracChangeset
for help on using the changeset viewer.