Changeset 4173 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
- Timestamp:
- Jun 20, 2012 10:39:05 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r4172 r4173 865 865 } 866 866 867 if (acc->cfg.allow_via_rewrite && acc->via_addr.host.slen > 0) 868 pjsip_dlg_set_via_sent_by(dlg, &acc->via_addr, acc->via_tp); 869 867 870 /* Set credentials and preference. */ 868 871 pjsip_auth_clt_set_credentials(&dlg->auth_sess, acc->cred_cnt, acc->cred); … … 1229 1232 /* Add headers etc */ 1230 1233 pjsua_process_msg_data(tdata, NULL); 1234 1235 /* Set Via sent-by */ 1236 if (acc->cfg.allow_via_rewrite && acc->via_addr.host.slen > 0) { 1237 pjsip_publishc_set_via_sent_by(acc->publish_sess, &acc->via_addr, 1238 acc->via_tp); 1239 } 1231 1240 1232 1241 /* Send the PUBLISH request */ … … 1781 1790 pjsip_dlg_inc_lock(buddy->dlg); 1782 1791 1792 if (acc->cfg.allow_via_rewrite && acc->via_addr.host.slen > 0) 1793 pjsip_dlg_set_via_sent_by(buddy->dlg, &acc->via_addr, acc->via_tp); 1794 1783 1795 status = pjsip_pres_create_uac( buddy->dlg, &pres_callback, 1784 1796 PJSIP_EVSUB_NO_EVENT_ID, &buddy->sub); … … 2097 2109 */ 2098 2110 pjsip_dlg_inc_lock(acc->mwi_dlg); 2111 2112 if (acc->cfg.allow_via_rewrite && acc->via_addr.host.slen > 0) 2113 pjsip_dlg_set_via_sent_by(acc->mwi_dlg, &acc->via_addr, acc->via_tp); 2099 2114 2100 2115 /* Create UAC subscription */
Note: See TracChangeset
for help on using the changeset viewer.