RE: Character code conversion
I am also looking for a solution for this. Please help.. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of rcong Sent: Thursday, October 15, 2009 8:09 PM To: users@kannel.org Subject: Character code conversion Hi, Can someone please tell me that how do I convert kannel received text into UTC-8 code? I tried to use ICONV without success. Currently, my geturl receives something like: O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0 0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85. Is this unicode? Thanks, Roger -- View this message in context: http://www.nabble.com/Character-code-conversion-tp25917969p25917969.html Sent from the Kannel - User mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/15/09 03:57:00
Re: Character code conversion
at the config, set mo-recode=true and then use iconv to convert the kannel request from the reported by kannel charset to the desired one IF the reported charset is not UTF* rcong wrote: Hi, Can someone please tell me that how do I convert kannel received text into UTC-8 code? I tried to use ICONV without success. Currently, my geturl receives something like: O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%00c%00e%00i%00v%00e%00d%00.%00+%7BI_%85. Is this unicode? Thanks, Roger
How to restart individual SMSC
Hello, I would like to know the command for restarting an individual SMSC to http administration. I tried the below url, but it says Denied. The username and password are correct. http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Thanks Jinson Abraham
Re: How to restart individual SMSC
Hi, The command seems correct. You don't need username. Make sure you use your admin-password and that admin-allow-ip is set correctly in your configuration file. BR, Nikos - Original Message - From: Jinson To: users Sent: Friday, October 16, 2009 10:39 AM Subject: How to restart individual SMSC Hello, I would like to know the command for restarting an individual SMSC to http administration. I tried the below url, but it says Denied. The username and password are correct. http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Thanks Jinson Abraham
getting delivery report: delivery failure
This is what I see in the log: DEBUG: data: 69 64 3a 32 34 35 31 37 33 33 31 33 34 20 73 75 id:2451733134 su DEBUG: data: 62 6d 69 74 20 64 61 74 65 3a 30 39 31 30 31 33 bmit date:091013 DEBUG: data: 30 37 30 34 20 64 6f 6e 65 20 64 61 74 65 3a 30 0704 done date:0 DEBUG: data: 39 31 30 31 33 30 39 35 31 20 73 74 61 74 3a 44 910130951 stat:D DEBUG: data: 45 4c 49 56 52 44 ELIVRD DEBUG: Octet string dump ends. DEBUG: SMPP PDU dump ends. DEBUG: SMPP[abc3] handle_pdu, got DLR DEBUG: SMPP[abc3]: Couldnot parse DLR string sscanf way,fallback to old way. Please report! DEBUG: DLR[internal]: Looking for DLR smsc=abc3, ts=2451733134, dst=491733114042, type=2 DEBUG: DLR[internal]: created DLR message for URL http://192.xxx.xxx.xxx:80/DServlet?dlrStatus=%ddlrData=%A 2009/10/13 Nikos Balkanas nbalka...@gmail.com Hi, Please post detailed bb logs with the respond_sm PDU from your SMSc. I suspect that your SMSc is sending the wrong DKR. BR, Nikos - Original Message - *From:* Latitude Test latitude...@googlemail.com *To:* users users@kannel.org *Sent:* Tuesday, October 13, 2009 2:15 PM *Subject:* getting delivery report: delivery failure Hi all, My kannel is configured to send me delivery reports for the SMS messages: ?dlrStatus=%ddlrData=%Adlr-mask=7 From Kannel docs: 1: delivery success 2: delivery failure 4: message buffered 8: smsc submit 16: smsc reject I was getting the correct response codes from Kannel but as soon as I switched to another SMSC (SMPP), I am always getting status 2 (failure) ?dlrStatus=2... even though the message gets delivered to the device. What could be the problem here? How Kannel maps the return codes from SMSC to the standard codes? Thanks a lot.
Re: How to restart individual SMSC
Not working with the below url also. Im able to see the status query through HTTP Admin. Only this things is not working. Thanks Jinson Abraham MobME storms into Emerging 50 Companies in India by Nasscom On Fri, Oct 16, 2009 at 1:44 PM, T.K.Thapa tapan_thapa2...@yahoo.comwrote: Try this. http://xxx.xxx.xxx.xxx:12354/start-smsc?password=xxsmsc=SMPP1http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 http://xxx.xxx.xxx.xxx:12354/stop-smsc?password=xxsmsc=SMPP1http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Regards Tapan --- On *Fri, 16/10/09, Jinson jin...@mobme.in* wrote: From: Jinson jin...@mobme.in Subject: How to restart individual SMSC To: users users@kannel.org Date: Friday, 16 October, 2009, 1:09 PM Hello, I would like to know the command for restarting an individual SMSC to http administration. I tried the below url, but it says Denied. The username and password are correct. http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Thanks Jinson Abraham -- From cricket scores to your friends. Try the Yahoo! India Homepage!http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew
RE: Character code conversion
Hi Seikath, Thanks for responding but when you say convert the Kannel request from the reported kannel character set do you mean the value set in the alt-character variable? I tried the above and what happens is all characters except the $$ sign shows a weird character and doesn't show up correctly. Thanks for your help. Karan -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of seikath Sent: Friday, October 16, 2009 3:38 AM Cc: users@kannel.org Subject: Re: Character code conversion at the config, set mo-recode=true and then use iconv to convert the kannel request from the reported by kannel charset to the desired one IF the reported charset is not UTF* rcong wrote: Hi, Can someone please tell me that how do I convert kannel received text into UTC-8 code? I tried to use ICONV without success. Currently, my geturl receives something like: O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0 0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85. Is this unicode? Thanks, Roger No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/15/09 03:57:00
coding-charset
Hi, Thank you for orientation,i tried to use some php functions like ICONV,MBSTRING,...etc,i tell php to use UTF-8 in http.conf php.ini but no success.Is some one can help me to solve my problem please Best regard! From: n...@amdtelecom.net To: patrick_m...@hotmail.fr; users@kannel.org Subject: Re: coding-charset Date: Mon, 12 Oct 2009 17:10:49 +0300 Hi, You are asking if your problem is difficult? Not really. But it seems that it is your application's problem, which kannel has nothing to do with. It seems that kannel is correctly sending UTF-8 but you need windows-1251 for your TV. Basically you have to recode in your application from UTF-8 to windows-1251. That's php's issue, not kannel's. BR, Nikos - Original Message - From: patrick meye To: mailing list kannel Sent: Monday, October 12, 2009 4:20 PM Subject: coding-charset Hi all, is my problem delicate??? i don't found any issue about this encoding,i found a doc named Charactθre,Kannel MT SMS.doc on www.gnu.org but that is reversal case i.e charactθre coding from application to mobile via kannel. Is some one can help me to coding charactθre from mobile to application(UTF-8) via kannel please,please?? Best regard! From: patrick_m...@hotmail.fr To: seik...@gmail.com; users@kannel.org Subject: RE: coding Date: Thu, 1 Oct 2009 08:28:52 + Hi all, I come back cause i don't solve my coding problem,is someone can help me please??? So,I've changed coding and charset diferent values (according userguide) no successful,i'm not a develloper so i can juste setting. When i send sms from mobile phone to TV,via sms-service,specials charactθres are not correctly apear to TV.I send sms to my service,ex: -CSPI essai2 tιlιAfrica2,where CSPI is keyword and essai2 tιlιAfrica2 is body but ι charactθre apear like this Γ© on TV.So ι from mobile Γ© to TV and i want ι from mobile ι to TV charactθre for exemple. Where am i wrong please help me Best regard! add is my traces files(smsbox.log and access.log) Date: Fri, 25 Sep 2009 14:04:28 +0300 Subject: Re: coding From: seik...@gmail.com To: users@kannel.org the ususal character set encoding used by kannel to post to http is ISO-8859-1 when you get extra characters Kannel use UTF-16BE this is why you should convert from the kannel encoing to your native encoding, THEN encode to UTF On Fri, Sep 25, 2009 at 12:27 PM, patrick meye patrick_m...@hotmail.fr wrote: Thanks for reply, perhaps i don't understand what you say but it's my encoding that decode to UTF-8 for sms apear to TV monitor. this is the schema: sms sms Kannel--Application-TV (???) (UTF-8) (UTF-8) My problem is kannel coding and format. Best regard! Date: Fri, 25 Sep 2009 11:32:09 +0300 From: seik...@gmail.com CC: users@kannel.org Subject: Re: coding Decode at the HTTP interface from UTF-8 to your encoding example php: $sms1251=preg_match(/UTF/i,$GLOBALS[_REQUEST][charset]) ? pg_escape_string(iconv($GLOBALS[_REQUEST][charset], Windows-1251,$GLOBALS[_REQUEST][message])) : pg_escape_string($GLOBALS[_REQUEST][message]); patrick meye wrote: Hi all, I successfully setting up kannel like sms gateway and it run perfectly.So i created a service that send sms to TV via another application that format is UTF-8.Service run ok but i have an encoding and format problem,cause some special charactθr are mal formated (i.e ex:ι,ΰ,θ,η,...etc).Is some one can help me,what can i do what setting add??? Adding is my kannel.conf please help me. Sorry for my english i'm just learning english. Best regard! Dιcouvrez toutes les possibilitιs de communication avec vos proches http://www.microsoft.com/windows/windowslive/default.aspx Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous ! -- seik Tous vos amis discutent sur Messenger, et vous ? Tιlιchargez Messenger, c'est gratuit ! Messenger dιbarque dans Hotmail ! Essayez-le ! Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici ! Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie ! En savoir plus _ A la recherche de bons plans pour une rentrée pas chère ? Bing ! Trouvez ! http://www.bing.com/search?q=bons+plans+rentr%C3%A9eform=MVDE6
FW: coding-charset
Is some one can help me please,i really need help,or is there no issue for my problem!? From: patrick_m...@hotmail.fr To: n...@amdtelecom.net Subject: RE: coding-charset Date: Fri, 16 Oct 2009 07:12:15 + Hi, Thank you for orientation,i tried to use some php functions like ICONV,MBSTRING,...etc,i tell php to use UTF-8 in http.conf php.ini but no success.Is some one can help me to solve my problem please Best regard! From: n...@amdtelecom.net To: patrick_m...@hotmail.fr; users@kannel.org Subject: Re: coding-charset Date: Mon, 12 Oct 2009 17:10:49 +0300 Hi, You are asking if your problem is difficult? Not really. But it seems that it is your application's problem, which kannel has nothing to do with. It seems that kannel is correctly sending UTF-8 but you need windows-1251 for your TV. Basically you have to recode in your application from UTF-8 to windows-1251. That's php's issue, not kannel's. BR, Nikos - Original Message - From: patrick meye To: mailing list kannel Sent: Monday, October 12, 2009 4:20 PM Subject: coding-charset Hi all, is my problem delicate??? i don't found any issue about this encoding,i found a doc named Charactθre,Kannel MT SMS.doc on www.gnu.org but that is reversal case i.e charactθre coding from application to mobile via kannel. Is some one can help me to coding charactθre from mobile to application(UTF-8) via kannel please,please?? Best regard! From: patrick_m...@hotmail.fr To: seik...@gmail.com; users@kannel.org Subject: RE: coding Date: Thu, 1 Oct 2009 08:28:52 + Hi all, I come back cause i don't solve my coding problem,is someone can help me please??? So,I've changed coding and charset diferent values (according userguide) no successful,i'm not a develloper so i can juste setting. When i send sms from mobile phone to TV,via sms-service,specials charactθres are not correctly apear to TV.I send sms to my service,ex: -CSPI essai2 tιlιAfrica2,where CSPI is keyword and essai2 tιlιAfrica2 is body but ι charactθre apear like this Γ© on TV.So ι from mobile Γ© to TV and i want ι from mobile ι to TV charactθre for exemple. Where am i wrong please help me Best regard! add is my traces files(smsbox.log and access.log) Date: Fri, 25 Sep 2009 14:04:28 +0300 Subject: Re: coding From: seik...@gmail.com To: users@kannel.org the ususal character set encoding used by kannel to post to http is ISO-8859-1 when you get extra characters Kannel use UTF-16BE this is why you should convert from the kannel encoing to your native encoding, THEN encode to UTF On Fri, Sep 25, 2009 at 12:27 PM, patrick meye patrick_m...@hotmail.fr wrote: Thanks for reply, perhaps i don't understand what you say but it's my encoding that decode to UTF-8 for sms apear to TV monitor. this is the schema: sms sms Kannel--Application-TV (???) (UTF-8) (UTF-8) My problem is kannel coding and format. Best regard! Date: Fri, 25 Sep 2009 11:32:09 +0300 From: seik...@gmail.com CC: users@kannel.org Subject: Re: coding Decode at the HTTP interface from UTF-8 to your encoding example php: $sms1251=preg_match(/UTF/i,$GLOBALS[_REQUEST][charset]) ? pg_escape_string(iconv($GLOBALS[_REQUEST][charset], Windows-1251,$GLOBALS[_REQUEST][message])) : pg_escape_string($GLOBALS[_REQUEST][message]); patrick meye wrote: Hi all, I successfully setting up kannel like sms gateway and it run perfectly.So i created a service that send sms to TV via another application that format is UTF-8.Service run ok but i have an encoding and format problem,cause some special charactθr are mal formated (i.e ex:ι,ΰ,θ,η,...etc).Is some one can help me,what can i do what setting add??? Adding is my kannel.conf please help me. Sorry for my english i'm just learning english. Best regard! Dιcouvrez toutes les possibilitιs de communication avec vos proches http://www.microsoft.com/windows/windowslive/default.aspx Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous ! -- seik Tous vos amis discutent sur Messenger, et vous ? Tιlιchargez Messenger, c'est gratuit ! Messenger dιbarque dans Hotmail ! Essayez-le ! Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici ! Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie ! En savoir plus
Re: How to restart individual SMSC
The conf upto smsc group #Kannel configuration file group = core admin-port = admin-password = xxx status-password = xxx #admin-deny-ip = *.*.*.* #admin-allow-ip = 127.0.0.1 smsbox-port = smsbox-port-ssl = no #box-deny-ip = *.*.*.* box-allow-ip = *.*.* sms-resend-retry = 0 dlr-storage = mysql log-file = /var/log/kannel/kannel-core.log access-log = /var/log/kannel/bearerbox-access.log log-level = 0 group = smsbox bearerbox-host = localhost smsbox-id = box sendsms-port = #sendsms-chars = , access-log = /var/log/kannel/kannel.smsbox.access-log log-file = /var/log/kannel/kannel.smsbox.log log-level = 2 group = smsbox-route smsbox-id = mybox smsc-id = ; #shortcode = group = smsc smsc = smpp smsc-id = SMPP1 allowed-smsc-id =SMPP1 denied-smsc-id =SMPP2 host = xxx.xxx.xxx.xxx port = xxx throughput = 10 transceiver-mode = true smsc-username = xxx smsc-password = system-type = xxx Thanks Jinson Abraham MobME storms into Emerging 50 Companies in India by Nasscom On Fri, Oct 16, 2009 at 2:34 PM, T.K.Thapa tapan_thapa2...@yahoo.comwrote: Can you please post your kannel.conf with IP omitting? Regards Tapan Thapa --- On *Fri, 16/10/09, Jinson jin...@mobme.in* wrote: From: Jinson jin...@mobme.in Subject: Re: How to restart individual SMSC To: users users@kannel.org Cc: T.K.Thapa tapan_thapa2...@yahoo.com Date: Friday, 16 October, 2009, 1:55 PM Not working with the below url also. Im able to see the status query through HTTP Admin. Only this things is not working. Thanks Jinson Abraham MobME storms into Emerging 50 Companies in India by Nasscom On Fri, Oct 16, 2009 at 1:44 PM, T.K.Thapa tapan_thapa2...@yahoo.comhttp://mc/compose?to=tapan_thapa2...@yahoo.com wrote: Try this. http://xxx.xxx.xxx.xxx:12354/start-smsc?password=xxsmsc=SMPP1http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 http://xxx.xxx.xxx.xxx:12354/stop-smsc?password=xxsmsc=SMPP1http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Regards Tapan --- On *Fri, 16/10/09, Jinson jin...@mobme.inhttp://mc/compose?to=jin...@mobme.in * wrote: From: Jinson jin...@mobme.in http://mc/compose?to=jin...@mobme.in Subject: How to restart individual SMSC To: users users@kannel.org http://mc/compose?to=us...@kannel.org Date: Friday, 16 October, 2009, 1:09 PM Hello, I would like to know the command for restarting an individual SMSC to http administration. I tried the below url, but it says Denied. The username and password are correct. http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Thanks Jinson Abraham -- From cricket scores to your friends. Try the Yahoo! India Homepage!http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew -- Yahoo! India has a new look. Take a sneak peekhttp://in.rd.yahoo.com/tagline_metro_2/*http://in.yahoo.com/trynew .
Re: Character code conversion
What i mean is : 1. set mo-recode=true 2. restart the smsc. 3. in the get-url add the charset code so you will know in what charset kannel is doing the request. example: post-url = http://localhost/smpp.php?from=%pmessage=%areceived=%Tcoding=%ccharset=%Cto=%Psmsc_id=%ikannel_id=%Iudh=%udcs=%mmwi=%Msms-service=%nbinmess=%bbillinfo=%Baccount_id=%f; 4. iconv .. Karan Zaveri wrote: Hi Seikath, Thanks for responding but when you say convert the Kannel request from the reported kannel character set do you mean the value set in the alt-character variable? I tried the above and what happens is all characters except the $$ sign shows a weird character and doesn't show up correctly. Thanks for your help. Karan -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of seikath Sent: Friday, October 16, 2009 3:38 AM Cc: users@kannel.org Subject: Re: Character code conversion at the config, set mo-recode=true and then use iconv to convert the kannel request from the reported by kannel charset to the desired one IF the reported charset is not UTF* rcong wrote: Hi, Can someone please tell me that how do I convert kannel received text into UTC-8 code? I tried to use ICONV without success. Currently, my geturl receives something like: O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0 0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85. Is this unicode? Thanks, Roger No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/15/09 03:57:00
Kannel + Elang
Hello What do think about using Erlang language for application layer and Kannel as gateway? I think associate Kannel and OTP framework will be a fantastic and powerful strategy Regards
Re: Routing Question
Hello Nikos, Thank you for your answer. mBuni will connect to kannel with only one sendsms-user setting, furthermore, it doesn't pass any smsc-id parameter. My mBuni sendsms-user has to route the messages between 2 smsc : smsc1 = USA smsc2 = Europe Which I can configure using the allowed-prefix and denied-prefix settings. Since mBuni can only send to one sendsms-user, without smsc-id, this is I think the only solution. However, I have this smsc3, which is also linked to USA, and to which I don't want to route those messages. ( I actually configured a 2nd sendsms-user only for this smsc3 ) In this case, the allowed-prefix can not choose between smsc1 and smsc3 since they both accept the same prefix (+1;1) Is there a way to deny a sendsms-user to access a particular smsc ? or Is there a way to specify more than one forced-smsc or default-smsc to a particular sendsms-user ? Bests, Eric Le 16/10/2009 02:02, Nikos Balkanas a e'crit : Hi, In group sendsms-user: forced-smsc default-smsc You can also specify smsc-id in sendsms URL: smsc=smscid Hope this helps, Nikos - Original Message - From: Monchanin Eric emoncha...@skycore.com To: us...@vm1.kannel.org Sent: Friday, October 16, 2009 1:27 AM Subject: Routing Question Hi to all, I am having a little issue with my dual setting mbuni / kannel. I configured 3 different SMSC in Kannel, 2 for USA and 1 for Europe. Mbuni can use those 3 SMSC to send mm1 notifications to the handsets, but as you may know, Mbuni doesn't specificy the smsc in the sendsms request. Mbuni also allows to configure only ONE sendsms-user So, I needed to do a little bit of routing in Kannel. I had no trouble to make the distinction between USA and Europe, using the smsc allowed-prefix setting. allowed-prefix = +1;1 for USA denied-prefix = +1;1 for Europe Now the problem I have is with my 2nd connection to USA, the smsc group is almost configured in the same way, and since Mbuni doesn't route (no smsc, and only one sendsms-user) The only thing I could think of is that this particular connection should only be used by a particular sendmms-user, NOT the one used by Mbuni. Is there a way to filter the users that will be able to use the smsc, or force my mbuni user to select only between a few smsc (something like allowed-smsc for instance) I hope I'm clear enough :), Bests, Eric -- Skycore LLC 119 Braintree St. STE 512 Allston, MA 02134 Eric Monchanin i...@skycore.com (+1) 617-314-7688 emoncha...@skycore.com (+33) 6-22-96-71-10
Re: How to restart individual SMSC
I was using status password instead of admin password. Its working now. Thanks for the support :) Thanks Jinson Abraham MobME storms into Emerging 50 Companies in India by Nasscom On Fri, Oct 16, 2009 at 3:12 PM, T.K.Thapa tapan_thapa2...@yahoo.comwrote: Are you sure you are putting admin password (Not status password) in the admin url while stopping or starting smsc? Make sure your ip exists in box ip allow so that you can stop or start smsc connections. Regards Tapan Thapa --- On *Fri, 16/10/09, Jinson jin...@mobme.in* wrote: From: Jinson jin...@mobme.in Subject: Re: How to restart individual SMSC To: T.K.Thapa tapan_thapa2...@yahoo.com Cc: users users@kannel.org Date: Friday, 16 October, 2009, 2:38 PM The conf upto smsc group #Kannel configuration file group = core admin-port = admin-password = xxx status-password = xxx #admin-deny-ip = *.*.*.* #admin-allow-ip = 127.0.0.1 smsbox-port = smsbox-port-ssl = no #box-deny-ip = *.*.*.* box-allow-ip = *.*.* sms-resend-retry = 0 dlr-storage = mysql log-file = /var/log/kannel/kannel-core.log access-log = /var/log/kannel/bearerbox-access.log log-level = 0 group = smsbox bearerbox-host = localhost smsbox-id = box sendsms-port = #sendsms-chars = , access-log = /var/log/kannel/kannel.smsbox.access-log log-file = /var/log/kannel/kannel.smsbox.log log-level = 2 group = smsbox-route smsbox-id = mybox smsc-id = ; #shortcode = group = smsc smsc = smpp smsc-id = SMPP1 allowed-smsc-id =SMPP1 denied-smsc-id =SMPP2 host = xxx.xxx.xxx.xxx port = xxx throughput = 10 transceiver-mode = true smsc-username = xxx smsc-password = system-type = xxx Thanks Jinson Abraham MobME storms into Emerging 50 Companies in India by Nasscom On Fri, Oct 16, 2009 at 2:34 PM, T.K.Thapa tapan_thapa2...@yahoo.comhttp://mc/compose?to=tapan_thapa2...@yahoo.com wrote: Can you please post your kannel.conf with IP omitting? Regards Tapan Thapa --- On *Fri, 16/10/09, Jinson jin...@mobme.inhttp://mc/compose?to=jin...@mobme.in * wrote: From: Jinson jin...@mobme.in http://mc/compose?to=jin...@mobme.in Subject: Re: How to restart individual SMSC To: users users@kannel.org http://mc/compose?to=us...@kannel.org Cc: T.K.Thapa tapan_thapa2...@yahoo.comhttp://mc/compose?to=tapan_thapa2...@yahoo.com Date: Friday, 16 October, 2009, 1:55 PM Not working with the below url also. Im able to see the status query through HTTP Admin. Only this things is not working. Thanks Jinson Abraham MobME storms into Emerging 50 Companies in India by Nasscom On Fri, Oct 16, 2009 at 1:44 PM, T.K.Thapa tapan_thapa2...@yahoo.comhttp://mc/compose?to=tapan_thapa2...@yahoo.com wrote: Try this. http://xxx.xxx.xxx.xxx:12354/start-smsc?password=xxsmsc=SMPP1http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 http://xxx.xxx.xxx.xxx:12354/stop-smsc?password=xxsmsc=SMPP1http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Regards Tapan --- On *Fri, 16/10/09, Jinson jin...@mobme.inhttp://mc/compose?to=jin...@mobme.in * wrote: From: Jinson jin...@mobme.in http://mc/compose?to=jin...@mobme.in Subject: How to restart individual SMSC To: users users@kannel.org http://mc/compose?to=us...@kannel.org Date: Friday, 16 October, 2009, 1:09 PM Hello, I would like to know the command for restarting an individual SMSC to http administration. I tried the below url, but it says Denied. The username and password are correct. http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Thanks Jinson Abraham -- From cricket scores to your friends. Try the Yahoo! India Homepage!http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew -- Yahoo! India has a new look. Take a sneak peekhttp://in.rd.yahoo.com/tagline_metro_2/*http://in.yahoo.com/trynew . -- Now, send attachments up to 25MB with Yahoo! India Mail. Learn howhttp://in.rd.yahoo.com/tagline_galaxy_2/*http://in.overview.mail.yahoo.com/photos .
Re: How to restart individual SMSC
Hi, It would be a good idea to restrict admin-allow-ip, otherwise hackers can gain control over your gateway. Please post detailed bb logs of your attempt. BR, Nikos - Original Message - From: Jinson To: T.K.Thapa Cc: users Sent: Friday, October 16, 2009 12:08 PM Subject: Re: How to restart individual SMSC The conf upto smsc group #Kannel configuration file group = core admin-port = admin-password = xxx status-password = xxx #admin-deny-ip = *.*.*.* #admin-allow-ip = 127.0.0.1 smsbox-port = smsbox-port-ssl = no #box-deny-ip = *.*.*.* box-allow-ip = *.*.* sms-resend-retry = 0 dlr-storage = mysql log-file = /var/log/kannel/kannel-core.log access-log = /var/log/kannel/bearerbox-access.log log-level = 0 group = smsbox bearerbox-host = localhost smsbox-id = box sendsms-port = #sendsms-chars = , access-log = /var/log/kannel/kannel.smsbox.access-log log-file = /var/log/kannel/kannel.smsbox.log log-level = 2 group = smsbox-route smsbox-id = mybox smsc-id = ; #shortcode = group = smsc smsc = smpp smsc-id = SMPP1 allowed-smsc-id =SMPP1 denied-smsc-id =SMPP2 host = xxx.xxx.xxx.xxx port = xxx throughput = 10 transceiver-mode = true smsc-username = xxx smsc-password = system-type = xxx Thanks Jinson Abraham MobME storms into Emerging 50 Companies in India by Nasscom On Fri, Oct 16, 2009 at 2:34 PM, T.K.Thapa tapan_thapa2...@yahoo.com wrote: Can you please post your kannel.conf with IP omitting? Regards Tapan Thapa --- On Fri, 16/10/09, Jinson jin...@mobme.in wrote: From: Jinson jin...@mobme.in Subject: Re: How to restart individual SMSC To: users users@kannel.org Cc: T.K.Thapa tapan_thapa2...@yahoo.com Date: Friday, 16 October, 2009, 1:55 PM Not working with the below url also. Im able to see the status query through HTTP Admin. Only this things is not working. Thanks Jinson Abraham MobME storms into Emerging 50 Companies in India by Nasscom On Fri, Oct 16, 2009 at 1:44 PM, T.K.Thapa tapan_thapa2...@yahoo.com wrote: Try this. http://xxx.xxx.xxx.xxx:12354/start-smsc?password=xxsmsc=SMPP1 http://xxx.xxx.xxx.xxx:12354/stop-smsc?password=xxsmsc=SMPP1 Regards Tapan --- On Fri, 16/10/09, Jinson jin...@mobme.in wrote: From: Jinson jin...@mobme.in Subject: How to restart individual SMSC To: users users@kannel.org Date: Friday, 16 October, 2009, 1:09 PM Hello, I would like to know the command for restarting an individual SMSC to http administration. I tried the below url, but it says Denied. The username and password are correct. http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Thanks Jinson Abraham -- From cricket scores to your friends. Try the Yahoo! India Homepage! Yahoo! India has a new look. Take a sneak peek.
Re: coding-charset
Hi, As explained before, there is no kannel issue with your problem. You have application/php issues, for which you should address a php forum. BR, Nikos - Original Message - From: patrick meye To: mailing list kannel Sent: Friday, October 16, 2009 11:55 AM Subject: FW: coding-charset Is some one can help me please,i really need help,or is there no issue for my problem!? -- From: patrick_m...@hotmail.fr To: n...@amdtelecom.net Subject: RE: coding-charset Date: Fri, 16 Oct 2009 07:12:15 + Hi, Thank you for orientation,i tried to use some php functions like ICONV,MBSTRING,...etc,i tell php to use UTF-8 in http.conf php.ini but no success.Is some one can help me to solve my problem please Best regard! -- From: n...@amdtelecom.net To: patrick_m...@hotmail.fr; users@kannel.org Subject: Re: coding-charset Date: Mon, 12 Oct 2009 17:10:49 +0300 Hi, You are asking if your problem is difficult? Not really. But it seems that it is your application's problem, which kannel has nothing to do with. It seems that kannel is correctly sending UTF-8 but you need windows-1251 for your TV. Basically you have to recode in your application from UTF-8 to windows-1251. That's php's issue, not kannel's. BR, Nikos - Original Message - From: patrick meye To: mailing list kannel Sent: Monday, October 12, 2009 4:20 PM Subject: coding-charset Hi all, is my problem delicate??? i don't found any issue about this encoding,i found a doc named Charactθre,Kannel MT SMS.doc on www.gnu.org but that is reversal case i.e charactθre coding from application to mobile via kannel. Is some one can help me to coding charactθre from mobile to application(UTF-8) via kannel please,please?? Best regard! From: patrick_m...@hotmail.fr To: seik...@gmail.com; users@kannel.org Subject: RE: coding Date: Thu, 1 Oct 2009 08:28:52 + Hi all, I come back cause i don't solve my coding problem,is someone can help me please??? So,I've changed coding and charset diferent values (according userguide) no successful,i'm not a develloper so i can juste setting. When i send sms from mobile phone to TV,via sms-service,specials charactθres are not correctly apear to TV.I send sms to my service,ex: -CSPI essai2 tιlιAfrica2,where CSPI is keyword and essai2 tιlιAfrica2 is body but ι charactθre apear like this Γ© on TV.So ι from mobile Γ© to TV and i want ι from mobile ι to TV charactθre for exemple. Where am i wrong please help me Best regard! add is my traces files(smsbox.log and access.log) Date: Fri, 25 Sep 2009 14:04:28 +0300 Subject: Re: coding From: seik...@gmail.com To: users@kannel.org the ususal character set encoding used by kannel to post to http is ISO-8859-1 when you get extra characters Kannel use UTF-16BE this is why you should convert from the kannel encoing to your native encoding, THEN encode to UTF On Fri, Sep 25, 2009 at 12:27 PM, patrick meye patrick_m...@hotmail.fr wrote: Thanks for reply, perhaps i don't understand what you say but it's my encoding that decode to UTF-8 for sms apear to TV monitor. this is the schema: smssms Kannel--Application-TV (???) (UTF-8) (UTF-8) My problem is kannel coding and format. Best regard! Date: Fri, 25 Sep 2009 11:32:09 +0300 From: seik...@gmail.com CC: users@kannel.org Subject: Re: coding Decode at the HTTP interface from UTF-8 to your encoding example php: $sms1251=preg_match(/UTF/i,$GLOBALS[_REQUEST][charset]) ? pg_escape_string(iconv($GLOBALS[_REQUEST][charset], Windows-1251,$GLOBALS[_REQUEST][message])) : pg_escape_string($GLOBALS[_REQUEST][message]); patrick meye wrote: Hi all, I successfully setting up kannel like sms gateway and it run perfectly.So i created a service that send sms to TV via another application that format is UTF-8.Service run ok but i have an encoding and format problem,cause some special charactθr are mal formated (i.e ex:ι,ΰ,θ,η,...etc).Is some one can help me,what can i do what setting add??? Adding is my kannel.conf please help me. Sorry for my english i'm just learning english. Best regard!
Re: How to restart individual SMSC
Hello, I just played around with the kannel-monitor project, included in kannel's contrib directory. It seems absolutely great : smsc status, one by one, smsc admin (start, stop, restart), one by one, However, I am having this little issue, it might be the case for everyone, when I stop a particular smsc, the bearebox goes to PANIC and dies. 2009-10-16 06:51:00 [20382] [3] PANIC: gwlib/octstr.c:2484: seems_valid_real: Assertion `ostr != NULL' failed. (Called from gwlib/octstr.c:874:octstr_compare.) 2009-10-16 06:51:00 [20382] [3] PANIC: /usr/local/kannel/sbin/bearerbox(gw_panic+0xc2) [0x80d8b32] 2009-10-16 06:51:00 [20382] [3] PANIC: /usr/local/kannel/sbin/bearerbox [0x80d949d] 2009-10-16 06:51:00 [20382] [3] PANIC: /usr/local/kannel/sbin/bearerbox(octstr_compare+0x2a) [0x80de52a] 2009-10-16 06:51:00 [20382] [3] PANIC: /usr/local/kannel/sbin/bearerbox [0x805a69c] 2009-10-16 06:51:00 [20382] [3] PANIC: /usr/local/kannel/sbin/bearerbox(smsc2_stop_smsc+0x4a) [0x805a82a] 2009-10-16 06:51:00 [20382] [3] PANIC: /usr/local/kannel/sbin/bearerbox [0x8059477] 2009-10-16 06:51:00 [20382] [3] PANIC: /usr/local/kannel/sbin/bearerbox [0x8058c7b] 2009-10-16 06:51:00 [20382] [3] PANIC: /usr/local/kannel/sbin/bearerbox [0x80cf261] 2009-10-16 06:51:00 [20382] [3] PANIC: /lib/libpthread.so.0 [0xc1d49b] 2009-10-16 06:51:00 [20382] [3] PANIC: /lib/libc.so.6(clone+0x5e) [0xb1242e] The http request is : http://kanneladmin.myserver.org:13000/stop-smsc?smsc=smsc3password=foobar I am using the CVS version of kannel. Le 16/10/2009 11:08, Jinson a écrit : The conf upto smsc group #Kannel configuration file group = core admin-port = admin-password = xxx status-password = xxx #admin-deny-ip = *.*.*.* #admin-allow-ip = 127.0.0.1 smsbox-port = smsbox-port-ssl = no #box-deny-ip = *.*.*.* box-allow-ip = *.*.* sms-resend-retry = 0 dlr-storage = mysql log-file = /var/log/kannel/kannel-core.log access-log = /var/log/kannel/bearerbox-access.log log-level = 0 group = smsbox bearerbox-host = localhost smsbox-id = box sendsms-port = #sendsms-chars = , access-log = /var/log/kannel/kannel.smsbox.access-log log-file = /var/log/kannel/kannel.smsbox.log log-level = 2 group = smsbox-route smsbox-id = mybox smsc-id = ; #shortcode = group = smsc smsc = smpp smsc-id = SMPP1 allowed-smsc-id =SMPP1 denied-smsc-id =SMPP2 host = xxx.xxx.xxx.xxx port = xxx throughput = 10 transceiver-mode = true smsc-username = xxx smsc-password = system-type = xxx Thanks Jinson Abraham MobME storms into Emerging 50 Companies in India by Nasscom On Fri, Oct 16, 2009 at 2:34 PM, T.K.Thapa tapan_thapa2...@yahoo.com mailto:tapan_thapa2...@yahoo.com wrote: Can you please post your kannel.conf with IP omitting? Regards Tapan Thapa --- On *Fri, 16/10/09, Jinson /jin...@mobme.in mailto:jin...@mobme.in/* wrote: From: Jinson jin...@mobme.in mailto:jin...@mobme.in Subject: Re: How to restart individual SMSC To: users users@kannel.org mailto:users@kannel.org Cc: T.K.Thapa tapan_thapa2...@yahoo.com mailto:tapan_thapa2...@yahoo.com Date: Friday, 16 October, 2009, 1:55 PM Not working with the below url also. Im able to see the status query through HTTP Admin. Only this things is not working. Thanks Jinson Abraham MobME storms into Emerging 50 Companies in India by Nasscom On Fri, Oct 16, 2009 at 1:44 PM, T.K.Thapa tapan_thapa2...@yahoo.com http://mc/compose?to=tapan_thapa2...@yahoo.com wrote: Try this. http://xxx.xxx.xxx.xxx:12354/start-smsc?password=xxsmsc=SMPP1 http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 http://xxx.xxx.xxx.xxx:12354/stop-smsc?password=xxsmsc=SMPP1 http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Regards Tapan --- On *Fri, 16/10/09, Jinson /jin...@mobme.in http://mc/compose?to=jin...@mobme.in/* wrote: From: Jinson jin...@mobme.in http://mc/compose?to=jin...@mobme.in Subject: How to restart individual SMSC To: users users@kannel.org http://mc/compose?to=us...@kannel.org Date: Friday, 16 October, 2009, 1:09 PM Hello, I would like to know the command for restarting an individual SMSC to http administration. I tried the below url, but it says Denied. The username and password are correct. http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 http://xxx.xxx.xxx.xxx:12354/start-smsc?username=password=xxsmsc=SMPP1 Thanks Jinson
Re: getting delivery report: delivery failure
Hmm. Interesting. I misspelled DLR to DKR and I think this caused the problem. When asking for detailed DLR excerpt from bb logs, I didn't have half a PDU in mind! Are you trying to save lines on copy and paste? Please resubmit the whole PDU entry from bb logs. Nikos - Original Message - From: Latitude Test To: users Sent: Friday, October 16, 2009 11:21 AM Subject: getting delivery report: delivery failure This is what I see in the log: DEBUG: data: 69 64 3a 32 34 35 31 37 33 33 31 33 34 20 73 75 id:2451733134 su DEBUG: data: 62 6d 69 74 20 64 61 74 65 3a 30 39 31 30 31 33 bmit date:091013 DEBUG: data: 30 37 30 34 20 64 6f 6e 65 20 64 61 74 65 3a 30 0704 done date:0 DEBUG: data: 39 31 30 31 33 30 39 35 31 20 73 74 61 74 3a 44 910130951 stat:D DEBUG: data: 45 4c 49 56 52 44 ELIVRD DEBUG: Octet string dump ends. DEBUG: SMPP PDU dump ends. DEBUG: SMPP[abc3] handle_pdu, got DLR DEBUG: SMPP[abc3]: Couldnot parse DLR string sscanf way,fallback to old way. Please report! DEBUG: DLR[internal]: Looking for DLR smsc=abc3, ts=2451733134, dst=491733114042, type=2 DEBUG: DLR[internal]: created DLR message for URL http://192.xxx.xxx.xxx:80/DServlet?dlrStatus=%ddlrData=%A 2009/10/13 Nikos Balkanas nbalka...@gmail.com Hi, Please post detailed bb logs with the respond_sm PDU from your SMSc. I suspect that your SMSc is sending the wrong DKR. BR, Nikos - Original Message - From: Latitude Test To: users Sent: Tuesday, October 13, 2009 2:15 PM Subject: getting delivery report: delivery failure Hi all, My kannel is configured to send me delivery reports for the SMS messages: ?dlrStatus=%ddlrData=%Adlr-mask=7 From Kannel docs: 1: delivery success 2: delivery failure 4: message buffered 8: smsc submit 16: smsc reject I was getting the correct response codes from Kannel but as soon as I switched to another SMSC (SMPP), I am always getting status 2 (failure) ?dlrStatus=2... even though the message gets delivered to the device. What could be the problem here? How Kannel maps the return codes from SMSC to the standard codes? Thanks a lot.
Re: Routing Question
Hi Eric, I don't know mbuni at all. If it's a big problem to pass smsc-id or use two sendsms users you could try apply prefix-based routing: in example: +1x - US SMSC1 001x - US SMSC2 If the SMSC2 does not accept 001 prefix, change it to +1 using 'unified-prefix' in the smsc configuration. unified-prefix = +1,001 Many VoIP providers uses this method to route calls via different trunks (cheaper or more expensive) Regards, Cezary - Original Message - From: Monchanin Eric To: Nikos Balkanas Cc: us...@vm1.kannel.org Sent: 16 October 2009 12:02 Subject: Re: Routing Question Hello Nikos, Thank you for your answer. mBuni will connect to kannel with only one sendsms-user setting, furthermore, it doesn't pass any smsc-id parameter. My mBuni sendsms-user has to route the messages between 2 smsc : smsc1 = USA smsc2 = Europe Which I can configure using the allowed-prefix and denied-prefix settings. Since mBuni can only send to one sendsms-user, without smsc-id, this is I think the only solution. However, I have this smsc3, which is also linked to USA, and to which I don't want to route those messages. ( I actually configured a 2nd sendsms-user only for this smsc3 ) In this case, the allowed-prefix can not choose between smsc1 and smsc3 since they both accept the same prefix (+1;1) Is there a way to deny a sendsms-user to access a particular smsc ? or Is there a way to specify more than one forced-smsc or default-smsc to a particular sendsms-user ?
Re: Routing Question
Hi, I don't know Mbuni. You should ask an mBuni forum for that. No other smsc directives exist for sendsms-user You can add as many smscs as you would like: forced-smsc=A;B;C;... What this will do is to redirect all sendsms traffic for this user to those smscs. BR, Nikos - Original Message - From: Monchanin Eric To: Nikos Balkanas Cc: us...@vm1.kannel.org Sent: Friday, October 16, 2009 2:02 PM Subject: Re: Routing Question Hello Nikos, Thank you for your answer. mBuni will connect to kannel with only one sendsms-user setting, furthermore, it doesn't pass any smsc-id parameter. My mBuni sendsms-user has to route the messages between 2 smsc : smsc1 = USA smsc2 = Europe Which I can configure using the allowed-prefix and denied-prefix settings. Since mBuni can only send to one sendsms-user, without smsc-id, this is I think the only solution. However, I have this smsc3, which is also linked to USA, and to which I don't want to route those messages. ( I actually configured a 2nd sendsms-user only for this smsc3 ) In this case, the allowed-prefix can not choose between smsc1 and smsc3 since they both accept the same prefix (+1;1) Is there a way to deny a sendsms-user to access a particular smsc ? or Is there a way to specify more than one forced-smsc or default-smsc to a particular sendsms-user ? Bests, Eric Le 16/10/2009 02:02, Nikos Balkanas a ecrit : Hi, In group sendsms-user: forced-smsc default-smsc You can also specify smsc-id in sendsms URL: smsc=smscid Hope this helps, Nikos - Original Message - From: Monchanin Eric emoncha...@skycore.com To: us...@vm1.kannel.org Sent: Friday, October 16, 2009 1:27 AM Subject: Routing Question Hi to all, I am having a little issue with my dual setting mbuni / kannel. I configured 3 different SMSC in Kannel, 2 for USA and 1 for Europe. Mbuni can use those 3 SMSC to send mm1 notifications to the handsets, but as you may know, Mbuni doesn't specificy the smsc in the sendsms request. Mbuni also allows to configure only ONE sendsms-user So, I needed to do a little bit of routing in Kannel. I had no trouble to make the distinction between USA and Europe, using the smsc allowed-prefix setting. allowed-prefix = +1;1 for USA denied-prefix = +1;1 for Europe Now the problem I have is with my 2nd connection to USA, the smsc group is almost configured in the same way, and since Mbuni doesn't route (no smsc, and only one sendsms-user) The only thing I could think of is that this particular connection should only be used by a particular sendmms-user, NOT the one used by Mbuni. Is there a way to filter the users that will be able to use the smsc, or force my mbuni user to select only between a few smsc (something like allowed-smsc for instance) I hope I'm clear enough :), Bests, Eric -- Skycore LLC 119 Braintree St. STE 512 Allston, MA 02134 Eric Monchanin i...@skycore.com (+1) 617-314-7688 emoncha...@skycore.com (+33) 6-22-96-71-10
sqlbox
Hi, where can I get the latest sqlbox? -- Hofferek Attila
Re: sqlbox
http://www.kannel.org/~aguerrieri/SqlBox/ Regards, Alejandro 2009/10/16 Hofferek Attila h...@soka.co.hu Hi, where can I get the latest sqlbox? -- Hofferek Attila
Re: Routing Question
Hello, Thank you for the answer, I configured my sendsms-user with the following : # GENERIC SEND-SMS USERS group = sendsms-user username= foo password= bar concatenation = true max-messages= 5 forced-smsc = smsc1;smsc2 and still, when I send to US numbers ( +1... ) it uses smsc3 ( approx every 2 sms, kannel uses smsc3 ) it seems the forced-smsc is not even considered note that, when I send to a european number ( non +1 ) then it uses the smsc2 correctly, that part at least is great. Le 16/10/2009 13:28, Nikos Balkanas a e'crit : Hi, I don't know Mbuni. You should ask an mBuni forum for that. No other smsc directives exist for sendsms-user You can add as many smscs as you would like: forced-smsc=A;B;C;... What this will do is to redirect all sendsms traffic for this user to those smscs. BR, Nikos - Original Message - *From:* Monchanin Eric mailto:emoncha...@skycore.com *To:* Nikos Balkanas mailto:nbalka...@gmail.com *Cc:* us...@vm1.kannel.org mailto:us...@vm1.kannel.org *Sent:* Friday, October 16, 2009 2:02 PM *Subject:* Re: Routing Question Hello Nikos, Thank you for your answer. mBuni will connect to kannel with only one sendsms-user setting, furthermore, it doesn't pass any smsc-id parameter. My mBuni sendsms-user has to route the messages between 2 smsc : smsc1 = USA smsc2 = Europe Which I can configure using the allowed-prefix and denied-prefix settings. Since mBuni can only send to one sendsms-user, without smsc-id, this is I think the only solution. However, I have this smsc3, which is also linked to USA, and to which I don't want to route those messages. ( I actually configured a 2nd sendsms-user only for this smsc3 ) In this case, the allowed-prefix can not choose between smsc1 and smsc3 since they both accept the same prefix (+1;1) Is there a way to deny a sendsms-user to access a particular smsc ? or Is there a way to specify more than one forced-smsc or default-smsc to a particular sendsms-user ? Bests, Eric Le 16/10/2009 02:02, Nikos Balkanas a e'crit : Hi, In group sendsms-user: forced-smsc default-smsc You can also specify smsc-id in sendsms URL: smsc=smscid Hope this helps, Nikos - Original Message - From: Monchanin Eric emoncha...@skycore.com To: us...@vm1.kannel.org Sent: Friday, October 16, 2009 1:27 AM Subject: Routing Question Hi to all, I am having a little issue with my dual setting mbuni / kannel. I configured 3 different SMSC in Kannel, 2 for USA and 1 for Europe. Mbuni can use those 3 SMSC to send mm1 notifications to the handsets, but as you may know, Mbuni doesn't specificy the smsc in the sendsms request. Mbuni also allows to configure only ONE sendsms-user So, I needed to do a little bit of routing in Kannel. I had no trouble to make the distinction between USA and Europe, using the smsc allowed-prefix setting. allowed-prefix = +1;1 for USA denied-prefix = +1;1 for Europe Now the problem I have is with my 2nd connection to USA, the smsc group is almost configured in the same way, and since Mbuni doesn't route (no smsc, and only one sendsms-user) The only thing I could think of is that this particular connection should only be used by a particular sendmms-user, NOT the one used by Mbuni. Is there a way to filter the users that will be able to use the smsc, or force my mbuni user to select only between a few smsc (something like allowed-smsc for instance) I hope I'm clear enough :), Bests, Eric -- Skycore LLC 119 Braintree St. STE 512 Allston, MA 02134 Eric Monchanin i...@skycore.com (+1) 617-314-7688 emoncha...@skycore.com (+33) 6-22-96-71-10 -- Skycore LLC 119 Braintree St. STE 512 Allston, MA 02134 Eric Monchanin i...@skycore.com (+1) 617-314-7688 emoncha...@skycore.com (+33) 6-22-96-71-10
Re: Routing Question
thanks, seems like an acceptable solution, although it'll require changes in our code. I'll dig into it Le 16/10/2009 13:26, Cezary Siwek a e'crit : Hi Eric, I don't know mbuni at all. If it's a big problem to pass smsc-id or use two sendsms users you could try apply prefix-based routing: in example: +1x - US SMSC1 001x - US SMSC2 If the SMSC2 does not accept 001 prefix, change it to +1 using 'unified-prefix' in the smsc configuration. unified-prefix = +1,001 Many VoIP providers uses this method to route calls via different trunks (cheaper or more expensive) Regards, Cezary - Original Message - *From:* Monchanin Eric mailto:emoncha...@skycore.com *To:* Nikos Balkanas mailto:nbalka...@gmail.com *Cc:* us...@vm1.kannel.org mailto:us...@vm1.kannel.org *Sent:* 16 October 2009 12:02 *Subject:* Re: Routing Question Hello Nikos, Thank you for your answer. mBuni will connect to kannel with only one sendsms-user setting, furthermore, it doesn't pass any smsc-id parameter. My mBuni sendsms-user has to route the messages between 2 smsc : smsc1 = USA smsc2 = Europe Which I can configure using the allowed-prefix and denied-prefix settings. Since mBuni can only send to one sendsms-user, without smsc-id, this is I think the only solution. However, I have this smsc3, which is also linked to USA, and to which I don't want to route those messages. ( I actually configured a 2nd sendsms-user only for this smsc3 ) In this case, the allowed-prefix can not choose between smsc1 and smsc3 since they both accept the same prefix (+1;1) Is there a way to deny a sendsms-user to access a particular smsc ? or Is there a way to specify more than one forced-smsc or default-smsc to a particular sendsms-user ? -- Skycore LLC 119 Braintree St. STE 512 Allston, MA 02134 Eric Monchanin i...@skycore.com (+1) 617-314-7688 emoncha...@skycore.com (+33) 6-22-96-71-10
Re: Routing Question
Yeap. You have also to put in group smsc3: denied-smsc-id = smsc1;smsc2 Nikos - Original Message - From: Monchanin Eric To: Nikos Balkanas Cc: us...@vm1.kannel.org Sent: Friday, October 16, 2009 4:26 PM Subject: Re: Routing Question Hello, Thank you for the answer, I configured my sendsms-user with the following : # GENERIC SEND-SMS USERS group = sendsms-user username= foo password= bar concatenation = true max-messages= 5 forced-smsc = smsc1;smsc2 and still, when I send to US numbers ( +1... ) it uses smsc3 ( approx every 2 sms, kannel uses smsc3 ) it seems the forced-smsc is not even considered note that, when I send to a european number ( non +1 ) then it uses the smsc2 correctly, that part at least is great. Le 16/10/2009 13:28, Nikos Balkanas a ecrit : Hi, I don't know Mbuni. You should ask an mBuni forum for that. No other smsc directives exist for sendsms-user You can add as many smscs as you would like: forced-smsc=A;B;C;... What this will do is to redirect all sendsms traffic for this user to those smscs. BR, Nikos - Original Message - From: Monchanin Eric To: Nikos Balkanas Cc: us...@vm1.kannel.org Sent: Friday, October 16, 2009 2:02 PM Subject: Re: Routing Question Hello Nikos, Thank you for your answer. mBuni will connect to kannel with only one sendsms-user setting, furthermore, it doesn't pass any smsc-id parameter. My mBuni sendsms-user has to route the messages between 2 smsc : smsc1 = USA smsc2 = Europe Which I can configure using the allowed-prefix and denied-prefix settings. Since mBuni can only send to one sendsms-user, without smsc-id, this is I think the only solution. However, I have this smsc3, which is also linked to USA, and to which I don't want to route those messages. ( I actually configured a 2nd sendsms-user only for this smsc3 ) In this case, the allowed-prefix can not choose between smsc1 and smsc3 since they both accept the same prefix (+1;1) Is there a way to deny a sendsms-user to access a particular smsc ? or Is there a way to specify more than one forced-smsc or default-smsc to a particular sendsms-user ? Bests, Eric Le 16/10/2009 02:02, Nikos Balkanas a ecrit : Hi, In group sendsms-user: forced-smsc default-smsc You can also specify smsc-id in sendsms URL: smsc=smscid Hope this helps, Nikos - Original Message - From: Monchanin Eric emoncha...@skycore.com To: us...@vm1.kannel.org Sent: Friday, October 16, 2009 1:27 AM Subject: Routing Question Hi to all, I am having a little issue with my dual setting mbuni / kannel. I configured 3 different SMSC in Kannel, 2 for USA and 1 for Europe. Mbuni can use those 3 SMSC to send mm1 notifications to the handsets, but as you may know, Mbuni doesn't specificy the smsc in the sendsms request. Mbuni also allows to configure only ONE sendsms-user So, I needed to do a little bit of routing in Kannel. I had no trouble to make the distinction between USA and Europe, using the smsc allowed-prefix setting. allowed-prefix = +1;1 for USA denied-prefix = +1;1 for Europe Now the problem I have is with my 2nd connection to USA, the smsc group is almost configured in the same way, and since Mbuni doesn't route (no smsc, and only one sendsms-user) The only thing I could think of is that this particular connection should only be used by a particular sendmms-user, NOT the one used by Mbuni. Is there a way to filter the users that will be able to use the smsc, or force my mbuni user to select only between a few smsc (something like allowed-smsc for instance) I hope I'm clear enough :), Bests, Eric -- Skycore LLC 119 Braintree St. STE 512 Allston, MA 02134 Eric Monchanin i...@skycore.com (+1) 617-314-7688 emoncha...@skycore.com (+33) 6-22-96-71-10 -- Skycore LLC 119 Braintree St. STE 512 Allston, MA 02134 Eric Monchanin i...@skycore.com (+1) 617-314-7688 emoncha...@skycore.com (+33) 6-22-96-71-10
Re: Routing Question
That is the case already, here is a piece of my config : ### SMSC1 group = smsc smsc-id = smsc1 smsc= smpp (...) allowed-prefix = 1;+1 denied-smsc-id = smsc2;smsc3 ### SMSC2 group = smsc smsc-id = smsc2 smsc= smpp (...) denied-prefix = 1;+1 denied-smsc-id = smsc1;smsc3 ### SMSC3 group = smsc smsc-id = smsc3 smsc= smpp (...) allowed-prefix = 1;+1 denied-smsc-id = smsc1;smsc2 ### sendsms-user group = sendsms-user username= user1 password= foobar1 forced-smsc = smsc1;smsc2 ### sendsms-user group = sendsms-user username= user2 password= foobar2 forced-smsc = smsc3 And still, when sending using : http://192.168.1.10:13013/cgi-bin/sendsms?username=user1password=foobar1text=helloto=%2B1xx It will route either to smsc1 or smsc3 PS: thank you for the help, I'm really sorry for all this bugging :) Le 16/10/2009 15:45, Nikos Balkanas a e'crit : Yeap. You have also to put in group smsc3: denied-smsc-id = smsc1;smsc2 Nikos - Original Message - *From:* Monchanin Eric mailto:emoncha...@skycore.com *To:* Nikos Balkanas mailto:n...@amdtelecom.net *Cc:* us...@vm1.kannel.org mailto:us...@vm1.kannel.org *Sent:* Friday, October 16, 2009 4:26 PM *Subject:* Re: Routing Question Hello, Thank you for the answer, I configured my sendsms-user with the following : # GENERIC SEND-SMS USERS group = sendsms-user username= foo password= bar concatenation = true max-messages= 5 forced-smsc = smsc1;smsc2 and still, when I send to US numbers ( +1... ) it uses smsc3 ( approx every 2 sms, kannel uses smsc3 ) it seems the forced-smsc is not even considered note that, when I send to a european number ( non +1 ) then it uses the smsc2 correctly, that part at least is great. Le 16/10/2009 13:28, Nikos Balkanas a e'crit : Hi, I don't know Mbuni. You should ask an mBuni forum for that. No other smsc directives exist for sendsms-user You can add as many smscs as you would like: forced-smsc=A;B;C;... What this will do is to redirect all sendsms traffic for this user to those smscs. BR, Nikos - Original Message - *From:* Monchanin Eric mailto:emoncha...@skycore.com *To:* Nikos Balkanas mailto:nbalka...@gmail.com *Cc:* us...@vm1.kannel.org mailto:us...@vm1.kannel.org *Sent:* Friday, October 16, 2009 2:02 PM *Subject:* Re: Routing Question Hello Nikos, Thank you for your answer. mBuni will connect to kannel with only one sendsms-user setting, furthermore, it doesn't pass any smsc-id parameter. My mBuni sendsms-user has to route the messages between 2 smsc : smsc1 = USA smsc2 = Europe Which I can configure using the allowed-prefix and denied-prefix settings. Since mBuni can only send to one sendsms-user, without smsc-id, this is I think the only solution. However, I have this smsc3, which is also linked to USA, and to which I don't want to route those messages. ( I actually configured a 2nd sendsms-user only for this smsc3 ) In this case, the allowed-prefix can not choose between smsc1 and smsc3 since they both accept the same prefix (+1;1) Is there a way to deny a sendsms-user to access a particular smsc ? or Is there a way to specify more than one forced-smsc or default-smsc to a particular sendsms-user ? Bests, Eric Le 16/10/2009 02:02, Nikos Balkanas a e'crit : Hi, In group sendsms-user: forced-smsc default-smsc You can also specify smsc-id in sendsms URL: smsc=smscid Hope this helps, Nikos - Original Message - From: Monchanin Eric emoncha...@skycore.com To: us...@vm1.kannel.org Sent: Friday, October 16, 2009 1:27 AM Subject: Routing Question Hi to all, I am having a little issue with my dual setting mbuni / kannel. I configured 3 different SMSC in Kannel, 2 for USA and 1 for Europe. Mbuni can use those 3 SMSC to send mm1 notifications to the handsets, but as you may know, Mbuni doesn't specificy the smsc in the sendsms request. Mbuni also allows to configure only ONE sendsms-user So, I needed to do a little bit of routing in Kannel. I had no trouble to make the distinction between USA and Europe,
RE: Character code conversion
Hi Seikath, That's the same probleme like mine,all you say is exatly what i've done,but i don't know how to know what charset kannel is doing request.Can help me about,just how to know what charset kannel request please.I think that'll help me. Thank you in advance! Date: Fri, 16 Oct 2009 12:21:59 +0300 From: seik...@gmail.com CC: users@kannel.org Subject: Re: Character code conversion What i mean is : 1. set mo-recode=true 2. restart the smsc. 3. in the get-url add the charset code so you will know in what charset kannel is doing the request. example: post-url = http://localhost/smpp.php?from=%pmessage=%areceived=%Tcoding=%ccharset=%Cto=%Psmsc_id=%ikannel_id=%Iudh=%udcs=%mmwi=%Msms-service=%nbinmess=%bbillinfo=%Baccount_id=%f; 4. iconv .. Karan Zaveri wrote: Hi Seikath, Thanks for responding but when you say convert the Kannel request from the reported kannel character set do you mean the value set in the alt-character variable? I tried the above and what happens is all characters except the $$ sign shows a weird character and doesn't show up correctly. Thanks for your help. Karan -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of seikath Sent: Friday, October 16, 2009 3:38 AM Cc: users@kannel.org Subject: Re: Character code conversion at the config, set mo-recode=true and then use iconv to convert the kannel request from the reported by kannel charset to the desired one IF the reported charset is not UTF* rcong wrote: Hi, Can someone please tell me that how do I convert kannel received text into UTC-8 code? I tried to use ICONV without success. Currently, my geturl receives something like: O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0 0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85. Is this unicode? Thanks, Roger No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/15/09 03:57:00 _ Un avatar à votre image ? Créez votre mini-moi ! http://www.ilovemessenger.fr/minimize-me/
Re: Routing Question
Can you try using force-smsc with only one smsc name and see if the problem still happens? e.g force-smsc=smsc1 ? Regards, Alex 2009/10/16 Monchanin Eric emoncha...@skycore.com That is the case already, here is a piece of my config : ### SMSC1 group = smsc smsc-id = smsc1 smsc= smpp (...) allowed-prefix = 1;+1 denied-smsc-id = smsc2;smsc3 ### SMSC2 group = smsc smsc-id = smsc2 smsc= smpp (...) denied-prefix = 1;+1 denied-smsc-id = smsc1;smsc3 ### SMSC3 group = smsc smsc-id = smsc3 smsc= smpp (...) allowed-prefix = 1;+1 denied-smsc-id = smsc1;smsc2 ### sendsms-user group = sendsms-user username= user1 password= foobar1 forced-smsc = smsc1;smsc2 ### sendsms-user group = sendsms-user username= user2 password= foobar2 forced-smsc = smsc3 And still, when sending using : http://192.168.1.10:13013/cgi-bin/sendsms?username=user1password=foobar1text=helloto=%2B1xx It will route either to smsc1 or smsc3 PS: thank you for the help, I'm really sorry for all this bugging :) Le 16/10/2009 15:45, Nikos Balkanas a écrit : Yeap. You have also to put in group smsc3: denied-smsc-id = smsc1;smsc2 Nikos - Original Message - *From:* Monchanin Eric emoncha...@skycore.com *To:* Nikos Balkanas n...@amdtelecom.net *Cc:* us...@vm1.kannel.org *Sent:* Friday, October 16, 2009 4:26 PM *Subject:* Re: Routing Question Hello, Thank you for the answer, I configured my sendsms-user with the following : # GENERIC SEND-SMS USERS group = sendsms-user username= foo password= bar concatenation = true max-messages= 5 forced-smsc = smsc1;smsc2 and still, when I send to US numbers ( +1... ) it uses smsc3 ( approx every 2 sms, kannel uses smsc3 ) it seems the forced-smsc is not even considered note that, when I send to a european number ( non +1 ) then it uses the smsc2 correctly, that part at least is great. Le 16/10/2009 13:28, Nikos Balkanas a écrit : Hi, I don't know Mbuni. You should ask an mBuni forum for that. No other smsc directives exist for sendsms-user You can add as many smscs as you would like: forced-smsc=A;B;C;... What this will do is to redirect all sendsms traffic for this user to those smscs. BR, Nikos - Original Message - *From:* Monchanin Eric emoncha...@skycore.com *To:* Nikos Balkanas nbalka...@gmail.com *Cc:* us...@vm1.kannel.org *Sent:* Friday, October 16, 2009 2:02 PM *Subject:* Re: Routing Question Hello Nikos, Thank you for your answer. mBuni will connect to kannel with only one sendsms-user setting, furthermore, it doesn't pass any smsc-id parameter. My mBuni sendsms-user has to route the messages between 2 smsc : smsc1 = USA smsc2 = Europe Which I can configure using the allowed-prefix and denied-prefix settings. Since mBuni can only send to one sendsms-user, without smsc-id, this is I think the only solution. However, I have this smsc3, which is also linked to USA, and to which I don't want to route those messages. ( I actually configured a 2nd sendsms-user only for this smsc3 ) In this case, the allowed-prefix can not choose between smsc1 and smsc3 since they both accept the same prefix (+1;1) Is there a way to deny a sendsms-user to access a particular smsc ? or Is there a way to specify more than one forced-smsc or default-smsc to a particular sendsms-user ? Bests, Eric Le 16/10/2009 02:02, Nikos Balkanas a écrit : Hi, In group sendsms-user: forced-smsc default-smsc You can also specify smsc-id in sendsms URL: smsc=smscid Hope this helps, Nikos - Original Message - From: Monchanin Eric emoncha...@skycore.com emoncha...@skycore.com To: us...@vm1.kannel.org us...@vm1.kannel.org Sent: Friday, October 16, 2009 1:27 AM Subject: Routing Question Hi to all, I am having a little issue with my dual setting mbuni / kannel. I configured 3 different SMSC in Kannel, 2 for USA and 1 for Europe. Mbuni can use those 3 SMSC to send mm1 notifications to the handsets, but as you may know, Mbuni doesn't specificy the smsc in the sendsms request. Mbuni also allows to configure only ONE sendsms-user So, I needed to do a little bit of routing in Kannel. I had no trouble to make the distinction between USA and Europe, using the smsc allowed-prefix setting. allowed-prefix = +1;1 for USA denied-prefix = +1;1 for Europe Now the problem I have is with my 2nd connection to USA, the smsc group is almost configured in the same way, and since Mbuni doesn't route (no smsc, and only one sendsms-user) The only thing
dlr-url
Hi list, pls can anyone provide one example *dlr-url* for which getting delivery reports . Thanks in Advance. Best Regards, narendra Reddy.
Re: Character code conversion
I tried twice to explain I cant find other ways to explain more. may be this will help you: $sms1251=preg_match(/UTF/i,$GLOBALS[_REQUEST][charset]) ? pg_escape_string(iconv($GLOBALS[_REQUEST][charset], Windows-1251,$GLOBALS[_REQUEST][message])) : pg_escape_string($GLOBALS[_REQUEST][message]); its PHP code, GLOBALS array is the kannel reuquest. I convert to Cyrilic , because I am Bulgarian and used to code at kannel box binded to Bulgarian SMSC :) so change the Windows-1251 to whatever you want. patrick meye wrote: Hi Seikath, That's the same probleme like mine,all you say is exatly what i've done,but i don't know how to know what charset kannel is doing request.Can help me about,just how to know what charset kannel request please.I think that'll help me. Thank you in advance! Date: Fri, 16 Oct 2009 12:21:59 +0300 From: seik...@gmail.com CC: users@kannel.org Subject: Re: Character code conversion What i mean is : 1. set mo-recode=true 2. restart the smsc. 3. in the get-url add the charset code so you will know in what charset kannel is doing the request. example: post-url = http://localhost/smpp.php?from=%pmessage=%areceived=%Tcoding=%ccharset=%Cto=%Psmsc_id=%ikannel_id=%Iudh=%udcs=%mmwi=%Msms-service=%nbinmess=%bbillinfo=%Baccount_id=%f; 4. iconv .. Karan Zaveri wrote: Hi Seikath, Thanks for responding but when you say convert the Kannel request from the reported kannel character set do you mean the value set in the alt-character variable? I tried the above and what happens is all characters except the $$ sign shows a weird character and doesn't show up correctly. Thanks for your help. Karan -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of seikath Sent: Friday, October 16, 2009 3:38 AM Cc: users@kannel.org Subject: Re: Character code conversion at the config, set mo-recode=true and then use iconv to convert the kannel request from the reported by kannel charset to the desired one IF the reported charset is not UTF* rcong wrote: Hi, Can someone please tell me that how do I convert kannel received text into UTC-8 code? I tried to use ICONV without success. Currently, my geturl receives something like: O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0 0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85. Is this unicode? Thanks, Roger No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/15/09 03:57:00 Un avatar à votre image ? Créez votre mini-moi ! http://www.ilovemessenger.fr/minimize-me
Re: Routing Question
According to the documentation, forced-smsc accepts only a single smsc id as a parameter. It's probably trying to force smsc1;smsc2 which it doesn't exist, so the rule is effectively ignored. Try naming smsc1 and smsc2 as smsc1 instead. Regards, Alejandro On Fri, Oct 16, 2009 at 4:46 PM, Monchanin Eric emoncha...@skycore.comwrote: forcing to only 1 smsc is ok. the sms gets routed to smsc1 and only to smsc1, I sent a dozen messages and none got routed to smsc3 (but then no message is routed to smsc2) Le 16/10/2009 16:19, Alejandro Guerrieri a écrit : Can you try using force-smsc with only one smsc name and see if the problem still happens? e.g force-smsc=smsc1 ? Regards, Alex 2009/10/16 Monchanin Eric emoncha...@skycore.com That is the case already, here is a piece of my config : ### SMSC1 group = smsc smsc-id = smsc1 smsc= smpp (...) allowed-prefix = 1;+1 denied-smsc-id = smsc2;smsc3 ### SMSC2 group = smsc smsc-id = smsc2 smsc= smpp (...) denied-prefix = 1;+1 denied-smsc-id = smsc1;smsc3 ### SMSC3 group = smsc smsc-id = smsc3 smsc= smpp (...) allowed-prefix = 1;+1 denied-smsc-id = smsc1;smsc2 ### sendsms-user group = sendsms-user username= user1 password= foobar1 forced-smsc = smsc1;smsc2 ### sendsms-user group = sendsms-user username= user2 password= foobar2 forced-smsc = smsc3 And still, when sending using : http://192.168.1.10:13013/cgi-bin/sendsms?username=user1password=foobar1text=helloto=%2B1xx It will route either to smsc1 or smsc3 PS: thank you for the help, I'm really sorry for all this bugging :) Le 16/10/2009 15:45, Nikos Balkanas a écrit : Yeap. You have also to put in group smsc3: denied-smsc-id = smsc1;smsc2 Nikos - Original Message - *From:* Monchanin Eric emoncha...@skycore.com *To:* Nikos Balkanas n...@amdtelecom.net *Cc:* us...@vm1.kannel.org *Sent:* Friday, October 16, 2009 4:26 PM *Subject:* Re: Routing Question Hello, Thank you for the answer, I configured my sendsms-user with the following : # GENERIC SEND-SMS USERS group = sendsms-user username= foo password= bar concatenation = true max-messages= 5 forced-smsc = smsc1;smsc2 and still, when I send to US numbers ( +1... ) it uses smsc3 ( approx every 2 sms, kannel uses smsc3 ) it seems the forced-smsc is not even considered note that, when I send to a european number ( non +1 ) then it uses the smsc2 correctly, that part at least is great. Le 16/10/2009 13:28, Nikos Balkanas a écrit : Hi, I don't know Mbuni. You should ask an mBuni forum for that. No other smsc directives exist for sendsms-user You can add as many smscs as you would like: forced-smsc=A;B;C;... What this will do is to redirect all sendsms traffic for this user to those smscs. BR, Nikos - Original Message - *From:* Monchanin Eric emoncha...@skycore.com *To:* Nikos Balkanas nbalka...@gmail.com *Cc:* us...@vm1.kannel.org *Sent:* Friday, October 16, 2009 2:02 PM *Subject:* Re: Routing Question Hello Nikos, Thank you for your answer. mBuni will connect to kannel with only one sendsms-user setting, furthermore, it doesn't pass any smsc-id parameter. My mBuni sendsms-user has to route the messages between 2 smsc : smsc1 = USA smsc2 = Europe Which I can configure using the allowed-prefix and denied-prefix settings. Since mBuni can only send to one sendsms-user, without smsc-id, this is I think the only solution. However, I have this smsc3, which is also linked to USA, and to which I don't want to route those messages. ( I actually configured a 2nd sendsms-user only for this smsc3 ) In this case, the allowed-prefix can not choose between smsc1 and smsc3 since they both accept the same prefix (+1;1) Is there a way to deny a sendsms-user to access a particular smsc ? or Is there a way to specify more than one forced-smsc or default-smsc to a particular sendsms-user ? Bests, Eric Le 16/10/2009 02:02, Nikos Balkanas a écrit : Hi, In group sendsms-user: forced-smsc default-smsc You can also specify smsc-id in sendsms URL: smsc=smscid Hope this helps, Nikos - Original Message - From: Monchanin Eric emoncha...@skycore.com emoncha...@skycore.com To: us...@vm1.kannel.org us...@vm1.kannel.org Sent: Friday, October 16, 2009 1:27 AM Subject: Routing Question Hi to all, I am having a little issue with my dual setting mbuni / kannel. I configured 3 different SMSC in Kannel, 2 for USA and 1 for Europe. Mbuni can use those 3 SMSC to send mm1
How to Multiple SMSC's configuration and how to Load balancing B/W Muliple SMSC's
Hi All, How to Multiple SMSC's configuration and How to do the Load Balancing and Fail over between Multiple SMSC's. If possible please send sample configuration. :-( Thanks and Regards, Kiran Reddy
Re: How to Multiple SMSC's configuration and how to Load balancing B/W Muliple SMSC's
You should use kannel. Then you send logs and ask questions whats wrong. kiran.re...@mpowerglobal.in wrote: Hi All, How to Multiple SMSC's configuration and How to do the Load Balancing and Fail over between Multiple SMSC's. If possible please send sample configuration. :-( Thanks and Regards, Kiran Reddy
Re: How to Multiple SMSC's configuration and how to Load balancing B/W Muliple SMSC's
You can configure multiple smsc with the exact same smsc-id Kannel will randomly send the SMS using any of those smsc if it's active. example : # Bind 1 group = smsc smsc-id = my_unique_bind smsc= smpp host= host1.smsc.com (...) # Bind 2 group = smsc smsc-id = my_unique_bind smsc= smpp host= host2.smsc.com (...) Le 16/10/2009 17:47, kiran.re...@mpowerglobal.in a écrit : Hi All, How to Multiple SMSC's configuration and How to do the Load Balancing and Fail over between Multiple SMSC's. If possible please send sample configuration. :-( Thanks and Regards, Kiran Reddy -- Skycore LLC 119 Braintree St. STE 512 Allston, MA 02134 Eric Monchanin i...@skycore.com (+1) 617-314-7688 emoncha...@skycore.com (+33) 6-22-96-71-10
Re: Routing Question
forcing to only 1 smsc is ok. the sms gets routed to smsc1 and only to smsc1, I sent a dozen messages and none got routed to smsc3 (but then no message is routed to smsc2) Le 16/10/2009 16:19, Alejandro Guerrieri a écrit : Can you try using force-smsc with only one smsc name and see if the problem still happens? e.g force-smsc=smsc1 ? Regards, Alex 2009/10/16 Monchanin Eric emoncha...@skycore.com mailto:emoncha...@skycore.com That is the case already, here is a piece of my config : ### SMSC1 group = smsc smsc-id = smsc1 smsc= smpp (...) allowed-prefix = 1;+1 denied-smsc-id = smsc2;smsc3 ### SMSC2 group = smsc smsc-id = smsc2 smsc= smpp (...) denied-prefix = 1;+1 denied-smsc-id = smsc1;smsc3 ### SMSC3 group = smsc smsc-id = smsc3 smsc= smpp (...) allowed-prefix = 1;+1 denied-smsc-id = smsc1;smsc2 ### sendsms-user group = sendsms-user username= user1 password= foobar1 forced-smsc = smsc1;smsc2 ### sendsms-user group = sendsms-user username= user2 password= foobar2 forced-smsc = smsc3 And still, when sending using : http://192.168.1.10:13013/cgi-bin/sendsms?username=user1password=foobar1text=helloto=%2B1xx http://192.168.1.10:13013/cgi-bin/sendsms?username=user1password=foobar1text=helloto=%2B1xx It will route either to smsc1 or smsc3 PS: thank you for the help, I'm really sorry for all this bugging :) Le 16/10/2009 15:45, Nikos Balkanas a écrit : Yeap. You have also to put in group smsc3: denied-smsc-id = smsc1;smsc2 Nikos - Original Message - *From:* Monchanin Eric mailto:emoncha...@skycore.com *To:* Nikos Balkanas mailto:n...@amdtelecom.net *Cc:* us...@vm1.kannel.org mailto:us...@vm1.kannel.org *Sent:* Friday, October 16, 2009 4:26 PM *Subject:* Re: Routing Question Hello, Thank you for the answer, I configured my sendsms-user with the following : # GENERIC SEND-SMS USERS group = sendsms-user username= foo password= bar concatenation = true max-messages= 5 forced-smsc = smsc1;smsc2 and still, when I send to US numbers ( +1... ) it uses smsc3 ( approx every 2 sms, kannel uses smsc3 ) it seems the forced-smsc is not even considered note that, when I send to a european number ( non +1 ) then it uses the smsc2 correctly, that part at least is great. Le 16/10/2009 13:28, Nikos Balkanas a écrit : Hi, I don't know Mbuni. You should ask an mBuni forum for that. No other smsc directives exist for sendsms-user You can add as many smscs as you would like: forced-smsc=A;B;C;... What this will do is to redirect all sendsms traffic for this user to those smscs. BR, Nikos - Original Message - *From:* Monchanin Eric mailto:emoncha...@skycore.com *To:* Nikos Balkanas mailto:nbalka...@gmail.com *Cc:* us...@vm1.kannel.org mailto:us...@vm1.kannel.org *Sent:* Friday, October 16, 2009 2:02 PM *Subject:* Re: Routing Question Hello Nikos, Thank you for your answer. mBuni will connect to kannel with only one sendsms-user setting, furthermore, it doesn't pass any smsc-id parameter. My mBuni sendsms-user has to route the messages between 2 smsc : smsc1 = USA smsc2 = Europe Which I can configure using the allowed-prefix and denied-prefix settings. Since mBuni can only send to one sendsms-user, without smsc-id, this is I think the only solution. However, I have this smsc3, which is also linked to USA, and to which I don't want to route those messages. ( I actually configured a 2nd sendsms-user only for this smsc3 ) In this case, the allowed-prefix can not choose between smsc1 and smsc3 since they both accept the same prefix (+1;1) Is there a way to deny a sendsms-user to access a particular smsc ? or Is there a way to specify more than one forced-smsc or default-smsc to a particular sendsms-user ? Bests, Eric Le 16/10/2009 02:02, Nikos Balkanas a écrit :
SqlboxBearerbox architecture, kannel is freezing on mass sms
Hello all, I have Kannel 1.4.3 with Sqlbox 0.7.2 installed successfully, the solution hangs when executing mass SMS campaigns. I have advanced monitoring on the queues, sqlbox queue table, bearerbox's store and even parsing the http kannel status page and plottinh the values to some graphs. The hanging is made at a random time, the store stops to be sent and the *queued sent* items starts growing with no reason and nothing in the logs (debug level), the *queued sent* value is got from SMS: received 1 (0 queued), sent 0 (*0 queued*), store size 0 from the kannel's status page. I want to know where is those messages are queued ? what process is responsible of them ... i thought the store was the last step before delivering the MT SMS to the operator (i have an SMPP one). Can you please get me a clear idea of that ?
Re: Routing Question
Alejandro, thank you for the idea, it made the config a little bit more complex BUT I took some time to clean it, organize it and in the end, it's clearer. I kept smsc1 and smsc2 for regular messaging, and created 2 smsc with identical smsc-ids, 1 clone of smsc1 and one clone of smsc2. I keep doing my own routing for regular SMS, our application can do that, and uses the smsc1_smsc2 for mBuni binding. Each one doing it's own routing based on allowed / denied prefix. It seems to work great, you made my day. Bests, Eric Le 16/10/2009 18:38, Alejandro Guerrieri a écrit : According to the documentation, forced-smsc accepts only a single smsc id as a parameter. It's probably trying to force smsc1;smsc2 which it doesn't exist, so the rule is effectively ignored. Try naming smsc1 and smsc2 as smsc1 instead. Regards, Alejandro On Fri, Oct 16, 2009 at 4:46 PM, Monchanin Eric emoncha...@skycore.com mailto:emoncha...@skycore.com wrote: forcing to only 1 smsc is ok. the sms gets routed to smsc1 and only to smsc1, I sent a dozen messages and none got routed to smsc3 (but then no message is routed to smsc2) Le 16/10/2009 16:19, Alejandro Guerrieri a écrit : Can you try using force-smsc with only one smsc name and see if the problem still happens? e.g force-smsc=smsc1 ? Regards, Alex 2009/10/16 Monchanin Eric emoncha...@skycore.com mailto:emoncha...@skycore.com That is the case already, here is a piece of my config : ### SMSC1 group = smsc smsc-id = smsc1 smsc= smpp (...) allowed-prefix = 1;+1 denied-smsc-id = smsc2;smsc3 ### SMSC2 group = smsc smsc-id = smsc2 smsc= smpp (...) denied-prefix = 1;+1 denied-smsc-id = smsc1;smsc3 ### SMSC3 group = smsc smsc-id = smsc3 smsc= smpp (...) allowed-prefix = 1;+1 denied-smsc-id = smsc1;smsc2 ### sendsms-user group = sendsms-user username= user1 password= foobar1 forced-smsc = smsc1;smsc2 ### sendsms-user group = sendsms-user username= user2 password= foobar2 forced-smsc = smsc3 And still, when sending using : http://192.168.1.10:13013/cgi-bin/sendsms?username=user1password=foobar1text=helloto=%2B1xx http://192.168.1.10:13013/cgi-bin/sendsms?username=user1password=foobar1text=helloto=%2B1xx It will route either to smsc1 or smsc3 PS: thank you for the help, I'm really sorry for all this bugging :) Le 16/10/2009 15:45, Nikos Balkanas a écrit : Yeap. You have also to put in group smsc3: denied-smsc-id = smsc1;smsc2 Nikos - Original Message - *From:* Monchanin Eric mailto:emoncha...@skycore.com *To:* Nikos Balkanas mailto:n...@amdtelecom.net *Cc:* us...@vm1.kannel.org mailto:us...@vm1.kannel.org *Sent:* Friday, October 16, 2009 4:26 PM *Subject:* Re: Routing Question Hello, Thank you for the answer, I configured my sendsms-user with the following : # GENERIC SEND-SMS USERS group = sendsms-user username= foo password= bar concatenation = true max-messages= 5 forced-smsc = smsc1;smsc2 and still, when I send to US numbers ( +1... ) it uses smsc3 ( approx every 2 sms, kannel uses smsc3 ) it seems the forced-smsc is not even considered note that, when I send to a european number ( non +1 ) then it uses the smsc2 correctly, that part at least is great. Le 16/10/2009 13:28, Nikos Balkanas a écrit : Hi, I don't know Mbuni. You should ask an mBuni forum for that. No other smsc directives exist for sendsms-user You can add as many smscs as you would like: forced-smsc=A;B;C;... What this will do is to redirect all sendsms traffic for this user to those smscs. BR, Nikos - Original Message - *From:* Monchanin Eric mailto:emoncha...@skycore.com *To:* Nikos Balkanas mailto:nbalka...@gmail.com *Cc:* us...@vm1.kannel.org mailto:us...@vm1.kannel.org
OOT Force Download
Sorry for this miss addressed question, I am developing a PHP script to let users to download content (wallpaper, tones, etc) from mobile phones. In same cases the browser download the script.php file rather than the content itself. Here is my script: header(Pragma: public); header(Expires: 0); header(Cache-Control: must-revalidate, post-check=0, pre-check=0); header('Cache-Control: private',false); header('Content-Type: '.$mime); header(Content-Type: application/force-download); header(Content-Type: application/octet-stream); header(Content-Type: application/download); header(Accept-Ranges: bytes); header(Content-Disposition: attachment; filename=.basename($file).;); header(Content-Transfer-Encoding: binary); header(Content-Length: .filesize($file)); readfile($file); Thanks alot for any reply. Willy
Re: Character code conversion
figure it out, need to convert character code from utf-16be back to whatever default code then use it. Thank you for the help. roger seikath wrote: I tried twice to explain I cant find other ways to explain more. may be this will help you: $sms1251=preg_match(/UTF/i,$GLOBALS[_REQUEST][charset]) ? pg_escape_string(iconv($GLOBALS[_REQUEST][charset], Windows-1251,$GLOBALS[_REQUEST][message])) : pg_escape_string($GLOBALS[_REQUEST][message]); its PHP code, GLOBALS array is the kannel reuquest. I convert to Cyrilic , because I am Bulgarian and used to code at kannel box binded to Bulgarian SMSC :) so change the Windows-1251 to whatever you want. patrick meye wrote: Hi Seikath, That's the same probleme like mine,all you say is exatly what i've done,but i don't know how to know what charset kannel is doing request.Can help me about,just how to know what charset kannel request please.I think that'll help me. Thank you in advance! Date: Fri, 16 Oct 2009 12:21:59 +0300 From: seik...@gmail.com CC: users@kannel.org Subject: Re: Character code conversion What i mean is : 1. set mo-recode=true 2. restart the smsc. 3. in the get-url add the charset code so you will know in what charset kannel is doing the request. example: post-url = http://localhost/smpp.php?from=%pmessage=%areceived=%Tcoding=%ccharset=%Cto=%Psmsc_id=%ikannel_id=%Iudh=%udcs=%mmwi=%Msms-service=%nbinmess=%bbillinfo=%Baccount_id=%f; 4. iconv .. Karan Zaveri wrote: Hi Seikath, Thanks for responding but when you say convert the Kannel request from the reported kannel character set do you mean the value set in the alt-character variable? I tried the above and what happens is all characters except the $$ sign shows a weird character and doesn't show up correctly. Thanks for your help. Karan -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of seikath Sent: Friday, October 16, 2009 3:38 AM Cc: users@kannel.org Subject: Re: Character code conversion at the config, set mo-recode=true and then use iconv to convert the kannel request from the reported by kannel charset to the desired one IF the reported charset is not UTF* rcong wrote: Hi, Can someone please tell me that how do I convert kannel received text into UTC-8 code? I tried to use ICONV without success. Currently, my geturl receives something like: O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0 0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85. Is this unicode? Thanks, Roger No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/15/09 03:57:00 Un avatar à votre image ? Créez votre mini-moi ! http://www.ilovemessenger.fr/minimize-me -- View this message in context: http://www.nabble.com/Character-code-conversion-tp25917969p25934281.html Sent from the Kannel - User mailing list archive at Nabble.com.