Hi,

I'm using the example vCard php script that comes with Kannel, with the only changes being to fix the globals so that they use $_POST.

My gateway is connected to an SMSC and I can send messages.

When I submit the form to send a vCard I get an SMS arriving on the phone.

The content of the SMS is the text of the vCard, with about 40 characters removed from the beginning (not the end).

I've tried using version vCard version 3.0 and replacing \r\n with \n.

I've tried shortening the vCard so that it is only a bare minimum of characters.

The code I'm using is:

    $text  = "BEGIN:VCARD\r\n";
    $text .= "VERSION:2.1\r\n";
    $text .= "N:Test\r\n";
    $text .= "TEL;PREF:+".$_POST['telephone']."\r\n";
    $text .= "END:VCARD\r\n";

echo "Sending the vCard SMS message <b>\"$text\"</b> to the phone <b>". $_POST['to'] . "</b>...<br>\n"; $URL = "/cgi-bin/sendsms?username=".USERNAME."&password=".PASSWORD."&from=".GLOBAL_SENDER."&to=". $_POST['to'] . "&udh=%06%05%04%23%F4%00%00&text=".urlencode($text);

Is there a Kannel configuration issue that could be causing this? Kannel loads without errors or warnings, and happily delivers messages.

This is my Kannel config file :

group = core
admin-port = 13000
admin-password = adminpass
admin-deny-ip = ""
admin-allow-ip = "192.168.0.*"
wapbox-port = 13002
smsbox-port = 13003
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "192.168.0.*"


group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"

group = smsbox
bearerbox-host = localhost
sendsms-chars = "0123456789 +-"
global-sender = 123456
access-log = "kannel.access"
log-file = "smsbox.log"
log-level = 0
sendsms-port = 13031
smsbox-id = "TestSMSbox"
white-list-regex = "[[:print:]]"

# group = smsc
# smsc = fake
# port = 10002
# connect-allow-ip = "*.*.*.*"

#group = smsc
#smsc = smpp
#host = 192.168.0.215
#port = 2775
#receive-port = 2775
#smsc-username = "smppclient1"
#smsc-password = "password"
#system-type = "VMA"
#smsc-id = "TestSMSC"

group = smsc
smsc = smpp
host = ip.address.goes.here
port = myportnumber
receive-port = myportnumber
smsc-username = "username"
smsc-password = "password"
system-type = "VMA"
smsc-id = "Mobility Methods"

group = sendsms-user
username = testuser
password = testpass

group = sms-service
keyword = default
text = "No action specified"
max-messages = 0

group = sms-service
keyword = nop
text = "NOP"
catch-all = true

group = smsbox-route
smsbox-id = TestSMSbox
smsc-id = "Mobility Methods"


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to