Changeset 4603
- Timestamp:
- Sep 26, 2013 9:57:34 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r4580 r4603 1592 1592 /* Add local account */ 1593 1593 pjsua_acc_add_local(transport_id, PJ_TRUE, &aid); 1594 if (PJMEDIA_HAS_VIDEO) { 1594 1595 /* Adjust local account config based on pjsua app config */ 1596 { 1595 1597 pjsua_acc_config acc_cfg; 1596 1598 pjsua_acc_get_config(aid, tmp_pool, &acc_cfg); 1599 1597 1600 app_config_init_video(&acc_cfg); 1601 acc_cfg.rtp_cfg = app_config.rtp_cfg; 1598 1602 pjsua_acc_modify(aid, &acc_cfg); 1599 1603 } 1604 1600 1605 //pjsua_acc_set_transport(aid, transport_id); 1601 1606 pjsua_acc_set_online_status(current_acc, PJ_TRUE); … … 1631 1636 /* Add local account */ 1632 1637 pjsua_acc_add_local(transport_id, PJ_TRUE, &aid); 1633 if (PJMEDIA_HAS_VIDEO) { 1638 1639 /* Adjust local account config based on pjsua app config */ 1640 { 1634 1641 pjsua_acc_config acc_cfg; 1635 1642 pjsua_acc_get_config(aid, tmp_pool, &acc_cfg); 1643 1636 1644 app_config_init_video(&acc_cfg); 1637 if (app_config.ipv6)1638 1645 acc_cfg.rtp_cfg = app_config.rtp_cfg; 1646 acc_cfg.ipv6_media_use = PJSUA_IPV6_ENABLED; 1639 1647 pjsua_acc_modify(aid, &acc_cfg); 1640 1648 } 1649 1641 1650 //pjsua_acc_set_transport(aid, transport_id); 1642 1651 pjsua_acc_set_online_status(current_acc, PJ_TRUE); … … 1665 1674 /* Add local account */ 1666 1675 pjsua_acc_add_local(transport_id, PJ_TRUE, &aid); 1667 if (PJMEDIA_HAS_VIDEO) { 1676 1677 /* Adjust local account config based on pjsua app config */ 1678 { 1668 1679 pjsua_acc_config acc_cfg; 1669 1680 pjsua_acc_get_config(aid, tmp_pool, &acc_cfg); 1681 1670 1682 app_config_init_video(&acc_cfg); 1683 acc_cfg.rtp_cfg = app_config.rtp_cfg; 1671 1684 pjsua_acc_modify(aid, &acc_cfg); 1672 1685 } 1686 1673 1687 pjsua_acc_set_online_status(current_acc, PJ_TRUE); 1674 1688 … … 1690 1704 /* Add local account */ 1691 1705 pjsua_acc_add_local(transport_id, PJ_TRUE, &aid); 1692 if (PJMEDIA_HAS_VIDEO) { 1706 1707 /* Adjust local account config based on pjsua app config */ 1708 { 1693 1709 pjsua_acc_config acc_cfg; 1694 1710 pjsua_acc_get_config(aid, tmp_pool, &acc_cfg); 1711 1695 1712 app_config_init_video(&acc_cfg); 1696 if (app_config.ipv6)1697 1713 acc_cfg.rtp_cfg = app_config.rtp_cfg; 1714 acc_cfg.ipv6_media_use = PJSUA_IPV6_ENABLED; 1698 1715 pjsua_acc_modify(aid, &acc_cfg); 1699 1716 } 1717 1700 1718 //pjsua_acc_set_transport(aid, transport_id); 1701 1719 pjsua_acc_set_online_status(current_acc, PJ_TRUE); … … 1725 1743 /* Add local account */ 1726 1744 pjsua_acc_add_local(transport_id, PJ_FALSE, &acc_id); 1727 if (PJMEDIA_HAS_VIDEO) { 1745 1746 /* Adjust local account config based on pjsua app config */ 1747 { 1728 1748 pjsua_acc_config acc_cfg; 1729 1749 pjsua_acc_get_config(acc_id, tmp_pool, &acc_cfg); 1750 1730 1751 app_config_init_video(&acc_cfg); 1752 acc_cfg.rtp_cfg = app_config.rtp_cfg; 1731 1753 pjsua_acc_modify(acc_id, &acc_cfg); 1732 1754 } 1755 1733 1756 pjsua_acc_set_online_status(acc_id, PJ_TRUE); 1734 1757 } … … 1749 1772 /* Add local account */ 1750 1773 pjsua_acc_add_local(transport_id, PJ_TRUE, &aid); 1751 if (PJMEDIA_HAS_VIDEO) { 1774 1775 /* Adjust local account config based on pjsua app config */ 1776 { 1752 1777 pjsua_acc_config acc_cfg; 1753 1778 pjsua_acc_get_config(aid, tmp_pool, &acc_cfg); 1779 1754 1780 app_config_init_video(&acc_cfg); 1755 if (app_config.ipv6)1756 1781 acc_cfg.rtp_cfg = app_config.rtp_cfg; 1782 acc_cfg.ipv6_media_use = PJSUA_IPV6_ENABLED; 1757 1783 pjsua_acc_modify(aid, &acc_cfg); 1758 1784 } 1785 1759 1786 //pjsua_acc_set_transport(aid, transport_id); 1760 1787 pjsua_acc_set_online_status(current_acc, PJ_TRUE);
Note: See TracChangeset
for help on using the changeset viewer.