Weather By Zip 1.1.5 Not Working

Discussion in 'General' started by rs232c, Sep 13, 2009.

  1. rs232c

    Joined:
    Sep 5, 2009
    Messages:
    47
    Likes Received:
    0
    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
     
  2. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    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.
     
  3. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    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>
     
  4. rs232c

    Joined:
    Sep 5, 2009
    Messages:
    47
    Likes Received:
    0
    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>
     
  5. rs232c

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

    Has been added and system rebooted, no change
     
  6. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    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...
     
  7. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    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.
     
  8. rs232c

    Joined:
    Sep 5, 2009
    Messages:
    47
    Likes Received:
    0
    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:

    I tried changing to both *947 and *61. No luck yet.
     
  9. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    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.
     
  10. rs232c

    Joined:
    Sep 5, 2009
    Messages:
    47
    Likes Received:
    0
    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:

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

    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.
     
  11. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    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.
     
  12. perezil

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

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    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.
     
  14. mostafa33

    Joined:
    May 25, 2010
    Messages:
    121
    Likes Received:
    0
  15. fmvillares

    Joined:
    Sep 8, 2007
    Messages:
    1,785
    Likes Received:
    0
    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
     

Share This Page