Sending custom headers in oma-settings
Hi, I wanted to send some custom headers that would basically go along in the WSP part of the SMS (i.e. right after content-type). Is this possible? I've been searching around and can't find anything. I'm new to Kannel so sorry if this is an obvious question. Thanks, Jin
Re: Sending custom headers in oma-settings
Hi, Your subject oma-settings is confusing. I assume you mean ota-settings. In ota requests, kannel accepts tokens and attributes only from the spec OTA ch 8.1 8.2 (gw/ota_compiler.c). You are out of lack. If on the other hand you are talking about wap push (PPG) you can send anything you want, as long as it is correctly encoded in wbxml. BR, Nikos - Original Message - From: Jin To: users@kannel.org Sent: Friday, June 04, 2010 9:44 AM Subject: Sending custom headers in oma-settings Hi, I wanted to send some custom headers that would basically go along in the WSP part of the SMS (i.e. right after content-type). Is this possible? I've been searching around and can't find anything. I'm new to Kannel so sorry if this is an obvious question. Thanks, Jin
Re: Route modem as SMS Sender
Dear Rene, I will try first and find out the solution also example. Thank you On Fri, Jun 4, 2010 at 12:52 AM, Rene Kluwen rene.klu...@chimit.nl wrote: Look up allowed-smsc-id in the Kannel users guide. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aan Isnaini - Gmail Sent: donderdag 3 juni 2010 6:11 To: Nikos Balkanas Cc: users@kannel.org Subject: Re: Route modem as SMS Sender Dear Nikos, After trial for few days, I still got negative result. below is the kannel.conf and url to send the SMS --- kannel.conf #core group = core admin-port = 13000 smsbox-port = 13001 admin-password = adminpwd status-password = statuspwd admin-deny-ip = admin-allow-ip = 127.0.0.1 log-file = var/log/kannel/bearerbox.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/kannel/access.log store-file = /var/log/kannel/kannel.store #dlr-storage = mysql #smsc #wavecom 1 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom1 modemtype = wavecom device = /dev/ttyS0 speed = 115200 #pin = 1234 #include = /etc/modems.conf #wavecom 2 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom2 modemtype = wavecom device = /dev/ttyS1 speed = 115200 #pin = 1234 #include = /etc/modems.conf #wavecom 3 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom3 modemtype = wavecom device = /dev/ttyUSB0 speed = 115200 #pin = 1234 #include = /etc/modems.conf #modem group = modems id = wavecom detect-string = WAVECOM message-storage = SM init-string = AT+CNMI=2,1,0,0,0;+CMEE=1 #init-string = AT+CNMI=2,2,0,0,0;+CMEE=1 #smsbox group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 #smsbox-id = wavecom sendsms-chars = 0123456789 +- global-sender = +628110 log-file = /var/log/kannel/smsbox.log log-level = 1 #send-sms users group = sendsms-user username = sms password = smspwd #services group = sms-service keyword = default #accept-x-kannel-headers = true max-messages = 0 # 0 no reply assume-plain-text = true concatenation = true catch-all = true get-url = http://localhost/tsg/modem?sender=%pmessage=%a; - url to send SMS is: http://127.0.0.1:13013/cgi-bin/sendsms?username=smspassword=smspwdsmsc=wavecom3to=0811918808text=test I need smsc=wavecom3 only act as sender by put parameter smsc as above, but the result is seem randomly when send sms (random using wavecom1, wavecom2 and wavecom3) Looking forward to have advice and help to fix the problem. Thank you Best Regard AI 2010/5/29 Nikos Balkanas nbalka...@gmail.com: Hi, I think the correct variable is smsc=xxx in your send-url, not smsc-id=xxx. BR, Nikos - Original Message - From: Alvaro Cornejo cornejo.alv...@gmail.com To: aan.isna...@gmail.com Cc: users@kannel.org Sent: Friday, May 28, 2010 4:29 PM Subject: Re: Route modem as SMS Sender use smsc-id=xxx in your sendsms url as well as prefered/denied smsc parameters in smsc configs. Check manual for details Regards 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 On Fri, May 28, 2010 at 3:28 AM, Aan Isnaini aan.isna...@gmail.com wrote: Dear All, I have 3 modems connected to kannel. how to choose / route the modem as sender when I send SMS? Is possible to choose which one modem will send the SMS? Looking forward to have advice and example. Thank you PIN: 21C3628D Powered by Telkomsel BlackBerry®
Delete all SMS in SM storage at start up
Dear All, How to to delete all SMS reside at SM on kannel start up? When I start the bearerbox, I need to delete all message in simcard storage, to make sure that simcard storage is empty before kannel running. As I know, it is using AT+CNMI, but I don't understand the parameter should be input. May be other tips/tricks to do that (delete all SMS in SM at start up)? Thank you
RE: Delete all SMS in SM storage at start up
Set sim-buffering = true in your config. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aan Isnaini - Gmail Sent: vrijdag 4 juni 2010 13:09 To: users@kannel.org Subject: Delete all SMS in SM storage at start up Dear All, How to to delete all SMS reside at SM on kannel start up? When I start the bearerbox, I need to delete all message in simcard storage, to make sure that simcard storage is empty before kannel running. As I know, it is using AT+CNMI, but I don't understand the parameter should be input. May be other tips/tricks to do that (delete all SMS in SM at start up)? Thank you
RE: Route modem as SMS Sender
In short: If you have smsc-id = wavecom1 in your group = smsc, also put allowed-smsc-id = wavecom1 in the same group. Do this for all your smsc groups. -Original Message- From: Aan Isnaini - Gmail [mailto:aan.isna...@gmail.com] Sent: vrijdag 4 juni 2010 13:02 To: Rene Kluwen Cc: Nikos Balkanas; users@kannel.org Subject: Re: Route modem as SMS Sender Dear Rene, I will try first and find out the solution also example. Thank you On Fri, Jun 4, 2010 at 12:52 AM, Rene Kluwen rene.klu...@chimit.nl wrote: Look up allowed-smsc-id in the Kannel users guide. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aan Isnaini - Gmail Sent: donderdag 3 juni 2010 6:11 To: Nikos Balkanas Cc: users@kannel.org Subject: Re: Route modem as SMS Sender Dear Nikos, After trial for few days, I still got negative result. below is the kannel.conf and url to send the SMS --- kannel.conf #core group = core admin-port = 13000 smsbox-port = 13001 admin-password = adminpwd status-password = statuspwd admin-deny-ip = admin-allow-ip = 127.0.0.1 log-file = var/log/kannel/bearerbox.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/kannel/access.log store-file = /var/log/kannel/kannel.store #dlr-storage = mysql #smsc #wavecom 1 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom1 modemtype = wavecom device = /dev/ttyS0 speed = 115200 #pin = 1234 #include = /etc/modems.conf #wavecom 2 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom2 modemtype = wavecom device = /dev/ttyS1 speed = 115200 #pin = 1234 #include = /etc/modems.conf #wavecom 3 group = smsc smsc = at connect-allow-ip = 127.0.0.1 smsc-id = wavecom3 modemtype = wavecom device = /dev/ttyUSB0 speed = 115200 #pin = 1234 #include = /etc/modems.conf #modem group = modems id = wavecom detect-string = WAVECOM message-storage = SM init-string = AT+CNMI=2,1,0,0,0;+CMEE=1 #init-string = AT+CNMI=2,2,0,0,0;+CMEE=1 #smsbox group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 #smsbox-id = wavecom sendsms-chars = 0123456789 +- global-sender = +628110 log-file = /var/log/kannel/smsbox.log log-level = 1 #send-sms users group = sendsms-user username = sms password = smspwd #services group = sms-service keyword = default #accept-x-kannel-headers = true max-messages = 0 # 0 no reply assume-plain-text = true concatenation = true catch-all = true get-url = http://localhost/tsg/modem?sender=%pmessage=%a; - url to send SMS is: http://127.0.0.1:13013/cgi-bin/sendsms?username=smspassword=smspwdsmsc=wavecom3to=0811918808text=test I need smsc=wavecom3 only act as sender by put parameter smsc as above, but the result is seem randomly when send sms (random using wavecom1, wavecom2 and wavecom3) Looking forward to have advice and help to fix the problem. Thank you Best Regard AI 2010/5/29 Nikos Balkanas nbalka...@gmail.com: Hi, I think the correct variable is smsc=xxx in your send-url, not smsc-id=xxx. BR, Nikos - Original Message - From: Alvaro Cornejo cornejo.alv...@gmail.com To: aan.isna...@gmail.com Cc: users@kannel.org Sent: Friday, May 28, 2010 4:29 PM Subject: Re: Route modem as SMS Sender use smsc-id=xxx in your sendsms url as well as prefered/denied smsc parameters in smsc configs. Check manual for details Regards 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 On Fri, May 28, 2010 at 3:28 AM, Aan Isnaini aan.isna...@gmail.com wrote: Dear All, I have 3 modems connected to kannel. how to choose / route the modem as sender when I send SMS? Is possible to choose which one modem will send the SMS? Looking forward to have advice and example. Thank you PIN: 21C3628D Powered by Telkomsel BlackBerry®
Re: Installing opensource SMPPBox with kannel
Hi All, Help me installing openSMPPbox with kannel or paching openSMPPbox for kannel. please some one help me to do this with some steps on linux. Regards, Kiran Reddy ---Original Message--- From: Nikos Balkanas nbalka...@gmail.com To: Kiran Reddy ki...@uniceltech.com, users@kannel.org Subject: Re: Installing opensource SMPPBox with kannel Sent: May 31 '10 5:48pm Hi 1) Do not spam. 2 messages the same day with the same subject is spamming. 2) man spam 3) man patch BR, Nikos - Original Message - From: Kiran Reddy ki...@uniceltech.com To: users@kannel.org Sent: Monday, May 31, 2010 2:22 PM Subject: Installing opensource SMPPBox with kannel Hi All, How to install Open Source SMPPBox with kannel or How to patch kannel with SMPPBox. Can some one help please Regards, Kiran Reddy
Re: Installing opensource SMPPBox with kannel
Hi All, Sorry for second mail and i got the solution thanks for every thing. :-) Regards, Kiran Reddy ---Original Message--- From: Kiran Reddy ki...@uniceltech.com To: Nikos Balkanas nbalka...@gmail.com, users@kannel.org Subject: Re: Installing opensource SMPPBox with kannel Sent: Jun 04 '10 6:39pm Hi All, Help me installing openSMPPbox with kannel or paching openSMPPbox for kannel. please some one help me to do this with some steps on linux. Regards, Kiran Reddy ---Original Message--- From: Nikos Balkanas nbalka...@gmail.com To: Kiran Reddy ki...@uniceltech.com, users@kannel.org Subject: Re: Installing opensource SMPPBox with kannel Sent: May 31 '10 5:48pm Hi 1) Do not spam. 2 messages the same day with the same subject is spamming. 2) man spam 3) man patch BR, Nikos - Original Message - From: Kiran Reddy ki...@uniceltech.com To: users@kannel.org Sent: Monday, May 31, 2010 2:22 PM Subject: Installing opensource SMPPBox with kannel Hi All, How to install Open Source SMPPBox with kannel or How to patch kannel with SMPPBox. Can some one help please Regards, Kiran Reddy
Re: Delete all SMS in SM storage at start up
That will delete all SMS from SIM and then send them. Besides, I suspect that Aan already uses that setting when he refers to SM. I would add in the init-string +CMGD=4 to delete all SMS in SIM at startup, without processing them. This is just a recommendation, I don't have a modem to test it. BR, Nikos - Original Message - From: Rene Kluwen rene.klu...@chimit.nl To: 'Aan Isnaini - Gmail' aan.isna...@gmail.com; users@kannel.org Sent: Friday, June 04, 2010 2:59 PM Subject: RE: Delete all SMS in SM storage at start up Set sim-buffering = true in your config. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aan Isnaini - Gmail Sent: vrijdag 4 juni 2010 13:09 To: users@kannel.org Subject: Delete all SMS in SM storage at start up Dear All, How to to delete all SMS reside at SM on kannel start up? When I start the bearerbox, I need to delete all message in simcard storage, to make sure that simcard storage is empty before kannel running. As I know, it is using AT+CNMI, but I don't understand the parameter should be input. May be other tips/tricks to do that (delete all SMS in SM at start up)? Thank you
RE: Delete all SMS in SM storage at start up
AT+CGMD=4 only deletes the sms at the 4th position. Not all of them. == Rene -Original Message- From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: vrijdag 4 juni 2010 16:04 To: Rene Kluwen; 'Aan Isnaini - Gmail'; users@kannel.org Subject: Re: Delete all SMS in SM storage at start up That will delete all SMS from SIM and then send them. Besides, I suspect that Aan already uses that setting when he refers to SM. I would add in the init-string +CMGD=4 to delete all SMS in SIM at startup, without processing them. This is just a recommendation, I don't have a modem to test it. BR, Nikos - Original Message - From: Rene Kluwen rene.klu...@chimit.nl To: 'Aan Isnaini - Gmail' aan.isna...@gmail.com; users@kannel.org Sent: Friday, June 04, 2010 2:59 PM Subject: RE: Delete all SMS in SM storage at start up Set sim-buffering = true in your config. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aan Isnaini - Gmail Sent: vrijdag 4 juni 2010 13:09 To: users@kannel.org Subject: Delete all SMS in SM storage at start up Dear All, How to to delete all SMS reside at SM on kannel start up? When I start the bearerbox, I need to delete all message in simcard storage, to make sure that simcard storage is empty before kannel running. As I know, it is using AT+CNMI, but I don't understand the parameter should be input. May be other tips/tricks to do that (delete all SMS in SM at start up)? Thank you
Re: Delete all SMS in SM storage at start up
Sorry for that typo. I meant: AT+CMGD=4,4 Thanks fo corecting, Nikos - Original Message - From: Rene Kluwen rene.klu...@chimit.nl To: 'Nikos Balkanas' nbalka...@gmail.com; 'Aan Isnaini - Gmail' aan.isna...@gmail.com; users@kannel.org Sent: Friday, June 04, 2010 5:06 PM Subject: RE: Delete all SMS in SM storage at start up AT+CGMD=4 only deletes the sms at the 4th position. Not all of them. == Rene -Original Message- From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: vrijdag 4 juni 2010 16:04 To: Rene Kluwen; 'Aan Isnaini - Gmail'; users@kannel.org Subject: Re: Delete all SMS in SM storage at start up That will delete all SMS from SIM and then send them. Besides, I suspect that Aan already uses that setting when he refers to SM. I would add in the init-string +CMGD=4 to delete all SMS in SIM at startup, without processing them. This is just a recommendation, I don't have a modem to test it. BR, Nikos - Original Message - From: Rene Kluwen rene.klu...@chimit.nl To: 'Aan Isnaini - Gmail' aan.isna...@gmail.com; users@kannel.org Sent: Friday, June 04, 2010 2:59 PM Subject: RE: Delete all SMS in SM storage at start up Set sim-buffering = true in your config. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Aan Isnaini - Gmail Sent: vrijdag 4 juni 2010 13:09 To: users@kannel.org Subject: Delete all SMS in SM storage at start up Dear All, How to to delete all SMS reside at SM on kannel start up? When I start the bearerbox, I need to delete all message in simcard storage, to make sure that simcard storage is empty before kannel running. As I know, it is using AT+CNMI, but I don't understand the parameter should be input. May be other tips/tricks to do that (delete all SMS in SM at start up)? Thank you
TLV error on incomming to Cannel
Hi , This is regarding that Kannel drops incoming message larger then 160 characters. Is there a way to fix this? Where do I Define smpp-tlv group for 0x0424? Thanks in advance. 2010-06-04 14:31:57 [1944] [7] DEBUG: user_message_reference: 186 = 0x00ba 2010-06-04 14:31:57 [1944] [7] DEBUG: SMPP PDU dump ends. 2010-06-04 14:31:57 [1944] [7] DEBUG: SMPP[ft-smsc01]: UDH length read as 0 2010-06-04 14:31:57 [1944] [7] DEBUG: SMPP[ft-smsc01]: Sending PDU: 2010-06-04 14:31:57 [1944] [7] DEBUG: SMPP PDU 0x8865c18 dump: 2010-06-04 14:31:57 [1944] [7] DEBUG: type_name: deliver_sm_resp 2010-06-04 14:31:57 [1944] [7] DEBUG: command_id: 2147483653 = 0x8005 2010-06-04 14:31:57 [1944] [7] DEBUG: command_status: 0 = 0x 2010-06-04 14:31:57 [1944] [7] DEBUG: sequence_number: 98 = 0x0062 2010-06-04 14:31:57 [1944] [7] DEBUG: message_id: NULL 2010-06-04 14:31:57 [1944] [7] DEBUG: SMPP PDU dump ends. 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter tag (0x0204) 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter length read as 2 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter tag (0x1401) 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter length read as 13 2010-06-04 14:31:58 [1944] [7] WARNING: SMPP: Unknown TLV(0x1401,0x000d,31303036303431343238343000) for PDU type (deliver_sm) received! 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter tag (0x0424) 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter length read as 14 2010-06-04 14:31:58 [1944] [7] ERROR: SMPP: Optional field (message_payload) with invalid length (14) (should be 0 - 65536) dropped. 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP[ft-smsc01]: Got PDU: 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP PDU 0x8865be0 dump: 2010-06-04 14:31:58 [1944] [7] DEBUG: type_name: deliver_sm 2010-06-04 14:31:58 [1944] [7] DEBUG: command_id: 5 = 0x0005 2010-06-04 14:31:58 [1944] [7] DEBUG: command_status: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: sequence_number: 99 = 0x0063 2010-06-04 14:31:58 [1944] [7] DEBUG: service_type: NULL 2010-06-04 14:31:58 [1944] [7] DEBUG: source_addr_ton: 1 = 0x0001 2010-06-04 14:31:58 [1944] [7] DEBUG: source_addr_npi: 1 = 0x0001 2010-06-04 14:31:58 [1944] [7] DEBUG: source_addr: 298243390 2010-06-04 14:31:58 [1944] [7] DEBUG: dest_addr_ton: 1 = 0x0001 2010-06-04 14:31:58 [1944] [7] DEBUG: dest_addr_npi: 1 = 0x0001 2010-06-04 14:31:58 [1944] [7] DEBUG: destination_addr: 298220039 2010-06-04 14:31:58 [1944] [7] DEBUG: esm_class: 64 = 0x0040 2010-06-04 14:31:58 [1944] [7] DEBUG: protocol_id: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: priority_flag: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: schedule_delivery_time: NULL 2010-06-04 14:31:58 [1944] [7] DEBUG: validity_period: NULL 2010-06-04 14:31:58 [1944] [7] DEBUG: registered_delivery: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: replace_if_present_flag: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: data_coding: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: sm_default_msg_id: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: sm_length: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: short_message: 2010-06-04 14:31:58 [1944] [7] DEBUG: user_message_reference: 187 = 0x00bb 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP PDU dump ends. 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP[ft-smsc01]: UDH length read as 0 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP[ft-smsc01]: Sending PDU: 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP PDU 0x8865d08 dump: 2010-06-04 14:31:58 [1944] [7] DEBUG: type_name: deliver_sm_resp 2010-06-04 14:31:58 [1944] [7] DEBUG: command_id: 2147483653 = 0x8005 2010-06-04 14:31:58 [1944] [7] DEBUG: command_status: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: sequence_number: 99 = 0x0063 2010-06-04 14:31:58 [1944] [7] DEBUG: message_id: NULL 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP PDU dump ends. -- -- Blíðar Heilsur / Best Regards Thomas Hansen @:hansen...@gmail.com please don't print this e-mail unless you really need to
Re: Sending custom headers in oma-settings
Thanks for your response. I was trying to send the following request http://localhost:13013/cgi-bin/sendota?username=testerpassword=foobarto=14253504761text=%3Cwap-provisioningdoc%3E%3Ccharacteristic%20type=%22BrowserFavorite%22%3E%3Ccharacteristic%20type=%22Google%22%3E%3Cparm%20name=%22URL%22%20value=%22http%3A%2F%2Fwww.google.com%22%2F%3E%3C%2Fcharacteristic%3E%3C%2Fcharacteristic%3E%3C%2Fwap-provisioningdoc%3Etype=oma-settingssec=userpinpin=1234 I wanted to add this header to my request: X-MS-Desc: Provisioning, compressed Also, for the http get request, how do I set standard headers in the spec? Particularly, I'd like to get the X-WAP-Initiator-URI and the PUSH-FLAG. Is this possible via the http interface? Do I have to use a PPG to acomplish this? Thanks, Jin 2010/6/4 Nikos Balkanas nbalka...@gmail.com Hi, Your subject oma-settings is confusing. I assume you mean ota-settings. In ota requests, kannel accepts tokens and attributes only from the spec OTA ch 8.1 8.2 (gw/ota_compiler.c). You are out of lack. If on the other hand you are talking about wap push (PPG) you can send anything you want, as long as it is correctly encoded in wbxml. BR, Nikos - Original Message - From: Jin To: users@kannel.org Sent: Friday, June 04, 2010 9:44 AM Subject: Sending custom headers in oma-settings Hi, I wanted to send some custom headers that would basically go along in the WSP part of the SMS (i.e. right after content-type). Is this possible? I've been searching around and can't find anything. I'm new to Kannel so sorry if this is an obvious question. Thanks, Jin
Losing messages on kannel restart
Hi all, I'm kind of new to kannel (I first heard of it a month ago), but now i'm working with it (eager to learn more) and starting to understand it. We use it to send sms via smpp to different providers. A usual problem is that the link with the provider goes down and kannel starts queueing messages. We don't really understand this problem completely but we know that restarting kannel gets it fixed. The only problem now is that if this is done while having heavy traffic, the messages that haven't yet been sent get lost. If I restarted only smsbox process (and not bearerbox process), would this still happen? Is it possible to do this or must both boxes be running together at all times? Right now i'm using dlr-storage = internal. If I started using mysql instead, I'm guessing the messages would persist a kannel restart. Is this assumption correct? Any ideas, suggestions on how to do this? Thanks in advance, Bruno.
Re: TLV error on incomming to Cannel
Hi, I am still rather new at setting up tlv, so what I am about to say could be very nieve / incorrect. What is the error message that you get if you set the length of the tlv to something like 1, what I have noted im my case is that it would tell you what length to give tlv if the length that I set is too small. The reason that I suggest this is that I think the problem could be that the tlv is trying to retrieve to much info and therefore interfering with the message, but as I say I am by no means a expert just trying to help On 4 June 2010 17:41, Thomas Hansen hansen...@gmail.com wrote: Hi , This is regarding that Kannel drops incoming message larger then 160 characters. Is there a way to fix this? Where do I Define smpp-tlv group for 0x0424? Thanks in advance. 2010-06-04 14:31:57 [1944] [7] DEBUG: user_message_reference: 186 = 0x00ba 2010-06-04 14:31:57 [1944] [7] DEBUG: SMPP PDU dump ends. 2010-06-04 14:31:57 [1944] [7] DEBUG: SMPP[ft-smsc01]: UDH length read as 0 2010-06-04 14:31:57 [1944] [7] DEBUG: SMPP[ft-smsc01]: Sending PDU: 2010-06-04 14:31:57 [1944] [7] DEBUG: SMPP PDU 0x8865c18 dump: 2010-06-04 14:31:57 [1944] [7] DEBUG: type_name: deliver_sm_resp 2010-06-04 14:31:57 [1944] [7] DEBUG: command_id: 2147483653 = 0x8005 2010-06-04 14:31:57 [1944] [7] DEBUG: command_status: 0 = 0x 2010-06-04 14:31:57 [1944] [7] DEBUG: sequence_number: 98 = 0x0062 2010-06-04 14:31:57 [1944] [7] DEBUG: message_id: NULL 2010-06-04 14:31:57 [1944] [7] DEBUG: SMPP PDU dump ends. 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter tag (0x0204) 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter length read as 2 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter tag (0x1401) 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter length read as 13 2010-06-04 14:31:58 [1944] [7] WARNING: SMPP: Unknown TLV(0x1401,0x000d,31303036303431343238343000) for PDU type (deliver_sm) received! 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter tag (0x0424) 2010-06-04 14:31:58 [1944] [7] DEBUG: Optional parameter length read as 14 2010-06-04 14:31:58 [1944] [7] ERROR: SMPP: Optional field (message_payload) with invalid length (14) (should be 0 - 65536) dropped. 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP[ft-smsc01]: Got PDU: 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP PDU 0x8865be0 dump: 2010-06-04 14:31:58 [1944] [7] DEBUG: type_name: deliver_sm 2010-06-04 14:31:58 [1944] [7] DEBUG: command_id: 5 = 0x0005 2010-06-04 14:31:58 [1944] [7] DEBUG: command_status: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: sequence_number: 99 = 0x0063 2010-06-04 14:31:58 [1944] [7] DEBUG: service_type: NULL 2010-06-04 14:31:58 [1944] [7] DEBUG: source_addr_ton: 1 = 0x0001 2010-06-04 14:31:58 [1944] [7] DEBUG: source_addr_npi: 1 = 0x0001 2010-06-04 14:31:58 [1944] [7] DEBUG: source_addr: 298243390 2010-06-04 14:31:58 [1944] [7] DEBUG: dest_addr_ton: 1 = 0x0001 2010-06-04 14:31:58 [1944] [7] DEBUG: dest_addr_npi: 1 = 0x0001 2010-06-04 14:31:58 [1944] [7] DEBUG: destination_addr: 298220039 2010-06-04 14:31:58 [1944] [7] DEBUG: esm_class: 64 = 0x0040 2010-06-04 14:31:58 [1944] [7] DEBUG: protocol_id: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: priority_flag: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: schedule_delivery_time: NULL 2010-06-04 14:31:58 [1944] [7] DEBUG: validity_period: NULL 2010-06-04 14:31:58 [1944] [7] DEBUG: registered_delivery: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: replace_if_present_flag: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: data_coding: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: sm_default_msg_id: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: sm_length: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: short_message: 2010-06-04 14:31:58 [1944] [7] DEBUG: user_message_reference: 187 = 0x00bb 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP PDU dump ends. 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP[ft-smsc01]: UDH length read as 0 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP[ft-smsc01]: Sending PDU: 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP PDU 0x8865d08 dump: 2010-06-04 14:31:58 [1944] [7] DEBUG: type_name: deliver_sm_resp 2010-06-04 14:31:58 [1944] [7] DEBUG: command_id: 2147483653 = 0x8005 2010-06-04 14:31:58 [1944] [7] DEBUG: command_status: 0 = 0x 2010-06-04 14:31:58 [1944] [7] DEBUG: sequence_number: 99 = 0x0063 2010-06-04 14:31:58 [1944] [7] DEBUG: message_id: NULL 2010-06-04 14:31:58 [1944] [7] DEBUG: SMPP PDU dump ends. -- -- Blíðar Heilsur / Best Regards Thomas Hansen @:hansen...@gmail.com please don't print this e-mail unless you really need to -- FONTERA - Expanding your Mobile Horizon www.fontera.com Office: +27 21 439 9059 Mobile: +27 82 820
Re: Losing messages on kannel restart
Hi Bruno Rey, Please use store-location or store-type. I think this will help you Regards, Kiran Reddy ---Original Message--- From: Bruno Rey tha...@gmail.com To: users@kannel.org Subject: Losing messages on kannel restart Sent: Jun 04 '10 10:26pm Hi all, I'm kind of new to kannel (I first heard of it a month ago), but now i'm working with it (eager to learn more) and starting to understand it. We use it to send sms via smpp to different providers. A usual problem is that the link with the provider goes down and kannel starts queueing messages. We don't really understand this problem completely but we know that restarting kannel gets it fixed. The only problem now is that if this is done while having heavy traffic, the messages that haven't yet been sent get lost. If I restarted only smsbox process (and not bearerbox process), would this still happen? Is it possible to do this or must both boxes be running together at all times? Right now i'm using dlr-storage = internal. If I started using mysql instead, I'm guessing the messages would persist a kannel restart. Is this assumption correct? Any ideas, suggestions on how to do this? Thanks in advance, Bruno.
Re: Losing messages on kannel restart
Do you have the store-type and store-location options set? Regards, Alex On Fri, Jun 4, 2010 at 6:56 PM, Bruno Rey tha...@gmail.com wrote: Hi all, I'm kind of new to kannel (I first heard of it a month ago), but now i'm working with it (eager to learn more) and starting to understand it. We use it to send sms via smpp to different providers. A usual problem is that the link with the provider goes down and kannel starts queueing messages. We don't really understand this problem completely but we know that restarting kannel gets it fixed. The only problem now is that if this is done while having heavy traffic, the messages that haven't yet been sent get lost. If I restarted only smsbox process (and not bearerbox process), would this still happen? Is it possible to do this or must both boxes be running together at all times? Right now i'm using dlr-storage = internal. If I started using mysql instead, I'm guessing the messages would persist a kannel restart. Is this assumption correct? Any ideas, suggestions on how to do this? Thanks in advance, Bruno.
Re: Losing messages on kannel restart
I'm sorry, I was using kannel 1.4.1, I didn't know this option was available. I'll try upgrading to the latest version of kannel, I hope I don't have any problems. Thanks for the quick replies! Bruno On 4 June 2010 14:04, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Do you have the store-type and store-location options set? Regards, Alex On Fri, Jun 4, 2010 at 6:56 PM, Bruno Rey tha...@gmail.com wrote: Hi all, I'm kind of new to kannel (I first heard of it a month ago), but now i'm working with it (eager to learn more) and starting to understand it. We use it to send sms via smpp to different providers. A usual problem is that the link with the provider goes down and kannel starts queueing messages. We don't really understand this problem completely but we know that restarting kannel gets it fixed. The only problem now is that if this is done while having heavy traffic, the messages that haven't yet been sent get lost. If I restarted only smsbox process (and not bearerbox process), would this still happen? Is it possible to do this or must both boxes be running together at all times? Right now i'm using dlr-storage = internal. If I started using mysql instead, I'm guessing the messages would persist a kannel restart. Is this assumption correct? Any ideas, suggestions on how to do this? Thanks in advance, Bruno.
Re: Sending custom headers in oma-settings
Hi, Why don't you just try it? My guess would be that sendota compiler will err. I don't know if PPG listens on the same port on the mobile as push-OTA, but try that as well and see. Even if it is on a different port, and therefore cannot use PPG, you may still be able to use sendsms, by specifying the port in UDH and wbxml encode all content by yourself. BR, Nikos - Original Message - From: Jin To: Nikos Balkanas Cc: users@kannel.org Sent: Friday, June 04, 2010 7:13 PM Subject: Re: Sending custom headers in oma-settings Thanks for your response. I was trying to send the following request http://localhost:13013/cgi-bin/sendota?username=testerpassword=foobarto=14253504761text=%3Cwap-provisioningdoc%3E%3Ccharacteristic%20type=%22BrowserFavorite%22%3E%3Ccharacteristic%20type=%22Google%22%3E%3Cparm%20name=%22URL%22%20value=%22http%3A%2F%2Fwww.google.com%22%2F%3E%3C%2Fcharacteristic%3E%3C%2Fcharacteristic%3E%3C%2Fwap-provisioningdoc%3Etype=oma-settingssec=userpinpin=1234 I wanted to add this header to my request: X-MS-Desc: Provisioning, compressed Also, for the http get request, how do I set standard headers in the spec? Particularly, I'd like to get the X-WAP-Initiator-URI and the PUSH-FLAG. Is this possible via the http interface? Do I have to use a PPG to acomplish this? Thanks, Jin 2010/6/4 Nikos Balkanas nbalka...@gmail.com Hi, Your subject oma-settings is confusing. I assume you mean ota-settings. In ota requests, kannel accepts tokens and attributes only from the spec OTA ch 8.1 8.2 (gw/ota_compiler.c). You are out of lack. If on the other hand you are talking about wap push (PPG) you can send anything you want, as long as it is correctly encoded in wbxml. BR, Nikos - Original Message - From: Jin To: users@kannel.org Sent: Friday, June 04, 2010 9:44 AM Subject: Sending custom headers in oma-settings Hi, I wanted to send some custom headers that would basically go along in the WSP part of the SMS (i.e. right after content-type). Is this possible? I've been searching around and can't find anything. I'm new to Kannel so sorry if this is an obvious question. Thanks, Jin