Weather by Zip Code Script Is Ready

Deac,
I double checked this and asterisk is indeed showing "application not registered". If I rerun the echo > and ldconfig it makes no difference. Swift from the command line works no problem, it just wont show up under asterisk for some reason. :( I did an amportal restart as well as rebooted the machine, still no joy.
 
I am getting a hang up after the "Please hold while we contact the National Weather Service for your report" message. I have also installed the patch.
 
Yup..same here. Been happening for a while. I just didn't do anything with it, because I had other things to work on.

Anyone find out what's going on?
 
What does this command show?

Code:
asterisk -rx "show application flite"

Also look in the log:

/var/log/asterisk/nv-weather-zip.txt

Have you changed your MySQL password so that the app can't access the ZIP code database?

What does the Asterisk CLI show when a call is processed? :confused5:
 
asterisk -rx "show application flite"

Code:
 -= Info about application 'Flite' =-

[Synopsis]
Say text to the user, using Flite

[Description]
  Flite(text[|intkeys]):  This will invoke the Flite TTS engine,
send a text string, get back the resulting waveform and play it to
the user, allowing any given interrupt keys to immediately terminate
and return.
asterisk -rx "show application swift"

Code:
  -= Info about application 'Swift' =-

[Synopsis]
Speak text through Swift text-to-speech engine.

[Description]
 Syntax: Swift(text[|timeout in ms|maximum digits])
Example: Swift(Hello World|5000|5) = 5 second delay between 5 digits
This application operates in two modes. One is processing text-to-speech while
listening for DTMF and the other just processes the text-to-speech while ignoring
DTMF entirely.
Unless the timeout and maximum digits options are BOTH specified, the application
will automatically ignore DTMF.
Returns -1 on hangup or 0 otherwise.
/var/log/asterisk/nv-weather-zip.txt

Code:
Nerd Vittles ZIP Weather ver. 4.0 (c) Copyright 2007, Ward Mundy. All Rights Reserved.

April 12, 2009 - 21:39:16  *** New session ***

agi_request: nv-weather-zip.php
agi_channel: SIP/501-09227560
agi_language: en
agi_type: SIP
agi_uniqueid: 1239597539.7
agi_callerid: 501
agi_calleridname: device
agi_callingpres: 0
agi_callingani2: 0
agi_callington: 0
agi_callingtns: 0
agi_dnid: *2770
agi_rdnis: unknown
agi_context: from-internal
agi_extension: 612
agi_priority: 8
agi_enhanced: 0.0
agi_accountcode:

ZIP Code: 98684
In Asterisk CLI:
Code:
 -- Executing [*947@from-internal:1] Goto("SIP/501-0910dd08", "noah-swift|s|1") in new stack
    -- Goto (noah-swift,s,1)
    -- Executing [s@noah-swift:1] Answer("SIP/501-0910dd08", "") in new stack
    -- Executing [s@noah-swift:2] Wait("SIP/501-0910dd08", "1") in new stack
    -- Executing [s@noah-swift:3] Set("SIP/501-0910dd08", "TIMEOUT(digit)=7") in new stack
    -- Digit timeout set to 7
    -- Executing [s@noah-swift:4] Set("SIP/501-0910dd08", "TIMEOUT(response)=10") in new stack
    -- Response timeout set to 10
    -- Executing [s@noah-swift:5] Swift("SIP/501-0910dd08", ""At the beep enter the five digit zip code for the weather report you wish to retrieve."") in new stack
    -- Executing [s@noah-swift:6] Read("SIP/501-0910dd08", "ZIPCODE|beep|5") in new stack
    -- Accepting a maximum of 5 digits.
    -- <SIP/501-0910dd08> Playing 'beep' (language 'en')
    -- User entered '98684'
    -- Executing [s@noah-swift:7] Swift("SIP/501-0910dd08", ""Please hold a moment while we contact the National Weather Service for your report."") in new stack
    -- Executing [s@noah-swift:8] AGI("SIP/501-0910dd08", "nvweather-zip.php|98684") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/nvweather-zip.php
    -- AGI Script nvweather-zip.php completed, returning 0
    -- Executing [s@noah-swift:9] NoOp("SIP/501-0910dd08", "Wave file: ") in new stack
    -- Executing [s@noah-swift:10] Playback("SIP/501-0910dd08", "") in new stack
  == Spawn extension (noah-swift, s, 10) exited non-zero on 'SIP/501-0910dd08'

And yes, I did change the MySQL password and it has been updated in the php scripts. It's strange how it stopped working.
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top