[Freeswitch-users] Slow reloadxml and high loglevel in console

Martin Paterson martin.paterson at technologywithin.com
Fri Jul 31 14:19:31 UTC 2020


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.


Martin Paterson
Development Team
Phone: 0207 953 8840
Email: martin.paterson at 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 at lists.freeswitch.org> On Behalf Of Igor Potjevlesh
Sent: 31 July 2020 08:18
To: 'FreeSWITCH Users Help' <freeswitch-users at lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Slow reloadxml and high loglevel in console

That works, thank you!!

De : FreeSWITCH-users <freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>> De la part de Brian West
Envoyé : vendredi 31 juillet 2020 01:06
À : FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at 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 at technologywithin.com<mailto:martin.paterson at 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<http://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.

[cid:image001.png at 01D66746.E9DB66D0]
Development Team​
[cid:image002.png at 01D66746.E9DB66D0]<https://technologywithin.com/>
Phone:
0207 953 8840<tel:0207%20953%208840>
Email:
martin.paterson at technologywithin.com<mailto:martin.paterson at technologywithin.com>
Chevron Business Park, Limekiln Lane
,
Southampton
,
Hampshire
,
SO45 2QL
[cid:image003.png at 01D66746.E9DB66D0]<https://en-gb.facebook.com/we.are.technologywithin>
[cid:image004.png at 01D66746.E9DB66D0]<https://www.linkedin.com/company/technologywithin>
[cid:image005.png at 01D66746.E9DB66D0]<https://twitter.com/@techwithin>
[cid:image006.png at 01D66746.E9DB66D0]<https://www.instagram.com/technologywithin/>
[cid:image007.png at 01D66746.E9DB66D0]<https://technologywithin.com/twiinworkspace/>
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 at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>> On Behalf Of Igor Potjevlesh
Sent: 29 July 2020 08:29
To: 'FreeSWITCH Users Help' <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at 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]<https://www.avast.com/antivirus>

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



technologywithin Mail Scanner click here<https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==> 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 at freeswitch.com<mailto:sales at 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 at lists.freeswitch.org<mailto:FreeSWITCH-users at 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 at freeswitch.com<mailto:sales at freeswitch.com>

FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045<https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>

Email: brian at freeswitch.com<mailto:brian at freeswitch.com>

Mobile: 918-424-9378

Website: https://www.FreeSWITCH.com<https://www.freeswitch.com/>

[https://lh6.googleusercontent.com/AYfRoSNaDNtMPRMevPn_GqcVEMd5NDRFi0GlluGUWzV6I5TAY_3T2-Tt0IuIXeUtEdYsgNsM8DOYKRKhjmrG_-n2Ga-LCnoNk46sO8VyEma1sBFYdiGJcLRUvkrD1CYHN79qimeg]<https://www.facebook.com/freeswitch>[https://lh3.googleusercontent.com/W4SqXyybH2qdAozvtoKjcz736qOjk9LHDwldvs1ahc-WVU0putVMSsUH474KDrJ32jsqi6JDjyUWxqeEkN5I1xSlC5ShYrd1b8NIMUkDzDrtbWQfa6A_90UcygqesBtRLgeFirKa]<https://twitter.com/freeswitch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2305 bytes
Desc: image001.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 32472 bytes
Desc: image002.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0015.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 402 bytes
Desc: image003.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0016.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 589 bytes
Desc: image004.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0017.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 725 bytes
Desc: image005.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0018.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 932 bytes
Desc: image006.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0019.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 85623 bytes
Desc: image007.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0020.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.jpg
Type: image/jpeg
Size: 823 bytes
Desc: image008.jpg
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image425429.png
Type: image/png
Size: 2305 bytes
Desc: image425429.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0021.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image844494.png
Type: image/png
Size: 32472 bytes
Desc: image844494.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0022.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image582183.png
Type: image/png
Size: 402 bytes
Desc: image582183.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0023.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image667308.png
Type: image/png
Size: 589 bytes
Desc: image667308.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0024.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image842229.png
Type: image/png
Size: 725 bytes
Desc: image842229.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0025.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image597556.png
Type: image/png
Size: 932 bytes
Desc: image597556.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0026.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image324493.png
Type: image/png
Size: 85623 bytes
Desc: image324493.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200731/8f81ecaf/attachment-0027.png>


More information about the FreeSWITCH-users mailing list