Reset freeswitch configs

  • Thanks to everyone for all the hard work on this great package.

    I had my setup about half way there and then got a little bit too cavalier w/ the config files. Now I have tons of errors and nothing will register. I would really like to reset everything to the defaults. What's the best way to do this? I tried reinstalling the package but all my tweaks are persistent.


  • Hi,

    Not sure if there is a better way - here's what I did - as usual I'd suggest having a backup config.

    Remove freeswitch.
    Then I edited the file on pfSense: /cf/conf/config.xml; removing all the <freeswitchsettings>chunk.  Then save the file.

    Then I also deleted /tmp/config.cache for good measure.

    Then I think you should be good to reload freeswitch.  If your changes ermain you might need a reboot but I don't think that is the case.

    You may want to wait and see if someone chimes in with a better solution than mine, but I think my way worked fine.

    I suppose thinking about it you could also make a backup of the config settings and then remove the freeswitch stuff and then restore your backup?</freeswitchsettings>

  • makes perfect sense.


    Now if I can only figure out why my extensions only go to voice mail instead of ringing, I'd be set. :) Thanks again.

  • adrianhensler: your procedure is pretty good.

    All the tags would be under <installedpackages>The following tags is a complete list at the moment.
    <freeswitchsettings><freeswitchdialplanincludes><freeswitchdialplanincludedetails><freeswitchmodules><freeswitchdialplan><freeswitchpublic><freeswitchpublicincludes><freeswitchpublicincludedetails><freeswitchvars><freeswitchinternal><freeswitchexternal><freeswitchivr><freeswitchgateways><freeswitchextensions><freeswitchrecordings><freeswitchivroptions>To test your phones going to voicemail automatically you should check to see if the phones show registered on the 'Status' tab. Next thing you can do is go to 'Status -> Services' and turn off FreeSWITCH. Then from SSH or the console choose option 8 for the command line then do the following:
    cd /usr/local/freeswitch/bin
    Make the call and look at the information. If that info is not enough to see what is going on then turn on debug.
    Press F8 for debug mode then make a call and look at the debug information.
    Try the call again when you are done turn off debug by pressing F7.

    [Update]: if you are using 3 digit extensions please refer to the note on the extensions page.
    "Enter the extension here. The default configuration expects extension numbers between 1000 -1019. To use additional numbers for the extensions by adjusting the dialplan. In the in the dialplan under name="Local_Extension" adjust the regular expression="^(10[01][0-9])$"."

    To make 3 digit extensions work you need to do set the  'Local_Extension' value to ^(\d{3})$  instead of the default: ^(10[01][0-9])$

    I'm available on ##pfsense irc channel pretty often if you have questions you can ask there by starting the question with:
    mcrane: then ask your question. My IRC client will beep and I will likely respond if I'm available.</freeswitchivroptions></freeswitchrecordings></freeswitchextensions></freeswitchgateways></freeswitchivr></freeswitchexternal></freeswitchinternal></freeswitchvars></freeswitchpublicincludedetails></freeswitchpublicincludes></freeswitchpublic></freeswitchdialplan></freeswitchmodules></freeswitchdialplanincludedetails></freeswitchdialplanincludes></freeswitchsettings></installedpackages>

  • I know this is an old thread, but I wanted to add for the record that in my case using the above method did not purge some xml files, such as public.xml and vars.xml. Recordings that I had uploaded also persisted, so user beware that even after removing this package and its tags from the pfsense config file, some of freeswitch's own config and related files may remain in the filesystem and reappear in later installs of the package. Or such was the case for me today, causing some consternation until we hit the default button on said xml files.

  • clarknova: What is not mentioned in this old thread is the tgz backup file. The .tgz is a backup of /usr/local/freeswitch and its subdirectories which is the application directory for FreeSWITCH.

    If there was the backup .tgz file in the backup directory it will restore it during the installation. That may explain the xml config files and where they came from.

Log in to reply