PIONEERS Lenny Is Back!

Trimline2

Guru
Joined
May 23, 2013
Messages
524
Reaction score
96
lgaetz: Give it another update. All of your suggestions are in place. Seems to be fine. Lenny is getting close to Prime Time Ready. :flowers:

Quick suggestion - since I'm getting calls and gmail keeps concatenating them, in your mp3 script I added the statement below following the email address:
subj="Lenny Recording $(date)"

And changed the command out string to:
/usr/local/bin/mime-construct --file "$file.mp3" --to $email --from root@localhost --type audio/mpeg --subject "$subj"

Now the subject reads "Lenny Recording Wed Aug 14 12:08:20 EDT 2013" and won't be appended to the previous gmail message - easy way to keep and file the "gems".... :rolleyes:
 

hoolahoous

New Member
Joined
Nov 7, 2010
Messages
15
Reaction score
2
quick question, I have vanilla freepbx (not pbxinflash) and I tried lenny module. However it is not working for me. I can call lenny at extension and it pickups and utters first audio file. But then it immediately exits. what could be wrong ?

forgot to add: I am on freepbx 2.11 and asterisk 11.3.0
 

sukasem

Guru
Joined
Sep 13, 2008
Messages
142
Reaction score
26
quick question, I have vanilla freepbx (not pbxinflash) and I tried lenny module. However it is not working for me. I can call lenny at extension and it pickups and utters first audio file. But then it immediately exits. what could be wrong ?

forgot to add: I am on freepbx 2.11 and asterisk 11.3.0


Please post Asterisk's log
 

Twilight Sparkle

https://voip.ms/en/invite/MjM2MjQ4
Joined
Jul 21, 2013
Messages
448
Reaction score
57
Quick Question?
is Lenny, Running in the background the whole time using Memory & or Pinging & or using Bandwidth when its not in use but active?

[ 12-6Cloud ]
 

sukasem

Guru
Joined
Sep 13, 2008
Messages
142
Reaction score
26
Quick Question?
is Lenny, Running in the background the whole time using Memory & or Pinging & or using Bandwidth when its not in use but active?

[ 12-6Cloud ]


No, no, no

Lenny is like answering machine or IVR and this one is installed on your own Asterisk server.
 

hoolahoous

New Member
Joined
Nov 7, 2010
Messages
15
Reaction score
2
Please post Asterisk's log


Code:
-- Executing [53669@from-internal:32] Set("SIP/2000-000000c2", "LOCAL(lennyclip)=Lenny01") in new stack
    -- Executing [53669@from-internal:33] Set("SIP/2000-000000c2", "TALK_DETECTED=0") in new stack
    -- Executing [53669@from-internal:34] BackGround("SIP/2000-000000c2", "lenny/Lenny01") in new stack
    -- <SIP/2000-000000c2> Playing 'lenny/Lenny01.ulaw' (language 'en')
  == Spawn extension (from-internal, 53669, 35) exited non-zero on 'SIP/2000-000000c2'
    -- Executing [h@from-internal:1] Hangup("SIP/2000-000000c2", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2000-000000c2'
 

hoolahoous

New Member
Joined
Nov 7, 2010
Messages
15
Reaction score
2
okay i narrowed it to this line.. it is barfing at ..

Code:
exten => 53669,n,AMD(2500,1500,800,5000,100,50,3,256)

does asterisk 11 not support AMD ?
 

Mango

www.toao.net
Joined
Aug 10, 2013
Messages
46
Reaction score
13
I'm so happy! Lenny kept someone from a survey company occupied for well over five minutes! :clap:


(Cross posted to the other forum - this is the only time I'll do that. Promise.)
 

sukasem

Guru
Joined
Sep 13, 2008
Messages
142
Reaction score
26
okay i narrowed it to this line.. it is barfing at ..

Code:
exten => 53669,n,AMD(2500,1500,800,5000,100,50,3,256)

does asterisk 11 not support AMD ?


I'm no expert on that. But you may comment out a few lines (AMD to GotoIf) and see if it still hangup.
 

hoolahoous

New Member
Joined
Nov 7, 2010
Messages
15
Reaction score
2
nope it does not. it went ahead. so something wrong with AMD. any idea how to check what's wrong with AMD ? i tried doing a core show applications and AMD didn't show up there. should it show up there ?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
hoolahoous: Not sure what you mean when you say you're using "vanilla FreePBX"?? It may be that the FreePBX Distro's implementation of Asterisk 11 does not support the AMD function. Or, if you rolled your own version of Asterisk and FreePBX, then perhaps you left something out. It works fine with PIAF-Green running Asterisk 11. You probably need to raise the issue on their forum for a better response/solution if, in fact, you're using the FreePBX Distro.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Lorne you need to check for the existence of that function in your module.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
If you have the freepbx distro you need to add a blank amd.conf file in the asterisk configuration directory. Then restart asterisk and it will work.
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
864
Reaction score
144
I finally had a chance to add the updated components to my test VM. AMD seems to work just as well as WaitForSilence did. Now, all I need is for an unsuspecting telespammer to call!

Of course...

demotivation.us_THE-BEST-WAY-TO-GET-RID-OF-A-TELEMARKETER-is-to-ask-them-what-they-are-wearing_137087889343.jpg
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Done.
Code:
/** Returns whether a give application exists in this Asterisk install
* @param string $app    The case in-sensitve name of the application
* @return bool True if if it exists
*/
$astman->app_exists('amd');
Added to the tracker, if anyone has a pointer on how to do this please feel free add some details or a link to code somewhere.
 

phoneguy

Guru
Joined
Jan 13, 2008
Messages
285
Reaction score
54
I guess I am confused here on the module. How is the module licensed? You say its based off of your other Lenny module which is GPL so this would need to be GPL to be compliant yet I see no license and last I knew the soundfiles which are the core of the feature are not GPL.
 

mbellot

Active Member
Joined
Dec 15, 2008
Messages
404
Reaction score
185
Asterisk 1.4 not supported. Sorry.

Not so fast Ward!

It's not pretty, but I got Lenny working on Asterisk 1.4 today. :D

The root of the problem is the Gosub command. Before asterisk 1.6 you couldn't pass arguments, which is why it was bombing on the first "playitonce" command.

By converting everything to a linear flow and only using Playback and WaitForSilence it now appears to work just fine.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Tony is just looking out for end developers because the license is unknown on the sound files. He just wants us to obtain a license for the sound files. That is all :)

Without a license file for those it's a little scary. But you know...

wardmundy do you know the guy who owns them?

Assuming you are talking about my unfinished effort on Github, at the moment there is nothing to license. When and if there is something to release, the license terms will form part of the announcement. I am proceeding for now with the assumption that the sound files are in the public domain.
 

Members online

No members online now.

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
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.
Top