[Voiceglue] Voiceglue with another PBX (Callweaver)

Seann Clark nombrandue at tsukinokage.net
Fri Feb 26 16:21:47 UTC 2010


Doug Campbell wrote:
>>    I am wondering if it is possible to get VoiceGlue to work with an 
>> Asterisk like PBX
>
> It is definitely possible.  That's a low bar to clear.  :-)
>
>> and a good reference of how everything ties into Asterisk so I can 
>> get a handle on how deeply dependent VoiceGlue would be on that.
>
> Well, I don't consider there to be a "good" reference.
> However, if one is willing to do a little digging,
> there are well-defined interfaces between voiceglue
> and asterisk, and voiceglue has been designed to allow
> replacing asterisk with a different telephony solution.
>
> I can think of two different interface points at which
> one could integrate.
>
> First, the interface to asterisk itself only uses the
> FastAGI and manager interfaces (with just a little bit
> of audio file directory manipulation and enough dialplan
> to get calls flowing).
>
> Second, there is an internal interface between the
> VXML handling software and the telephony provider.
> This interfaces is higher-level, should support any
> telephony service, and is documented in the Satc.pm
> file in the distribution.
>
> We developers of voiceglue have had a goal of supporting
> additional telephony products for a while now, and it
> will likely happen sometime soon.
>
> Doug Campbell
> _______________________________________________
Without detailed documentation to do what I want, it makes trying to get 
this to work a little more... adventurous. Callweaver is a fork of 
Asterisk 1.2, with a lot of SIP and Fax centric solutions they tied it 
(all in all pretty stable and decent) so changing between the two should 
in theory be simple. I was hacking around in the voiceglue perl files 
(the main part I couldn't get to work out of the box, I may be looking 
at the wrong spot though) and replaced all AGI statements with OGI 
statements, to match callweaver, and replaced all asterisk mentions with 
callweaver (configuration file as well) but voiceglue.pl dies with tons 
of errors relating to 'unknown configuration option' which is where I am 
stumped, I don't quite get where the config syntaxing is happening in 
VoiceGlue. That and the log doesn't quite work with the perl file (it 
works perfectly with everything else, go figure on that) and all the 
other subsystems for the platform so far work, but without a tie in, I 
can't test beyond the aspect of 'yup, it runs'

My output is:

Cannot write to log file: Bad file descriptor at voiceglue line 633
        main::logtofile(4, 'Errors when parsing 
/etc/callweaver/callweaver.conf : Cannot ...', 'VOICEGLU', 'eiji.tsu') 
called at voiceglue line 717
        main::logit(4, 'Errors when parsing 
/etc/callweaver/callweaver.conf : Cannot ...') called at voiceglue line 3016
        main::parse_configfile() called at voiceglue line 4519
        main::build_urlmap() called at voiceglue line 4527
        main::read_configfile() called at voiceglue line 4865
        main::main() called at voiceglue line 5153
Cannot write to log file: Bad file descriptor at voiceglue line 633
        main::logtofile(2, 'Parameter cwsoundsdir not defined in 
/etc/callweaver/callweav...', 'VOICEGLU', 'eiji.tsu') called at 
voiceglue line 752
        main::fail('Parameter cwsoundsdir not defined in 
/etc/callweaver/callweav...') called at voiceglue line 4845
        main::__ANON__('Parameter cwsoundsdir not defined in 
/etc/callweaver/callweav...') called at voiceglue line 4532
        main::read_configfile() called at voiceglue line 4865
        main::main() called at voiceglue line 5153
Parameter cwsoundsdir not defined in /etc/callweaver/callweaver.conf and 
not specified with --astsounddir command-line parameter at voiceglue 
line 4532.
 at voiceglue line 756
        main::fail('Parameter cwsoundsdir not defined in 
/etc/callweaver/callweav...') called at voiceglue line 4845
        main::__ANON__('Parameter cwsoundsdir not defined in 
/etc/callweaver/callweav...') called at voiceglue line 4532
        main::read_configfile() called at voiceglue line 4865
        main::main() called at voiceglue line 5153



The callweaver config file is set up like this:

[general]
cwrunuser => callweaver
cwrungroup => callweaver

[directories]
cwetcdir => /etc/callweaver
cwmoddir => /lib/callweaver/modules
cwvarlibdir => /var/lib/callweaver
cwdbdir => /var/lib/callweaver
cwogidir => /share/callweaver/ogi
cwspooldir => /var/spool/callweaver
cwrundir => /var/run/callweaver
cwlogdir => /var/log/callweaver
cwsoundsdir => /share/callweaver/sounds
cwkeydir => /share/callweaver/keys

[options]
systemname => callweaver
enablespaghetticode => no

[files]
cwctlpermissions = 0660
cwctlowner = apache
cwctlgroup = apache


it might be something simple, but I am not catching it so far.  I can 
provide as much support with my side of the testing as possible, and 
work on the perl code a bit (I am only moderately versed in perl, and 
that is on the side closer to novice, so I can hack, but I tend not to 
be so hot at really complex items, at least yet)


Regards,
Seann Clark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5544 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.voiceglue.org/pipermail/voiceglue/attachments/20100226/e7832a89/attachment.bin>


More information about the Voiceglue mailing list