diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-07-07 05:11:48 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-07-07 05:11:48 +0200 |
commit | 7193c2c0de0849dad1af6631a7ea9bf289d735b2 (patch) | |
tree | 394649e302426c8c421833b4f22cf4cf08196009 /localmarkdown2sms | |
parent | 312dd688350b570b5a7eb7a11f9f725252bfbedb (diff) |
Support Kannel concatenation flag, and transliterate from iso8859-1 also for Kannel.
Diffstat (limited to 'localmarkdown2sms')
-rwxr-xr-x | localmarkdown2sms | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/localmarkdown2sms b/localmarkdown2sms index c73a53f..8c62459 100755 --- a/localmarkdown2sms +++ b/localmarkdown2sms @@ -46,6 +46,7 @@ my $sms_phone = $ENV{SMS_PHONE}; my $sms_smsc = $ENV{SMS_SMSC}; my $sms_msgtag = $ENV{SMS_MSGTAG} || "text"; my $sms_cp = $ENV{SMS_CP} || "utf8"; +my $sms_concatenation = $ENV{SMS_CONCATENATION}; my $sms_concat = $ENV{SMS_CONCAT}; my $sms_dlr_mask = $ENV{SMS_DLR_MASK}; my $sms_dlr_url = $ENV{SMS_DLR_URL}; @@ -215,6 +216,7 @@ sub sendmsg { $url .= '&api_id=' . uri_escape($sms_api) if ($sms_api); $url .= '&from=' . uri_escape($sms_phone) if ($sms_phone); $url .= '&smsc=' . uri_escape($sms_smsc) if ($sms_smsc); + $url .= '&concatenation=true' if ($sms_concatenation); $url .= '&concat=' . uri_escape($sms_concat) if ($sms_concat); $url .= '&dlr-mask=' . uri_escape($sms_dlr_mask) if ($sms_dlr_mask); $url .= '&dlr-url=' . uri_escape($sms_dlr_url) if ($sms_dlr_url); |