]> sjero.net Git - linphone/blobdiff - console/commands.c
uPnP improvements
[linphone] / console / commands.c
index a91c58c447cc5ba706d83e93308c9d37e47005d6..22b09a5a6b92e89ec3feea40a9deb089197e9fea 100644 (file)
@@ -244,6 +244,8 @@ static LPC_COMMAND commands[] = {
                "'firewall none'   : use direct connection.\n"
                "'firewall nat'    : use nat address given with the 'nat' command.\n"
                "'firewall stun'   : use stun server given with the 'stun' command.\n"
+               "'firewall ice'    : use ice.\n"
+               "'firewall upnp'   : use uPnP IGD.\n"
        },
        { "call-logs", lpc_cmd_call_logs, "Calls history", NULL },
        { "friend", lpc_cmd_friend, "Manage friends",
@@ -850,6 +852,10 @@ lpc_cmd_firewall(LinphoneCore *lc, char *args)
                {
                        linphone_core_set_firewall_policy(lc,LinphonePolicyNoFirewall);
                }
+               else if (strcmp(args,"upnp")==0) 
+               {
+                       linphone_core_set_firewall_policy(lc,LinphonePolicyUseUpnp);
+               }
                else if (strcmp(args,"ice")==0)
                {
                        setting = linphone_core_get_stun_server(lc);