mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
Adding switch_nat options for NATPMP and uPNP mapping of ports for auto nat traversal. Not used for anything yet.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13513 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <switch.h>
|
||||
#include <switch_stun.h>
|
||||
#include <switch_nat.h>
|
||||
#include <switch_version.h>
|
||||
#include "private/switch_core_pvt.h"
|
||||
#ifndef WIN32
|
||||
@@ -1160,6 +1161,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
|
||||
switch_scheduler_task_thread_start();
|
||||
|
||||
switch_rtp_init(runtime.memory_pool);
|
||||
switch_nat_init(runtime.memory_pool);
|
||||
|
||||
runtime.running = 1;
|
||||
|
||||
@@ -1558,6 +1560,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void)
|
||||
switch_scheduler_task_thread_stop();
|
||||
|
||||
switch_rtp_shutdown();
|
||||
switch_nat_shutdown();
|
||||
switch_xml_destroy();
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Closing Event Engine.\n");
|
||||
|
Reference in New Issue
Block a user