That sounds pretty painful. It'd be neat to have a command that would let you write out an active dial plan in the correct format. I guess it's just a lot of "replace and test" for now.
> -----Original Message----- > From: David Cook (Canada) [mailto:[EMAIL PROTECTED] > Sent: February 18, 2007 2:04 AM > To: [email protected] > Subject: [on-asterisk] Recovery from an "Oh S___ moment" > > Well it is 2:00AM and I just finished rebuilding my dialplan. > (Was editing, wifi went away, had a .*swp file, like an idiot > got rid of the wrong file). > > 1. Asterisk is still running with the dialplan in memory 2. > asterisk -rx 'show dialplan' > my_cya_file 3. Edit > my_cya_file. Not completely the right format, but write some > scripts and edit away. This file will also not have any > comments, nor constants defined. You will have to do this > yourself. But you can save it. > > Yes, _now_ I have a backup copy ;-/ > > dbc. > -- > David Cook (Canada) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.412 / Virus Database: 268.18.1/690 - Release > Date: 16/02/2007 >
