Skip to content

Commit

Permalink
fix kannel dlr-mask option
Browse files Browse the repository at this point in the history
  • Loading branch information
antonraharja committed Sep 8, 2015
1 parent 1541512 commit 1c4d0d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion web/plugin/gateway/kannel/fn.php
Expand Up @@ -85,7 +85,7 @@ function kannel_hook_sendsms($smsc, $sms_sender, $sms_footer, $sms_to, $sms_msg,
$URL .= "&from=" . urlencode($sms_sender) . "&to=" . urlencode($sms_to);
// Handle DLR options config (emmanuel)
// $URL .= "&dlr-mask=31&dlr-url=".urlencode($dlr_url);
$URL .= "&dlr-mask=" . $plugin_config['kannel']['dlr'] . "&dlr-url=" . urlencode($dlr_url);
$URL .= "&dlr-mask=" . $plugin_config['kannel']['dlr_mask'] . "&dlr-url=" . urlencode($dlr_url);
// end of Handle DLR options config (emmanuel)


Expand Down
10 changes: 0 additions & 10 deletions web/plugin/gateway/kannel/kannel.php
Expand Up @@ -26,16 +26,6 @@

switch (_OP_) {
case "manage":
// Handle DLR options config (emmanuel)
/*
* DLR Kannel value 1: Delivered to phone 2: Non-Delivered to Phone 4: Queued on SMSC 8: Delivered to SMSC 16: Non-Delivered to SMSC
*/
$up_dlr_box = "<input type='checkbox' name='dlr_box[]' value='1' " . $checked[0] . "> " . _('Delivered to phone') . "<br />";
$up_dlr_box .= "<input type='checkbox' name='dlr_box[]' value='2' " . $checked[1] . "> " . _('Non-Delivered to phone') . "<br />";
$up_dlr_box .= "<input type='checkbox' name='dlr_box[]' value='4' " . $checked[2] . "> " . _('Queued on SMSC') . "<br />";
$up_dlr_box .= "<input type='checkbox' name='dlr_box[]' value='8' " . $checked[3] . "> " . _('Delivered to SMSC') . "<br />";
$up_dlr_box .= "<input type='checkbox' name='dlr_box[]' value='16' " . $checked[4] . "> " . _('Non-Delivered to SMSC') . "<br />";
// end of Handle DLR options config (emmanuel)
if ($plugin_config['kannel']['local_time']) {
$selected1 = 'selected';
} else {
Expand Down

0 comments on commit 1c4d0d8

Please sign in to comment.