Skip to content

Commit

Permalink
Fix #62
Browse files Browse the repository at this point in the history
  • Loading branch information
billsimon committed Nov 22, 2024
1 parent bede520 commit 43064c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ a generic, expandable connector, with new providers added as contributed by the

### Installation

* `fwconsole ma downloadinstall https://github.com/simontelephonics/smsconnector/releases/download/v16.0.17.1/smsconnector-16.0.17.1.tar.gz`
* `fwconsole ma downloadinstall https://github.com/simontelephonics/smsconnector/releases/download/v16.0.17.2/smsconnector-16.0.17.2.tar.gz`
* `fwconsole r`

### Configuration
Expand Down
4 changes: 4 additions & 0 deletions adaptor/Smsconnector.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Smsconnector extends \FreePBX\modules\Sms\AdaptorBase {

public function sendMedia($to,$from,$cnam,$message=null,$files=array(),$time=null,$adaptor=null,$emid=null,$chatId='')
{
$message ??= ''; // string is expected, so don't allow a null

// Store in database
$retval = array();
try
Expand Down Expand Up @@ -41,6 +43,8 @@ public function sendMedia($to,$from,$cnam,$message=null,$files=array(),$time=nul

public function sendMessage($to,$from,$cnam,$message,$time=null,$adaptor=null,$emid=null,$chatId='')
{
$message ??= ''; // string is expected, so don't allow a null

// Clean up 'to' number if we got one with a +. Only seems to apply to mobile app. UCP
// and desktop apps format number before invoking this module.
$to = ltrim($to, '+');
Expand Down
3 changes: 2 additions & 1 deletion module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<rawname>smsconnector</rawname>
<repo>unsupported</repo>
<name>SMS Connector</name>
<version>16.0.17.1</version>
<version>16.0.17.2</version>
<category>Connectivity</category>
<Publisher>Simon Telephonics LLC</Publisher>
<info>http://wiki.freepbx.org/</info>
Expand Down Expand Up @@ -45,6 +45,7 @@
</table>
</database>
<changelog>
*16.0.17.2* Bug fix: #62 set message to empty string if null
*16.0.17.1* Bug fix: replace any incoming null/unset message bodies with empty string
*16.0.17* Adds provider Bandwidth.com
*16.0.16.1* Update i18n, code clean-up, number formatting enhancements
Expand Down

0 comments on commit 43064c3

Please sign in to comment.