Looking at 2.3.0.5 it appears the weather and wake up functions no longer work. When dialing *61 or *.62 I receive the recording "That feature is not enabled on this line.". Any ideas as how to re-enable that functionality?
Weather/Wakeup Broke on 2.3.0.5
Looking at the configuration files for 2.2.4 I saw that weather and wakeup were configured in /etc/asterisk/extensions_trixbox.conf This file was not included in 2.3.0.5.
The work around is simple, edit /etc/asterisk/extensions_custom.conf and from within the from-internal-custom context add the following:
exten => *61,1,Answer
exten => *61,2,AGI(weather.agi)
exten => *61,3,Hangup
exten => *62,1,Answer
exten => *62,2,AGI(wakeup.php)
exten => *63,3,Hangup
It was gone in 2.2.9 too, but the fix above half-worked.
I get the weather prompt, but no weather, just dead air.
Probably need to hack around in weather.agi again...... when I feel like it.
You also need to tweak /var/lib/asterisk/agi-bin/weather.agi - since the script was first written the ftp server address has changed. The new server is tgftp.nws.noaa.gov
Hmmmm....our bad, I thought we removed it completely. We will correct that in the next releases and make sure we don't leave any remants around this time.
why would you remove them? the wake up call feature seemed to work fine. Never tried the weather so I don't know about it. Why are you so snarky?
Thanks for the Heads-Up on the new FTP site - that and a fixed bug in line 47 of weather.agi (filesname should be filename) and set the city to nm and the file to albuquerque.txt and I have the weather - Cool!
Greg
We have far more complaints to remove them than we have to keep them.
Seems a little pointless - it is what it is...
Greg
I believe Kerry may be talking about complaints of it being broken... it has been for quite some time. I had to piece together a script ever since 2.0. I for one love the ability to check weather and also use the wakeup function frequently. I don't remember complaints on the wakeup... but I could have been asleep during that.
Hmm... I actually use both of these.
I use both as well...
The complaints are that we have too much bloat in the products and things like that are very easily installed.
OMFG. You did not get complaints that people wanted them because they had them. Wake up is VERY usefull, I could give a **&%$ about weather. If you remove a valuable feature, PUBLISH THAT INFO, and maybe a link for instructions to include it again, instead of somethin like "look at vittles", so that people do not waste a week looking for why it suddenly does not work.
And other people say the exact opposite. We also have a problem that these scripts do not play nicely with FreePBX or insert themselves into the FreePBX database to ensure that duplicate extensions cannot be created. In order for these scripts work properly and not cause conflicts they need to be modified. Very very few people have ever told me that wakeup was a valuable feature versus many people who have told me they do not want scripts like that installed by default.
I too use both. I discovered the weather problem a while back and found a work around. I do agree that the right way would be for either of them to be modules thru FreePBX. But at the same time don't feel they are hurting anything the way they are. I'd just hate to see them removed with a properly done replacement.
They are only hurting people that have no idea what keys they use and then assign the same key to something else because it doesn't appear anywhere. That is the basic issue.
Kerry
Sorry for my hot headed response. I just really had no idea this had been dropped and went to deploy 3 small motels and they guy owner is saying, why don't the wake up calls work, I reinstall everything, find a thread pointing at re-including custom_trixbox.conf (and re-creating it), still did not work, checked for the wakeup.php, that was there but I could not make it work. Then you tell me to go to nerd vittles, on another thread. I still cannot find step by step. I have tried installing the freepbx unsupported wakup-1.0.0.tgz but get a freepbx error. So could you tell the world (or link to) EXACTLY what needs to be done to get wakeup running again for txbx versions post removal?
I also agree that the reason you didn't hear many people talking positively about the wake-up and weather was because they were already there. Why would anyone complain about something that works??
Wake-ups are particularly useful and are a globally useful function out of the box, unlike the weather which may need local customization. Wake-ups are useful for far more than wake-ups in hotels; the function can be used as a general reminder call facility that is very easy to access.
Asterisk/Trixbox needs to compete and provide all the functionality that traditional PBXs have offered and wake-ups are one such function.
I personally have no need for call queues and doubt that my customer base will ever need such a facility, but that doesn't mean I expect it to be unceremoniously dumped. If you really hate it so much, please put wake-up and weather RPMs in the package list so we can easily add them back in.
Looks like wake-up is working its way into freePBX, so it's probably just a matter of time before this is included
http://www.freepbx.org/trac/changeset/5065
Kerry & Co.:
It would seem that given the elegant development of your package manager you could simply add these two options as tbm modules for people who are grateful to have them. This would seem the simple and obvious solution which would keep the system from being "bloated" while offering the option to help others from missing their flights and/or other important moments, as well as being able to check the weather - should they so desire.
I personally am a big fan of the wake-up call (the early morning flight) and would be very grateful to see this show up in the package manager. It seems that everyone could win here if you went the package manager route.
Hope this is useful and creates a solution for everyone.
there is a post at freepbx.org on how to do this which i will quote:
http://www.freepbx.org/forum/freepbx/users/where-is-wakeup-calls
begin quote:
1) copy wakeup.php and wakeconfirm.agi to /var/lib/asterisk/agi-bin
2) Define a 'misc application' which maps *62 to the wakeup application
. Description: Wake Up Call
. Feature code: *62
. Feature Status: Enabled
and select
. Custom App: custom-wakeup-call,s,1
3) In extensions_custom.conf, add
[custom-wakeup-call]
exten => s,1,Answer
exten => s,2,AGI(wakeup.php)
exten => s,3,Hangup
NOTE: The script depends on '/tmp' and '/var/spool/asterisk/outgoing' being part of the same filesystem. Thats fine if
you have a single file system. For me (I have / /tmp and /var as independent filesystems) it was a simple matter of
changing the 'temp' location to '/var/tmp'. You will know if you have the problem, when you leave a wake up call, it calls
you back before you have have time to hang up (you get call waiting pips the moment you finish setting up the wakeup call)
end quote
might i add, that approximately the ninth option, one would need to change the wakeup php file to:
$parm_chan_ext = 1;
in order for it to not fail to call back.
works like a charm.
I don't understand WHY somebody removed the Wake-Up call functionality.... ?
Such a functionality is in almost every (even low budget) PBX. We had it in Trixbox,... now it's gone.
I used it when i HAD to wake up for important meetings very early.. and i had a very short night because i was doing too much nerdy stuff. Well, i need it now, because re-installing the Wake-Up functionality using the unofficial way needs a little guide... :(
And dont say: "buy a alarm clock" now ;)
Please re-think your decission,... PUT IT BACK IN, .. even when you're having problems with the code,.. not having the *62 extension in a DB,..or just a quick 'n dirty solution.
Well, I am not sure, but the weather stuff seems to be for america and maybe canada, but if anyone else has got it to work elsewhere (esp. for New Zealand) I would be interested to know !
As for wakeups, we use them heaps. Infact, at the moment, I am home-alone and tend to sleep thru alarms...or fall back to sleep with no kids to wake me or wife to "encourage" me to get up, where as a wakeup call makes me wakeup.
Then only issue I have has is the option to have a wakeup call call you again in 5-10-15 mins was inconsistant with wakeupconfirm.agi so I wrote my own code that works like a charm.
I do agree with someone above, instead of removing weather and wakeups, why not add them as modules? This makes more sense to me and empowers the installer to either have to not have them installed.
Jeremy
Jeremy,
I had european countries working fine. I am sure Aus/NZ was in that - got it from nerdvittles world wide weather in 2.2.x.
I might tinker with this again now that i more or less have a stable 2.4x. If so, i will post my results to you. See about two comments above to get your wake up call back.
wtodd
Is there any easy way to modify this script so that when someone answers the wake up call it plays a sound file instead of music on hold?
There is already a file for this; this-is-yr-wakeup-call.wav
Thanks
change those 2 lines in /var/lib/asterisk/agi-bin/wakeup.php
$parm_application = 'Playback';
$parm_data = 'this-is-yr-wakeup-call';
Thanks for the tip.
I've actually created a custom context and redirected the call file to play the wav file twice then send it to musiconhold.
thanks to this:
http://www.freepbx.org/forum/freepbx/users/where-is-wakeup-calls
I now have working wake up in CE 2.6 that even shows up in FreePBX feature codes index! perfect!
:D
/Hasse
I must be missing something with Trixbox 2.4.2 and FreePBX 2.4
I followed the post of FreePBX
added the bit to extensions custom config
set the bit in misc applications
set the bit in misc destinations
back to misc applications to change the destination to wake up call
tried 4 times and I just get dead air.
I missed it too.
Do not set anything in "Misc Destinations". Instead, go to "Tools - Custom Destinations" and put the "custom-wakeup-call,s,1" string in the first box, ignore the pick list box and enter "Wake Up" or whatever in the Description box. Save, reload and return to "Misc Applications - Wake Up" and voila! you will have a Custom Application choice for your Wake Up service.
It appears that Custom Applications became Custom Destinations in later versions of FreePBX, even though they are still called Custom Applications after they've been created.
Wake up, what's the latest status on the wakeup and weather "modules"?
End of last week, for the first time I installed Trixbox 2.4. Few days ago I had wakeup working and this morning in ~1h30 I manage to create a weather module.
So, I took works from the wakeup module and weather-world scripts from Nerd Vittles to come up with a world-weather module. Uploaded the module and, Bingo its working.
From my understanding, wakeup will (or is already?) integrated in the lastest FreePBX. As for weather, I think its currently dead.... is there someone working on this?
If not, Kerry what would you expect for a weather module to possibly integrate it in future trixbox releases?
- world weather?
- US weather?
- US/Can weather together and perhaps another module to address "world weather"?
- all of the above?!
- city selection?
- "zip code" weather? (postal code in canada, don't even know if this is possible)
- airport?
- options for 5 days / 3 days / current / today only / upcoming weekend ?
Question... should we actually return this work directly to freepbx?
Once Kerry posts his requirements, hoping there's still hope to add weather back in trixbox, trixbox community let me know what your thoughts are and what you'd like.
On another note, I love my trixbox installation with my 2 just arrived yesterday 9133i and coming tomorrow a SPA3102 and I'm looking at the 57i ... and possibly a IAXY interface (just to play around).
Don't expect me to have a module ready soon, my life is quite busy but I'll do my best to deliver something unless there are "too many" requirements -- on this last note here's what I just came with:
I'd rather prefer to start with something "simple", for example USA only and have functionnalities build around it and once this is well done, then add more sources. To keep it more simple, from the start I would drop weather based on zip code and only keep cities (perhaps have the user "spell" the city using the phone's keypad) and have in the first "menu" a "default" location defined in the script. Perhaps there's one source that we can count on, but then we need a second one as a backup (telephony should be 99.99999% always working!). ps: channel 4 in london is currently under system maintenance!!
I would also add forecast local "caching" for say ~30 minute (the html file ain't that big!).
I LOVE my Aastra 57i, what a great phone, I have 1 sidecar with it, for extension status and speed dials, really a good quality phone, Love the visual voicemail too!
I just wish they would separate the speaker/headphone button like a Cisco (I have lots of 7960's), because my damn intercom pages go directly to the headset, useless.
Please make wakeups and weather available as downloadable modules for idiots like me who are super-linux-dangerous, I like ticking a box and clicking "update" You don't consider webmin bloat, do you?
Or do I just finally give up on Trix and go PIAF? They support anything it seems.....
Alright! I admit it. I am getting older and getting blind!
Would someone please tell me exactly where I can find 'misc application' ?
I cannot find it anywhere under any tab etc.
I have found everything else, but for the life of me cannot find this place to add the misc application information so I can enable wake up calls.
Thanks for any help! Please?
John
It should be under:
Internal Options & Configuration
If not then maybe you don't have the module installed.
I AM blind. I found it right there. I had to reload the browser after I installed the module. Duhhh!
John
I did the entire setup for wake up calls as outlined above. Setup is perfect. (Even refreshed and reloaded).
When I dial *62, I get silence. Nothing.
Did they somehow remove/fix the php code to do nothing or delete the sound files? I found the wakeup.php and other file already in the correct directory.
Anyone had luck with TB 2.6.1?
Thanks
JOhn
For a Working Wake Up call see thread
http://trixbox.org/forums/trixbox-forums/open-discussion/wake-cal...
BEng (HONS) Electronic Engineering
MBA, MSc in Mobile and Satellite Comms
Node Admin into Athens Wireless Metropolitan Network (www.awmn.net)
Member Since:
2007-08-11