Jeremy Kister
2016-Apr-13 15:18 UTC
[asterisk-users] recreating extensions.conf from live dialplan ?
with the slip of a finger, i destroyed by extensions.conf (grep -i > extensions.conf) I have a backup that is dozens of hours of code old. is there a way i can use the asterisk cli (or some other asterisky method) to recreate that extensions.conf ?
Steve Edwards
2016-Apr-13 15:31 UTC
[asterisk-users] recreating extensions.conf from live dialplan ?
On Wed, 13 Apr 2016, Jeremy Kister wrote:> is there a way i can use the asterisk cli (or some other asterisky > method) to recreate that extensions.conf ?Will 'dialplan save' help? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281
Steve Edwards
2016-Apr-13 15:37 UTC
[asterisk-users] recreating extensions.conf from live dialplan ?
On Wed, 13 Apr 2016, Steve Edwards wrote:> On Wed, 13 Apr 2016, Jeremy Kister wrote: > >> is there a way i can use the asterisk cli (or some other asterisky method) >> to recreate that extensions.conf ? > > Will 'dialplan save' help?I just tried this one. It writes the dialplan, but without the application arguements. Worthless. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281
Steve Edwards
2016-Apr-13 15:56 UTC
[asterisk-users] recreating extensions.conf from live dialplan ?
On Wed, 13 Apr 2016, Jeremy Kister wrote:> is there a way i can use the asterisk cli (or some other asterisky method) to > recreate that extensions.conf ?sudo asterisk -r -x 'dialplan show' >extensions.wip And then start cobbling up a script to parse and re-write into a usable format. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281
A J Stiles
2016-Apr-13 15:57 UTC
[asterisk-users] recreating extensions.conf from live dialplan ?
On Wednesday 13 Apr 2016, Jeremy Kister wrote:> with the slip of a finger, i destroyed by extensions.conf (grep -i > > extensions.conf) > > I have a backup that is dozens of hours of code old. > > is there a way i can use the asterisk cli (or some other asterisky > method) to recreate that extensions.conf ?You could try *CLI> dialplan show The output from this is not the same format as an extensions.conf file, but it will have all the relevant information in it; and it seems to include all the relevant infiormation. So it could be made to look like an extensions.conf file, if you really have nothing else -- desperate situations call for desperate remedies, and all that ..... -- AJS Note: Originating address only accepts e-mail from list! If replying off- list, change address to asterisk1list at earthshod dot co dot uk .