Hi List

I am a total noob, this is my first time using kannel. And I am hoping
someone can set me straight. I have been able to setup kannel and
playSMS. PlaySMS
works great and it has its own dlr working as expected.
I am trying to get http send sms calls to kannel to work too for
sendsms-user groups to call the dlr-url and mask by setting this in
kannel.conf:


group = sendsms-user
username = me
password = you
default-smsc = testsmsc
dlr-url = "http://localhost/smsdlr/kanneldb.php";

group = sms-service
keyword = default
catch-all = true
omit-empty = true
accept-x-kannel-headers = true
max-messages = 0
#accepted-smsc = testsmsc;clickatells;smpp-nexmo
get-url = 
"http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q";

group = smsc
smsc = smpp
smsc-id = testsmsc
host = 127.0.0.1
port = 2775
smsc-username = smppclient1
smsc-password = password
system-type = 'VMA'
service-type = 'test'
interface-version = 34
address-range = ''
msg-id-type = 0
connect-allow-ip = "127.0.0.*;10.22.0.*"

This is also my very first foray into php in a very long time. I
wonder if anyone can tell me why the dlr URL isnt working either. Its
contents are like so:

<?php

$user_name = "user";
$password = "pwd";
$database = "kanneldb";
$server = "127.0.0.1";

$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);

if ($db_found) {

$SQL = "INSERT INTO kannel_dlr ( smsc, timestamp, destination, source,
service, url, mask, status, boxc_id ) VALUES ('$field-smsc',
'$field-timestamp', '$field-destination', '$field-source',
'$field-service', '$field-url', '$field-mask', '$field-status',
'$field-boxc-id')";

$result = mysql_query($SQL);

mysql_close($db_handle);

print "Records added to the database";

}
else {

print "Database NOT Found ";
mysql_close($db_handle);

}

?>

I feel I am totally in over my head. Please can someone offer any
advice to set me straight?

Yours in anticipation;

Reply via email to