Changeset 4543 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- Jun 24, 2013 9:53:16 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r4542 r4543 651 651 acc->valid = PJ_FALSE; 652 652 acc->contact.slen = 0; 653 acc->reg_mapped_addr.slen = 0; 653 654 pj_bzero(&acc->via_addr, sizeof(acc->via_addr)); 654 655 acc->via_tp = NULL; … … 1256 1257 acc->regc = NULL; 1257 1258 acc->contact.slen = 0; 1259 acc->reg_mapped_addr.slen = 0; 1258 1260 } 1259 1261 } … … 1464 1466 &acc->via_addr, acc->via_tp); 1465 1467 } 1468 } 1469 1470 /* Save mapped address if needed */ 1471 if (acc->cfg.allow_sdp_nat_rewrite && 1472 pj_strcmp(&acc->reg_mapped_addr, via_addr)) 1473 { 1474 pj_strdup(acc->pool, &acc->reg_mapped_addr, via_addr); 1466 1475 } 1467 1476 … … 1990 1999 acc->regc = NULL; 1991 2000 acc->contact.slen = 0; 2001 acc->reg_mapped_addr.slen = 0; 1992 2002 1993 2003 /* Stop keep-alive timer if any. */ … … 2001 2011 acc->regc = NULL; 2002 2012 acc->contact.slen = 0; 2013 acc->reg_mapped_addr.slen = 0; 2003 2014 2004 2015 /* Stop keep-alive timer if any. */ … … 2015 2026 acc->regc = NULL; 2016 2027 acc->contact.slen = 0; 2028 acc->reg_mapped_addr.slen = 0; 2017 2029 2018 2030 /* Stop keep-alive timer if any. */ … … 2120 2132 acc->regc = NULL; 2121 2133 acc->contact.slen = 0; 2134 acc->reg_mapped_addr.slen = 0; 2122 2135 } 2123 2136 … … 2168 2181 acc->regc = NULL; 2169 2182 acc->contact.slen = 0; 2183 acc->reg_mapped_addr.slen = 0; 2170 2184 return status; 2171 2185 }
Note: See TracChangeset
for help on using the changeset viewer.