Re: [Asterisk-Users] Zaptel won't compile under Fedora Core 4

2005-07-12 Thread Eric Bullen
On 7/11/05, Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
On Tue, Jul 12, 2005 at 11:04:16AM +1000, Gonzalo Servat wrote:> On 7/12/05, Eric Bullen <[EMAIL PROTECTED]> wrote:> > I hope someone can offer me some help with this. Basically, the current CVS
> > version of Zaptel will not compile under Fedora Core 4. I have closely> > followed the directions in> > http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3
> > using the versions given in the FC4 distro with no luck.  Here's the output> > when I run "make linux26". Any help would be great. TIA.>> [...snip...]>> >  In file included from /asterisk_source/zaptel/zaptel.c:40:
> >  /asterisk_source/zaptel/zconfig.h:10:27: error:> > linux/version.h: No such file or directory>> Try installing kernel-source and/or glibc-kernheaders RPMs from the FC4 CDs.kernel-glibcheaders is the part of the kernel headers that user-space
programs need. Not any good reference for any kernel module to buildwith.linux/version.h is generated as part of the configuration process of thekernel configuration process ("make {,menu,x,g}config") of the kernel
source.What version of zaptel do you try to build? For what kernel version?Your distro's default or your one you've built yourself?

That did the trick-  I  untarred the kernel source, ran "make
oldconfig && make", and got the linux/version.h file. Then did
a "ln -s kernels/linux-2.6.12 linux-2.6" in the /usr/src dir. Once that
was done, went to the zaptel dir and it compiled beautifully. Thank you
so much.

To answer your question, I am running the latest version in CVS using
"cvs update -d -r v1-0", and kernel 2.6.12. I ended up building my own
kernel (not installed) to get this to work (not sure if I could do it
the other way).

Thanks again for the help, and hopefully my notes will help others.

-Eric

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [Asterisk-Users] Zaptel won't compile under Fedora Core 4

2005-07-11 Thread Eric Bullen
On 7/11/05, Gonzalo Servat <[EMAIL PROTECTED]> wrote:
On 7/12/05, Eric Bullen <[EMAIL PROTECTED]> wrote:> I hope someone can offer me some help with this. Basically, the current CVS> version of Zaptel will not compile under Fedora Core 4. I have closely
> followed the directions in> http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3> using the versions given in the FC4 distro with no luck.  Here's the output
> when I run "make linux26". Any help would be great. TIA.[...snip...]>  In file included from /asterisk_source/zaptel/zaptel.c:40:>  /asterisk_source/zaptel/zconfig.h:10:27: error:
> linux/version.h: No such file or directoryTry installing kernel-source and/or glibc-kernheaders RPMs from the FC4 CDs.


I did this already- it's outlined in the URL I listed above. 



Any other suggestions?
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[Asterisk-Users] Zaptel won't compile under Fedora Core 4

2005-07-11 Thread Eric Bullen
I hope someone can offer me some help with this. Basically, the current
CVS version of Zaptel will not compile under Fedora Core 4. I have
closely followed the directions in
http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3
using the versions given in the FC4 distro with no luck.  Here's
the output when I run "make linux26". Any help would be great. TIA.


orion:/asterisk_source/zaptel# make clean
rm -f torisatool makefw tor2fw.h
rm -f zttool
rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
rm -f zonedata.lo tonezone.lo libtonezone.so.1.0 *.lo
rm -f *.ko *.mod.c .*o.cmd
rm -f gendigits tones.h
rm -f libtonezone*
rm -f tor2ee
rm -f core

orion:/asterisk_source/zaptel# make linux26
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c
-o gendigits.o gendigits.c
cc -o gendigits gendigits.o -lm
./gendigits
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   
-DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   
makefw.c   -o makefw
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c
-o ztcfg.o ztcfg.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE   
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"
-DBUILDING_TONEZONE -o zonedata.lo zonedata.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE   
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"
-DBUILDING_TONEZONE -o tonezone.lo tonezone.c
ar rcs libtonezone.a zonedata.lo tonezone.lo
cc -o ztcfg ztcfg.o -lm -L. libtonezone.a
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c
-o torisatool.o torisatool.c
cc -o torisatool torisatool.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c
-o ztmonitor.o ztmonitor.c
cc -o ztmonitor ztmonitor.o
cc -c ztspeed.c
cc -o ztspeed ztspeed.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   
-DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c
-o zttool.o zttool.c
cc -o zttool zttool.o -lnewt
make -C /lib/modules/`uname -r`/build SUBDIRS=/asterisk_source/zaptel modules
make[1]: Entering directory `/usr/src/kernels/2.6.12-1.1390_FC4-i686'

  WARNING: Symbol version dump /usr/src/kernels/2.6.12-1.1390_FC4-i686/Module.symvers
   is missing; modules will have no dependencies and modversions.

  CC [M]  /asterisk_source/zaptel/zaptel.o
In file included from /asterisk_source/zaptel/zaptel.c:40:
/asterisk_source/zaptel/zconfig.h:10:27: error: linux/version.h: No such file or directory
/asterisk_source/zaptel/zconfig.h:66:41: error: missing binary operator before token "("
In file included from /asterisk_source/zaptel/zaptel.c:82:
/asterisk_source/zaptel/zaptel.h:47:41: error: missing binary operator before token "("
/asterisk_source/zaptel/zaptel.c: In function 'zt_chan_write':
/asterisk_source/zaptel/zaptel.c:1737: warning: ignoring return value
of 'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c: In function 'zt_ctl_open':
/asterisk_source/zaptel/zaptel.c:1766: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function)
/asterisk_source/zaptel/zaptel.c:1766: error: (Each undeclared identifier is reported only once
/asterisk_source/zaptel/zaptel.c:1766: error: for each function it appears in.)
/asterisk_source/zaptel/zaptel.c: In function 'zt_chan_open':
/asterisk_source/zaptel/zaptel.c:1775: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_ctl_release':
/asterisk_source/zaptel/zaptel.c:1784: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_chan_release':
/asterisk_source/zaptel/zaptel.c:1793: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_timing_open':
/asterisk_source/zaptel/zaptel.c:2122: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_timer_release':
/asterisk_source/zaptel/zaptel.c:2159: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_specchan_open':
/asterisk_source/zaptel/zaptel.c:2190: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_specchan_release':
/asterisk_source/zaptel/zaptel.c:2214: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'ioctl_load_zone':
/asterisk_source/zaptel/zaptel.c:2384: warning: ignoring return value
of 'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c: In function 'zt_common_ioctl':
/asterisk_source/zaptel/zaptel.c:2736: warning: ignoring return value
of 'copy_from_user', declared with attribute warn_unused_result
/asterisk_s

Re: [Asterisk-Users] Can't capture "-1" return on Dial command

2004-12-12 Thread Eric Bullen
>> following setup, and I want to be able to process the audio file after
>> the
>> outbound call has been done regardless how how it ends.
>
> would the hangup priority be appropriate for this?
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
>
>
>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Can't capture "-1" return on Dial command

2004-12-11 Thread Eric Bullen
How can I capture a "-1" result on a Dial command? Basically, I have the
following setup, and I want to be able to process the audio file after the
outbound call has been done regardless how how it ends.

No matter how the call ends, I can't get "macro-record-stop" to run.

Any help would be great.

-Eric



[macro-dialanalog]
  exten => s,1,Macro(record-start)
  exten => s,2,Dial(${TRUNK}/${MACRO_EXTEN},70)
  exten => s,3,Macro(record-stop)
  exten => s,102,Macro(record-stop)
  exten => h,1,Macro(record-stop)

[macro-record-start]
  exten => s,1,SetVar(CFN=${MONITORPATH}/${TIMESTAMP}--${CALLERIDNUM})
exten => s,2,Monitor(${MONITORFILETYPE},${CFN})


[macro-record-stop]
  exten => s,1,System(/usr/bin/soxmix ${CFN}-in.${CFE} ${CFN}-out.WAV
${CFN}.WAV)
  exten => s,2,System(rm ${CFN}-in.WAV ${CFN}-out.WAV)
  exten => s,3,System(/usr/bin/sox ${CFN}.WAV -t uw - | /usr/bin/lame -r
-m m -s 8 - ${CFN}.mp3)
  exten => s,4,System(rm ${CFN}.WAV)




___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Source/cause of echo delay (on internal stuff network)

2004-12-07 Thread Eric Bullen
Hi All,

This one has me stumped, but I've done quite a bit of debugging to
hopefully isolate it down enough. Basically, I hear an echo *delay* when I
do a 'echo' test (key- there's an annoying delay). Here's what I have:

Asterisk 1.0.3 current as of Dec 7.
x100p (although, irrelevant in this case)
(2) Cisco 7940's with 7.3 firmware

All communications between asterisk and the phones are over SIP.

o If I call from phone to phone on the local network (100Mb switched), I
hear no echo delay- sounds great.
o If I disconnect the phone from the network, I can hear my voice in the
earpiece (obviously, no delay).
o If I check my voicemail off of the 7940 (talking directly to asterisk),
I hear no delay (just audio to the earpiece from the phone itself)
o If I do an echo test, I hear the delay. Here's the exerpt from my
extensions.conf file that does this:

  exten => 10,1,Playback(beep)   ; Let them know to start
  exten => 10,2,Echo ; Do the echo test
  exten => 10,3,Playback(demo-echodone)  ; Let them know it's over
  exten => 10,4,Hangup

I run the test, and I hear the echo delay. This is on a asterisk server
with a network latency of ~.2ms. The asterisk server is a P3-600 w/ no
activity on it (totally idle cpu).

* My question is this: The phone generates enough echo via the earpiece, I
don't really need to have asterisk send me my voice back to me. Is there a
way to do one of the following?

1) Tell asterisk to not send my voice back to me.
2) If there is no way to stop this, how do I get rid of the echo-delay?

Hopefully someone reading this will have some insight on what can be done.
It's bad enough where it's not usable.

Much thanks in advance,

-Eric




___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users