Weather By Zip 1.1.5 Not Working

rs232c

Joined
Sep 5, 2009
Messages
47
Likes
0
Points
0
#1
I uploaded and installed Weather By Zip: http://www.fonicaprojects.com/wiki/inde ... her_by_Zip. I believe this to be a 5 star third-party add on module.

After following the instructions and limited support on the site I am unable to get the module to work. I dial the feature extention and get a busy signal. I checked the CDR and it says the call was answered. I check Feature Codes in Elastix, and found that it is assigned *967 and is not changeable. I checked the third party add addon module in FreePBX and have no error message or any change by selecting 'swift' or 'flite'. Then I checked extensions_custom.conf and found it to be assigned to *61.

Has anyone gotten this to work that can direct me what to do?


Thank You
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#2
You can change the feature code, you just need to uncheck the check box next to it.

Log to your server and enter the CLI (by typing asterisk -rvvvv)
dial the feature code and copy here what you see on the CLI.
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#3
Also, did you add the red line in /etc/httpd/conf.d/elastix.conf ?


<Directory "/var/www/html">
# Redirect administration interface to https
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !(/cgi-bin/*)
RewriteCond %{REQUEST_URI} !(/admin/modules/weatherzip/*)
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</Directory>
 

rs232c

Joined
Sep 5, 2009
Messages
47
Likes
0
Points
0
#4
Codes now all match but still a busy signal. All other codes I use work.

login as: root
elastix@192.168.10.110's password:
Last login: Thu Sep 10 18:29:32 2009 from 192.168.6.100

Welcome to Elastix
----------------------------------------------------

For access to the Elastix web GUI use this URL
http://192.168.10.110

[root@elastix ~]# asterisk -rvvv
Asterisk 1.4.26.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.26.1 currently running on elastix (pid = 2686)
Verbosity is at least 3
-- Executing [*61@from-internal:1] Answer("SIP/101-09631670", "" ) in new stack
-- Executing [*61@from-internal:2] AGI("SIP/101-09631670", "nv-weather.php" ) in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/nv-weather.php
-- AGI Script nv-weather.php completed, returning 0
-- Executing [*61@from-internal:3] Hangup("SIP/101-09631670", "" ) in new stack
== Spawn extension (from-internal, *61, 3) exited non-zero on 'SIP/101-09631670'
-- Executing [h@from-internal:1] Macro("SIP/101-09631670", "hangupcall" ) in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/101-09631670", "1?skiprg" ) in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/101-09631670", "1?skipblkvm" ) in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/101-09631670", "1?theend" ) in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/101-09631670", "" ) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/101-09631670' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/101-09631670'
-- Remote UNIX connection
-- Remote UNIX connection disconnected
root*CLI>
 

rs232c

Joined
Sep 5, 2009
Messages
47
Likes
0
Points
0
#5
RewriteCond %{REQUEST_URI} !(/admin/modules/weatherzip/*)

Has been added and system rebooted, no change
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#6
nv-weather is the elastix weather module, not the weather by zip!!!!
You have a conflict between two different context there...

in freepbx, feature code, keep the original *947 for weather by zip and try with *947.


When it works, change it then to the code you want, but probably not *61...
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#7
rs232c said:
RewriteCond %{REQUEST_URI} !(/admin/modules/weatherzip/*)

Has been added and system rebooted, no change
no need to reboot for this change:
httpd -k restart should be enough
and maybe an amportal restart, but I don't think it's needed.
 

rs232c

Joined
Sep 5, 2009
Messages
47
Likes
0
Points
0
#8
I still can't get it to work. I mean nv-weather, that is the module that is run in the above information box. I turned on debugging, this is what returns:

Nerd Vittles Weather (c) Copyright 2006, Ward Mundy. All Rights Reserved.

September 14, 2009 - 05:35:02 *** New session ***

agi_request: nv-weather.php
agi_channel: SIP/101-097f6f88
agi_language: en
agi_type: SIP
agi_uniqueid: 1252920901.421
agi_callerid: 101
agi_calleridname: device
agi_callingpres: 0
agi_callingani2: 0
agi_callington: 0
agi_callingtns: 0
agi_dnid: *61
agi_rdnis: unknown
agi_context: from-internal
agi_extension: *61
agi_priority: 2
agi_enhanced: 0.0
agi_accountcode:

Airport Code:
I tried changing to both *947 and *61. No luck yet.
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#9
what I don't understand is why do you have a call to /var/lib/asterisk/agi-bin/nv-weather.php?

The weather zip module calls nv-weather-zip.php that should be in /var/www/html/admin/modules/weatherzip/agi-bin

I think you have conflict with different agi there... nv-weather is the original Nerd .php

Go to unembedded freepbx.
Uninstall weather by zip.
Download a fresh module from
http://projects.colsolgrp.net/attachments/download/71/weatherzip-1.1.5.tgz
install it in unembedded freepbx.

Check the rewrite rules in /etc/httpd/conf.d/elastix.conf

Look in feature codes what's the context for weather by zip (do not change it yet)

apply

try it.
Look at the CLI output.
 

rs232c

Joined
Sep 5, 2009
Messages
47
Likes
0
Points
0
#10
I carefully followed your instructions to no avail.

1) Unininstalled/Reinstalled fresh downloaded copy of weather by zip.
2) This is the rewrite rule file /etc/httpd/conf.d/elastix.conf to closely match yours with no difference any way I put it:

# Apache-level configuration for Elastix administration interface

Timeout 300

# Default apache configuration specifies greater limits than these
#MaxClients 150
#MaxRequestsPerChild 1000

# Default apache User and Group diretives MUST be commented out
# in order for these to take effect.
User asterisk
Group asterisk

<Directory "/var/www/html">
# Redirect administration interface to https
RewriteEngine On

#Modifications for Weather By Zip

#Original Enabled Lines
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


# New Lines by Patrick_elx
RewriteCond % off
RewriteCond % !(/cgi-bin/*)
RewriteCond % !(/admin/modules/weatherzip/*)
RewriteRule (.*) https://%%

#End Modifications for Weather By Zip

</Directory>
3) I further modified extensions_custom.conf to make sure the extension *947 matched everywhere including the context feature code:

[weather-wakeup]
exten => *947,1,Answer
exten => *947,2,AGI(nv-weather.php)
exten => *947,3,Hangup
exten => *62,1,Answer
exten => *62,2,AGI(wakeup.php)
exten => *62,3,Hangup
#include custom_weatherzip.conf
I still execute nv-weather.php with exit code 0. There is no change in asterisk cli or debugging.

I am at a total loss what to do.
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#11
rs232c said:
3) I further modified extensions_custom.conf to make sure the extension *947 matched everywhere including the context feature code:

[weather-wakeup]
exten => *947,1,Answer
exten => *947,2,AGI(nv-weather.php)
exten => *947,3,Hangup
exten => *62,1,Answer
exten => *62,2,AGI(wakeup.php)
exten => *62,3,Hangup
#include custom_weatherzip.conf
No, no and no...

Do not change anything in extensions_custom.conf!!!
The weather zip module install has already changed everything for you.
What you're doing with your mod, is to override the nv-weatherzip by nv-weather that was already present on your system.

weather by Zip is a freepbx module. You don't need to do any edit manually. Just use the freepbx menu...

The only exception is the elastix.conf that is an elastix specific policy that does not let access the agi in the freepbx folder by http:// but only https://. You just need to say to httpd that the specific folder for nv-weatherzip.php should be allowed to be access with http.
 

perezil

Joined
Feb 4, 2009
Messages
20
Likes
0
Points
0
#12
This sounds like a fun module to add. Can someone please post up a "For Dummies" version of the install steps? :woohoo:
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#13
1. Instal flite (free) or Cepstral (cheap). Look in this thread or in Elastix without tears for the step.
2. Download the module, do not extract it. Go to unembeded FreePbx module menu and add the new module. Install and Apply.
3. Edit your /etc/httpd/conf.d/elastix.conf to add the line:
RewriteCond %{REQUEST_URI} !(/admin/modules/weatherzip/*)
before RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

That's it.
 

mostafa33

Joined
May 25, 2010
Messages
121
Likes
0
Points
16
#14

fmvillares

Joined
Sep 8, 2007
Messages
1,785
Likes
0
Points
0
#15
Re: Re:Weather By Zip 1.1.5 Not Working

as far as i know no! u have to look for your country pages and do the same parsing for that page with the needed modifications
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,565
Latest member
omarmenichetti
Top