[asterisk-users] Missing "dialplan" commands in Asterisk 1.4.2 CLI

Carlos Chavez cursor at telecomabmex.com
Tue Apr 24 09:20:34 MST 2007


On Tue, 2007-04-24 at 08:21 -0600, Steve Murphy wrote:
> On Tue, 2007-04-24 at 00:56 -0500, Carlos Chavez wrote:
> > Tzafrir Cohen wrote:
> > >
> > >
> > > Or maybe it is the default and it is an implicit value?
> > >
> > > But even then you should be able to change the dialplan at runtime.
> > > Just not writng it back to the file.
> > >
> > > The "dialplan" commands are implemented in pbx_config.so . Are you sure 
> > > that this module is loaded?
> > >

> 
> Taking things one at a time, I started with "dialplan save". Looking
> thru the source, in the load_module routine, I see...
> 
> 	if (static_config && !write_protect_config)
> 		ast_cli_register(&cli_dialplan_save);
> 
> So, if the static_config is false, or if write_protect_config is true,
> it won't register this command. Check your config file, extensions.conf,
> and see what you set those vars to...
> 
> The sample config says:
> 
> ; The "General" category is for certain variables.  
> ;
> [general]
> ;
> ; If static is set to no, or omitted, then the pbx_config will rewrite
> ; this file when extensions are modified.  Remember that all comments
> ; made in the file will be lost when that happens. 
> ;
> ; XXX Not yet implemented XXX
> ;
> static=yes
> ;
> ; if static=yes and writeprotect=no, you can save dialplan by
> ; CLI command 'save dialplan' too
> ;
> writeprotect=no
> ;
> 
> So, to get the behavior you are seeing, all you have to do is leave out
> the static=yes line
> 
	I have tried all the combinations and I still do not have the rest of
the dialplan commands.  But if it was a problem with the variables I
guess I would have the same problem on my other server as well.

-- 
Telecomunicaciones Abiertas de Mexico S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070424/cad2bb43/attachment.pgp


More information about the asterisk-users mailing list