Hi All, Here is what seems to be a working setup for Mblox using Alexanders patch. Patch applied to current CVS, no extra options enabled (if I enable mysql, I get a segfault, YMMV) I am currently in a testing phase with Mblox and will post any changes that might come from that, but the following seem to work. Adjust as you see fit: I know we are all being pushed to implement all their recent changes, and this patch seems the best way of keeping up....
kannel.conf: group = smpp-tlv name = MBoperator tag = 0x1402 type = octetstring length = 5 group = smpp-tlv name = MBbilling tag = 0x1403 type = octetstring length = 5 group = smpp-tlv name = MBsessionId tag = 0x1404 type = octetstring length = 60 group = smpp-tlv name = MBserviceDesc tag = 0x1405 type = octetstring length = 10 group = smpp-tlv name = MBcontentType tag = 0x1406 type = octetstring length = 5 group = smpp-tlv name = MBserviceId tag = 0x1407 type = octetstring length = 60 group = smpp-tlv name = MBimei tag = 0x1501 type = octetstring length = 5 group = smpp-tlv name = MBimode tag = 0x1502 type = octetstring length = 5 group = smpp-tlv name = MBsubId tag = 0x1503 type = octetstring length = 60 group = smpp-tlv name = MBhostNet tag = 0x1504 type = octetstring length = 5 group = smpp-tlv name = MBnewSub tag = 0x1505 type = octetstring length = 5 group = smpp-tlv name = MBsubRef tag = 0x1506 type = octetstring length = 60 group = smpp-tlv name = MBsubDateTag tag = 0x1509 type = octetstring length = 60 group = smpp-tlv name = MBuaProfTag tag = 0x1513 type = octetstring length = 60 group = smpp-tlv name = MBbillId tag = 0x1519 type = octetstring length = 60 group = smpp-tlv name = MBsessionIdTag tag = 0x1521 type = octetstring length = 60 group = smpp-tlv name = MBreasonCode tag = 0x1522 type = octetstring length = 60 group = smpp-tlv name = MBreasonMsg tag = 0x1523 type = octetstring length = 60 group = smpp-tlv name = MBcommand tag = 0x1524 type = octetstring length = 60 group = smpp-tlv name = MBavStatus tag = 0x1526 type = octetstring length = 60 group = smpp-tlv name = MBprodDesc tag = 0x1527 type = octetstring length = 60 Sending (PHP - X-Kannel-Headers,basic and slightly dirty): $post = "POST /cgi-bin/sendsms HTTP/1.1\r\n". "Host: X.X.X.X:XXXX\r\n". "X-Kannel-Username: test\r\n". "X-Kannel-Password: test\r\n". "X-Kannel-SMSC: ".$smsc."\r\n". "X-Kannel-Smsbox-Id: ".$box."\r\n". "X-Kannel-From: ".$from."\r\n". "X-Kannel-To: ".$MSISDN."\r\n"; $post .= "X-Kannel-DLR-Mask: 31\r\n". "X-Kannel-DLR-Url: http://X.X.X.X:XXXX/dlr.php?smsc-id=%i&status=%d&answer=%A&to=%P&from=%p&ts=%t&o=%o&I=%I&ts0=%D\r\n"; $post .= "X-Kannel-Meta-Data: ?smpp?MBbilling=".$bill."&MBoperator=".$operatorid."&MBxxxxx=xxxxx.......\r\n"; $post .='Content-Type: text/plain'."\r\n". "Content-Length: ".strlen($text)."\r\n". "\r\n". $text; $h=fsockopen('X.X.X.X','XXXX'); stream_set_timeout($h, 1); fwrite($h,$post); for($a=0,$r='';!$a;){ $b=fread($h,1024); $r.=$b; $a=(($b=='')?1:0); } fclose($h); $c=$c+1; -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: [EMAIL PROTECTED] http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at [EMAIL PROTECTED] **