RE: send arabic sms
Well the issue with kannel is the Arabic keyword, sendin sms in Arabic is easy now, but how can you define an Arabic sms. We have overcome all difficulties in kannel except the Arabic keyword. Amr Qanadilo _ From: Hanna Kreitem [mailto:[EMAIL PROTECTED] Sent: Friday, August 24, 2007 5:26 AM To: Sarfaraz Jamal Cc: users@kannel.org Subject: Re: send arabic sms Hello, Here I am using charset=utf-8coding=2 instead of ucs2, and it is working perfectly, just make sure that you are using UTF-8 all the way, including the db. Hanna On 8/23/07, Sarfaraz Jamal [EMAIL PROTECTED] wrote: Hi guys, We are struggling with this a lot, and we hope to have our service launched before the Arab Ramadhan Season. It must be something simple, we are generating a URL to send to SENDSMS, and the text seems to get messed up . we are encoding it, etc. in php but the arabic text turns into nothing (it just disappears) And we are unsure of how to even send a basic string over http get. Can anyone just give a small heads up on how to do this? http://*:13131/cgi-bin/sendsms?username=***password=***charset=UCS -2coding=2to=+962796627292text=arabictextdlr-mask=19 Is this right? How can we test it just super simply? Sas On 8/23/07, Hanna Kreitem mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Kannel sends Arabic message perfectly, just ake sure you are using the correct encoding all the way, from db - php - kannel. Here I use UTF-8. Hanna On 8/21/07, Amr Qanadilo [EMAIL PROTECTED] wrote: Dear All; I have installed kannel on RedHat linux enterprise 4, i have configured it and connected it to a service provider smsc. i have suceeded in sending and receiving smses in english, but now i want to send smses in Arabic. is there somethign i should do . i have used the UCS-2 put the 2 code with the UTF16BE charset. but still not working!! am using PHP to send the sms using URL. is there somethig in the PHP or Linux or even the kannel that i should do in order to make it support sending arabic text? Plz Help -- Best Regrds Amar Kalkeel
Problem sending sms
Dear All; Hello All, I have connected and sent msgs via kannel. it was working perfect. now, when i tired to receive msgs it did not work. then, after some time i came to know that it was due to the fact that my shortcode provider did not initiated the short codes. then after they did it. i am able to receive msgs but i can not send any, i am getting this error. ERROR: SMPP[SMPP:10.1.1.144:6060/6060:arabmo:VMA http://10.1.1.154:5020/5020:arabmobile:VMA ]: SMSC returned error code 0x000b (Invalid Destination Address) in response to submit_sm. Kannel config group = core admin-port = 13000 wapbox-port = 13001 smsbox-port = 13002 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 wdp-interface-name = * store-file = kannel.store unified-prefix = +962,00962,0;+,00 log-file = /var/log/bearerbox.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 dlr-storage = internal include = wapbox.conf group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 #sendsms-url = http://domain.com/cgi-bin/test/sendsms global-sender = 12345 sendsms-chars = 0123456789 +- log-file = /tmp/smsbox.log log-level = 0 access-log = /tmp/access.log` group = smsc smsc = smpp host = x.x.x.x port = receive-port = smsc-username = smsc-password = system-type = VMA address-range = group = sendsms-user username = tester password = foobar #user-deny-ip = user-allow-ip = *.*.*.* group = sms-service keyword = nop text = You asked nothing and I did it! = ?php // Include file for SMS interface. // These variables MUST match your kannel.conf configuration $bearerboxhost = 127.0.0.1; define(BEARERBOX_HOST, 127.0.0.1); define(SENDSMS_PORT, 13031); define(ADMIN_PORT, 13000); define(ADMIN_PASSWORD, bar); define(USERNAME, tter); define(PASSWORD, fobar); define(GLOBAL_SENDER, 12345); ? PLZ HELP Amr Qanadilo
Can not send sms frm kannel
Hello all, I am very new to kannel. I have mnaged to configure the kannel gateway over my secure VPN connections. Thanks for all your help. now i have a different problem. i am starting kannel (bearerbox) and it is connecting to the server (SMSC) as well. i am starting the smsbox and it shows that it gets connected to the bearerbox also. but when i try sending SMS nothing happens. i have a confusion. i know that sendsms needs to be accessed to send SMS. now, i have placed one copy of sendsms from /root/kanel/gateway- 1.4.1/contrib/ to one of my domain's cgi-bin directory(I did not find the file anywhere else so i guess it remains there only). kannel doc tell me that by default kannel expect the sendsms to be in this path /cgi-bin/sendsms. i do not have a cgi-bin directory in my root (/ i guess stands for root in linux) so i had no way but to put it in this directory. now, i am trying to use the php based admin that comes with kannel . i have configured the config.inc also. (both my kannel.conf and config.inc are given here) but, nothing happens when i put a number and press send. no log is shown (i run kannel with -v 1 option) and also msg is not delivered. i fell in another confusion when i saw in the doc it writen http://smsbox.host.name:13013/cgi-bin/sendsms http://smsbox.host.name:13013/cgi-bin/sendsms?sername=foopassword=barto=0 123456text=Hello+world ?sername=foopassword=barto=0123456text=Hello+world will send a msg. what is meant here by smsbox.host.name what value should be here according the senario i described? i am puzzled. can anybody please advise. i have tried to figure out by reading the doc. but i am puzzled..can anybody share with me practical experience regarding this? Thanks in advance. Amr Qanadilo
RE: problems connecting to SMSC using SMPP though VPN
Dear fried; We have connected the VPN using the following configurations and it is connected [main] Description=sample user profile Host= (MAIN IP FROM OPERATOR) AuthType=1 GroupName=amc GroupPwd= EnableISPConnect=0 ISPConnectType=0 ISPConnect= ISPCommand= Username=am UserPassword= SaveUserPassword=0 EnableBackup=0 BackupServer= EnableNat=0 CertStore=0 CertName= CertPath= CertSubjectName= CertSerialHash= DHGroup=2 ForceKeepAlives=0 enc_GroupPwd= enc_UserPassword= TunnelingMode=0 TcpTunnelingPort=5020 SendCertChain=0 PeerTimeout=90 EnableLocalLAN=0 It is there connected and in the route table the other IP that is given to us in to use in SMPP is also there. When I tracerout the SMPP IP it lead me to the main IP for VPN. Now my question would be, if the VPN is already connected and I can trace route the IP for the SMPP to the VPN connection. Then why wont the kannel recognize it? Is there a kind of setting that I need to do? BR Amr Qanadilo -Original Message- From: Alejandro Guerrieri [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 5:41 PM To: users@kannel.org Subject: Re: problems connecting to SMSC using SMPP though VPN Ashwani, The IP used to connect to the VPN is called the VPN Peer. Of course Kannel shouldn't try to connect to that one, since it's the IP used to establish the tunnel. The other IP (or IP's) are called the Encryption Domain. If you have established your VPN well, all traffic going out on your host to the enryption domain should be directed through the tunnel established over the vpn peer. Looking at your logs, there are many issues that could end with a Connection Timed Out, but most probably is related to a VPN configuration or firewall issue. The first thing to do is to check if you're able to connect to the SMPP host/port on the other side by using other means of connection. I'd suggest you to try using telnet to the host/port on the other side, since most operators block ping from external IP's: telnet smpp host smpp port Keep in mind that if you're host have more than one IP, you have to use the same IP as kannel. Usually, the first interface on a multi-ip host is the one used to establish connections (you can change that on kannel by using the our-host directive on conf files). If you can establish a connection using telnet (I don't think you will) then the problem is on kannel. The other suspect could be a firewall configuration on either side, check your setup and ask your operator about it. Hope it helps, Alejandro On 8/11/07, Amr Qanadilo //AMC// [EMAIL PROTECTED] wrote: Dear Ashwani; Thank you very much for your immediate response. The issue here is that we are using VPN. We have got 2 IPs from the operator. The first one is to connect the VPN and it is going well and connected. The other IP is for the SMPP configuration. Now when I test the VPN IP address it is pinging and working fine. But when I test the second IP it is not pinging; maybe it is an internal IP address that we can connect though only VPN connection. For the above mentioned is there any special configuration that we need to make to the Kannel. Looking forward for your feedback and Best Regards Amr From: Amr Qanadilo //AMC// [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 11:12 AM To: 'ashwani'; 'users@kannel.org' Subject: RE: problems connecting to SMSC using SMPP though VPN Dear Ashwani; Thank you for your email. I will try to do that, but does the configuration file seem correct? Thank you From: ashwani [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 9:45 AM To: 'Amr Qanadilo //AMC//'; users@kannel.org Subject: RE: problems connecting to SMSC using SMPP though VPN Hi AMR, It seems that you are not able to connect to the SMSC at all, First check if you are able to connect SMSC on TCP/IP, I mean try to ping the SMSC Also check if the port is open for you system, try telnet to SMSC port given to u. I hope this will help Regards Ashwani From: Amr Qanadilo //AMC// [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 2:05 PM To: users@kannel.org Subject: problems connecting to SMSC using SMPP though VPN Dear all; I have a problem in connecting the Kannel to the GSM operator smsc center. Am using kannel 1.4.1 stable. My OS is enterprise redhat linux 4. The config file is as follows: group = core admin-port = 13000 wapbox-port = 13002 admin-password = bar wdp-interface-name = * log-file = /var/log/bearerbox.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 include = wapbox.conf include = smsbox.conf group = smsc smsc = smpp host = (IP I GOT FROM GSM OP) port = (PORT I GOT FRON GSM OP) receive-port = (PORT I GOT FRON GSM OP) smsc-username
RE: problems connecting to SMSC using SMPP though VPN
Dear friend; But the Telnet is not working, keeps trying but with no luck in reaching. Do you think that the GSM operator has disabled the telnet on this IP? If yes then the problem rises with the operator. And if not, then the VPN is not working actually...Am I correct? BR Amr Qanadilo -Original Message- From: Alejandro Guerrieri [mailto:[EMAIL PROTECTED] Sent: Sunday, August 12, 2007 4:36 PM To: users@kannel.org Subject: Re: problems connecting to SMSC using SMPP though VPN Regular net tools doesn't work over VPN as expected. Being able to traceroute to the VPN peer doesn't guarantee that the traffic is already being sent inside the tunnel and encrypted. Usual debugging tools for VPN's are telnet (to try establishing a connection with the other side's encryption domain). And ethereal (to check if the packets are really being encrypted over the tunnel. This is in fact off-topic for the Kannel list, I'm pretty sure that there's nothing wrong with Kannel. You have to check if the VPN is working by connecting with the SMPP port using telnet, a traceroute won't cut it, since cannot trace inside the tunnel. Hope it helps, Alejandro. On 8/12/07, Amr Qanadilo //AMC// [EMAIL PROTECTED] wrote: Dear fried; We have connected the VPN using the following configurations and it is connected [main] Description=sample user profile Host= (MAIN IP FROM OPERATOR) AuthType=1 GroupName=amc GroupPwd= EnableISPConnect=0 ISPConnectType=0 ISPConnect= ISPCommand= Username=am UserPassword= SaveUserPassword=0 EnableBackup=0 BackupServer= EnableNat=0 CertStore=0 CertName= CertPath= CertSubjectName= CertSerialHash= DHGroup=2 ForceKeepAlives=0 enc_GroupPwd= enc_UserPassword= TunnelingMode=0 TcpTunnelingPort=5020 SendCertChain=0 PeerTimeout=90 EnableLocalLAN=0 It is there connected and in the route table the other IP that is given to us in to use in SMPP is also there. When I tracerout the SMPP IP it lead me to the main IP for VPN. Now my question would be, if the VPN is already connected and I can trace route the IP for the SMPP to the VPN connection. Then why wont the kannel recognize it? Is there a kind of setting that I need to do? BR Amr Qanadilo -Original Message- From: Alejandro Guerrieri [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 5:41 PM To: users@kannel.org Subject: Re: problems connecting to SMSC using SMPP though VPN Ashwani, The IP used to connect to the VPN is called the VPN Peer. Of course Kannel shouldn't try to connect to that one, since it's the IP used to establish the tunnel. The other IP (or IP's) are called the Encryption Domain. If you have established your VPN well, all traffic going out on your host to the enryption domain should be directed through the tunnel established over the vpn peer. Looking at your logs, there are many issues that could end with a Connection Timed Out, but most probably is related to a VPN configuration or firewall issue. The first thing to do is to check if you're able to connect to the SMPP host/port on the other side by using other means of connection. I'd suggest you to try using telnet to the host/port on the other side, since most operators block ping from external IP's: telnet smpp host smpp port Keep in mind that if you're host have more than one IP, you have to use the same IP as kannel. Usually, the first interface on a multi-ip host is the one used to establish connections (you can change that on kannel by using the our-host directive on conf files). If you can establish a connection using telnet (I don't think you will) then the problem is on kannel. The other suspect could be a firewall configuration on either side, check your setup and ask your operator about it. Hope it helps, Alejandro On 8/11/07, Amr Qanadilo //AMC// [EMAIL PROTECTED] wrote: Dear Ashwani; Thank you very much for your immediate response. The issue here is that we are using VPN. We have got 2 IPs from the operator. The first one is to connect the VPN and it is going well and connected. The other IP is for the SMPP configuration. Now when I test the VPN IP address it is pinging and working fine. But when I test the second IP it is not pinging; maybe it is an internal IP address that we can connect though only VPN connection. For the above mentioned is there any special configuration that we need to make to the Kannel. Looking forward for your feedback and Best Regards Amr From: Amr Qanadilo //AMC// [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 11:12 AM To: 'ashwani'; 'users@kannel.org' Subject: RE: problems connecting to SMSC using SMPP though VPN Dear Ashwani; Thank you for your email. I will try to do that, but does the configuration file seem correct? Thank you
problems connecting to SMSC using SMPP though VPN
Dear all; I have a problem in connecting the Kannel to the GSM operator smsc center. Am using kannel 1.4.1 stable. My OS is enterprise redhat linux 4. The config file is as follows: group = core admin-port = 13000 wapbox-port = 13002 admin-password = bar wdp-interface-name = * log-file = /var/log/bearerbox.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 include = wapbox.conf include = smsbox.conf group = smsc smsc = smpp host = (IP I GOT FROM GSM OP) port = (PORT I GOT FRON GSM OP) receive-port = (PORT I GOT FRON GSM OP) smsc-username = (username I GOT FRON GSM OP) smsc-password = (pass I GOT FRON GSM OP) system-type = SMPP address-range = --- WAP BOX group = wapbox bearerbox-host = localhost log-file = /var/log/wapbox.log log-level = 0 syslog-level = none SMS BOX group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 sendsms-chars = 0123456789 +- log-file = /tmp/smsbox.log log-level = 0 access-log = /tmp/access.log when I try to connect it gives me this error message 2007-08-10 16:35:17 [25358] [6] ERROR: connect failed 2007-08-10 16:35:17 [25358] [6] ERROR: System error 110: Connection timed out 2007-08-10 16:35:17 [25358] [6] ERROR: error connecting to server `IP FROM GSM OP' at port `PORT FROM GSM OP' 2007-08-10 16:35:17 [25358] [6] ERROR: SMPP[SMPP:IP:PORT/PORT:username:SMPP]: Couldn't connect to server. 2007-08-10 16:35:17 [25358] [6] ERROR: SMPP[SMPP:IP:PORT/PORT:username:SMPP]: Couldn't connect to SMS center (retrying in 10 seconds). Please help Thank you
RE: problems connecting to SMSC using SMPP though VPN
Dear Ashwani; Thank you for your email. I will try to do that, but does the configuration file seem correct? Thank you _ From: ashwani [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 9:45 AM To: 'Amr Qanadilo //AMC//'; users@kannel.org Subject: RE: problems connecting to SMSC using SMPP though VPN Hi AMR, It seems that you are not able to connect to the SMSC at all, First check if you are able to connect SMSC on TCP/IP, I mean try to ping the SMSC Also check if the port is open for you system, try telnet to SMSC port given to u. I hope this will help Regards Ashwani _ From: Amr Qanadilo //AMC// [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 2:05 PM To: users@kannel.org Subject: problems connecting to SMSC using SMPP though VPN Dear all; I have a problem in connecting the Kannel to the GSM operator smsc center. Am using kannel 1.4.1 stable. My OS is enterprise redhat linux 4. The config file is as follows: group = core admin-port = 13000 wapbox-port = 13002 admin-password = bar wdp-interface-name = * log-file = /var/log/bearerbox.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 include = wapbox.conf include = smsbox.conf group = smsc smsc = smpp host = (IP I GOT FROM GSM OP) port = (PORT I GOT FRON GSM OP) receive-port = (PORT I GOT FRON GSM OP) smsc-username = (username I GOT FRON GSM OP) smsc-password = (pass I GOT FRON GSM OP) system-type = SMPP address-range = --- WAP BOX group = wapbox bearerbox-host = localhost log-file = /var/log/wapbox.log log-level = 0 syslog-level = none SMS BOX group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 sendsms-chars = 0123456789 +- log-file = /tmp/smsbox.log log-level = 0 access-log = /tmp/access.log when I try to connect it gives me this error message 2007-08-10 16:35:17 [25358] [6] ERROR: connect failed 2007-08-10 16:35:17 [25358] [6] ERROR: System error 110: Connection timed out 2007-08-10 16:35:17 [25358] [6] ERROR: error connecting to server `IP FROM GSM OP' at port `PORT FROM GSM OP' 2007-08-10 16:35:17 [25358] [6] ERROR: SMPP[SMPP:IP:PORT/PORT:username:SMPP]: Couldn't connect to server. 2007-08-10 16:35:17 [25358] [6] ERROR: SMPP[SMPP:IP:PORT/PORT:username:SMPP]: Couldn't connect to SMS center (retrying in 10 seconds). Please help Thank you __ NOD32 2450 (20070810) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
RE: problems connecting to SMSC using SMPP though VPN
Dear Ashwani; Thank you very much for your immediate response. The issue here is that we are using VPN. We have got 2 IPs from the operator. The first one is to connect the VPN and it is going well and connected. The other IP is for the SMPP configuration. Now when I test the VPN IP address it is pinging and working fine. But when I test the second IP it is not pinging; maybe it is an internal IP address that we can connect though only VPN connection. For the above mentioned is there any special configuration that we need to make to the Kannel. Looking forward for your feedback and Best Regards Amr _ From: Amr Qanadilo //AMC// [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 11:12 AM To: 'ashwani'; 'users@kannel.org' Subject: RE: problems connecting to SMSC using SMPP though VPN Dear Ashwani; Thank you for your email. I will try to do that, but does the configuration file seem correct? Thank you _ From: ashwani [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 9:45 AM To: 'Amr Qanadilo //AMC//'; users@kannel.org Subject: RE: problems connecting to SMSC using SMPP though VPN Hi AMR, It seems that you are not able to connect to the SMSC at all, First check if you are able to connect SMSC on TCP/IP, I mean try to ping the SMSC Also check if the port is open for you system, try telnet to SMSC port given to u. I hope this will help Regards Ashwani _ From: Amr Qanadilo //AMC// [mailto:[EMAIL PROTECTED] Sent: Saturday, August 11, 2007 2:05 PM To: users@kannel.org Subject: problems connecting to SMSC using SMPP though VPN Dear all; I have a problem in connecting the Kannel to the GSM operator smsc center. Am using kannel 1.4.1 stable. My OS is enterprise redhat linux 4. The config file is as follows: group = core admin-port = 13000 wapbox-port = 13002 admin-password = bar wdp-interface-name = * log-file = /var/log/bearerbox.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 include = wapbox.conf include = smsbox.conf group = smsc smsc = smpp host = (IP I GOT FROM GSM OP) port = (PORT I GOT FRON GSM OP) receive-port = (PORT I GOT FRON GSM OP) smsc-username = (username I GOT FRON GSM OP) smsc-password = (pass I GOT FRON GSM OP) system-type = SMPP address-range = --- WAP BOX group = wapbox bearerbox-host = localhost log-file = /var/log/wapbox.log log-level = 0 syslog-level = none SMS BOX group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 sendsms-chars = 0123456789 +- log-file = /tmp/smsbox.log log-level = 0 access-log = /tmp/access.log when I try to connect it gives me this error message 2007-08-10 16:35:17 [25358] [6] ERROR: connect failed 2007-08-10 16:35:17 [25358] [6] ERROR: System error 110: Connection timed out 2007-08-10 16:35:17 [25358] [6] ERROR: error connecting to server `IP FROM GSM OP' at port `PORT FROM GSM OP' 2007-08-10 16:35:17 [25358] [6] ERROR: SMPP[SMPP:IP:PORT/PORT:username:SMPP]: Couldn't connect to server. 2007-08-10 16:35:17 [25358] [6] ERROR: SMPP[SMPP:IP:PORT/PORT:username:SMPP]: Couldn't connect to SMS center (retrying in 10 seconds). Please help Thank you __ NOD32 2450 (20070810) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com