SOLVED Enchilada SendMail IBM bugs

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
520
Reaction score
90
Found some bugs in the sendmail mp3 and bluemix test scripts

@wardmundy, you forgot a -e flag on the echo command in the sendmail file

You also need to remove the /en on the directory "test" sound file.

This happens when running the Enchilada upgrade script.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Fixed the installer. But here's the manual fix:

Code:
cd /usr/local/sbin
wget http://incrediblepbx.com/sendmailibm-13.tar.gz
tar zxvf sendmailibm-13.tar.gz
rm -f sendmailibm-13.tar.gz
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
The install methodology documented in the current Raspbian article has been tested and works reliably after you acknowledge the Google access as safe if you receive an email from Google.

@Ramsey F: If you'd like to document the "new way," we'd be glad to incorporate it. Thanks.
 

Ramsey F

Member
Joined
Feb 11, 2017
Messages
33
Reaction score
6
The install methodology documented in the current Raspbian article has been tested and works reliably after you acknowledge the Google access as safe if you receive an email from Google.

@Ramsey F: If you'd like to document the "new way," we'd be glad to incorporate it. Thanks.
Not Google. Sendmail IBM for Watson/Bluemix.

IBM changed from a user and password to just an apikey.

The new sendmailmp3.ibm from your link above uses the new apikey.

The sendmailmp3.ibm included in the Raspbian image uses the old method.

You can use the sendmailmp3.ibm from the link above in Raspbian. However, it prints extraneous "-e" in the voicemail message.

This is because you changed the "echo" command to "echo -e".

"echo" with no "-e" is needed for Raspbian
"echo -e" is needed for other Linux.

If the Raspbian image was updated with the correct method for Bluemix in sendmailmp3.ibm, then there would be no need for tinkering or extra explanation.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
@Ramsey F: You're responding to a post of mine that was written 15 months ago, long before IBM shifted gears. The latest Raspberry Pi image already has the correct
sendmailmp3.ibm script in place.
 
Last edited:

Ramsey F

Member
Joined
Feb 11, 2017
Messages
33
Reaction score
6
@wardmundy
I started out just wanting to address the echo -e issue but added on the problem with the Bluemix API key situation.

The Raspbian image is not current.

I just now installed incrediblepbx13-13.10-raspbian8.zip 2019-03-09

From sendmailmp3.ibm:
Code:
# 9. Logout by clicking on image icon in upper right corner of dialog window
API_USERNAME="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
API_PASSWORD="XXXXXXXXXXXX"

and

curl -s $CURL_OPTS -k -u $API_USERNAME:$API_PASSWORD -X POST \
    --limit-rate 40000 \
    --header "Content-Type: audio/wav" \
    --data-binary @stream.part3.wav \
    "https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?continuous=true&model=en-US_NarrowbandModel" 1>a$

As you can see, it still uses both the username and password instead of the apikey.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Looks like one of the SF repos has an earlier version. Not a big deal. Set API_USERNAME="apikey" and insert your actual API Key in the API_PASSWORD field, and you're good to go.

Code:
MD5 (incrediblepbx13-13.10-raspbian8.img) = e7cbaf9dc983740b29896866eaf06c4f
 

Members online

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
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