SOLVED Enchilada SendMail IBM bugs

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
513
Reaction score
88
Location
Midhurst, ON, Canada
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
14,922
Reaction score
2,572
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
14,922
Reaction score
2,572
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
14,922
Reaction score
2,572
@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
14,922
Reaction score
2,572
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
 
  • Like
Reactions: Ramsey F

Members online

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,260
Messages
136,393
Members
14,499
Latest member
BenMcClements