Re: Network Initiated USSR
Hi Elton, I do not see any optional parameters for Network Initiated USSR in captured log. I am setting metadata in kannel url but captured log is not showing anything. Can you please clarify it. Thanks On 2/16/10, Elton Hoxha elt...@gmail.com wrote: Your packets look normal, identical like mines. I even copied your text and tried in my send-sms url and it is shown as ussr Welcome to World 1.Time 2.Date Are u sure that ussd side is not blocking network initiated ussr? On Tue, Feb 16, 2010 at 8:11 AM, GSM Revolution gsm@gmail.com wrote: Hi Elton, Please find attachment for smpp captured packt for submit_sm and its response. I am not sending captured log to supp...@kannel.org due to security reason. Thanks Regards Ricky On 2/15/10, Elton Hoxha elt...@gmail.com wrote: Strange, if you can post some logs showing submit pdu-s and responses. If you can take any smpp dump, it would be better . On Mon, Feb 15, 2010 at 2:05 PM, GSM Revolution gsm@gmail.com wrote: still i am getting as USSN after every modification!! On 2/15/10, Elton Hoxha elt...@gmail.com wrote: It is enough to put some digits there instead of alphanumeric, ther is no need for definition at USSDC. On Mon, Feb 15, 2010 at 1:13 PM, GSM Revolution gsm@gmail.com wrote: Is this number provided by the USSD centre or i can put any 3 digit number?? On 2/15/10, Elton Hoxha elt...@gmail.com wrote: YEs I mentioned From parameter, put some 3 digit number. On Mon, Feb 15, 2010 at 1:07 PM, GSM Revolution gsm@gmail.com wrote: Hi, I have changed the destination parameter to in url. nothing else was changed. Do i require to change sender address?? On 2/15/10, Elton Hoxha elt...@gmail.com wrote: I had a look again on your URL http://localhost:8080/cgi-bin/sendsms?user=ABCpassword=XYZfrom=Testto=123456789012text=WelCome%20To%20World%0A1%2ETime%0A2%2EDate%0Ametadata=%3Fsmpp%3Fservice%5Fop%3D2%26session%5Finfo%3D From parameter is modified by you as aphanumeric or is it really like that? In my case Kannel would receive back an error if I would use aphanumeric, I dont think your USSD is suporting it either. On Mon, Feb 15, 2010 at 12:45 PM, Elton Hoxha elt...@gmail.com wrote: There must be also other parameters like (but I dont think are relevant in your case): - At Kannel Side, in smpp group service-type = USSD - At USSD Center side, your client`s service type (among CMT, VMN, VMA etc) should be configured as USSD. I guess you have arranged also the pdu type to be deliver or submit_sm, because data_sm is not available. By the way which vendor is providing your USSDC? On Mon, Feb 15, 2010 at 12:35 PM, ricky123 gsm@gmail.com wrote: Hi, I removed session info from metadata for Network Initiated USSR but getting same an USSN. do you think any configuration required at smpp server side? elthox wrote: Hi, I`m just wondering why you are using session info TLV. The session can be handled easily in application side, no need to use kannel for it. At least this is the way I`m developing the ussd menu. It is just an assumption, maybe doesnt affect at all, but try not to include the session info inside meta-data, leave it purely for service_op. Regards On Mon, Feb 15, 2010 at 10:19 AM, ricky123 gsm@gmail.com wrote: Hi, Thank you for your reply. I changed length to '1' and found no difference. still i am getting as an USSN messgae not an USSR. elthox wrote: Hi, The send-sms URL looks OK, when meta data variable is set to 2 you should receive the USSR request in your mobile. Try to change the length = 2 in your conf to length = 1. Hope it helps On Mon, Feb 15, 2010 at 8:55 AM, GSM Revolution gsm@gmail.com wrote: Hi, I want to start an USSR with session initiated from network end(not from handset). I am sending Network Initiated USSR to smpp server with ussd_service_op and its_session_info but getting as an USSN in my handset. parameters set for metadata are - *ussd_service_op=2 (for USSR) and its_session_info=* Here is the URL post - http://localhost:8080/cgi-bin/sendsms?user=ABCpassword=XYZfrom=Testto=123456789012text=WelCome%20To%20World%0A1%2ETime%0A2%2EDate%0Ametadata=%3Fsmpp%3Fservice%5Fop%3D2%26session%5Finfo%3D Do i need any other parameter configuration in kannel config file ?? Fragment of my config file is - *group = smpp-tlv name = service_op tag = 0x0501 type = integer length = 2 group = smpp-tlv name = session_info tag = 0x1383 type = octetstring length = 4 * -- View this message in context:
Re: UNICODE with Kannel
Hi Puneet, I'm using java to send and receive sms through Kannel wap and sms gateway, and I do the following steps: # For MO's: - add mo-recode = true in smsbox group - in the servlet; I get the text (value of %a) in ISO-8859-1 and covert it to utf-8 using: text = new String(request.getParameter(text).getBytes(ISO-8859-1), utf-8); # For MT's: --- - URL encode the MT message using: String data = java.net.URLEncoder.encode(mtMessage, UTF8); - add charset=utf-8coding=2 to send sms request: String sendURL = http://KannelServerIP:KannelSendsmsPort/cgi-bin/sendsms?username=userpassword=passw0rdcharset=utf-8 coding=2to=urlEncodedMISDNtext=datasmsc=smscIDfrom=From; - send request to Kannel: java.net.URL url = new java.net.URL(sendURL); java.io.InputStream in = url.openStream(); java.io.BufferedInputStream bufIn = new java.io.BufferedInputStream(in); String result = ; for (;;) { int car = bufIn.read(); // Check for EOF if (car == -1) { break; } else { result = result + (char) car; } } bufIn.close(); in.close(); Regards, -- Benaiad On Wed, Feb 17, 2010 at 9:29 AM, pgo...@thoughtworks.com wrote: Hi Benaiad, I am working with UNICEF in helping them host a SMS solution for children in Iraq. Naturally, this involves sending and receiving Arabic SMSes. We are using kannel to interface with our SMS gateway provider. We are facing some problems while receiving Arabic text in our application (django app). I just came across your post and looks like you got it working properly. You think it would be possible for you to throw over some code which receives SMS from kannel and your kannel config? Language of the code does not matte, I just want to see the logic. Thanks a lot in advance. An early response will be much appreciated :) Puneet Goyal
TLV issue
Hi, i am using kannel version cvs-20100121 for USSD push . i am sending metadata in http url in proper url encoded format , but do not find TLV parameters in kannel log file. Do i need any modification for this in kannel codes? please confirm me. Thanks Regards Ricky
Re: TLV issue
Then you're probably doing something wrong in your configuration or request. The CVS version you're using supports TLV's for sure. We can't help you without logs and some examples on what you're doing... Regards, Alex On Wed, Feb 17, 2010 at 3:36 PM, GSM Revolution gsm@gmail.com wrote: Hi, i am using kannel version cvs-20100121 for USSD push . i am sending metadata in http url in proper url encoded format , but do not find TLV parameters in kannel log file. Do i need any modification for this in kannel codes? please confirm me. Thanks Regards Ricky
XML Post and dlr-url
Hello All, I have been stuck on configuring the dlr-url in the XML-POST. To generate the XML I use the Perl Library XML::Writer On an Perl script I do something like this #DLR Parameter my $amp = URI::Escape::uri_escape('') ; my $dlr_url = ' http://localhost/delivery-report.php?send_history_id='. URI::Escape::uri_escape( $message-{'ID'}). $amp . 'to_number='. URI::Escape::uri_escape($number). $amp . 'type=%d' ; And then $xml_doc-dataElement('dlr-url' = $dlr_url ); At this stage my XML writer has converted the dlr_url in a valid XML string. However when Kannel is going to use it the string doesn't look decoded. See below. 47 45 54 20 2f 64 65 6c 69 76 65 72 79 2d 72 65 GET /delivery-re 70 6f 72 74 2e 70 68 70 3f 73 65 6e 64 5f 68 69 port.php?send_hi 73 74 6f 72 79 5f 69 64 3d 31 33 38 35 33 32 31 story_id=1385321 35 25 32 36 74 6f 5f 6e 75 6d 62 65 72 3d 33 35 5%26to_number=35 33 38 37 30 36 33 32 33 34 36 25 32 36 74 79 70 3870632346%26typ 65 3d 38 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f e=8 HTTP/1.1..Ho 73 74 3a 20 6c 6f 63 61 6c 68 6f 73 74 0d 0a 43 st: localhost..C 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d onnection: keep- 61 6c 69 76 65 0d 0a 55 73 65 72 2d 41 67 65 6e alive..User-Agen 74 3a 20 4b 61 6e 6e 65 6c 2f 31 2e 34 2e 33 0d t: Kannel/1.4.3. I also tried to use $amp = '' without HTML escaping but I get a similar problem: *47 45 54 20 2f 64 65 6c 69 76 65 72 79 2d 72 65 GET /delivery-re 70 6f 72 74 2e 70 68 70 3f 73 65 6e 64 5f 68 69 port.php?send_hi 73 74 6f 72 79 5f 69 64 3d 31 33 38 35 33 32 31 story_id=1385321 34 26 61 6d 70 3b 74 6f 5f 6e 75 6d 62 65 72 3d 4amp;to_number= 33 35 33 38 37 30 36 33 32 33 34 36 26 61 6d 70 353870632346amp 3b 74 79 70 65 3d 38 20 48 54 54 50 2f 31 2e 31 ;type=8 HTTP/1.1 0d 0a 48 6f 73 74 3a 20 6c 6f 63 61 6c 68 6f 73 ..Host: localhos 74 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b t..Connection: k 65 65 70 2d 61 6c 69 76 65 0d 0a 55 73 65 72 2d eep-alive..User- 41 67 65 6e 74 3a 20 4b 61 6e 6e 65 6c 2f 31 2e Agent: Kannel/1. 34 2e 33 0d 0a 0d 0a 4.3 * Any idea?
PANIC then geting DLR from SMPP.
Hi! kannel PANIC then i using DLR..I got this all the time (then sending SMS): 2010-02-17 16:59:41 [23948] [4] DEBUG: SMSC[SMPP:server2.msgtoolbox.com:2775/2775:ICITG1_1:G1]: creating DLR message 2010-02-17 16:59:41 [23948] [4] DEBUG: SMSC[SMPP:server2.msgtoolbox.com:2775/2775:ICITG1_1:G1]: DLR = http://127.0.0.1/dlr.php?msgid=1state= %dmsisdn=%p 2010-02-17 16:59:43 [23948] [4] PANIC: gwlib/gw-rwlock.c:137: gw_rwlock_rdlock: Assertion `lock != NULL' failed. 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox(gw_panic+0x16d) [0x48660d] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox(gw_rwlock_rdlock +0x4d) [0x47c13d] 2010-02-17 16:59:45 [23948] [4] PANIC: ./ bearerbox(route_incoming_to_boxc+0x58) [0x4119a8] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox(bb_smscconn_receive +0x57c) [0x41805c] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox(bb_smscconn_sent +0xf2) [0x418cc2] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox [0x454e38] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox [0x45639c] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox [0x47d495] 2010-02-17 16:59:45 [23948] [4] PANIC: /lib/libpthread.so.0 [0x2b09842023f7] 2010-02-17 16:59:45 [23948] [4] PANIC: /lib/libc.so.6(clone+0x6d) [0x2b0984bb7b2d] I got the same PANIC then i receive the DLR message from SMPP. Here is full logg: 2010-02-17 16:59:24 [23948] [4] DEBUG: SMPP PDU 0x7835c0 dump: 2010-02-17 16:59:24 [23948] [4] DEBUG: type_name: bind_transceiver 2010-02-17 16:59:24 [23948] [4] DEBUG: command_id: 9 = 0x0009 2010-02-17 16:59:24 [23948] [4] DEBUG: command_status: 0 = 0x 2010-02-17 16:59:24 [23948] [4] DEBUG: sequence_number: 1 = 0x0001 2010-02-17 16:59:24 [23948] [4] DEBUG: system_id: USER 2010-02-17 16:59:24 [23948] [4] DEBUG: password: PASS 2010-02-17 16:59:24 [23948] [4] DEBUG: system_type: G1 2010-02-17 16:59:24 [23948] [4] DEBUG: interface_version: 52 = 0x0034 2010-02-17 16:59:24 [23948] [4] DEBUG: addr_ton: 0 = 0x 2010-02-17 16:59:24 [23948] [4] DEBUG: addr_npi: 0 = 0x 2010-02-17 16:59:24 [23948] [4] DEBUG: address_range: 2010-02-17 16:59:24 [23948] [4] DEBUG: SMPP PDU dump ends. 2010-02-17 16:59:29 [23948] [4] DEBUG: Optional parameter tag (0x0210) 2010-02-17 16:59:29 [23948] [4] DEBUG: Optional parameter length read as 1 2010-02-17 16:59:29 [23948] [4] DEBUG: SMPP[SMPP:server2.msgtoolbox.com:2775/2775:USER:G1]: Got PDU: 2010-02-17 16:59:29 [23948] [4] DEBUG: SMPP PDU 0x783640 dump: 2010-02-17 16:59:29 [23948] [4] DEBUG: type_name: bind_transceiver_resp 2010-02-17 16:59:29 [23948] [4] DEBUG: command_id: 2147483657 = 0x8009 2010-02-17 16:59:29 [23948] [4] DEBUG: command_status: 0 = 0x 2010-02-17 16:59:29 [23948] [4] DEBUG: sequence_number: 1 = 0x0001 2010-02-17 16:59:29 [23948] [4] DEBUG: system_id: 42IT-SMPP 2010-02-17 16:59:29 [23948] [4] DEBUG: sc_interface_version: 52 = 0x0034 2010-02-17 16:59:29 [23948] [4] DEBUG: SMPP PDU dump ends. 2010-02-17 16:59:29 [23948] [4] DEBUG: SMPP[SMPP:server2.msgtoolbox.com:2775/2775:USER:G1]: throughput (0.00,0.00) 2010-02-17 16:59:33 [23948] [11] INFO: Client connected from 127.0.0.1 2010-02-17 16:59:33 [23948] [11] DEBUG: Started thread 13 (gw/ bb_boxc.c:function) 2010-02-17 16:59:33 [23948] [13] DEBUG: Thread 13 (gw/ bb_boxc.c:function) maps to pid 23948. 2010-02-17 16:59:33 [23948] [13] DEBUG: setting up systems for new wapbox 2010-02-17 16:59:33 [23948] [13] DEBUG: Started thread 14 (gw/ bb_boxc.c:boxc_sender) 2010-02-17 16:59:33 [23948] [14] DEBUG: Thread 14 (gw/ bb_boxc.c:boxc_sender) maps to pid 23948. 2010-02-17 16:59:41 [23948] [13] DEBUG: boxc_receiver: got sms from wapbox 2010-02-17 16:59:41 [23948] [13] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-02-17 16:59:41 [23948] [4] DEBUG: SMPP[SMPP:server2.msgtoolbox.com:2775/2775:USER:G1]: throughput (0.00,0.00) 2010-02-17 16:59:41 [23948] [4] DEBUG: SMPP[SMPP:server2.msgtoolbox.com:2775/2775:USER:G1]: Sending PDU: 2010-02-17 16:59:41 [23948] [4] DEBUG: SMPP PDU 0x77dae0 dump: 2010-02-17 16:59:41 [23948] [4] DEBUG: type_name: submit_sm 2010-02-17 16:59:41 [23948] [4] DEBUG: command_id: 4 = 0x0004 2010-02-17 16:59:41 [23948] [4] DEBUG: command_status: 0 = 0x 2010-02-17 16:59:41 [23948] [4] DEBUG: sequence_number: 2 = 0x0002 2010-02-17 16:59:41 [23948] [4] DEBUG: service_type: NULL 2010-02-17 16:59:41 [23948] [4] DEBUG: source_addr_ton: 2 = 0x0002 2010-02-17 16:59:41 [23948] [4] DEBUG: source_addr_npi: 1 = 0x0001 2010-02-17 16:59:41 [23948] [4] DEBUG: source_addr: 123 2010-02-17 16:59:41 [23948] [4] DEBUG: dest_addr_ton: 2 = 0x0002 2010-02-17 16:59:41 [23948] [4] DEBUG: dest_addr_npi: 1 = 0x0001 2010-02-17 16:59:41 [23948] [4] DEBUG: destination_addr: 4670xxx 2010-02-17 16:59:41 [23948] [4] DEBUG: esm_class: 3 = 0x0003 2010-02-17 16:59:41 [23948] [4] DEBUG: protocol_id: 0 = 0x 2010-02-17
Kannel Status URL's
Hi Nikos Balkanas, Please help me below mentioned urls which i don't know how to use. I fallowed the Kannel User guide but there is explanation is there please help me. http://192.168.1.94:13000/status?password=x (it is working for me) http://192.168.1.94:13000/store-status?password=x (it is working for me) http://192.168.1.94:13000/log-level?password=x ( *How to use this with URL example ?*) http://192.168.1.94:13000/shutdown?password=x (It is working for me) http://192.168.1.94:13000/suspend?password=x (it is working for me) http://192.168.1.94:13000/isolate?password=x(It is working for me) http://192.168.1.94:13000/resume?password=x(it is working for me) http://192.168.1.94:13000/restart?password=x(it is working for me) http://192.168.1.94:13000/flush-dlr?password=x(it is working for me) http://192.168.1.94:13000/stop-smsc?password=xsmsc=(it is working for me) http://192.168.1.94:13000/start-smsc?password=xsmsc=(it is working for me) http://192.168.1.94:13000/add-smsc?password=x (*How to use this with URL example ?*) http://192.168.1.94:13000/remove-smsc?password=x (*How to use this with URL Example ?*) http://192.168.1.94:13000/reload-lists?password=x (it is working for me) -- ** * Warm Regards, Kiran Reddy MPOWER 91-9036971573 P Please consider the environment before printing this email. Visit us at: www.mpowerglobal.in http://www.mpowerglobal.in/ *
RE: Telnet device
Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device 2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to 192.168.1.121 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: device opened. Telnet mode = 1 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: -- ^M 2010-02-15 13:43:52 [32013] [8] DEBUG: AT2[portech]: -- AT^M 2010-02-15 13:43:57 [32013] [8] DEBUG: AT2[portech]: -- username: AT 2010-02-15 13:44:03 [32013] [8] DEBUG: AT2[portech]: -- AT^M 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: -- password: ** 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: -- bad username The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried ^M carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip info.ubic...@free.fr wrote: In this modem, you could have both in the same telnet session, you just have to tell to the modem to go in the AT mode, which is done by entering the command 'module' and then we are in full AT command. So I got two issues : - first to tell kannel to connect to it with the correct login/password which looks to be not the cas - second, I have to tell the modem to go in the AT mode, which I assume I could do it by passing the command in the init-string of the modem (as soon as the init-string accept the carriage return). If you have any tricks to help me for the first point ? Thanks in advance -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 11:02 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device I don´t know your modem, but in the cases I know, port 23 is for managing the modem configs and such. For using AT interface they usually use a different port. with the same Telnet protocol... something like Telnet host:2100 Regards |- |-- --| 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, Feb 16, 2010 at 1:06 PM, info.ubichip info.ubic...@free.fr wrote: Hello, Does someone got similar issue ? Regards -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: lundi 15 février 2010 13:49 To: users@kannel.org Subject: Using Portech modem Hello All, I would like to use a portech GSM gateway MV-370 on a kannel 1.4.3 version, I'm able to send basic sms by hand using telnet as the following example : Telnet 192.168.1.121 username:voip password: User level = admin Command : logout,module,module1,module2 module Getting module 1.. Got!! Press 'ctrl-x' to release module 1. at+cmgf=1 OK At+cmgs=1122334455 test +CMGS:30 So I make a configuration in kannel as follow : group = smsc smsc = at smsc-id = portech allowed-smsc-id = portech log-level = 0 log-file = /var/log/kannel/portech.log device = telnet host = 192.168.1.121 port = 23 login-prompt = username: password-prompt = password: smsc-username = voip smsc-password = 1234 modemtype = portech validityperiod = 172 keepalive = 10 my-number = 0012345678 sim-buffering = true I got the following error, it is like the telnet session is not initialized correctly : 2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: trying to use speed 115200 from modem definition 2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device 2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to 192.168.1.121 2010-02-15
Re: Telnet device
Please post configuration. BR, Nikos - Original Message - From: info.ubichip info.ubic...@free.fr To: 'Alvaro Cornejo' cornejo.alv...@gmail.com; users@kannel.org Sent: Thursday, February 18, 2010 8:07 AM Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device 2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to 192.168.1.121 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: device opened. Telnet mode = 1 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: -- ^M 2010-02-15 13:43:52 [32013] [8] DEBUG: AT2[portech]: -- AT^M 2010-02-15 13:43:57 [32013] [8] DEBUG: AT2[portech]: -- username: AT 2010-02-15 13:44:03 [32013] [8] DEBUG: AT2[portech]: -- AT^M 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: -- password: ** 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: -- bad username The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried ^M carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip info.ubic...@free.fr wrote: In this modem, you could have both in the same telnet session, you just have to tell to the modem to go in the AT mode, which is done by entering the command 'module' and then we are in full AT command. So I got two issues : - first to tell kannel to connect to it with the correct login/password which looks to be not the cas - second, I have to tell the modem to go in the AT mode, which I assume I could do it by passing the command in the init-string of the modem (as soon as the init-string accept the carriage return). If you have any tricks to help me for the first point ? Thanks in advance -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 11:02 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device I don´t know your modem, but in the cases I know, port 23 is for managing the modem configs and such. For using AT interface they usually use a different port. with the same Telnet protocol... something like Telnet host:2100 Regards |- |-- --| 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, Feb 16, 2010 at 1:06 PM, info.ubichip info.ubic...@free.fr wrote: Hello, Does someone got similar issue ? Regards -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: lundi 15 février 2010 13:49 To: users@kannel.org Subject: Using Portech modem Hello All, I would like to use a portech GSM gateway MV-370 on a kannel 1.4.3 version, I'm able to send basic sms by hand using telnet as the following example : Telnet 192.168.1.121 username:voip password: User level = admin Command : logout,module,module1,module2 module Getting module 1.. Got!! Press 'ctrl-x' to release module 1. at+cmgf=1 OK At+cmgs=1122334455 test +CMGS:30 So I make a configuration in kannel as follow : group = smsc smsc = at smsc-id = portech allowed-smsc-id = portech log-level = 0 log-file = /var/log/kannel/portech.log device = telnet host = 192.168.1.121 port = 23 login-prompt = username: password-prompt = password: smsc-username = voip smsc-password = 1234 modemtype = portech validityperiod = 172 keepalive = 10 my-number = 0012345678 sim-buffering = true I got the following error, it is like the telnet session is not initialized correctly : 2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: trying to use speed 115200 from modem definition 2010-02-15 13:43:50
RE: Telnet device
In sms_at.c, the following function looks not make the good thing : static int at2_login_device(PrivAT2data *privdata) { info(0, AT2[%s]: Logging in, octstr_get_cstr(privdata-name)); at2_read_buffer(privdata, 0); gwthread_sleep(0.5); at2_read_buffer(privdata, 0); if((octstr_len(privdata-username) == 0 ) (octstr_len(privdata-password) 0)) { at2_wait_modem_command(privdata, 10, 3, NULL); /* wait for Password: prompt */ at2_send_modem_command(privdata, octstr_get_cstr(privdata-password), 2,0); /* wait for OK: */ at2_send_modem_command(privdata, AT, 2,0); /* wait for OK: */ } else if((octstr_len(privdata-username) 0 ) (octstr_len(privdata-password) 0)) { at2_wait_modem_command(privdata, 10, 2, NULL); /* wait for Login: prompt */ at2_send_modem_command(privdata, octstr_get_cstr(privdata-username), 10,3); /* wait fo Password: */ at2_send_modem_command(privdata, octstr_get_cstr(privdata-password), 2,0); /* wait for OK: */ at2_send_modem_command(privdata, AT, 2,0); /* wait for OK: */ } return 0; } In my case the telnet device is the 'else if' case, looking first for a carriage return then the login prompt, then the password prompt and then send the first 'AT'. For an unknown reason, it send the first 'AT4 too early. Soes someone got idea of modification to be made ? thanks -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mercredi 17 février 2010 22:07 To: 'Alvaro Cornejo'; users@kannel.org Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device 2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to 192.168.1.121 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: device opened. Telnet mode = 1 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: -- ^M 2010-02-15 13:43:52 [32013] [8] DEBUG: AT2[portech]: -- AT^M 2010-02-15 13:43:57 [32013] [8] DEBUG: AT2[portech]: -- username: AT 2010-02-15 13:44:03 [32013] [8] DEBUG: AT2[portech]: -- AT^M 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: -- password: ** 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: -- bad username The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried ^M carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip info.ubic...@free.fr wrote: In this modem, you could have both in the same telnet session, you just have to tell to the modem to go in the AT mode, which is done by entering the command 'module' and then we are in full AT command. So I got two issues : - first to tell kannel to connect to it with the correct login/password which looks to be not the cas - second, I have to tell the modem to go in the AT mode, which I assume I could do it by passing the command in the init-string of the modem (as soon as the init-string accept the carriage return). If you have any tricks to help me for the first point ? Thanks in advance -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 11:02 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device I don´t know your modem, but in the cases I know, port 23 is for managing the modem configs and such. For using AT interface they usually use a different port. with the same Telnet protocol... something like Telnet host:2100 Regards |- |-- --| 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
Re: Telnet device
Interesting side note, if you're using vim and need to generate ^M, you don't type ^ and then M, ie. shift + 6, then shift + M, you have to type: ctrl + v ctrl + m then you see ^M ... you can also type ctrl + v ctrl + enter which produces ^@ cheers iain On Thu, 18 Feb 2010, Nikos Balkanas wrote: Please post configuration. BR, Nikos - Original Message - From: info.ubichip info.ubic...@free.fr To: 'Alvaro Cornejo' cornejo.alv...@gmail.com; users@kannel.org Sent: Thursday, February 18, 2010 8:07 AM Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device 2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to 192.168.1.121 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: device opened. Telnet mode = 1 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: -- ^M 2010-02-15 13:43:52 [32013] [8] DEBUG: AT2[portech]: -- AT^M 2010-02-15 13:43:57 [32013] [8] DEBUG: AT2[portech]: -- username: AT 2010-02-15 13:44:03 [32013] [8] DEBUG: AT2[portech]: -- AT^M 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: -- password: ** 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: -- bad username The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried ^M carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip info.ubic...@free.fr wrote: In this modem, you could have both in the same telnet session, you just have to tell to the modem to go in the AT mode, which is done by entering the command 'module' and then we are in full AT command. So I got two issues : - first to tell kannel to connect to it with the correct login/password which looks to be not the cas - second, I have to tell the modem to go in the AT mode, which I assume I could do it by passing the command in the init-string of the modem (as soon as the init-string accept the carriage return). If you have any tricks to help me for the first point ? Thanks in advance -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 11:02 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device I don´t know your modem, but in the cases I know, port 23 is for managing the modem configs and such. For using AT interface they usually use a different port. with the same Telnet protocol... something like Telnet host:2100 Regards |- |-- --| 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, Feb 16, 2010 at 1:06 PM, info.ubichip info.ubic...@free.fr wrote: Hello, Does someone got similar issue ? Regards -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: lundi 15 février 2010 13:49 To: users@kannel.org Subject: Using Portech modem Hello All, I would like to use a portech GSM gateway MV-370 on a kannel 1.4.3 version, I'm able to send basic sms by hand using telnet as the following example : Telnet 192.168.1.121 username:voip password: User level = admin Command : logout,module,module1,module2 module Getting module 1.. Got!! Press 'ctrl-x' to release module 1. at+cmgf=1 OK At+cmgs=1122334455 test +CMGS:30 So I make a configuration in kannel as follow : group = smsc smsc = at smsc-id = portech allowed-smsc-id = portech log-level = 0 log-file = /var/log/kannel/portech.log device = telnet host = 192.168.1.121 port = 23 login-prompt = username: password-prompt = password: smsc-username = voip smsc-password = 1234 modemtype =
Re: XML Post and dlr-url
Hi, For Perl questions address a perl group. Besides this is not an XML-POST. This is a simple GET with variables in the URL. Additionally you don't seem to bind dlr-url at all. You have a lot of issues to resolve, none of them apparently with kannel. BR, Nikos - Original Message - From: oscar cassetti To: users@kannel.org Sent: Wednesday, February 17, 2010 10:26 PM Subject: XML Post and dlr-url Hello All, I have been stuck on configuring the dlr-url in the XML-POST. To generate the XML I use the Perl Library XML::Writer On an Perl script I do something like this #DLR Parameter my $amp = URI::Escape::uri_escape('') ; my $dlr_url = 'http://localhost/delivery-report.php?send_history_id='. URI::Escape::uri_escape( $message-{'ID'}). $amp . 'to_number='. URI::Escape::uri_escape($number). $amp . 'type=%d' ; And then $xml_doc-dataElement('dlr-url' = $dlr_url ); At this stage my XML writer has converted the dlr_url in a valid XML string. However when Kannel is going to use it the string doesn't look decoded. See below. 47 45 54 20 2f 64 65 6c 69 76 65 72 79 2d 72 65 GET /delivery-re 70 6f 72 74 2e 70 68 70 3f 73 65 6e 64 5f 68 69 port.php?send_hi 73 74 6f 72 79 5f 69 64 3d 31 33 38 35 33 32 31 story_id=1385321 35 25 32 36 74 6f 5f 6e 75 6d 62 65 72 3d 33 35 5%26to_number=35 33 38 37 30 36 33 32 33 34 36 25 32 36 74 79 70 3870632346%26typ 65 3d 38 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f e=8 HTTP/1.1..Ho 73 74 3a 20 6c 6f 63 61 6c 68 6f 73 74 0d 0a 43 st: localhost..C 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d onnection: keep- 61 6c 69 76 65 0d 0a 55 73 65 72 2d 41 67 65 6e alive..User-Agen 74 3a 20 4b 61 6e 6e 65 6c 2f 31 2e 34 2e 33 0d t: Kannel/1.4.3. I also tried to use $amp = '' without HTML escaping but I get a similar problem: 47 45 54 20 2f 64 65 6c 69 76 65 72 79 2d 72 65 GET /delivery-re 70 6f 72 74 2e 70 68 70 3f 73 65 6e 64 5f 68 69 port.php?send_hi 73 74 6f 72 79 5f 69 64 3d 31 33 38 35 33 32 31 story_id=1385321 34 26 61 6d 70 3b 74 6f 5f 6e 75 6d 62 65 72 3d 4amp;to_number= 33 35 33 38 37 30 36 33 32 33 34 36 26 61 6d 70 353870632346amp 3b 74 79 70 65 3d 38 20 48 54 54 50 2f 31 2e 31 ;type=8 HTTP/1.1 0d 0a 48 6f 73 74 3a 20 6c 6f 63 61 6c 68 6f 73 ..Host: localhos 74 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b t..Connection: k 65 65 70 2d 61 6c 69 76 65 0d 0a 55 73 65 72 2d eep-alive..User- 41 67 65 6e 74 3a 20 4b 61 6e 6e 65 6c 2f 31 2e Agent: Kannel/1. 34 2e 33 0d 0a 0d 0a 4.3 Any idea?
Re: Kannel Status URL's
Hi, Is this a followup to a previous mail of mine? Why do you address me personally? When addressing list please use 'Hi', 'Dear all' or whatever you like. Nikos - Original Message - From: kiran.re...@mpowerglobal.in To: Users mailing list ; Nikos Balkanas ; Nikos Balkanas Sent: Thursday, February 18, 2010 6:35 AM Subject: Kannel Status URL's Hi Nikos Balkanas, Please help me below mentioned urls which i don't know how to use. I fallowed the Kannel User guide but there is explanation is there please help me. http://192.168.1.94:13000/status?password=x (it is working for me) http://192.168.1.94:13000/store-status?password=x (it is working for me) http://192.168.1.94:13000/log-level?password=x ( How to use this with URL example ?) http://192.168.1.94:13000/shutdown?password=x (It is working for me) http://192.168.1.94:13000/suspend?password=x (it is working for me) http://192.168.1.94:13000/isolate?password=x(It is working for me) http://192.168.1.94:13000/resume?password=x(it is working for me) http://192.168.1.94:13000/restart?password=x(it is working for me) http://192.168.1.94:13000/flush-dlr?password=x(it is working for me) http://192.168.1.94:13000/stop-smsc?password=xsmsc=(it is working for me) http://192.168.1.94:13000/start-smsc?password=xsmsc=(it is working for me) http://192.168.1.94:13000/add-smsc?password=x (How to use this with URL example ?) http://192.168.1.94:13000/remove-smsc?password=x (How to use this with URL Example ?) http://192.168.1.94:13000/reload-lists?password=x (it is working for me) -- Warm Regards, Kiran Reddy MPOWER 91-9036971573 P Please consider the environment before printing this email. Visit us at: www.mpowerglobal.in
Kannel Status URl ?
Dear All, Please help me below mentioned urls which i don't know how to use. I fallowed the Kannel User guide but there is explanation is there please help me. http://192.168.1.94:13000/status?password=x (it is working for me) http://192.168.1.94:13000/store-status?password=x (it is working for me) http://192.168.1.94:13000/log-level?password=x ( *How to use this with URL example ?*) http://192.168.1.94:13000/shutdown?password=x (It is working for me) http://192.168.1.94:13000/suspend?password=x (it is working for me) http://192.168.1.94:13000/isolate?password=x(It is working for me) http://192.168.1.94:13000/resume?password=x(it is working for me) http://192.168.1.94:13000/restart?password=x(it is working for me) http://192.168.1.94:13000/flush-dlr?password=x(it is working for me) http://192.168.1.94:13000/stop-smsc?password=xsmsc=(it is working for me) http://192.168.1.94:13000/start-smsc?password=xsmsc=(it is working for me) http://192.168.1.94:13000/add-smsc?password=x (*How to use this with URL example ?*) http://192.168.1.94:13000/remove-smsc?password=x (*How to use this with URL Example ?*) http://192.168.1.94:13000/reload-lists?password=x (it is working for me) Thanks and Regards, -- Kiran Reddy
Re: PANIC then geting DLR from SMPP.
Hi, This refers to smsbox_list_rwlock. It seems it is at this point invalid. Since it was created OK (else it would have panicked on creation), it probably means that some memory corruption is taking place. Please include an smsc-id in your smsc configuration (something simple). If problem persists, post output of: ldd $(which bearerbox) BR, Nikos - Original Message - From: Jens Haag jens.h...@icit.se To: users@kannel.org Sent: Wednesday, February 17, 2010 9:51 PM Subject: PANIC then geting DLR from SMPP. Hi! kannel PANIC then i using DLR..I got this all the time (then sending SMS): 2010-02-17 16:59:41 [23948] [4] DEBUG: SMSC[SMPP:server2.msgtoolbox.com:2775/2775:ICITG1_1:G1]: creating DLR message 2010-02-17 16:59:41 [23948] [4] DEBUG: SMSC[SMPP:server2.msgtoolbox.com:2775/2775:ICITG1_1:G1]: DLR = http://127.0.0.1/dlr.php?msgid=1state= %dmsisdn=%p 2010-02-17 16:59:43 [23948] [4] PANIC: gwlib/gw-rwlock.c:137: gw_rwlock_rdlock: Assertion `lock != NULL' failed. 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox(gw_panic+0x16d) [0x48660d] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox(gw_rwlock_rdlock +0x4d) [0x47c13d] 2010-02-17 16:59:45 [23948] [4] PANIC: ./ bearerbox(route_incoming_to_boxc+0x58) [0x4119a8] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox(bb_smscconn_receive +0x57c) [0x41805c] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox(bb_smscconn_sent +0xf2) [0x418cc2] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox [0x454e38] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox [0x45639c] 2010-02-17 16:59:45 [23948] [4] PANIC: ./bearerbox [0x47d495] 2010-02-17 16:59:45 [23948] [4] PANIC: /lib/libpthread.so.0 [0x2b09842023f7] 2010-02-17 16:59:45 [23948] [4] PANIC: /lib/libc.so.6(clone+0x6d) [0x2b0984bb7b2d] I got the same PANIC then i receive the DLR message from SMPP. Here is full logg: 2010-02-17 16:59:24 [23948] [4] DEBUG: SMPP PDU 0x7835c0 dump: 2010-02-17 16:59:24 [23948] [4] DEBUG: type_name: bind_transceiver 2010-02-17 16:59:24 [23948] [4] DEBUG: command_id: 9 = 0x0009 2010-02-17 16:59:24 [23948] [4] DEBUG: command_status: 0 = 0x 2010-02-17 16:59:24 [23948] [4] DEBUG: sequence_number: 1 = 0x0001 2010-02-17 16:59:24 [23948] [4] DEBUG: system_id: USER 2010-02-17 16:59:24 [23948] [4] DEBUG: password: PASS 2010-02-17 16:59:24 [23948] [4] DEBUG: system_type: G1 2010-02-17 16:59:24 [23948] [4] DEBUG: interface_version: 52 = 0x0034 2010-02-17 16:59:24 [23948] [4] DEBUG: addr_ton: 0 = 0x 2010-02-17 16:59:24 [23948] [4] DEBUG: addr_npi: 0 = 0x 2010-02-17 16:59:24 [23948] [4] DEBUG: address_range: 2010-02-17 16:59:24 [23948] [4] DEBUG: SMPP PDU dump ends. 2010-02-17 16:59:29 [23948] [4] DEBUG: Optional parameter tag (0x0210) 2010-02-17 16:59:29 [23948] [4] DEBUG: Optional parameter length read as 1 2010-02-17 16:59:29 [23948] [4] DEBUG: SMPP[SMPP:server2.msgtoolbox.com:2775/2775:USER:G1]: Got PDU: 2010-02-17 16:59:29 [23948] [4] DEBUG: SMPP PDU 0x783640 dump: 2010-02-17 16:59:29 [23948] [4] DEBUG: type_name: bind_transceiver_resp 2010-02-17 16:59:29 [23948] [4] DEBUG: command_id: 2147483657 = 0x8009 2010-02-17 16:59:29 [23948] [4] DEBUG: command_status: 0 = 0x 2010-02-17 16:59:29 [23948] [4] DEBUG: sequence_number: 1 = 0x0001 2010-02-17 16:59:29 [23948] [4] DEBUG: system_id: 42IT-SMPP 2010-02-17 16:59:29 [23948] [4] DEBUG: sc_interface_version: 52 = 0x0034 2010-02-17 16:59:29 [23948] [4] DEBUG: SMPP PDU dump ends. 2010-02-17 16:59:29 [23948] [4] DEBUG: SMPP[SMPP:server2.msgtoolbox.com:2775/2775:USER:G1]: throughput (0.00,0.00) 2010-02-17 16:59:33 [23948] [11] INFO: Client connected from 127.0.0.1 2010-02-17 16:59:33 [23948] [11] DEBUG: Started thread 13 (gw/ bb_boxc.c:function) 2010-02-17 16:59:33 [23948] [13] DEBUG: Thread 13 (gw/ bb_boxc.c:function) maps to pid 23948. 2010-02-17 16:59:33 [23948] [13] DEBUG: setting up systems for new wapbox 2010-02-17 16:59:33 [23948] [13] DEBUG: Started thread 14 (gw/ bb_boxc.c:boxc_sender) 2010-02-17 16:59:33 [23948] [14] DEBUG: Thread 14 (gw/ bb_boxc.c:boxc_sender) maps to pid 23948. 2010-02-17 16:59:41 [23948] [13] DEBUG: boxc_receiver: got sms from wapbox 2010-02-17 16:59:41 [23948] [13] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-02-17 16:59:41 [23948] [4] DEBUG: SMPP[SMPP:server2.msgtoolbox.com:2775/2775:USER:G1]: throughput (0.00,0.00) 2010-02-17 16:59:41 [23948] [4] DEBUG: SMPP[SMPP:server2.msgtoolbox.com:2775/2775:USER:G1]: Sending PDU: 2010-02-17 16:59:41 [23948] [4] DEBUG: SMPP PDU 0x77dae0 dump: 2010-02-17 16:59:41 [23948] [4] DEBUG: type_name: submit_sm 2010-02-17 16:59:41 [23948] [4] DEBUG: command_id: 4 = 0x0004 2010-02-17 16:59:41 [23948] [4] DEBUG: command_status: 0 = 0x 2010-02-17 16:59:41 [23948] [4] DEBUG: sequence_number: 2 = 0x0002 2010-02-17 16:59:41 [23948] [4] DEBUG: service_type: NULL 2010-02-17 16:59:41 [23948] [4] DEBUG:
Re: Telnet device
Yeap. That was my original observation to Alvaro who originally proposed it. However, this is a modem, not vim, and Alvaro is one of the most experienced with it in the group ;-) Coincidence or just staying with tradition in vim? BR, Nikos - Original Message - From: Iain Dooley i...@workingsoftware.com.au To: Nikos Balkanas nbalka...@gmail.com Cc: info.ubichip info.ubic...@free.fr; us...@vm1.kannel.org Sent: Thursday, February 18, 2010 8:46 AM Subject: Re: Telnet device Interesting side note, if you're using vim and need to generate ^M, you don't type ^ and then M, ie. shift + 6, then shift + M, you have to type: ctrl + v ctrl + m then you see ^M ... you can also type ctrl + v ctrl + enter which produces ^@ cheers iain On Thu, 18 Feb 2010, Nikos Balkanas wrote: Please post configuration. BR, Nikos - Original Message - From: info.ubichip info.ubic...@free.fr To: 'Alvaro Cornejo' cornejo.alv...@gmail.com; users@kannel.org Sent: Thursday, February 18, 2010 8:07 AM Subject: RE: Telnet device Hello all, Just to make an update, I still got my two issues. It appears the modem generated a carriage return before the login string 'username:', it should disturb the login process. If someone got any clue or idea to make modification ? The ^M looks not working as well to insert a carriage return in the different init-string. Does anyone have been got similar need to integrate with telnet device or so ? Thanks in advance -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: mardi 16 février 2010 22:00 To: 'Alvaro Cornejo' Cc: users@kannel.org Subject: RE: Telnet device Yes, I tried it but it looks I got issue before because the login/password is not filled in the protocol. I was wondering if something is not well implemented in the telnet dialogue. Do you have any clue on this before ? 2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device 2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to 192.168.1.121 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: device opened. Telnet mode = 1 2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: -- ^M 2010-02-15 13:43:52 [32013] [8] DEBUG: AT2[portech]: -- AT^M 2010-02-15 13:43:57 [32013] [8] DEBUG: AT2[portech]: -- username: AT 2010-02-15 13:44:03 [32013] [8] DEBUG: AT2[portech]: -- AT^M 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: -- password: ** 2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: -- bad username The 'username:' string is not recognize, I took a look on hte source code in smsc_at.c but there is nothing that could explain that. -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 20:57 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device Did you tried ^M carret char plus M char ?? This is a sort of character representation of a carriage return... Regards Alvaro On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip info.ubic...@free.fr wrote: In this modem, you could have both in the same telnet session, you just have to tell to the modem to go in the AT mode, which is done by entering the command 'module' and then we are in full AT command. So I got two issues : - first to tell kannel to connect to it with the correct login/password which looks to be not the cas - second, I have to tell the modem to go in the AT mode, which I assume I could do it by passing the command in the init-string of the modem (as soon as the init-string accept the carriage return). If you have any tricks to help me for the first point ? Thanks in advance -Original Message- From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] Sent: mardi 16 février 2010 11:02 To: info.ubichip Cc: users@kannel.org Subject: Re: Telnet device I don´t know your modem, but in the cases I know, port 23 is for managing the modem configs and such. For using AT interface they usually use a different port. with the same Telnet protocol... something like Telnet host:2100 Regards |- |-- --| 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, Feb 16, 2010 at 1:06 PM, info.ubichip info.ubic...@free.fr wrote: Hello, Does someone got similar issue ? Regards -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubichip Sent: lundi 15 février 2010 13:49 To: users@kannel.org Subject: Using Portech modem Hello All, I would like to use a portech GSM gateway MV-370 on a kannel 1.4.3 version, I'm able to send basic sms by hand using telnet as the following example : Telnet 192.168.1.121 username:voip password: User level =