Changeset 2373 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- Dec 10, 2008 4:54:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r2351 r2373 682 682 tmp = (char*) pj_pool_alloc(pool, PJSIP_MAX_URL_SIZE); 683 683 len = pj_ansi_snprintf(tmp, PJSIP_MAX_URL_SIZE, 684 "<sip:%.*s%s%.*s:%d;transport=%s >",684 "<sip:%.*s%s%.*s:%d;transport=%s%.*s>", 685 685 (int)acc->user_part.slen, 686 686 acc->user_part.ptr, … … 689 689 via_addr->ptr, 690 690 rport, 691 tp->type_name); 691 tp->type_name, 692 (int)acc->cfg.contact_params.slen, 693 acc->cfg.contact_params.ptr); 692 694 if (len < 1) { 693 695 PJ_LOG(1,(THIS_FILE, "URI too long")); … … 1664 1666 contact->ptr = (char*)pj_pool_alloc(pool, PJSIP_MAX_URL_SIZE); 1665 1667 contact->slen = pj_ansi_snprintf(contact->ptr, PJSIP_MAX_URL_SIZE, 1666 "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s >",1668 "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s>", 1667 1669 (int)acc->display.slen, 1668 1670 acc->display.ptr, … … 1677 1679 endquote, 1678 1680 local_port, 1679 transport_param); 1681 transport_param, 1682 (int)acc->cfg.contact_params.slen, 1683 acc->cfg.contact_params.ptr); 1680 1684 1681 1685 return PJ_SUCCESS; … … 1814 1818 contact->ptr = (char*) pj_pool_alloc(pool, PJSIP_MAX_URL_SIZE); 1815 1819 contact->slen = pj_ansi_snprintf(contact->ptr, PJSIP_MAX_URL_SIZE, 1816 "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s >",1820 "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s>", 1817 1821 (int)acc->display.slen, 1818 1822 acc->display.ptr, … … 1827 1831 endquote, 1828 1832 local_port, 1829 transport_param); 1833 transport_param, 1834 (int)acc->cfg.contact_params.slen, 1835 acc->cfg.contact_params.ptr); 1830 1836 1831 1837 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.