Re: I/O Error or other error.
Your system is not connected to SMSC. Either some VPN issue or something similar. In short, far-end to which you are connecting is not SMSC. On Tue, Jul 12, 2011 at 10:58 AM, Karan Zaveri karanzav...@gmail.comwrote: Hello, When trying to connect with SMSC i am getting the following error. 2011-07-07 03:49:34 [22587] [8] ERROR: SMPP[smscMTn]: I/O error or other error. Re-connecting. 2011-07-07 03:49:34 [22587] [8] ERROR: SMPP[smscMTn]: Couldn't connect to SMS center (retrying in 10 seconds). Has anyone faced this problem before? This does not seem to be an error generated because of incorrect login credentials but something else, not sure what is really causing this as the error is very unclear. Karan
Not able to access wml pages from winwap through kannel
Hi All, I have installed cygwin on my windows xp machine and compiled and installed kannel. I was able to start bearerbox wapbox successfully on the same machine. Problem is I am trying to fetch wap.google.com from winwap browser emulator through kannel but I could not access that page. While retrieving the URL: http://wap.google.com the following error occurred: HTTP error 502: Bad Gateway I get the following msg on my window. I have set IP to the IP of my machine and it in gateway mode. Also my machine is in DNS. PFA wapbox log file. Please can anyone help me out how to access wml pages from my winwap browser through kannel. Regards, Santhosh M S. wapbox.log Description: Binary data
[Kannel] no service specified
Hi All, Kannel Version : 1.4.3 I have try to execute same URL on 2 different US number. On 14084832111 this number, message sent successfully as shown 202 in kannel.log and while trying to send same message on 14086078208, it not works and send me reply no service specified. when I received failed from 14086078208 this number, I tried to remove '/', ':' from link, and result was same. Here, I paste log as well as configuration file. Please suggest me if anything configured wrong. SUCCESS Request Log: wget http://192.168.64.23:13013/cgi-bin/sendsms?username=examplepassword=exampleto=14084832111from=18475978085text=Clickon this link to verify your phone number http://exampleverify.example.com:8080/examplews/verify?2ExRb3ayour code is 1235 smsbox.log [13179] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.64.55'. [13179] [2] DEBUG: HTTP: Created HTTPClient area 0x92d26d0. [13179] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 192.168.64.55 [13179] [3] INFO: sendsms used by example [13179] [3] INFO: sendsms sender:example:18475978085 (192.168.64.55) to:14084832111 msg:Click on this link to verify your phone number http://exampleverify.example.com:8080/examplews/verify?2ExRb3ayour code is 1235 [13179] [3] DEBUG: Stored UUID f467231a-125e-41cd-8eb2-c574e906b640 [13179] [3] DEBUG: message length 129, sending 1 messages [13179] [3] DEBUG: Status: 202 Answer: Sent. [13179] [3] DEBUG: Delayed reply - wait for bearerbox [13179] [0] DEBUG: Got ACK (0) of f467231a-125e-41cd-8eb2-c574e906b640 [13179] [0] DEBUG: HTTP: Resetting HTTPClient for `192.168.64.55'. [13179] [1] DEBUG: HTTP: Destroying HTTPClient area 0x92d26d0. [13179] [1] DEBUG: HTTP: Destroying HTTPClient for `192.168.64.55'. kannel.log [13165] [11] DEBUG: boxc_receiver: sms received [13165] [11] DEBUG: send_msg: sending msg to box: 127.0.0.1 [13165] [6] DEBUG: SMPP[smpp_test]: Sending PDU: [13165] [6] DEBUG: SMPP PDU 0x2c003ed0 dump: [13165] [6] DEBUG: type_name: submit_sm [13165] [6] DEBUG: command_id: 4 = 0x0004 [13165] [6] DEBUG: command_status: 0 = 0x [13165] [6] DEBUG: sequence_number: 146335 = 0x00023b9f [13165] [6] DEBUG: service_type: NULL [13165] [6] DEBUG: source_addr_ton: 2 = 0x0002 [13165] [6] DEBUG: source_addr_npi: 1 = 0x0001 [13165] [6] DEBUG: source_addr: 18475978085 [13165] [6] DEBUG: dest_addr_ton: 2 = 0x0002 [13165] [6] DEBUG: dest_addr_npi: 1 = 0x0001 [13165] [6] DEBUG: destination_addr: 14084832111 [13165] [6] DEBUG: esm_class: 3 = 0x0003 [13165] [6] DEBUG: protocol_id: 0 = 0x [13165] [6] DEBUG: priority_flag: 0 = 0x [13165] [6] DEBUG: schedule_delivery_time: NULL [13165] [6] DEBUG: validity_period: NULL [13165] [6] DEBUG: registered_delivery: 0 = 0x [13165] [6] DEBUG: replace_if_present_flag: 0 = 0x [13165] [6] DEBUG: data_coding: 0 = 0x [13165] [6] DEBUG: sm_default_msg_id: 0 = 0x [13165] [6] DEBUG: sm_length: 129 = 0x0081 [13165] [6] DEBUG: short_message: [13165] [6] DEBUG:Octet string at 0x2c000cd0: [13165] [6] DEBUG: len: 129 [13165] [6] DEBUG: size: 130 [13165] [6] DEBUG: immutable: 0 [13165] [6] DEBUG: data: 43 6c 69 63 6b 20 6f 6e 20 74 68 69 73 20 6c 69 Click on this li [13165] [6] DEBUG: data: 6e 6b 20 74 6f 20 76 65 72 69 66 79 20 79 6f 75 nk to verify you [13165] [6] DEBUG: data: 72 20 70 68 6f 6e 65 20 6e 75 6d 62 65 72 20 20 r phone number [13165] [6] DEBUG: data: 68 74 74 70 3a 2f 2f 6a 61 78 74 72 73 6d 73 76 http://examplev [13165] [6] DEBUG: data: 65 72 69 66 79 2e 6a 61 78 74 72 2e 63 6f 6d 3a erify.example.com: [13165] [6] DEBUG: data: 38 30 38 30 2f 6a 61 78 74 72 77 73 2f 76 65 72 8080/examplews/ver [13165] [6] DEBUG: data: 69 66 79 3f 32 45 78 52 62 33 61 20 20 20 20 79 ify?2ExRb3ay [13165] [6] DEBUG: data: 6f 75 72 20 63 6f 64 65 20 69 73 20 20 31 32 33 our code is 123 [13165] [6] DEBUG: data: 355 [13165] [6] DEBUG:Octet string dump ends. [13165] [6] DEBUG: SMPP PDU dump ends. [13165] [6] DEBUG: SMPP[smpp_test]: Got PDU: [13165] [6] DEBUG: SMPP PDU 0x2c003ed0 dump: [13165] [6] DEBUG: type_name: submit_sm_resp [13165] [6] DEBUG: command_id: 2147483652 = 0x8004 [13165] [6] DEBUG: command_status: 0 = 0x [13165] [6] DEBUG: sequence_number: 146335 = 0x00023b9f [13165] [6] DEBUG: message_id: [13165] [6] DEBUG:Octet string at 0x2c003780: [13165] [6] DEBUG: len: 23 [13165] [6] DEBUG: size: 24 [13165] [6] DEBUG: immutable: 0 [13165] [6] DEBUG: data: 63 6c 73 78 36 31 31 30 37 30 31 30 36 33 33 30 clsx611070106330 [13165] [6] DEBUG: data: 30 34 36 33 30 37 37 0463077 [13165] [6] DEBUG:Octet string dump ends. [13165] [6] DEBUG: SMPP PDU dump ends. [13165] [8]
Re: DLR using a phone
Hi, I didn't see your initial post that you are getting DLRs through the phone. There is another possibility: 1) DLR = 8 is not really a DLR from your SMSc. It is just an ACK which is converted to DLR by kannel. 2) Look for deliver_sm in your logs. Are you getting any? If not check with your SMSc. They understand DLRs. 3) Else check logs for any Warnings immediately after, Couldn't match DLR or If that's the case, read UG about msg-id-type. BR, Nikos - Original Message - From: Alejandro Mejia Evertsz ame...@gua.net To: Michael van der Poel movdp...@gmail.com Cc: users@kannel.org Sent: Tuesday, July 12, 2011 8:38 AM Subject: Re: DLR using a phone Hola Michael, Are you sending through smsbox or mysqlbox? I'm using smsbox, and the URL I'm calling to send the message looks like this: http://x.x.x.x:8080/cgi-bin/sendsms?username=mysuernamepassword=mypasswordto=mymobiletext=Hello+worlddlr-mask=31dlr-url=http://y.y.y.y/dlr.cgi?id=mysmsID%26status=%d Please note the last (ampersand) is url-encoded, so the script from which I'm calling this URL doesn't think this is another parameter, and not part of dlr-url. (let me know if I'm not being clear hehehe) This way the dlr will call: http://y.y.y.y/dlr.cgi?id=mysmsIDstatus=%d Are you using Apache to run your dlr.cgi script on y.y.y.y ? If so, you could check your apache logs to see wether you're getting the request from kannel or not. Another thing I use to debug is running bearerbox and smsbox directly from the shell so I'm able to see what kannel is doing, because first of all, you should check if the smsc is posting the dlr to kannel or not. (maybe I should have started by saying this hehehe) Let me know if I can be of any help. Buena suerte! Alejandro On 11/07/2011 10:49 p.m., Michael van der Poel wrote: Hi Alejandro, Sorry, I hadn't seen Nikos's reply. I can see the deliver_sm with all the information (the full dlr) in the logs but so far I can't manage to capture it into my MySQL table. Tan cerca pero tan lejos! Soon I will crack it, though. Best of luck with your endeavours! Michael On 12/7/11 04:26, Alejandro Mejia Evertszame...@gua.net wrote: Hi Michael, I had this already figured out by reading the UG and experimenting a little. (maybe more than a little hehehe) I'm getting the first dlr from the smsc and it's calling my dlr-url correctly (I made a perl .cgi that get's the parameters and store the new dlr status on mysql). So far, I guess we both got to the same place ;) My doubt was about the dlr-mask I was using (because I thought I wasn't requesting smsc the right thing for it to give me full dlrs). Nikos confirmed that I'm using the right mask, so now I have to strugle with my operator's smsc. I guess I'll try the other 2 operators smsc with other sims on the same phone to check if any of them provide with full dlrs. Thanks a lot for the time you took to explain me how dlr-url works. Cheers! Alejandro On 11/07/2011 05:01 p.m., Michael van der Poel wrote: Hi Alejandro, I wish, I could give you the full answer to your question, but I am struggling now for some weeks to recover the full DLR and store it in a MySQL database. I have learned some things in those weeks and I hope, I will finally accomplish it soon. What I have figured out so far, is: - you receive a first DLR (the submit_sm_resp ) that serves as an acknowledgement from your provider (e.g., 8). This just means, that the provider has received your request to send the SMS; - it is the second DLR (the deliver_sm that you are looking for where the provider confirms whether the message was actually delivered (or whether the attempts to deliver the message failed, the mobile number was incorrect, ect.). This second message is delivered over HTTP and you will have to set up a Call Back URL (something like: http://yourserver.com/dlr.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=%T smsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I) This is called the dlr-url which you will have to define in your kannel configuration, and on your server you will need a php script, that your provider can call and submit the values of the delivery report to. These will come in the form of parameters such as '%p' and '%u' (see pggs. 94-95 of the UG). The php script captures these values and stores them in your database. This is the bit where I am stuck :-( There is plenty of material in the UG and in the various forums. What beginning Kannel users like you and I miss, is a good description of how it all comes together. I am sure that once we have see everything working, we will say Ah, of course!. Anyhow, I hope, the above will help to get you started and maybe the experts can correct me where I am wrong. Regards, Michael On 11/7/11 23:17, Alejandro Mejia Evertszame...@gua.net wrote: Hello everyone. Excuse me for this dumb question, but I got lost on the UG regarding this. I'm using an LG phone and I have MT and
Re: I/O Error or other error.
This is a network problem, not kannel's. Try to telnet from your shell: telnet IP Port You may need to talk to your SMSc. When you get it working, it will work with kannel, too. BR, Nikos - Original Message - From: Karan Zaveri To: users@kannel.org Sent: Tuesday, July 12, 2011 8:58 AM Subject: I/O Error or other error. Hello, When trying to connect with SMSC i am getting the following error. 2011-07-07 03:49:34 [22587] [8] ERROR: SMPP[smscMTn]: I/O error or other error. Re-connecting. 2011-07-07 03:49:34 [22587] [8] ERROR: SMPP[smscMTn]: Couldn't connect to SMS center (retrying in 10 seconds). Has anyone faced this problem before? This does not seem to be an error generated because of incorrect login credentials but something else, not sure what is really causing this as the error is very unclear. Karan
Regarding sms port on auto reply by sms service
Hi, I am trying to configure Kannel for my use. I have also configured a service. When ever I recieve an sms on my modem, my Http url configured under get-url executes and the results get smsed to the originating device. Now, my problem is that I need these smses on a particular rather than in Inbox of the device. I know I can set UDH in send-url. But I want this in the auto-reply to a service from kannel. THanks, Adil #- # CORE # group = core admin-port = 13000 smsbox-port = 13003 admin-password = bar box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 log-file = /etc/kannel/check_sendsms_smsc.log log-level = 0 store-file=/etc/kannel/check_rxdsms_smsc.log #- # SMSC CONNECTIONS # group = smsc smsc = at smsc-id = mysmscenter device=/dev/ttyS2 #my-number = 918802345723 sms-center = +919811009998 port = 1 connect-allow-ip = 127.0.0.1 #send-url=http://127.0.0.1:13001/cgi-bin/sendsms; #send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%ptext=%a; send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%ptext=%audh=%06%05%04%1D%4C%03%02; #log-level = 0 modemtype = nokiaphone #modemtype = auto sim-buffering = true #- # SMSBOX SETUP # group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13001 global-sender = +919811009998 #global-sender = +919842201155 #sendsms-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%ptext=%audh=%06%05%04%1D%4C%03%02; #log-level = 0 log-file = /etc/kannel/smsbox.log log-level = 0 #- # SEND-SMS USERS # group = sendsms-user username = agile password = agile default-smsc = mysmscenter concatenation= true max-messages = 100 #http://localhost:13003/cgi-bin/sendsms?username=agilepassword=agileto=8802345723text=Hello+world #- # SERVICES # group = sms-service #get-url=http://www.google.com; #get-url = http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%ptext=%audh=%06%05%04%1D%4C%03%02; #get-url =http://122.176.73.10:8080/MTSVIBE/DynamicPage; get-url =http://127.0.0.1/; #get-url=http://127.0.0.1/udh=%06%05%04%1D%4C%01%01; file=/etc/kannel/check_rxdsms_smsc.log keyword = default #keyword-regex = .* catch-all = yes max-messages = 100 concatenation=true accept-x-kannel-headers = true #group = sms-service #keyword = default #text = No service specified group = modems id = nokiaphone name = nokiaphone detect-string = Android #detect-string = Nokia Mobile Phone need-sleep = true speed = 115200 #message-storage = sm #init-string=AT+CNMI=2,3,0,1,0;+CMEE=1 keepalive-cmd = AT+CSQ #enable-mms = true #include = /usr/local/include/kannel/modems.conf
RE: Regarding sms port on auto reply by sms service
Use accept-x-kannel-headers = true and see: http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4 010 (X-Kannel-UDH). An alternative options is to not use the autoreply (max-messages = 0 and omit-empty = true) and then send the reply via the sendsms interface from within your service. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Adil Mohd Sent: Tuesday, 12 July, 2011 14:44 To: users@kannel.org Subject: Regarding sms port on auto reply by sms service Hi, I am trying to configure Kannel for my use. I have also configured a service. When ever I recieve an sms on my modem, my Http url configured under get-url executes and the results get smsed to the originating device. Now, my problem is that I need these smses on a particular rather than in Inbox of the device. I know I can set UDH in send-url. But I want this in the auto-reply to a service from kannel. THanks, Adil #- # CORE # group = core admin-port = 13000 smsbox-port = 13003 admin-password = bar box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 log-file = /etc/kannel/check_sendsms_smsc.log log-level = 0 store-file=/etc/kannel/check_rxdsms_smsc.log #- # SMSC CONNECTIONS # group = smsc smsc = at smsc-id = mysmscenter device=/dev/ttyS2 #my-number = 918802345723 sms-center = +919811009998 port = 1 connect-allow-ip = 127.0.0.1 #send-url=http://127.0.0.1:13001/cgi-bin/sendsms; #send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=ag ileto=%ptext=%a send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agi leto=%ptext=%audh=%06%05%04%1D%4C%03%02 #log-level = 0 modemtype = nokiaphone #modemtype = auto sim-buffering = true #- # SMSBOX SETUP # group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13001 global-sender = +919811009998 #global-sender = +919842201155 #sendsms-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword =agileto=%ptext=%audh=%06%05%04%1D%4C%03%02 #log-level = 0 log-file = /etc/kannel/smsbox.log log-level = 0 #- # SEND-SMS USERS # group = sendsms-user username = agile password = agile default-smsc = mysmscenter concatenation= true max-messages = 100 #http://localhost:13003/cgi-bin/sendsms?username=agilepassword=agileto=880 2345723text=Hello+world #- # SERVICES # group = sms-service #get-url=http://www.google.com; #get-url = http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%p; text=%audh=%06%05%04%1D%4C%03%02 #get-url =http://122.176.73.10:8080/MTSVIBE/DynamicPage; get-url =http://127.0.0.1/; #get-url=http://127.0.0.1/udh=%06%05%04%1D%4C%01%01; file=/etc/kannel/check_rxdsms_smsc.log keyword = default #keyword-regex = .* catch-all = yes max-messages = 100 concatenation=true accept-x-kannel-headers = true #group = sms-service #keyword = default #text = No service specified group = modems id = nokiaphone name = nokiaphone detect-string = Android #detect-string = Nokia Mobile Phone need-sleep = true speed = 115200 #message-storage = sm #init-string=AT+CNMI=2,3,0,1,0;+CMEE=1 keepalive-cmd = AT+CSQ #enable-mms = true #include = /usr/local/include/kannel/modems.conf
RE: Not able to access wml pages from winwap through kannel
Winwap says it accepts xhtml. So google tries to send that. But Kannel doesn't know anything about xhtml, just wml. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of santhosh M S Sent: Tuesday, 12 July, 2011 08:27 To: users@kannel.org Subject: Not able to access wml pages from winwap through kannel Hi All, I have installed cygwin on my windows xp machine and compiled and installed kannel. I was able to start bearerbox wapbox successfully on the same machine. Problem is I am trying to fetch wap.google.com from winwap browser emulator through kannel but I could not access that page. While retrieving the URL: http://wap.google.com/ http://wap.google.com the following error occurred: HTTP error 502: Bad Gateway I get the following msg on my window. I have set IP to the IP of my machine and it in gateway mode. Also my machine is in DNS. PFA wapbox log file. Please can anyone help me out how to access wml pages from my winwap browser through kannel. Regards, Santhosh M S.
Re: [Kannel] no service specified
hi start by urlencode your text message part and test again |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Tue, Jul 12, 2011 at 2:27 AM, Chandrakant Solanki solanki.chandrak...@gmail.com wrote: Hi All, Kannel Version : 1.4.3 I have try to execute same URL on 2 different US number. On 14084832111 this number, message sent successfully as shown 202 in kannel.log and while trying to send same message on 14086078208, it not works and send me reply no service specified. when I received failed from 14086078208 this number, I tried to remove '/', ':' from link, and result was same. Here, I paste log as well as configuration file. Please suggest me if anything configured wrong. SUCCESS Request Log: wget http://192.168.64.23:13013/cgi-bin/sendsms?username=examplepassword=exampleto=14084832111from=18475978085text=Click on this link to verify your phone number http://exampleverify.example.com:8080/examplews/verify?2ExRb3a your code is 1235 smsbox.log [13179] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.64.55'. [13179] [2] DEBUG: HTTP: Created HTTPClient area 0x92d26d0. [13179] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 192.168.64.55 [13179] [3] INFO: sendsms used by example [13179] [3] INFO: sendsms sender:example:18475978085 (192.168.64.55) to:14084832111 msg:Click on this link to verify your phone number http://exampleverify.example.com:8080/examplews/verify?2ExRb3a your code is 1235 [13179] [3] DEBUG: Stored UUID f467231a-125e-41cd-8eb2-c574e906b640 [13179] [3] DEBUG: message length 129, sending 1 messages [13179] [3] DEBUG: Status: 202 Answer: Sent. [13179] [3] DEBUG: Delayed reply - wait for bearerbox [13179] [0] DEBUG: Got ACK (0) of f467231a-125e-41cd-8eb2-c574e906b640 [13179] [0] DEBUG: HTTP: Resetting HTTPClient for `192.168.64.55'. [13179] [1] DEBUG: HTTP: Destroying HTTPClient area 0x92d26d0. [13179] [1] DEBUG: HTTP: Destroying HTTPClient for `192.168.64.55'. kannel.log [13165] [11] DEBUG: boxc_receiver: sms received [13165] [11] DEBUG: send_msg: sending msg to box: 127.0.0.1 [13165] [6] DEBUG: SMPP[smpp_test]: Sending PDU: [13165] [6] DEBUG: SMPP PDU 0x2c003ed0 dump: [13165] [6] DEBUG: type_name: submit_sm [13165] [6] DEBUG: command_id: 4 = 0x0004 [13165] [6] DEBUG: command_status: 0 = 0x [13165] [6] DEBUG: sequence_number: 146335 = 0x00023b9f [13165] [6] DEBUG: service_type: NULL [13165] [6] DEBUG: source_addr_ton: 2 = 0x0002 [13165] [6] DEBUG: source_addr_npi: 1 = 0x0001 [13165] [6] DEBUG: source_addr: 18475978085 [13165] [6] DEBUG: dest_addr_ton: 2 = 0x0002 [13165] [6] DEBUG: dest_addr_npi: 1 = 0x0001 [13165] [6] DEBUG: destination_addr: 14084832111 [13165] [6] DEBUG: esm_class: 3 = 0x0003 [13165] [6] DEBUG: protocol_id: 0 = 0x [13165] [6] DEBUG: priority_flag: 0 = 0x [13165] [6] DEBUG: schedule_delivery_time: NULL [13165] [6] DEBUG: validity_period: NULL [13165] [6] DEBUG: registered_delivery: 0 = 0x [13165] [6] DEBUG: replace_if_present_flag: 0 = 0x [13165] [6] DEBUG: data_coding: 0 = 0x [13165] [6] DEBUG: sm_default_msg_id: 0 = 0x [13165] [6] DEBUG: sm_length: 129 = 0x0081 [13165] [6] DEBUG: short_message: [13165] [6] DEBUG: Octet string at 0x2c000cd0: [13165] [6] DEBUG: len: 129 [13165] [6] DEBUG: size: 130 [13165] [6] DEBUG: immutable: 0 [13165] [6] DEBUG: data: 43 6c 69 63 6b 20 6f 6e 20 74 68 69 73 20 6c 69 Click on this li [13165] [6] DEBUG: data: 6e 6b 20 74 6f 20 76 65 72 69 66 79 20 79 6f 75 nk to verify you [13165] [6] DEBUG: data: 72 20 70 68 6f 6e 65 20 6e 75 6d 62 65 72 20 20 r phone number [13165] [6] DEBUG: data: 68 74 74 70 3a 2f 2f 6a 61 78 74 72 73 6d 73 76 http://examplev [13165] [6] DEBUG: data: 65 72 69 66 79 2e 6a 61 78 74 72 2e 63 6f 6d 3a erify.example.com: [13165] [6] DEBUG: data: 38 30 38 30 2f 6a 61 78 74 72 77 73 2f 76 65 72 8080/examplews/ver [13165] [6] DEBUG: data: 69 66 79 3f 32 45 78 52 62 33 61 20 20 20 20 79 ify?2ExRb3a y [13165] [6] DEBUG: data: 6f 75 72 20 63 6f 64 65 20 69 73 20 20 31 32 33 our code is 123 [13165] [6] DEBUG: data: 35 5 [13165] [6] DEBUG: Octet string dump ends. [13165] [6] DEBUG: SMPP PDU dump ends. [13165] [6] DEBUG: SMPP[smpp_test]: Got PDU: [13165] [6] DEBUG: SMPP PDU 0x2c003ed0 dump: [13165] [6] DEBUG: type_name: submit_sm_resp [13165] [6] DEBUG: command_id:
Re: Not able to access wml pages from winwap through kannel
Winwap has the option of sending wap1.x traffic when using a gateway. You can specify port protocol there. Beware, you need to use 32bit XP, I haven't been able to make it work under 64bit systems. It is not supported very well any more. You can try downloading Nokia'a NDBMS or get Openwave. BR, Nikos On Tue, Jul 12, 2011 at 4:14 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Winwap says it accepts xhtml. So google tries to send that. But Kannel doesn’t know anything about xhtml, just wml. == Rene *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *santhosh M S *Sent:* Tuesday, 12 July, 2011 08:27 *To:* users@kannel.org *Subject:* Not able to access wml pages from winwap through kannel Hi All, I have installed cygwin on my windows xp machine and compiled and installed kannel. I was able to start bearerbox wapbox successfully on the same machine. Problem is I am trying to fetch wap.google.com from winwap browser emulator through kannel but I could not access that page. While retrieving the URL: http://wap.google.com the following error occurred: HTTP error 502: Bad Gateway I get the following msg on my window. I have set IP to the IP of my machine and it in gateway mode. Also my machine is in DNS. PFA wapbox log file. Please can anyone help me out how to access wml pages from my winwap browser through kannel. Regards, Santhosh M S.
Re: DLR using a phone [ Could not route message to smsbox id 0, smsbox is gone!²]
Hola Alejandro: Thanks for your kind offer. A pair of fresh eyes is always good. You (or someone else) may spot things that I am overlooking! I am sending through sqlbox over SMPP and this is the dlr-url I am using: http://*.*.*.*/cgi-bin/dlr.php?to%3D%25to%26msisdn%3D%25msisdn%26status%3D% 25status%26messagId%3D1008928%26scts%3D%25scts [My provider uses the parameters to¹, msisdn¹, status¹ and scts¹ for the Call Back]. I checked the Apache log and everything is 200 OK. A week ago I started trying using only bearerbox and sqlbox but I have returned to using the smsbox, too. I keep getting the message ³WARNING: Could not route message to smsbox id 0, smsbox is gone!² (see ³LOG smpp-provider² below). I can see the values from the ³deliver_sm² in that same log: ³id:0038791787 su b:001 dlvrd:001 submit date:1107122104 done date:1107121853 stat:DELIVRD err:000 text:none² But why do I fail to store it? The dlr.php is a very simple one: dlr.php ?php include('../../mysql_connect2.php'); $messageId=$_GET['messageId']; $status=$_GET['status']; $query =UPDATE verslag SET status='$status' WHERE id_sms='$messageId'; $result = mysql_query($query) or die(Query failed : . mysql_error()); ? Please have a look at the information. Any suggestions most welcome! Regards, Michael PD La neciedad puede ser una virtud. Ya tengo semanas trabajando en esto! On 12/7/11 06:38, Alejandro Mejia Evertsz ame...@gua.net wrote: Hola Michael, Are you sending through smsbox or mysqlbox? I'm using smsbox, and the URL I'm calling to send the message looks like this: http://x.x.x.x:8080/cgi-bin/sendsms?username=mysuernamepassword=mypasswordto =mymobiletext=Hello+worlddlr-mask=31dlr-url=http://y.y.y.y/dlr.cgi?id=mysms ID%26status=%d Please note the last (ampersand) is url-encoded, so the script from which I'm calling this URL doesn't think this is another parameter, and not part of dlr-url. (let me know if I'm not being clear hehehe) This way the dlr will call: http://y.y.y.y/dlr.cgi?id=mysmsIDstatus=%d Are you using Apache to run your dlr.cgi script on y.y.y.y ? If so, you could check your apache logs to see wether you're getting the request from kannel or not. Another thing I use to debug is running bearerbox and smsbox directly from the shell so I'm able to see what kannel is doing, because first of all, you should check if the smsc is posting the dlr to kannel or not. (maybe I should have started by saying this hehehe) Let me know if I can be of any help. Buena suerte! Alejandro On 11/07/2011 10:49 p.m., Michael van der Poel wrote: Hi Alejandro, Sorry, I hadn't seen Nikos's reply. I can see the deliver_sm with all the information (the full dlr) in the logs but so far I can't manage to capture it into my MySQL table. Tan cerca pero tan lejos! Soon I will crack it, though. Best of luck with your endeavours! Michael On 12/7/11 04:26, Alejandro Mejia Evertszame...@gua.net wrote: Hi Michael, I had this already figured out by reading the UG and experimenting a little. (maybe more than a little hehehe) I'm getting the first dlr from the smsc and it's calling my dlr-url correctly (I made a perl .cgi that get's the parameters and store the new dlr status on mysql). So far, I guess we both got to the same place ;) My doubt was about the dlr-mask I was using (because I thought I wasn't requesting smsc the right thing for it to give me full dlrs). Nikos confirmed that I'm using the right mask, so now I have to strugle with my operator's smsc. I guess I'll try the other 2 operators smsc with other sims on the same phone to check if any of them provide with full dlrs. Thanks a lot for the time you took to explain me how dlr-url works. Cheers! Alejandro On 11/07/2011 05:01 p.m., Michael van der Poel wrote: Hi Alejandro, I wish, I could give you the full answer to your question, but I am struggling now for some weeks to recover the full DLR and store it in a MySQL database. I have learned some things in those weeks and I hope, I will finally accomplish it soon. What I have figured out so far, is: - you receive a first DLR (the submit_sm_resp ) that serves as an acknowledgement from your provider (e.g., 8). This just means, that the provider has received your request to send the SMS; - it is the second DLR (the deliver_sm that you are looking for where the provider confirms whether the message was actually delivered (or whether the attempts to deliver the message failed, the mobile number was incorrect, ect.). This second message is delivered over HTTP and you will have to set up a Call Back URL (something like: http://yourserver.com/dlr.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=% http://yourserver.com/dlr.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=% T smsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I) This is called the dlr-url which you will have to define in your kannel configuration, and
RE: Not able to access wml pages from winwap through kannel
I just tried www.google.com/m with another way browser (home brew) and Kannel as a gateway. It works, except for the pictures that are image/gif. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Nikos Balkanas Sent: Tuesday, 12 July, 2011 17:02 To: santhosh M S Cc: users@kannel.org Subject: Re: Not able to access wml pages from winwap through kannel Winwap has the option of sending wap1.x traffic when using a gateway. You can specify port protocol there. Beware, you need to use 32bit XP, I haven't been able to make it work under 64bit systems. It is not supported very well any more. You can try downloading Nokia'a NDBMS or get Openwave. BR, Nikos On Tue, Jul 12, 2011 at 4:14 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Winwap says it accepts xhtml. So google tries to send that. But Kannel doesn't know anything about xhtml, just wml. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of santhosh M S Sent: Tuesday, 12 July, 2011 08:27 To: users@kannel.org Subject: Not able to access wml pages from winwap through kannel Hi All, I have installed cygwin on my windows xp machine and compiled and installed kannel. I was able to start bearerbox wapbox successfully on the same machine. Problem is I am trying to fetch wap.google.com from winwap browser emulator through kannel but I could not access that page. While retrieving the URL: http://wap.google.com http://wap.google.com/ the following error occurred: HTTP error 502: Bad Gateway I get the following msg on my window. I have set IP to the IP of my machine and it in gateway mode. Also my machine is in DNS. PFA wapbox log file. Please can anyone help me out how to access wml pages from my winwap browser through kannel. Regards, Santhosh M S.
Re: Not able to access wml pages from winwap through kannel
Oh, yes. It works (more or less - depending on traffic). You can get also html, xhtml, or everything under the web. To get images you have to specify that you accept gif/jpeg or all (*/*). This is all a matter of the Accept headers you send to the gateway. If you don't specify them, then wapbox will cut them down to protect the mobile. The only transcoding it does is for wml - wbxml and wmlscript - wbxmlscript. Everything else is cut down if not accepted by the mobile. BR, Nikos On Tue, Jul 12, 2011 at 11:10 PM, Rene Kluwen rene.klu...@chimit.nl wrote: I just tried www.google.com/m with another way browser (home brew) and Kannel as a gateway. It works, except for the pictures that are image/gif. == Rene *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Nikos Balkanas *Sent:* Tuesday, 12 July, 2011 17:02 *To:* santhosh M S *Cc:* users@kannel.org *Subject:* Re: Not able to access wml pages from winwap through kannel Winwap has the option of sending wap1.x traffic when using a gateway. You can specify port protocol there. Beware, you need to use 32bit XP, I haven't been able to make it work under 64bit systems. It is not supported very well any more. You can try downloading Nokia'a NDBMS or get Openwave. BR, Nikos On Tue, Jul 12, 2011 at 4:14 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Winwap says it accepts xhtml. So google tries to send that. But Kannel doesn’t know anything about xhtml, just wml. == Rene *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *santhosh M S *Sent:* Tuesday, 12 July, 2011 08:27 *To:* users@kannel.org *Subject:* Not able to access wml pages from winwap through kannel Hi All, I have installed cygwin on my windows xp machine and compiled and installed kannel. I was able to start bearerbox wapbox successfully on the same machine. Problem is I am trying to fetch wap.google.com from winwap browser emulator through kannel but I could not access that page. While retrieving the URL: http://wap.google.com the following error occurred: HTTP error 502: Bad Gateway I get the following msg on my window. I have set IP to the IP of my machine and it in gateway mode. Also my machine is in DNS. PFA wapbox log file. Please can anyone help me out how to access wml pages from my winwap browser through kannel. Regards, Santhosh M S.
RE: DLR using a phone
Am I wrong or is this another thread with a wrong subject? Smsc = at doesn't generate deliver_sm's... it's an smpp thingy. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Nikos Balkanas Sent: Tuesday, 12 July, 2011 14:39 To: Alejandro Mejia Evertsz Cc: us...@vm1.kannel.org Subject: Re: DLR using a phone Hi, I didn't see your initial post that you are getting DLRs through the phone. There is another possibility: 1) DLR = 8 is not really a DLR from your SMSc. It is just an ACK which is converted to DLR by kannel. 2) Look for deliver_sm in your logs. Are you getting any? If not check with your SMSc. They understand DLRs. 3) Else check logs for any Warnings immediately after, Couldn't match DLR or If that's the case, read UG about msg-id-type. BR, Nikos - Original Message - From: Alejandro Mejia Evertsz ame...@gua.net To: Michael van der Poel movdp...@gmail.com Cc: users@kannel.org Sent: Tuesday, July 12, 2011 8:38 AM Subject: Re: DLR using a phone Hola Michael, Are you sending through smsbox or mysqlbox? I'm using smsbox, and the URL I'm calling to send the message looks like this: http://x.x.x.x:8080/cgi-bin/sendsms?username=mysuernamepassword=mypassword; to=mymobiletext=Hello+worlddlr-mask=31dlr-url=http://y.y.y.y/dlr.cgi?id=m ysmsID%26status=%d Please note the last (ampersand) is url-encoded, so the script from which I'm calling this URL doesn't think this is another parameter, and not part of dlr-url. (let me know if I'm not being clear hehehe) This way the dlr will call: http://y.y.y.y/dlr.cgi?id=mysmsIDstatus=%d Are you using Apache to run your dlr.cgi script on y.y.y.y ? If so, you could check your apache logs to see wether you're getting the request from kannel or not. Another thing I use to debug is running bearerbox and smsbox directly from the shell so I'm able to see what kannel is doing, because first of all, you should check if the smsc is posting the dlr to kannel or not. (maybe I should have started by saying this hehehe) Let me know if I can be of any help. Buena suerte! Alejandro On 11/07/2011 10:49 p.m., Michael van der Poel wrote: Hi Alejandro, Sorry, I hadn't seen Nikos's reply. I can see the deliver_sm with all the information (the full dlr) in the logs but so far I can't manage to capture it into my MySQL table. Tan cerca pero tan lejos! Soon I will crack it, though. Best of luck with your endeavours! Michael On 12/7/11 04:26, Alejandro Mejia Evertszame...@gua.net wrote: Hi Michael, I had this already figured out by reading the UG and experimenting a little. (maybe more than a little hehehe) I'm getting the first dlr from the smsc and it's calling my dlr-url correctly (I made a perl .cgi that get's the parameters and store the new dlr status on mysql). So far, I guess we both got to the same place ;) My doubt was about the dlr-mask I was using (because I thought I wasn't requesting smsc the right thing for it to give me full dlrs). Nikos confirmed that I'm using the right mask, so now I have to strugle with my operator's smsc. I guess I'll try the other 2 operators smsc with other sims on the same phone to check if any of them provide with full dlrs. Thanks a lot for the time you took to explain me how dlr-url works. Cheers! Alejandro On 11/07/2011 05:01 p.m., Michael van der Poel wrote: Hi Alejandro, I wish, I could give you the full answer to your question, but I am struggling now for some weeks to recover the full DLR and store it in a MySQL database. I have learned some things in those weeks and I hope, I will finally accomplish it soon. What I have figured out so far, is: - you receive a first DLR (the submit_sm_resp ) that serves as an acknowledgement from your provider (e.g., 8). This just means, that the provider has received your request to send the SMS; - it is the second DLR (the deliver_sm that you are looking for where the provider confirms whether the message was actually delivered (or whether the attempts to deliver the message failed, the mobile number was incorrect, ect.). This second message is delivered over HTTP and you will have to set up a Call Back URL (something like: http://yourserver.com/dlr.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=%T smsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I) This is called the dlr-url which you will have to define in your kannel configuration, and on your server you will need a php script, that your provider can call and submit the values of the delivery report to. These will come in the form of parameters such as '%p' and '%u' (see pggs. 94-95 of the UG). The php script captures these values and stores them in your database. This is the bit where I am stuck :-( There is plenty of material in the UG and in the various forums. What beginning Kannel users like you and I miss, is a good description of how
RE: DLR using a phone [ Could not route message to smsbox id 0, smsbox is gone!²]
Whilst inserting your message in sqlbox, use as boxc_id the smsbox-id of your (real) smsbox. Besides that, set up a group = smsbox-route to make sure your dlrs are going to the proper smsbox. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Michael van der Poel Sent: Tuesday, 12 July, 2011 22:00 To: Alejandro Mejia Evertsz Cc: users@kannel.org Subject: Re: DLR using a phone [ Could not route message to smsbox id 0, smsbox is gone!²] Hola Alejandro: Thanks for your kind offer. A pair of fresh eyes is always good. You (or someone else) may spot things that I am overlooking! I am sending through sqlbox over SMPP and this is the dlr-url I am using: http://*.*.*.*/cgi-bin/dlr.php?to%3D%25to%26msisdn%3D%25msisdn%26status%3D%2 5status%26messagId%3D1008928%26scts%3D%25scts [My provider uses the parameters to, msisdn, status and scts for the Call Back]. I checked the Apache log and everything is 200 OK. A week ago I started trying using only bearerbox and sqlbox but I have returned to using the smsbox, too. I keep getting the message WARNING: Could not route message to smsbox id 0, smsbox is gone! (see LOG smpp-provider below). I can see the values from the deliver_sm in that same log: id:0038791787 su b:001 dlvrd:001 submit date:1107122104 done date:1107121853 stat:DELIVRD err:000 text:none But why do I fail to store it? The dlr.php is a very simple one: dlr.php ?php include('../../mysql_connect2.php'); $messageId=$_GET['messageId']; $status=$_GET['status']; $query =UPDATE verslag SET status='$status' WHERE id_sms='$messageId'; $result = mysql_query($query) or die(Query failed : . mysql_error()); ? Please have a look at the information. Any suggestions most welcome! Regards, Michael PD La neciedad puede ser una virtud. Ya tengo semanas trabajando en esto! On 12/7/11 06:38, Alejandro Mejia Evertsz ame...@gua.net wrote: Hola Michael, Are you sending through smsbox or mysqlbox? I'm using smsbox, and the URL I'm calling to send the message looks like this: http://x.x.x.x:8080/cgi-bin/sendsms?username=mysuername http://x.x.x.x:8080/cgi-bin/sendsms?username=mysuernamepassword=mypassword to password=mypasswordto =mymobiletext=Hello+worlddlr-mask=31dlr-url=http://y.y.y.y/dlr.cgi?id=mys ms ID%26status=%d Please note the last (ampersand) is url-encoded, so the script from which I'm calling this URL doesn't think this is another parameter, and not part of dlr-url. (let me know if I'm not being clear hehehe) This way the dlr will call: http://y.y.y.y/dlr.cgi?id=mysmsID http://y.y.y.y/dlr.cgi?id=mysmsIDstatus=%25d status=%d Are you using Apache to run your dlr.cgi script on y.y.y.y ? If so, you could check your apache logs to see wether you're getting the request from kannel or not. Another thing I use to debug is running bearerbox and smsbox directly from the shell so I'm able to see what kannel is doing, because first of all, you should check if the smsc is posting the dlr to kannel or not. (maybe I should have started by saying this hehehe) Let me know if I can be of any help. Buena suerte! Alejandro On 11/07/2011 10:49 p.m., Michael van der Poel wrote: Hi Alejandro, Sorry, I hadn't seen Nikos's reply. I can see the deliver_sm with all the information (the full dlr) in the logs but so far I can't manage to capture it into my MySQL table. Tan cerca pero tan lejos! Soon I will crack it, though. Best of luck with your endeavours! Michael On 12/7/11 04:26, Alejandro Mejia Evertszame...@gua.net wrote: Hi Michael, I had this already figured out by reading the UG and experimenting a little. (maybe more than a little hehehe) I'm getting the first dlr from the smsc and it's calling my dlr-url correctly (I made a perl .cgi that get's the parameters and store the new dlr status on mysql). So far, I guess we both got to the same place ;) My doubt was about the dlr-mask I was using (because I thought I wasn't requesting smsc the right thing for it to give me full dlrs). Nikos confirmed that I'm using the right mask, so now I have to strugle with my operator's smsc. I guess I'll try the other 2 operators smsc with other sims on the same phone to check if any of them provide with full dlrs. Thanks a lot for the time you took to explain me how dlr-url works. Cheers! Alejandro On 11/07/2011 05:01 p.m., Michael van der Poel wrote: Hi Alejandro, I wish, I could give you the full answer to your question, but I am struggling now for some weeks to recover the full DLR and store it in a MySQL database. I have learned some things in those weeks and I hope, I will finally accomplish it soon. What I have figured out so far, is: - you receive a first DLR (the submit_sm_resp ) that serves as an acknowledgement from your provider (e.g., 8). This just means, that the provider has received your request to send the SMS; - it is the second DLR
Re: DLR using a phone
You are absolutely right. I missed that part completely. It is a well-known fact that some operators do not send DLRs to SIMs (phone modems). DLR8 is just generated by kannel. BR, Nikos On Wed, Jul 13, 2011 at 12:13 AM, Rene Kluwen rene.klu...@chimit.nl wrote: Am I wrong or is this another thread with a wrong subject? Smsc = at doesn't generate deliver_sm's... it's an smpp thingy. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Nikos Balkanas Sent: Tuesday, 12 July, 2011 14:39 To: Alejandro Mejia Evertsz Cc: us...@vm1.kannel.org Subject: Re: DLR using a phone Hi, I didn't see your initial post that you are getting DLRs through the phone. There is another possibility: 1) DLR = 8 is not really a DLR from your SMSc. It is just an ACK which is converted to DLR by kannel. 2) Look for deliver_sm in your logs. Are you getting any? If not check with your SMSc. They understand DLRs. 3) Else check logs for any Warnings immediately after, Couldn't match DLR or If that's the case, read UG about msg-id-type. BR, Nikos - Original Message - From: Alejandro Mejia Evertsz ame...@gua.net To: Michael van der Poel movdp...@gmail.com Cc: users@kannel.org Sent: Tuesday, July 12, 2011 8:38 AM Subject: Re: DLR using a phone Hola Michael, Are you sending through smsbox or mysqlbox? I'm using smsbox, and the URL I'm calling to send the message looks like this: http://x.x.x.x:8080/cgi-bin/sendsms?username=mysuernamepassword=mypassword; to=mymobiletext=Hello+worlddlr-mask=31dlr-url=http://y.y.y.y/dlr.cgi?id=m ysmsID%26status=%d Please note the last (ampersand) is url-encoded, so the script from which I'm calling this URL doesn't think this is another parameter, and not part of dlr-url. (let me know if I'm not being clear hehehe) This way the dlr will call: http://y.y.y.y/dlr.cgi?id=mysmsIDstatus=%d Are you using Apache to run your dlr.cgi script on y.y.y.y ? If so, you could check your apache logs to see wether you're getting the request from kannel or not. Another thing I use to debug is running bearerbox and smsbox directly from the shell so I'm able to see what kannel is doing, because first of all, you should check if the smsc is posting the dlr to kannel or not. (maybe I should have started by saying this hehehe) Let me know if I can be of any help. Buena suerte! Alejandro On 11/07/2011 10:49 p.m., Michael van der Poel wrote: Hi Alejandro, Sorry, I hadn't seen Nikos's reply. I can see the deliver_sm with all the information (the full dlr) in the logs but so far I can't manage to capture it into my MySQL table. Tan cerca pero tan lejos! Soon I will crack it, though. Best of luck with your endeavours! Michael On 12/7/11 04:26, Alejandro Mejia Evertszame...@gua.net wrote: Hi Michael, I had this already figured out by reading the UG and experimenting a little. (maybe more than a little hehehe) I'm getting the first dlr from the smsc and it's calling my dlr-url correctly (I made a perl .cgi that get's the parameters and store the new dlr status on mysql). So far, I guess we both got to the same place ;) My doubt was about the dlr-mask I was using (because I thought I wasn't requesting smsc the right thing for it to give me full dlrs). Nikos confirmed that I'm using the right mask, so now I have to strugle with my operator's smsc. I guess I'll try the other 2 operators smsc with other sims on the same phone to check if any of them provide with full dlrs. Thanks a lot for the time you took to explain me how dlr-url works. Cheers! Alejandro On 11/07/2011 05:01 p.m., Michael van der Poel wrote: Hi Alejandro, I wish, I could give you the full answer to your question, but I am struggling now for some weeks to recover the full DLR and store it in a MySQL database. I have learned some things in those weeks and I hope, I will finally accomplish it soon. What I have figured out so far, is: - you receive a first DLR (the submit_sm_resp ) that serves as an acknowledgement from your provider (e.g., 8). This just means, that the provider has received your request to send the SMS; - it is the second DLR (the deliver_sm that you are looking for where the provider confirms whether the message was actually delivered (or whether the attempts to deliver the message failed, the mobile number was incorrect, ect.). This second message is delivered over HTTP and you will have to set up a Call Back URL (something like: http://yourserver.com/dlr.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=%T smsID=07fceb25372fcc4cb847c7099008500echarset=%Ckannel_id=%I) This is called the dlr-url which you will have to define in your kannel configuration, and on your server you will need a php script, that your provider can call and submit the
Re: Regarding sms port on auto reply by sms service
I already have accept-x-kannel-headers = true set in my kannel.conf. How can I specify UDH to be used with auto-reply to a service.. THanks, Adil On Tue, Jul 12, 2011 at 6:38 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Use accept-x-kannel-headers = true and see: http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4 010 (X-Kannel-UDH). An alternative options is to not use the autoreply (max-messages = 0 and omit-empty = true) and then send the reply via the sendsms interface from within your service. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Adil Mohd Sent: Tuesday, 12 July, 2011 14:44 To: users@kannel.org Subject: Regarding sms port on auto reply by sms service Hi, I am trying to configure Kannel for my use. I have also configured a service. When ever I recieve an sms on my modem, my Http url configured under get-url executes and the results get smsed to the originating device. Now, my problem is that I need these smses on a particular rather than in Inbox of the device. I know I can set UDH in send-url. But I want this in the auto-reply to a service from kannel. THanks, Adil #- # CORE # group = core admin-port = 13000 smsbox-port = 13003 admin-password = bar box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 log-file = /etc/kannel/check_sendsms_smsc.log log-level = 0 store-file=/etc/kannel/check_rxdsms_smsc.log #- # SMSC CONNECTIONS # group = smsc smsc = at smsc-id = mysmscenter device=/dev/ttyS2 #my-number = 918802345723 sms-center = +919811009998 port = 1 connect-allow-ip = 127.0.0.1 #send-url=http://127.0.0.1:13001/cgi-bin/sendsms; #send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=ag ileto=%ptext=%a send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agi leto=%ptext=%audh=%06%05%04%1D%4C%03%02 #log-level = 0 modemtype = nokiaphone #modemtype = auto sim-buffering = true #- # SMSBOX SETUP # group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13001 global-sender = +919811009998 #global-sender = +919842201155 #sendsms-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword =agileto=%ptext=%audh=%06%05%04%1D%4C%03%02 #log-level = 0 log-file = /etc/kannel/smsbox.log log-level = 0 #- # SEND-SMS USERS # group = sendsms-user username = agile password = agile default-smsc = mysmscenter concatenation= true max-messages = 100 #http://localhost:13003/cgi-bin/sendsms?username=agilepassword=agileto=880 2345723text=Hello+world #- # SERVICES # group = sms-service #get-url=http://www.google.com; #get-url = http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%p; text=%audh=%06%05%04%1D%4C%03%02 #get-url =http://122.176.73.10:8080/MTSVIBE/DynamicPage; get-url =http://127.0.0.1/; #get-url=http://127.0.0.1/udh=%06%05%04%1D%4C%01%01; file=/etc/kannel/check_rxdsms_smsc.log keyword = default #keyword-regex = .* catch-all = yes max-messages = 100 concatenation=true accept-x-kannel-headers = true #group = sms-service #keyword = default #text = No service specified group = modems id = nokiaphone name = nokiaphone detect-string = Android #detect-string = Nokia Mobile Phone need-sleep = true speed = 115200 #message-storage = sm #init-string=AT+CNMI=2,3,0,1,0;+CMEE=1 keepalive-cmd = AT+CSQ #enable-mms = true #include = /usr/local/include/kannel/modems.conf
Fwd: Regarding opensmmbox problem;
Good morning to all, We are configuering the kannel server so first of all we configuer the sms gateway application through it we are able to send the messages, after it we enable the mysql for dlr storage. now sms gateway application is completed so we are going to confgiuer the SQLBox. so we are able to store for dlr storage in mysql through sqlbox. and finally we want to configuer the Opensmppbox, we are configuer the opensmppbox and not only configuer also bind the client but client can't able to send the messages, so problem is that what we do next, due to this client easily send the messages. after configuer the Opensmppbox we reboot the server.and doing following step.. 1. (when we execute the bearerbox we hidden the opensmpp.conf in kannel.conf file) means in kannel.conf #include = opensmppbox.conf run the bearerbox ./bearerbox 2. ./opensmppbox (before execute this command we remove the # in kannel.conf in front of opensmppbox.conf) here is problem in my arcitecture the offcourse you write me. so now client is bind with opensmppbox.conf but can't able to send message. my all file are look like as kannel.conf group = core admin-port = 13000 admin-password = 123 status-password = 123 dlr-storage = mysql smsbox-port = 13003 storage-type = file storage-file = /knl_store log-level = 4 access-log = /var/log/bearerbox1.access log-file = /var/log/bearerbox1.log unified-prefix = +91;+,91 include = kannelserver.conf inculde = opensmppbox.conf group = smsbox bearerbox-host = localhost sendsms-port = 13131 log-level = 4 access-log = /var/log/smsbox1.access log-file = /var/log/smsbox1.log group = smsbox-route smsbox-id = sqlbox smsc-id = KannelServer group = sendsms-user username = 123india password = 123city # DLR Setup group = mysql-connection id = mydlr host = localhost username = root password = redhat database = sms_dlr max-connections = 1 group = dlr-db id = mydlr table = dlr_kannel field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc # SMSC kannelserver.conf group = smsc smsc = smpp smsc-id = kannelserve host = 27.127.56.242 port = 4252 #transceiver-mode = true smsc-username = acubeS1 smsc-password = acubeS1 system-type = smpp address-range = reconnect-delay = 2 alt-charset=1 reconnect-delay = 10 source-addr-ton = 1 throughput = 40 allowed-smsc-id = kannelserver dest-addr-ton = 1 enquire-link-interval = 30 alt-charset = ASCII;windows-1252 alt-charset = ISO-8859-1 alt-charset = ASCII alt-addr-charset = GSM SQLBox Server Configuration -- group = sqlbox id = mydlr smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13003 smsbox-port = 13005 smsbox-port-ssl = false sql-log-table = sent_sms sql-insert-table = send_sms log-file = /var/log/sqlbox1.log log-level = 4 group = mysql-connection id = mydlr host = localhost username = root password = redhat database = SQLBOX max-connections = 10 group = sdb-connection id = mydlr url = mysql:host=localhost:db=SQLBOX:uid=root:pwd=root OpenSMPPBox Configuration -- # opensmppbox.conf group = core dlr-storage = mysql group = opensmppbox opensmppbox-id = OpenSMPPBox1 opensmppbox-port = 13001 bearerbox-host = 127.0.0.1 bearerbox-port = 13003 log-level = 4 log-file = /var/log/opensmppbox.log our-system-id = OpenSMPPBox route-to-smsc = kannelserver # see sample smpplogins.txt smpp-logins = /usr/local/gateway/trunk/addons/opensmppbox/example/smpplogins.txt.example # the following is just standard dlr configuration group = mysql-connection id = mydlr host = localhost username = root password = redhat database = SMPPBOX #max-connections = 1 group = dlr-db id = mydlr table = smppdlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc In this configuration if you see any type of error then please write me and this is the client smsc file of opensmppbox group = smsc smsc = smpp smsc-id = Normal.conf host = 184.148.68.143 port = 13001 smsc-username = demo smsc-password = demo system-type = smpp reconnect-delay = 2 alt-charset=1 transceiver-mode = true allowed-smsc-id = Normal alt-charset = ASCII;windows-1252 alt-charset = ISO-8859-1 alt-charset = ASCII alt-addr-charset = GSM please help meI am new in kannel but i am try to configuer the opensmppbox from last week.your help must be needed..here ican't erite well english so ignore it. show the error SMPP PDU DUMP ENDS Invalid SMPP PDU received -- Vijay Kr. Dadhich +918890909111
Selecting which smsc to use from HTTP interface
Hello guys, I'm a little confused with the smsc parameter when sending a message from HTTP, as I have 2 smsc configured (oper1 and oper2). Both serve same country prefix, so I thought I was able to route the message to a specific smsc-id using http://x.x.x.x/cgi-bin/sendsms.bla+bla+bla...smsc=oper2 Messages allways get routed through oper1 I was reading this under UG: /If you want to use SMS push services, requesters should then set the smsc request parameter, or 'sendsms-user' groups should be defined like this:/ /group = sendsms-user username = operator_A password = foo forced-smsc = A group = sendsms-user username = operator_B password = bar forced-smsc = B/ Is it possible to select which smsc to use as I'm trying to do with HTTP's param smsc? or do I have to route using the method described on UG? Thanks in advance for your help, Alejandro
Re: Selecting which smsc to use from HTTP interface
You need to add allowed-smsc denied-smsc parameters in your smsc config |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Tue, Jul 12, 2011 at 9:03 PM, Alejandro Mejia Evertsz ame...@gua.net wrote: Hello guys, I'm a little confused with the smsc parameter when sending a message from HTTP, as I have 2 smsc configured (oper1 and oper2). Both serve same country prefix, so I thought I was able to route the message to a specific smsc-id using http://x.x.x.x/cgi-bin/sendsms.bla+bla+bla...smsc=oper2 Messages allways get routed through oper1 I was reading this under UG: If you want to use SMS push services, requesters should then set the smsc request parameter, or 'sendsms-user' groups should be defined like this: group = sendsms-user username = operator_A password = foo forced-smsc = A group = sendsms-user username = operator_B password = bar forced-smsc = B Is it possible to select which smsc to use as I'm trying to do with HTTP's param smsc? or do I have to route using the method described on UG? Thanks in advance for your help, Alejandro
dlr type 2 and 16
Hi what is the difference between dlr type 2 and 16? I think both types are for non deliverable messages but should be something different. between codes... other than its number for sure ;) Thanks Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com
Re: DLR using a phone [ Could not route message to smsbox id 0, smsbox is gone!²]
Thanks a mil for that, Rene. I have added the smsbox-id (³sqlbox²) as boxc_id to the insert. I already had smsbox-route¹ configured in the kannel.conf file: group = smsbox-route smsbox-id = sqlbox smsc-id = smpp-provider I tested and, no joy, still gettting ³Could not route message to smsbox id 0, smsbox is gone!². I have only one smsbox-id configured. Your suggestions as always most welcome! Michael On 12/7/11 22:18, Rene Kluwen rene.klu...@chimit.nl wrote: Whilst inserting your message in sqlbox, use as boxc_id the smsbox-id of your (real) smsbox. Besides that, set up a group = smsbox-route to make sure your dlr¹s are going to the proper smsbox. == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Michael van der Poel Sent: Tuesday, 12 July, 2011 22:00 To: Alejandro Mejia Evertsz Cc: users@kannel.org Subject: Re: DLR using a phone [ Could not route message to smsbox id 0, smsbox is gone!²] Hola Alejandro: Thanks for your kind offer. A pair of fresh eyes is always good. You (or someone else) may spot things that I am overlooking! I am sending through sqlbox over SMPP and this is the dlr-url I am using: http://*.*.*.*/cgi-bin/dlr.php?to%3D%25to%26msisdn%3D%25msisdn%26status%3D%25s tatus%26messagId%3D1008928%26scts%3D%25scts [My provider uses the parameters to¹, msisdn¹, status¹ and scts¹ for the Call Back]. I checked the Apache log and everything is 200 OK. A week ago I started trying using only bearerbox and sqlbox but I have returned to using the smsbox, too. I keep getting the message ³WARNING: Could not route message to smsbox id 0, smsbox is gone!² (see ³LOG smpp-provider² below). I can see the values from the ³deliver_sm² in that same log: ³id:0038791787 su b:001 dlvrd:001 submit date:1107122104 done date:1107121853 stat:DELIVRD err:000 text:none² But why do I fail to store it? The dlr.php is a very simple one: dlr.php ?php include('../../mysql_connect2.php'); $messageId=$_GET['messageId']; $status=$_GET['status']; $query =UPDATE verslag SET status='$status' WHERE id_sms='$messageId'; $result = mysql_query($query) or die(Query failed : . mysql_error()); ? Please have a look at the information. Any suggestions most welcome! Regards, Michael PD La neciedad puede ser una virtud. Ya tengo semanas trabajando en esto! On 12/7/11 06:38, Alejandro Mejia Evertsz ame...@gua.net wrote: Hola Michael, Are you sending through smsbox or mysqlbox? I'm using smsbox, and the URL I'm calling to send the message looks like this: http://x.x.x.x:8080/cgi-bin/sendsms?username=mysuernamepassword=mypasswordt o http://x.x.x.x:8080/cgi-bin/sendsms?username=mysuernameamp;password=mypassw ordamp;to =mymobiletext=Hello+worlddlr-mask=31dlr-url=http://y.y.y.y/dlr.cgi?id=mysms ID%26status=%d Please note the last (ampersand) is url-encoded, so the script from which I'm calling this URL doesn't think this is another parameter, and not part of dlr-url. (let me know if I'm not being clear hehehe) This way the dlr will call: http://y.y.y.y/dlr.cgi?id=mysmsIDstatus=%d http://y.y.y.y/dlr.cgi?id=mysmsIDamp;status=%25d Are you using Apache to run your dlr.cgi script on y.y.y.y ? If so, you could check your apache logs to see wether you're getting the request from kannel or not. Another thing I use to debug is running bearerbox and smsbox directly from the shell so I'm able to see what kannel is doing, because first of all, you should check if the smsc is posting the dlr to kannel or not. (maybe I should have started by saying this hehehe) Let me know if I can be of any help. Buena suerte! Alejandro On 11/07/2011 10:49 p.m., Michael van der Poel wrote: Hi Alejandro, Sorry, I hadn't seen Nikos's reply. I can see the deliver_sm with all the information (the full dlr) in the logs but so far I can't manage to capture it into my MySQL table. Tan cerca pero tan lejos! Soon I will crack it, though. Best of luck with your endeavours! Michael On 12/7/11 04:26, Alejandro Mejia Evertszame...@gua.net wrote: Hi Michael, I had this already figured out by reading the UG and experimenting a little. (maybe more than a little hehehe) I'm getting the first dlr from the smsc and it's calling my dlr-url correctly (I made a perl .cgi that get's the parameters and store the new dlr status on mysql). So far, I guess we both got to the same place ;) My doubt was about the dlr-mask I was using (because I thought I wasn't requesting smsc the right thing for it to give me full dlrs). Nikos confirmed that I'm using the right mask, so now I have to strugle with my operator's smsc. I guess I'll try the other 2 operators smsc with other sims on the same phone to check if any of them provide with full dlrs. Thanks a lot for the time you took to explain me how dlr-url
unsubscribe
# Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles ou ayant un caractère privé. S'ils ne vous sont pas destinés, nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit le contenu. Si ce message vous a été transmis par erreur, merci d'en informer l'expéditeur et de supprimer immédiatement de votre système informatique ce courriel ainsi que tous les documents qui y sont attachés. ** This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system. #