Sorry I was suppose to post it on kannel users list, I mistakenly posted it to mbuni users list. I apologize for this.
Any ways, I am trying to send OTA settings for my MMS module, and I am stuck here. I would appreciate help from anyone on this list. Best Regards, Aftab Hussain ---------- Forwarded message ---------- From: aftab hussain <aftab.huss...@seecs.edu.pk> Date: Thu, Jan 14, 2010 at 2:31 AM Subject: OTA Settings problem, help required To: users@mbuni.org Dear All, I am trying to send OTA settings to mobile devices using /cgi/bin/sendota interface from php. But I am getting the following error: 2010-01-14 15:50:31 [18727] [6] DEBUG: no match found: ^[ ]*(nop)[ ]* 2010-01-14 15:50:31 [18727] [6] DEBUG: no match found: ^[ ]*(hi)[ ]* 2010-01-14 15:50:31 [18727] [6] DEBUG: no match found: ^[ ]*(srv)[ ]* 2010-01-14 15:50:31 [18727] [6] DEBUG: no match found: ^[ ]*(mms)[ ]* 2010-01-14 15:50:31 [18727] [6] DEBUG: match found: ^[ ]*(ota)[ ]* 2010-01-14 15:50:31 [18727] [6] INFO: Starting to service <Ota> from <+923225046338> to <00923225046352> 2010-01-14 15:50:31 [18727] [2] DEBUG: Queue contains 0 pending requests. 2010-01-14 15:50:31 [18727] [2] DEBUG: HTTPS URL; Using SSL for the connection 2010-01-14 15:50:31 [18727] [2] DEBUG: Parsing URL ` https://10.3.20.136/interface/kannel_setup/ota_settings.php?sender=%2B923225046338 ': 2010-01-14 15:50:31 [18727] [2] DEBUG: Scheme: https:// 2010-01-14 15:50:31 [18727] [2] DEBUG: Host: 10.3.20.136 2010-01-14 15:50:31 [18727] [2] DEBUG: Port: 443 2010-01-14 15:50:31 [18727] [2] DEBUG: Username: (null) 2010-01-14 15:50:31 [18727] [2] DEBUG: Password: (null) 2010-01-14 15:50:31 [18727] [2] DEBUG: Path: /interface/kannel_setup/ota_settings.php 2010-01-14 15:50:31 [18727] [2] DEBUG: Query: sender=%2B923225046338 2010-01-14 15:50:31 [18727] [2] DEBUG: Fragment: (null) 2010-01-14 15:50:31 [18727] [2] DEBUG: HTTP: Opening connection to ` 10.3.20.136:443' (fd=28). 2010-01-14 15:50:31 [18727] [2] DEBUG: Socket connecting 2010-01-14 15:50:31 [18727] [1] DEBUG: Get info about connecting socket 2010-01-14 15:50:31 [18727] [1] DEBUG: HTTP: Sending request: 2010-01-14 15:50:31 [18727] [1] DEBUG: Octet string at 0x8156dc8: 2010-01-14 15:50:31 [18727] [1] DEBUG: len: 153 2010-01-14 15:50:31 [18727] [1] DEBUG: size: 1024 2010-01-14 15:50:31 [18727] [1] DEBUG: immutable: 0 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 47 45 54 20 2f 69 6e 74 65 72 66 61 63 65 2f 6b GET /interface/k 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 61 6e 6e 65 6c 5f 73 65 74 75 70 2f 6f 74 61 5f annel_setup/ota_ 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 73 65 74 74 69 6e 67 73 2e 70 68 70 3f 73 65 6e settings.php?sen 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 64 65 72 3d 25 32 42 39 32 33 32 32 35 30 34 36 der=%2B923225046 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 33 33 38 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 338 HTTP/1.1..Ho 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 73 74 3a 20 31 30 2e 33 2e 32 30 2e 31 33 36 3a st: 10.3.20.136: 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 34 34 33 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 443..Connection: 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 55 73 65 keep-alive..Use 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 72 2d 41 67 65 6e 74 3a 20 4b 61 6e 6e 65 6c 2f r-Agent: Kannel/ 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 31 2e 34 2e 33 0d 0a 0d 0a 1.4.3.... 2010-01-14 15:50:31 [18727] [1] DEBUG: Octet string dump ends. 2010-01-14 15:50:31 [18727] [4] DEBUG: HTTP: Creating HTTPClient for `10.3.20.136'. 2010-01-14 15:50:31 [18727] [4] DEBUG: HTTP: Created HTTPClient area 0x81688a0. 2010-01-14 15:50:31 [18727] [5] INFO: smsbox: Got HTTP request </cgi-bin/sendota> from <10.3.20.136> 2010-01-14 15:50:31 [18727] [5] INFO: sendsms used by <OTA_sender> 2010-01-14 15:50:31 [18727] [5] DEBUG: OTA service with XML document 2010-01-14 15:50:31 [18727] [5] ERROR: OTA: No document to parse. Probably an error in OTA source 2010-01-14 15:50:31 [18727] [5] DEBUG: Status: 400 Answer: <Erroneous ota source, cannot compile > 2010-01-14 15:50:31 [18727] [5] DEBUG: HTTP: Destroying HTTPClient area 0x81688a0. 2010-01-14 15:50:31 [18727] [5] DEBUG: HTTP: Destroying HTTPClient for `10.3.20.136'. 2010-01-14 15:50:31 [18727] [1] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK> 2010-01-14 15:50:31 [18727] [1] DEBUG: HTTP: Received response: 2010-01-14 15:50:31 [18727] [1] DEBUG: Octet string at 0x815e148: 2010-01-14 15:50:31 [18727] [1] DEBUG: len: 201 2010-01-14 15:50:31 [18727] [1] DEBUG: size: 1024 2010-01-14 15:50:31 [18727] [1] DEBUG: immutable: 0 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 44 61 74 65 3a 20 54 68 75 2c 20 31 34 20 4a 61 Date: Thu, 14 Ja 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 6e 20 32 30 31 30 20 30 39 3a 34 31 3a 31 33 20 n 2010 09:41:13 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 47 4d 54 0d 0a 53 65 72 76 65 72 3a 20 41 70 61 GMT..Server: Apa 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 63 68 65 2f 32 2e 32 2e 31 30 20 28 4c 69 6e 75 che/2.2.10 (Linu 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 78 2f 53 55 53 45 29 0d 0a 58 2d 50 6f 77 65 72 x/SUSE)..X-Power 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 65 64 2d 42 79 3a 20 50 48 50 2f 35 2e 32 2e 39 ed-By: PHP/5.2.9 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 ..Content-Length 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 3a 20 30 0d 0a 4b 65 65 70 2d 41 6c 69 76 65 3a : 0..Keep-Alive: 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 20 74 69 6d 65 6f 75 74 3d 31 35 2c 20 6d 61 78 timeout=15, max 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 3d 31 30 30 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e =100..Connection 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 3a 20 4b 65 65 70 2d 41 6c 69 76 65 0d 0a 43 6f : Keep-Alive..Co 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 ntent-Type: text 2010-01-14 15:50:31 [18727] [1] DEBUG: data: 2f 68 74 6d 6c 0d 0a 0d 0a /html.... 2010-01-14 15:50:31 [18727] [1] DEBUG: Octet string dump ends. 2010-01-14 15:50:46 [18727] [1] DEBUG: HTTP: Server closed connection, destroying it <10.3.20.136:443:1::><0x81684a8><fd:28>. 2010-01-14 15:55:43 [18727] [6] DEBUG: no match found: ^[ ]*(nop)[ ]* 2010-01-14 15:55:43 [18727] [6] DEBUG: no match found: ^[ ]*(hi)[ ]* 2010-01-14 15:55:43 [18727] [6] DEBUG: no match found: ^[ ]*(srv)[ ]* 2010-01-14 15:55:43 [18727] [6] DEBUG: no match found: ^[ ]*(mms)[ ]* 2010-01-14 15:55:43 [18727] [6] DEBUG: match found: ^[ ]*(ota)[ ]* 2010-01-14 15:55:43 [18727] [6] INFO: Starting to service <Ota> from <+923225046338> to <00923225046352> 2010-01-14 15:55:43 [18727] [2] DEBUG: Queue contains 0 pending requests. 2010-01-14 15:55:43 [18727] [2] DEBUG: HTTPS URL; Using SSL for the connection 2010-01-14 15:55:43 [18727] [2] DEBUG: Parsing URL ` https://10.3.20.136/interface/kannel_setup/ota_settings.php?sender=%2B923225046338 ': 2010-01-14 15:55:43 [18727] [2] DEBUG: Scheme: https:// 2010-01-14 15:55:43 [18727] [2] DEBUG: Host: 10.3.20.136 2010-01-14 15:55:43 [18727] [2] DEBUG: Port: 443 2010-01-14 15:55:43 [18727] [2] DEBUG: Username: (null) 2010-01-14 15:55:43 [18727] [2] DEBUG: Password: (null) 2010-01-14 15:55:43 [18727] [2] DEBUG: Path: /interface/kannel_setup/ota_settings.php 2010-01-14 15:55:43 [18727] [2] DEBUG: Query: sender=%2B923225046338 2010-01-14 15:55:43 [18727] [2] DEBUG: Fragment: (null) 2010-01-14 15:55:43 [18727] [2] DEBUG: HTTP: Opening connection to ` 10.3.20.136:443' (fd=28). 2010-01-14 15:55:43 [18727] [2] DEBUG: Socket connecting 2010-01-14 15:55:43 [18727] [1] DEBUG: Get info about connecting socket 2010-01-14 15:55:43 [18727] [1] DEBUG: HTTP: Sending request: 2010-01-14 15:55:43 [18727] [1] DEBUG: Octet string at 0x8156860: 2010-01-14 15:55:43 [18727] [1] DEBUG: len: 153 2010-01-14 15:55:43 [18727] [1] DEBUG: size: 1024 2010-01-14 15:55:43 [18727] [1] DEBUG: immutable: 0 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 47 45 54 20 2f 69 6e 74 65 72 66 61 63 65 2f 6b GET /interface/k 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 61 6e 6e 65 6c 5f 73 65 74 75 70 2f 6f 74 61 5f annel_setup/ota_ 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 73 65 74 74 69 6e 67 73 2e 70 68 70 3f 73 65 6e settings.php?sen 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 64 65 72 3d 25 32 42 39 32 33 32 32 35 30 34 36 der=%2B923225046 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 33 33 38 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 338 HTTP/1.1..Ho 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 73 74 3a 20 31 30 2e 33 2e 32 30 2e 31 33 36 3a st: 10.3.20.136: 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 34 34 33 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 443..Connection: 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 55 73 65 keep-alive..Use 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 72 2d 41 67 65 6e 74 3a 20 4b 61 6e 6e 65 6c 2f r-Agent: Kannel/ 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 31 2e 34 2e 33 0d 0a 0d 0a 1.4.3.... 2010-01-14 15:55:43 [18727] [1] DEBUG: Octet string dump ends. 2010-01-14 15:55:43 [18727] [4] DEBUG: HTTP: Creating HTTPClient for `10.3.20.136'. 2010-01-14 15:55:43 [18727] [4] DEBUG: HTTP: Created HTTPClient area 0x8166a40. 2010-01-14 15:55:43 [18727] [5] INFO: smsbox: Got HTTP request </cgi-bin/sendota> from <10.3.20.136> 2010-01-14 15:55:43 [18727] [5] INFO: sendsms used by <OTA_sender> 2010-01-14 15:55:43 [18727] [5] DEBUG: OTA service with XML document 2010-01-14 15:55:43 [18727] [5] ERROR: OTA: No document to parse. Probably an error in OTA source 2010-01-14 15:55:43 [18727] [5] DEBUG: Status: 400 Answer: <Erroneous ota source, cannot compile > 2010-01-14 15:55:43 [18727] [5] DEBUG: HTTP: Destroying HTTPClient area 0x8166a40. 2010-01-14 15:55:43 [18727] [5] DEBUG: HTTP: Destroying HTTPClient for `10.3.20.136'. 2010-01-14 15:55:43 [18727] [1] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK> 2010-01-14 15:55:43 [18727] [1] DEBUG: HTTP: Received response: 2010-01-14 15:55:43 [18727] [1] DEBUG: Octet string at 0x8158618: 2010-01-14 15:55:43 [18727] [1] DEBUG: len: 201 2010-01-14 15:55:43 [18727] [1] DEBUG: size: 1024 2010-01-14 15:55:43 [18727] [1] DEBUG: immutable: 0 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 44 61 74 65 3a 20 54 68 75 2c 20 31 34 20 4a 61 Date: Thu, 14 Ja 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 6e 20 32 30 31 30 20 30 39 3a 34 36 3a 32 35 20 n 2010 09:46:25 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 47 4d 54 0d 0a 53 65 72 76 65 72 3a 20 41 70 61 GMT..Server: Apa 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 63 68 65 2f 32 2e 32 2e 31 30 20 28 4c 69 6e 75 che/2.2.10 (Linu 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 78 2f 53 55 53 45 29 0d 0a 58 2d 50 6f 77 65 72 x/SUSE)..X-Power 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 65 64 2d 42 79 3a 20 50 48 50 2f 35 2e 32 2e 39 ed-By: PHP/5.2.9 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 ..Content-Length 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 3a 20 30 0d 0a 4b 65 65 70 2d 41 6c 69 76 65 3a : 0..Keep-Alive: 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 20 74 69 6d 65 6f 75 74 3d 31 35 2c 20 6d 61 78 timeout=15, max 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 3d 31 30 30 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e =100..Connection 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 3a 20 4b 65 65 70 2d 41 6c 69 76 65 0d 0a 43 6f : Keep-Alive..Co 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 ntent-Type: text 2010-01-14 15:55:43 [18727] [1] DEBUG: data: 2f 68 74 6d 6c 0d 0a 0d 0a /html.... 2010-01-14 15:55:43 [18727] [1] DEBUG: Octet string dump ends. 2010-01-14 15:55:58 [18727] [1] DEBUG: HTTP: Server closed connection, destroying it <10.3.20.136:443:1::><0x8159dc0><fd:28>. I have the following php code and configuration. <?php include("config.inc"); $in_phoneNumber = $_REQUEST["sender"]; /* $ota_xml_str = "<?xml version=\"1.0\"?>". "<!DOCTYPE CHARACTERISTIC-LIST SYSTEM \"file:settings.dtd\">". "<CHARACTERISTIC-LIST>". "<CHARACTERISTIC TYPE=\"ADDRESS\">". "<PARM NAME=\"BEARER\" VALUE=\"Packet data\"/>". "<PARM NAME=\"PROXY\" VALUE=\"\"/>". "<PARM NAME=\"PORT\" VALUE=\"\"/>". "<PARM NAME=\"GPRS_ACCESSPOINTNAME\" VALUE=\"wap.warid\"/>". "<PARM NAME=\"PPP_AUTHTYPE\" VALUE=\"PAP\"/>". "<PARM NAME=\"PPP_AUTHNAME\" VALUE=\"\"/>". "<PARM NAME=\"PPP_AUTHSECRET\" VALUE=\"\"/>". "</CHARACTERISTIC>". "<CHARACTERISTIC TYPE=\"URL\" VALUE=\" http://barq.seecs.edu.pk:1961/mms/\"/>". "<CHARACTERISTIC TYPE=\"NAME\">". "<PARM NAME=\"NAME\" VALUE=\"Jaroka Tele-Healthcare System\"/>". "</CHARACTERISTIC></CHARACTERISTIC-LIST>". */ $URL = "/cgi-bin/sendota?username=OTA_sender" . "&password=ota_foobar" . "&from=".GLOBAL_SENDER // . "&dlr-mask={$dlr_mask}" . "&to=".urlencode($in_phoneNumber)."&text=".urlencode("file://./ota.xml")."&type=settings"; $results = file('http://' .BEARERBOX_HOST.':' .SENDSMS_PORT . $URL); ?> Here I have tried to build a string in php for the xml, it did not work, then I created the xml document containing the same settings mentioned in the code, and gave its url in the $URL, it did not work either. I have the following conf settings. group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar log-file = "kannel.log" box-allow-ip = "*.*.*.*" unified-prefix = "+92,0092;+1,001;+" group = smsc smsc = at smsc-id = wavecom modemtype = wavecom device = /dev/ttyUSB0 my-number = 00923225046352 keepalive = 30 connect-allow-ip =*.*.*.* group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 global-sender = 13013 log-file = "/tmp/smsbox.log" ccess-log = "/tmp/access.log" global-sender = 00923225046352 black-list = blist.txt group = sendsms-user username = tester password = foobar max-messages = 5 concatenation = true omit-empty = true #user-deny-ip = *.*.*.* user-allow-ip = *.*.*.* group = sendsms-user username = OTA_sender password = ota_foobar max-messages = 5 concatenation = true omit-empty = true user-allow-ip = *.*.*.* group = sms-service keyword = ota get-url = " https://10.3.20.136/interface/kannel_setup/ota_settings.php?sender=%p" accept-x-kannel-headers = true max-messages = 5 concatenation = true omit-empty = true Can any please help me out as to what is going wrong here from my side. Best Regards, Aftab
_______________________________________________ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users