SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
bigblokeOffline



Joined: Aug 15, 2004
Posts: 66
Location: Newport South Wales
Status: Offline
Posted: Feb 04, 2008 - 10:46 AM Reply with quote Back to top
Hi all,

building a new * box here based upon pbxinaflash (freepbx ++)
as a demonstrator.

I need to set up uk callerid settings which is usually just the process of:

foo1=bar
foo2=bar2
channel=>1

and so on, in zapata.conf,

although for my own preference I have always created a separate /zapchannels folder with a file per
extension and then #included them into zapata.conf

I want to be able to config my prefered parameter sets so that I can hack them from CLI but they will also be supported
by the freepbx admin screen (to show the simplicity of freepbx admin).

I can see that when adding my extensions in via the freepbx screen they get put into zapata-additional.conf
which contains the dire warning:

; do not edit this file, this is an auto-generated file by freepbx
; all modifications must be done from the web gui


well, as far as I can see there is nowhere in my freepbx screen to add the additional options that I want to put against my zap extensions.

is there an "approved method" of adding supplementary channel parameters without freepbx
either deleting them or metaphorically "Throwing its toys out of the pram" ?

Regards

BB

(who is used to cli only on asterisk 1.0!)
View user's profile Send private message MSN Messenger ICQ Number
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 2844
Location: Bath UK
Status: Offline
Posted: Feb 04, 2008 - 12:05 PM Reply with quote Back to top
hi it used to be zapata-custom.conf from memory

Ian
View user's profile Send private message
bigblokeOffline



Joined: Aug 15, 2004
Posts: 66
Location: Newport South Wales
Status: Offline
Posted: Feb 04, 2008 - 06:15 PM Reply with quote Back to top
Hi Ian,

yes I thought that was where it would be too - but not so it seems !
Code:

root@asterisk:/etc/asterisk $ ls -al |grep zapata

-rw-rw-r--  1 asterisk asterisk   940 Jan 26 13:25 zapata_additional.conf
-rw-rw-r--  1 asterisk asterisk   880 Jan 24 08:51 zapata-auto.conf
-rw-rw-r--  1 asterisk asterisk   880 Jan 24 06:54 zapata-auto.conf.bak
-rwxrw-r--  1 asterisk asterisk   795 Feb  4 07:33 zapata.conf
-rw-rw-r--  1 asterisk asterisk   699 Jan 24 00:12 zapata.conf.template

root@asterisk:/etc/asterisk $


The channel descriptions are written by freepbx into
zapata_additional.conf as:

Code:


; do not edit this file, this is an auto-generated file by freepbx
; all modifications must be done from the web gui

;;;;;;[901]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=501@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/1
context=from-internal
callprogress=no
callerid= admin <901>
busydetect=no
busycount=7
accountcode=
channel=>1


So obviously I can edit this file and add my channel specific
parameters, but will freepbx "stuff" those settings when the channel is edited from the gui?

I cant see anywhere to add additional zap channel parameters into freepbx from the gui ?

very odd ! did they just "overlook" it ? ~:-/


Regards

BB
View user's profile Send private message MSN Messenger ICQ Number
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 2844
Location: Bath UK
Status: Offline
Posted: Feb 04, 2008 - 06:18 PM Reply with quote Back to top
Have a look in zapata.conf for what its got as #includes you might find its mentioned there but not created, which is not good as soon all includes must exist...

Ian
View user's profile Send private message
bigblokeOffline



Joined: Aug 15, 2004
Posts: 66
Location: Newport South Wales
Status: Offline
Posted: Feb 04, 2008 - 08:40 PM Reply with quote Back to top
sadly, no,not really....

however, I notice that the configuration for each of the three
channels is split across two zapata files - I had always assumed it was :

directive
directive
directive
channel=>n

and not that , in theory, you could add parameters across multiple scripts ?

so I could then for example create a #include zapCIDconfig.conf and in that file, specify just the
CID commands on their own as long as I did a channel=>1,2,3
(or whatever the correct syntax is ) at the end of the list ?

do I understand this correctly ?

Regards

BB
View user's profile Send private message MSN Messenger ICQ Number


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2006 VoIP User.

No part of this site may be reproduced without our prior consent.