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. -- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus
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+... Martin. Martin Paterson 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]<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/irzYY_hzIlfGX2PQPOmvUss3oYastQeGYNGLbkf2IGj3DOOO4ejfVyuB2BIEXHDY5i6N2tvlzocbMAc-oOGgZg==> to report this email as spam.
Hello Martin, You're right for fs_cli! Thank you. Regarding vars.xml, I already have another stun configured but I'm still having a timeout on the default one. Regards, Igor. De : FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> De la part de Martin Paterson Envoyé : mercredi 29 juillet 2020 13:07 À : FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Objet : Re: [Freeswitch-users] Slow reloadxml and high loglevel in console 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> https://freeswitch.org/confluence/display/FREESWITCH/Command-Line+Interface+... Martin. Development Team <https://technologywithin.com/> Phone: <tel:0207%20953%208840> 0207 953 8840 Email: <mailto:martin.paterson@technologywithin.com> martin.paterson@technologywithin.com Chevron Business Park, Limekiln Lane , Southampton , Hampshire , SO45 2QL <https://en-gb.facebook.com/we.are.technologywithin> <https://www.linkedin.com/company/technologywithin> <https://twitter.com/@techwithin> <https://www.instagram.com/technologywithin/> <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 < <mailto:freeswitch-users-bounces@lists.freeswitch.org> freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Igor Potjevlesh Sent: 29 July 2020 08:29 To: 'FreeSWITCH Users Help' < <mailto:freeswitch-users@lists.freeswitch.org> 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. _____ <https://www.avast.com/antivirus> L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. <https://www.avast.com/antivirus> www.avast.com technologywithin Mail Scanner click <https://www.mailcontrol.com/sr/irzYY_hzIlfGX2PQPOmvUss3oYastQeGYNGLbkf2IGj3DOOO4ejfVyuB2BIEXHDY5i6N2tvlzocbMAc-oOGgZg==> here to report this email as spam. -- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus
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+...
Martin.
Development Team <https://technologywithin.com/> Phone: *0207 953 8840* <0207%20953%208840> Email: *martin.paterson@technologywithin.com* <martin.paterson@technologywithin.com> Chevron Business Park, Limekiln Lane , Southampton , Hampshire , SO45 2QL <https://en-gb.facebook.com/we.are.technologywithin> <https://www.linkedin.com/company/technologywithin> <https://twitter.com/@techwithin> <https://www.instagram.com/technologywithin/> <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@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: 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/irzYY_hzIlfGX2PQPOmvUss3oYastQeGYNGLbkf2IGj3DOOO4ejfVyuB2BIEXHDY5i6N2tvlzocbMAc-oOGgZg==> 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 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> [image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
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 <mailto: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 <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+... Martin. Development Team <https://technologywithin.com/> Phone: <tel:0207%20953%208840> 0207 953 8840 Email: <mailto:martin.paterson@technologywithin.com> martin.paterson@technologywithin.com Chevron Business Park, Limekiln Lane , Southampton , Hampshire , SO45 2QL <https://en-gb.facebook.com/we.are.technologywithin> <https://www.linkedin.com/company/technologywithin> <https://twitter.com/@techwithin> <https://www.instagram.com/technologywithin/> <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@lists.freeswitch.org <mailto: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 <mailto: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. _____ <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/irzYY_hzIlfGX2PQPOmvUss3oYastQeGYNGLbkf2IGj3DOOO4ejfVyuB2BIEXHDY5i6N2tvlzocbMAc-oOGgZg==> 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 <mailto: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 <mailto: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 <mailto:sales@freeswitch.com> FreeSWITCH Solutions | <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> 17345 Civic Drive #2531 Brookfield, WI 53045 Email: brian@freeswitch.com <mailto:brian@freeswitch.com> Mobile: 918-424-9378 Website: <https://www.freeswitch.com/> https://www.FreeSWITCH.com <https://www.facebook.com/freeswitch> <https://twitter.com/freeswitch> -- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus
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@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<mailto: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<mailto: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<mailto: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<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+... Martin. [cid:image001.png@01D66746.E9DB66D0] Development Team [cid:image002.png@01D66746.E9DB66D0]<https://technologywithin.com/> Phone: 0207 953 8840<tel:0207%20953%208840> Email: martin.paterson@technologywithin.com<mailto:martin.paterson@technologywithin.com> Chevron Business Park, Limekiln Lane , Southampton , Hampshire , SO45 2QL [cid:image003.png@01D66746.E9DB66D0]<https://en-gb.facebook.com/we.are.technologywithin> [cid:image004.png@01D66746.E9DB66D0]<https://www.linkedin.com/company/technologywithin> [cid:image005.png@01D66746.E9DB66D0]<https://twitter.com/@techwithin> [cid:image006.png@01D66746.E9DB66D0]<https://www.instagram.com/technologywithin/> [cid:image007.png@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@lists.freeswitch.org<mailto: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<mailto: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]<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@freeswitch.com<mailto: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<mailto: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<mailto:sales@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@freeswitch.com<mailto:brian@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>
participants (3)
-
Brian West
-
Igor Potjevlesh
-
Martin Paterson