[PATCH]: set ipv6_media_use on account if --ipv6 is given on command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c
index 9bcde4385..c38a01d24 100644
--- a/pjsip-apps/src/pjsua/pjsua_app.c
+++ b/pjsip-apps/src/pjsua/pjsua_app.c
@@ -1774,6 +1774,9 @@ static pj_status_t app_init(void)
        app_config.acc_cfg[i].rtp_cfg = app_config.rtp_cfg;
        app_config.acc_cfg[i].reg_retry_interval = 300;
        app_config.acc_cfg[i].reg_first_retry_interval = 60;
+       if (app_config.ipv6) {
+               app_config.acc_cfg[i].ipv6_media_use = PJSUA_IPV6_ENABLED;
+       }

        app_config_init_video(&app_config.acc_cfg[i]);



Cheers
Anthony

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux