Re: [Asterisk-Users] Zaptel not compiling on lastest Centos 4.2 kernel.
On 03/13/2006 11:33:18 AM, Chuck Bunn wrote: Hi, I made a big mistake on a Centos 4.2 box - I forgot to exclude the kernel from updating. Now zaptel will not do a "make linux26" see below. Is there a way to roll this back or is there a patch to get Zaptel to compile? I have a link to the modules using 'ln -s /lib/modules/uname -r/build linux-2.6" so that I did not have to specifiy the kernel version directly. I successfly compiled zaptel 1.2.1 on Linux 2.6. Perhaps when you upgraded the kernel you did not install the corresponding kernel-source rpm? Karl <[EMAIL PROTECTED]> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Action on phone pickup
How do I get asterisk to do something when I pick up a phone? For instance, I've got a regular pots phone hooked up to a zaptel interface, and I want it to vocalize "hello" when I pick up the phone and then give me a dial tone, wait for digits, make a call, etc. I tried the 's' extension in extensions.conf and setting 'immediate' to "yes' in zapata.conf and that didn't seem to work. (Not to mention I don't know how to get dial tone and dialing behavior back after an application executes.) Anybody got a clue they can slap me with? Thanks. Asterisk SVN-branch-1.2-r8905 Karl <[EMAIL PROTECTED]> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] How to have a phone ring another extension as soon as off-hook?
On 01/23/2006 08:55:09 AM, Omadon wrote: On Fri, Jan 20, 2006 at 12:32:32PM -0500, Script Head wrote: > I am seeking to implement the following behavor: > > When a headset on phone1 is picked up, phone2 rings right away, without any > need to dial numbers on phone1. Is this possible to implement? > I believe you would do this by having extension 's' dial the second phone. I believe it would be best to have a new extension context for this code. Then, you need to associate your new context in extentionss.conf with the channel your phone uses. Anyhow, I think this will work with a zapta interface and a plain old telephone. I don't know if the fancy network phones try to contact asterisk/anybody when the receiver is picked up. Karl <[EMAIL PROTECTED]> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Interrupting ring to go to voicemail pickup -- How to ring after Answer()?
Hi, I've successfully used the 'd' flag in Dial() so that when I dial into my phone system from out there in the PSTN network I can press the 2 key while the phone is ringing to listen to my voicemail. It seems that one issue is that the public providers do not deliver DTMF, or anything, until the phone is answered. This is for security reasons and sounds like a good idea to me. So, the extension must first answer the phone. The trouble is then providing a ring tone to the calling party. I stumbled upon the solution below, which seems to work. But there are a number of things I don't understand, which makes the whole thing seem really brittle. 1) Why does this not work if you leave off the Playtones() call? I thought Dial() was supposed to automagically indicate ringing and provide the requsite sounds? 2) Why is the r flag reqired in the Dial() call? If I take it out I don't hear any ringing even though Playtones should be playing. 3) If I take the r flag out of Dial() and put a call in to Ringing() before the Playtones() (or maybe after, I forget) I don't get a ring sound when calling. 4) I thought Playtones() was supposed to play until StopPlaytones() is called. It sure stops playing when I get to voicemail, either by a timeout of the Dial() or by pressing 2. (I don't know whether it really stops if the Zaptel is answered, because I'm not in a position to test that at the moment. But I presume it will.) Asterisk 1.2.1 extensions.conf file fragment: exten => 2000,1,Answer() exten => 2000,2,Playtones(ring) exten => 2000,3,Dial(Zap/1,15,dr) exten => 2000,4,VoiceMail([EMAIL PROTECTED]) exten => 2000,104,VoiceMail([EMAIL PROTECTED]) exten => 2,1,VoiceMailMain([EMAIL PROTECTED]) I'd appreciate hearing from anybody who can clue me in on the above questions, or has any improvements or suggestions to make to the dialplan, or otherwise wishes to throw me a bone. Thanks. Karl <[EMAIL PROTECTED]> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Asterisk book feedback
On 12/13/2005 09:45:09 AM, Ross C wrote: Just curious what everyone (as in, the people that have read it or use it) thinks about the O'Reilly Asterisk book. I am just getting started. The book works for me. My gripe is the license. I can't submit improvements where I ran into gotchas, so I don't run into them again. I know that by the next time I set things up I'll have forgotten most of what I did wrong. Karl <[EMAIL PROTECTED]> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Patch zaptel.init to support debian
On 12/13/2005 07:32:10 AM, Kevin P. Fleming wrote: This script is completely unnecessary on Debian; just add the modules you wish to load into /etc/modules and they will be loaded at boot time. FYI the list. Using debian with linux 2.6 you don't do anything, the requsite module information is installed in /etc/modprobe.d/zaptel and it just works. Karl <[EMAIL PROTECTED]> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Patch zaptel.init to support debian
Hi, Don't know if this is really right, all I know is that Debian sarge does not have /var/lock/subsys/. I foolishly made this patch against the zaptel 1.2 branch rather than trunk, although I did check that the trunk has the problem. It'll probably apply I ran it and it works for me. Regards, Karl <[EMAIL PROTECTED]> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein --- zaptel.init.orig2005-12-12 15:36:34.0 -0600 +++ zaptel.init 2005-12-12 17:58:33.855867848 -0600 @@ -30,6 +30,11 @@ [ -f /etc/sysconfig/zaptel ] && . /etc/sysconfig/zaptel fi +LOCKFILE=/var/lock/subsys/zaptel # assume redhat +if [ $system = debian ]; then +LOCKFILE=/var/lock/zaptel +fi + if [ -z "${MODULES}" ]; then # Populate defaults if not present MODULES="tor2 wct4xxp wct1xxp wcte11xp wcfxo wctdm" @@ -99,7 +104,7 @@ fi RETVAL=$? -[ $RETVAL -eq 0 ] && touch /var/lock/subsys/zaptel +[ $RETVAL -eq 0 ] && touch $LOCKFILE ;; stop) # Unload drivers @@ -120,7 +125,7 @@ fi RETVAL=$? -[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/zaptel +[ $RETVAL -eq 0 ] && rm -f $LOCKFILE ;; restart) $0 stop ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Patch to zaptel Makefile
(Was going to send it to the developer list but don't really want to subscribe and unsubscribe and all that. Sorry.) This patch is broken because of email line breaks. Sorry. As you can see, the trouble is the shell script variable is not double dollar-ed in the Makefile. --- Makefile.orig 2005-12-12 16:03:00.301928264 -0600 +++ Makefile2005-12-12 16:03:33.376900104 -0600 @@ -16,7 +16,7 @@ KSRC:=/lib/modules/$(KVERS)/build else KSRC_SEARCH_PATH:=/usr/src/linux-2.4 /usr/src/linux -KSRC:=$(shell for dir in $(KSRC_SEARCH_PATH); do if [ -d $$dir ]; then echo $dir; break; fi; done) +KSRC:=$(shell for dir in $(KSRC_SEARCH_PATH); do if [ -d $$dir ]; then echo $$dir; break; fi; done) endif endif KINCLUDES:=$(KSRC)/include Karl <[EMAIL PROTECTED]> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users