I’ve been using XX-PRE-PROCESS to comment out includes just fine.

 

The FreeSWITCH code is:

 

        if ((tcmd = (char *) switch_stristr("X-pre-process", bp))) {

            if (*(tcmd - 1) != '<') {

                continue;

            }

 

suggesting it needs the “<” before the “x-pre-process” to be considered a pre-process command.

 

However I should have mentioned in my original response that there are two places in vars.xml where stun-set is set up, once for sip and once for rtp.

 

Martin.

 

Development Team​
Phone: 0207 953 8840
Email: martin.paterson@technologywithin.com
Chevron Business Park, Limekiln Lane, Southampton, Hampshire, SO45 2QL
Registered Office: CP House, Otterspool Way, Watford, WD25 8JJ, U.K 
​Registered in England No: 5964349 | VAT Number: GB 902 5369 37
 

From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Igor Potjevlesh
Sent: 31 July 2020 08:18
To: 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Slow reloadxml and high loglevel in console

 

That works, thank you!!

 

De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> De la part de Brian West
Envoyé : vendredi 31 juillet 2020 01:06
À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Objet : Re: [Freeswitch-users] Slow reloadxml and high loglevel in console

 

You can't comment out an X-PRE-PROCESS with XX-PRE-PROCESS, it will still fire, change it to Z-PRE-PROCESS.

 

On Wed, Jul 29, 2020 at 10:12 AM Martin Paterson <martin.paterson@technologywithin.com> wrote:

First problem:

 

It’s configurable in the XML:

 

vars.xml in \etc\freeswitch contains the config. By default it’s:

 

<X-PRE-PROCESS cmd="stun-set" data="external_rtp_ip=stun:stun.freeswitch.org"/>

 

You can change that to a server of your choice, or disable it entirely by removing the line (or changing the X-PRE-PROCESS to something else, like XX-PRE-PROCESS)

 

Second problem:

 

You can change the log level of fs_cli with an argument -d. Help page here: https://freeswitch.org/confluence/display/FREESWITCH/Command-Line+Interface+fs_cli

 

Martin.

 

Development Team​

Phone: 

0207 953 8840

Email: 

martin.paterson@technologywithin.com

Chevron Business Park, Limekiln Lane

, 

Southampton

, 

Hampshire

, 

SO45 2QL

Registered Office: CP House, Otterspool Way, Watford, WD25 8JJ, U.K 
​Registered in England No: 5964349 | VAT Number: GB 902 5369 37
 

From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Igor Potjevlesh
Sent: 29 July 2020 08:29
To: 'FreeSWITCH Users Help' <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] Slow reloadxml and high loglevel in console

 

Hello there!

 

Since I have upgraded some of my Freeswitch in 1.10.1, I have two problems: first, each time I do a "reloadxml" for example, there is an attempt to contact an external STUN (which is not allowed by firewall rules). It makes the reload very slow because of a timeout for contacting the STUN server.

Unfortunately, I didn't figure out how to disable that.

 

Second problem is relative to the console. Each time I connect to the FS console, console loglevel is set to the higher level and I need to submit "console loglevel 0" to have a usable console. I also can't figure out in the config files how to disable this behaviour and start the console without verbosity.

 

Thanks for your inputs!

 

Regards,

 

Igor.

 


Image removed by sender. Avast logo

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
www.avast.com

 

 

technologywithin Mail Scanner click here to report this email as spam.

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


 

--

 

Brian West | Co-founder and Developer

Need Commercial support? email sales@freeswitch.com

FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045

Email: brian@freeswitch.com

Mobile: 918-424-9378

Website: https://www.FreeSWITCH.com