[SOLVED] Kannel Pending Status for all sent Messages

This is a common problem. I also had the same issues with the latest PlaySMS 1.4 and fixed it programmatically by editing the fn.php in plugins/gateways/kannel. This checks if the playsms_web URL has either http or https and when empty adds to playsms_web URL for dlr-url

Hopping it helps.

CODE SNIPPET:

   // prior to 0.9.5.1
    // $dlr_url = $plugin_config['kannel']['playsms_web'] . "/plugin/gateway/kannel/dlr.php?type=%d&smslog_id=".$smslog_id."&uid=".$uid;
    // since 0.9.5.1
    $weburl = $plugin_config['kannel']['playsms_web']; //PlaySMS_web URL

$parsed = parse_url($weburl);

if (empty($parsed[‘scheme’])) {
if (!empty($_SERVER[‘HTTPS’])) {
// https is enabled
$playsms_web = ‘https://’ . ltrim($weburl, ‘/’);
}else{
$playsms_web = ‘http://’ . ltrim($weburl, ‘/’);
}
}else{
$playsms_web = $weburl;
}

//DLR-URL Now becomes:

    $dlr_url = $playsms_web . "/index.php?app=call&cat=gateway&plugin=kannel&access=dlr&type=%d&smslog_id=" . $smslog_id . "&uid=" . $uid . "&smsc=" . $smsc;