Re: Configuring Kannel as an SMS Gateway
Hi Ricky, I've forgotten to add the sms-service part of the config file to the email. Anyway, I've managed to connect the other Network's Operators SMSC by creating my own fake SMSC program, that listens to 2 ports, one for incoming messages from the other Network SMSC and another for SMSs comming from Kannel. The problem I'm having now is with the sms-service group configuration. group = sms-service keyword = default get-url = http://localhost:13013/cgi-bin/sendsms?smsc=MYSMSCusername=XXXpassword=XXXsender=%ptext=%arecipient=%Pto=%Ppriority=0; allowed-receiver-prefix = 111 When I send a message from my FAKESMSC to a 111 prefix number, I get on the smsbox output the following: 2005-06-28 11:12:08 [32326] [4] INFO: Starting to service Prueba2 from 123 to 111750106 2005-06-28 11:12:08 [32326] [9] DEBUG: Parsing URL `http://localhost:13013/cgi-bin/sendsms?smsc=MYSMSCusername=XXXpassword=XXXfrom=123text=Prueba2to=13013priority=0': 2005-06-28 11:12:08 [32326] [9] DEBUG: Scheme: http:// 2005-06-28 11:12:08 [32326] [9] DEBUG: Host: localhost 2005-06-28 11:12:08 [32326] [9] DEBUG: Port: 13013 2005-06-28 11:12:08 [32326] [9] DEBUG: Username: (null) 2005-06-28 11:12:08 [32326] [9] DEBUG: Password: (null) 2005-06-28 11:12:08 [32326] [9] DEBUG: Path: /cgi-bin/sendsms 2005-06-28 11:12:08 [32326] [9] DEBUG: Query: smsc=MYSMSCusername=XXXpassword=XXXfrom=123text=Prueba2to=13013priority=0 2005-06-28 11:12:08 [32326] [9] DEBUG: Fragment: (null) 2005-06-28 11:12:08 [32326] [9] DEBUG: HTTP: Reusing connection to `localhost:13013' (fd=26). 2005-06-28 11:12:08 [32326] [9] DEBUG: Socket connected at once 2005-06-28 11:12:08 [32326] [9] DEBUG: HTTP: Sending request: 2005-06-28 11:12:08 [32326] [9] DEBUG: Octet string at 0xa047ad8: 2005-06-28 11:12:08 [32326] [9] DEBUG: len: 191 2005-06-28 11:12:08 [32326] [9] DEBUG: size: 1024 2005-06-28 11:12:08 [32326] [9] DEBUG: immutable: 0 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 47 45 54 20 2f 63 67 69 2d 62 69 6e 2f 73 65 6e GET /cgi-bin/sen 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 64 73 6d 73 3f 73 6d 73 63 3d 50 4f 52 54 48 41 dsms?smsc=MYSMSC 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 42 4c 45 26 75 73 65 72 6e 61 6d 65 3d 74 65 73 username=XXX 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 74 65 72 26 70 61 73 73 77 6f 72 64 3d 66 6f 6f password=XXX 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 62 61 72 26 66 72 6f 6d 3d 31 32 33 26 74 65 78 from=123tex 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 74 3d 50 72 75 65 62 61 32 26 74 6f 3d 31 33 30 t=Prueba2to=130 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 31 33 26 70 72 69 6f 72 69 74 79 3d 30 20 48 54 13priority=0 HT 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 3a 20 6c 6f TP/1.1..Host: lo 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 63 61 6c 68 6f 73 74 3a 31 33 30 31 33 0d 0a 55 calhost:13013..U 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 73 65 72 2d 41 67 65 6e 74 3a 20 4b 61 6e 6e 65 ser-Agent: Kanne 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 6c 2f 31 2e 34 2e 30 0d 0a 58 2d 4b 61 6e 6e 65 l/1.4.0..X-Kanne 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 6c 2d 46 72 6f 6d 3a 20 31 32 33 0d 0a 0d 0a l-From: 123 2005-06-28 11:12:08 [32326] [9] DEBUG: Octet string dump ends. You can see on the first log that destination number is well received and that the correct sms-service group is called. But, when the get-url is called, a wrong destination number is sent. It's sending the SMSBOX port number. Could you give me a hand? I've also checked the mailing list archives and found that somebody has asked about this before, but didn't receive an answer. regards, Pablo Salinas On 6/23/05, Ricky Wibowo [EMAIL PROTECTED] wrote: in your configuration, which statement is declared your prefix?? i didn't see any thing... :-) thanx Pablo Salinas wrote: First of all, thanks everybody for all the responses. Now, let me be more specific on the my network scenario: As I said before, I need Kannel to work as an SMS-Gateway, this is the network configuration: Foreign Operator A -- - Server SMPP V3.4 Client- | My SMSC | | SMS GW |-| Routing Prefix| | | | | | 222 | | Routing |Server SMPP V 3.4 Client | | | Prefix|--| Kannel | | | | |Server SMPP V3.4 Client-- | 111 | | |-| Routing Prefix| ---
Re: Configuring Kannel as an SMS Gateway
Hola Pablo, From what I see, you are not invoking the right script through get-url. You should use your own script to handle the incoming message. Instead of doing this, you are invoking sendsms which is an internal command used to push SMS´s. If you are already connected to the carrier´s SMSC, why use fakesmsc? Saludos, Rodrigo Cremaschi. On 6/28/05, Pablo Salinas [EMAIL PROTECTED] wrote: Hi Ricky, I've forgotten to add the sms-service part of the config file to the email. Anyway, I've managed to connect the other Network's Operators SMSC by creating my own fake SMSC program, that listens to 2 ports, one for incoming messages from the other Network SMSC and another for SMSs comming from Kannel. The problem I'm having now is with the sms-service group configuration. group = sms-service keyword = default get-url = http://localhost:13013/cgi-bin/sendsms?smsc=MYSMSCusername=XXXpassword=XXXsender=%ptext=%arecipient=%Pto=%Ppriority=0; allowed-receiver-prefix = 111 When I send a message from my FAKESMSC to a 111 prefix number, I get on the smsbox output the following: 2005-06-28 11:12:08 [32326] [4] INFO: Starting to service Prueba2 from 123 to 111750106 2005-06-28 11:12:08 [32326] [9] DEBUG: Parsing URL `http://localhost:13013/cgi-bin/sendsms?smsc=MYSMSCusername=XXXpassword=XXXfrom=123text=Prueba2to=13013priority=0': 2005-06-28 11:12:08 [32326] [9] DEBUG: Scheme: http:// 2005-06-28 11:12:08 [32326] [9] DEBUG: Host: localhost 2005-06-28 11:12:08 [32326] [9] DEBUG: Port: 13013 2005-06-28 11:12:08 [32326] [9] DEBUG: Username: (null) 2005-06-28 11:12:08 [32326] [9] DEBUG: Password: (null) 2005-06-28 11:12:08 [32326] [9] DEBUG: Path: /cgi-bin/sendsms 2005-06-28 11:12:08 [32326] [9] DEBUG: Query: smsc=MYSMSCusername=XXXpassword=XXXfrom=123text=Prueba2to=13013priority=0 2005-06-28 11:12:08 [32326] [9] DEBUG: Fragment: (null) 2005-06-28 11:12:08 [32326] [9] DEBUG: HTTP: Reusing connection to `localhost:13013' (fd=26). 2005-06-28 11:12:08 [32326] [9] DEBUG: Socket connected at once 2005-06-28 11:12:08 [32326] [9] DEBUG: HTTP: Sending request: 2005-06-28 11:12:08 [32326] [9] DEBUG: Octet string at 0xa047ad8: 2005-06-28 11:12:08 [32326] [9] DEBUG: len: 191 2005-06-28 11:12:08 [32326] [9] DEBUG: size: 1024 2005-06-28 11:12:08 [32326] [9] DEBUG: immutable: 0 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 47 45 54 20 2f 63 67 69 2d 62 69 6e 2f 73 65 6e GET /cgi-bin/sen 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 64 73 6d 73 3f 73 6d 73 63 3d 50 4f 52 54 48 41 dsms?smsc=MYSMSC 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 42 4c 45 26 75 73 65 72 6e 61 6d 65 3d 74 65 73 username=XXX 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 74 65 72 26 70 61 73 73 77 6f 72 64 3d 66 6f 6f password=XXX 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 62 61 72 26 66 72 6f 6d 3d 31 32 33 26 74 65 78 from=123tex 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 74 3d 50 72 75 65 62 61 32 26 74 6f 3d 31 33 30 t=Prueba2to=130 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 31 33 26 70 72 69 6f 72 69 74 79 3d 30 20 48 54 13priority=0 HT 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 3a 20 6c 6f TP/1.1..Host: lo 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 63 61 6c 68 6f 73 74 3a 31 33 30 31 33 0d 0a 55 calhost:13013..U 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 73 65 72 2d 41 67 65 6e 74 3a 20 4b 61 6e 6e 65 ser-Agent: Kanne 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 6c 2f 31 2e 34 2e 30 0d 0a 58 2d 4b 61 6e 6e 65 l/1.4.0..X-Kanne 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 6c 2d 46 72 6f 6d 3a 20 31 32 33 0d 0a 0d 0a l-From: 123 2005-06-28 11:12:08 [32326] [9] DEBUG: Octet string dump ends. You can see on the first log that destination number is well received and that the correct sms-service group is called. But, when the get-url is called, a wrong destination number is sent. It's sending the SMSBOX port number. Could you give me a hand? I've also checked the mailing list archives and found that somebody has asked about this before, but didn't receive an answer. regards, Pablo Salinas On 6/23/05, Ricky Wibowo [EMAIL PROTECTED] wrote: in your configuration, which statement is declared your prefix?? i didn't see any thing... :-) thanx Pablo Salinas wrote: First of all, thanks everybody for all the responses. Now, let me be more specific on the my network scenario: As I said before, I need Kannel to work as an SMS-Gateway, this is the network configuration: Foreign Operator A -- - Server SMPP V3.4 Client- | My SMSC | | SMS GW |-| Routing Prefix| | | | |
Re: Configuring Kannel as an SMS Gateway
Hi Rodrigo, Why should I use my own script to handle the incomming message? I've tested the sendsms script with my navigator and it worked just fine this way: http://localhost:13013/cgi-bin/sendsms?smsc=MYSMSCusername=XXXpassword=XXXsender=123text=pruebarecipient=111750106to=111750106priority=0 SMSs are delivered to the Subscriber's handset. And, I need to use Fake SMSCs because the only direct connection to an SMSC I have is to my Network's SMSC. I don't have a direct connection to the other Network's SMSCs. They all connect to my Network as SMPP clients. Off course, I could also just use one Fake SMSC per each of the other Network's client connections, but I want to have a centralized control of all of them, and I thought that Kannel would be the better choice for doing it. Thanks again. regards, Pablo Salinas On 6/28/05, Rodrigo Cremaschi [EMAIL PROTECTED] wrote: Hola Pablo, From what I see, you are not invoking the right script through get-url. You should use your own script to handle the incoming message. Instead of doing this, you are invoking sendsms which is an internal command used to push SMS´s. If you are already connected to the carrier´s SMSC, why use fakesmsc? Saludos, Rodrigo Cremaschi. On 6/28/05, Pablo Salinas [EMAIL PROTECTED] wrote: Hi Ricky, I've forgotten to add the sms-service part of the config file to the email. Anyway, I've managed to connect the other Network's Operators SMSC by creating my own fake SMSC program, that listens to 2 ports, one for incoming messages from the other Network SMSC and another for SMSs comming from Kannel. The problem I'm having now is with the sms-service group configuration. group = sms-service keyword = default get-url = http://localhost:13013/cgi-bin/sendsms?smsc=MYSMSCusername=XXXpassword=XXXsender=%ptext=%arecipient=%Pto=%Ppriority=0; allowed-receiver-prefix = 111 When I send a message from my FAKESMSC to a 111 prefix number, I get on the smsbox output the following: 2005-06-28 11:12:08 [32326] [4] INFO: Starting to service Prueba2 from 123 to 111750106 2005-06-28 11:12:08 [32326] [9] DEBUG: Parsing URL `http://localhost:13013/cgi-bin/sendsms?smsc=MYSMSCusername=XXXpassword=XXXfrom=123text=Prueba2to=13013priority=0': 2005-06-28 11:12:08 [32326] [9] DEBUG: Scheme: http:// 2005-06-28 11:12:08 [32326] [9] DEBUG: Host: localhost 2005-06-28 11:12:08 [32326] [9] DEBUG: Port: 13013 2005-06-28 11:12:08 [32326] [9] DEBUG: Username: (null) 2005-06-28 11:12:08 [32326] [9] DEBUG: Password: (null) 2005-06-28 11:12:08 [32326] [9] DEBUG: Path: /cgi-bin/sendsms 2005-06-28 11:12:08 [32326] [9] DEBUG: Query: smsc=MYSMSCusername=XXXpassword=XXXfrom=123text=Prueba2to=13013priority=0 2005-06-28 11:12:08 [32326] [9] DEBUG: Fragment: (null) 2005-06-28 11:12:08 [32326] [9] DEBUG: HTTP: Reusing connection to `localhost:13013' (fd=26). 2005-06-28 11:12:08 [32326] [9] DEBUG: Socket connected at once 2005-06-28 11:12:08 [32326] [9] DEBUG: HTTP: Sending request: 2005-06-28 11:12:08 [32326] [9] DEBUG: Octet string at 0xa047ad8: 2005-06-28 11:12:08 [32326] [9] DEBUG: len: 191 2005-06-28 11:12:08 [32326] [9] DEBUG: size: 1024 2005-06-28 11:12:08 [32326] [9] DEBUG: immutable: 0 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 47 45 54 20 2f 63 67 69 2d 62 69 6e 2f 73 65 6e GET /cgi-bin/sen 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 64 73 6d 73 3f 73 6d 73 63 3d 50 4f 52 54 48 41 dsms?smsc=MYSMSC 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 42 4c 45 26 75 73 65 72 6e 61 6d 65 3d 74 65 73 username=XXX 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 74 65 72 26 70 61 73 73 77 6f 72 64 3d 66 6f 6f password=XXX 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 62 61 72 26 66 72 6f 6d 3d 31 32 33 26 74 65 78 from=123tex 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 74 3d 50 72 75 65 62 61 32 26 74 6f 3d 31 33 30 t=Prueba2to=130 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 31 33 26 70 72 69 6f 72 69 74 79 3d 30 20 48 54 13priority=0 HT 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 3a 20 6c 6f TP/1.1..Host: lo 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 63 61 6c 68 6f 73 74 3a 31 33 30 31 33 0d 0a 55 calhost:13013..U 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 73 65 72 2d 41 67 65 6e 74 3a 20 4b 61 6e 6e 65 ser-Agent: Kanne 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 6c 2f 31 2e 34 2e 30 0d 0a 58 2d 4b 61 6e 6e 65 l/1.4.0..X-Kanne 2005-06-28 11:12:08 [32326] [9] DEBUG: data: 6c 2d 46 72 6f 6d 3a 20 31 32 33 0d 0a 0d 0a l-From: 123 2005-06-28 11:12:08 [32326] [9] DEBUG: Octet string dump ends. You can see on the first log that destination number is well received and that the correct sms-service group is called. But, when the get-url is called, a wrong destination number
Re: Configuring Kannel as an SMS Gateway
Hi, Pablo Salinas wrote: Hi there, I want Kannel to work as an SMS Gateway between different SMSCs. But I don't know how to set on the config file so that messages from SMSC A are routed to SMSC B and viceversa. Could you send me a sample configuration file? It depends what protocols each are speaking. For example, if it was HTTP create a new http type in smsc_http and then either match all incoming messages from that smsc and send to another smsc in the geturl parameter. This is all explained in the docs (although it is hard to understand sometimes). What particular part of the docs are you having problems with? -- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com
Re: Configuring Kannel as an SMS Gateway
Gareth Reakes wrote: Hi, Pablo Salinas wrote: Hi there, I want Kannel to work as an SMS Gateway between different SMSCs. But I don't know how to set on the config file so that messages from SMSC A are routed to SMSC B and viceversa. Could you send me a sample configuration file? It depends what protocols each are speaking. For example, if it was HTTP create a new http type in smsc_http and then either match all incoming messages from that smsc and send to another smsc in the geturl parameter. This is all explained in the docs (although it is hard to understand sometimes). What particular part of the docs are you having problems with? How about SMPP Prtotocol that used?? If we want to fetch all incoming messages from smsc, get-url paramater needed?? Or it's only for smsc_http type? I'm still confuse about this... thanx
Re: Configuring Kannel as an SMS Gateway
Hey, Take a look at reroute properties for SMS centers. I have not used them but they look like they should do what you want. http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN1085 Cheers, Gareth Ricky Wibowo wrote: Gareth Reakes wrote: Hi, Pablo Salinas wrote: Hi there, I want Kannel to work as an SMS Gateway between different SMSCs. But I don't know how to set on the config file so that messages from SMSC A are routed to SMSC B and viceversa. Could you send me a sample configuration file? It depends what protocols each are speaking. For example, if it was HTTP create a new http type in smsc_http and then either match all incoming messages from that smsc and send to another smsc in the geturl parameter. This is all explained in the docs (although it is hard to understand sometimes). What particular part of the docs are you having problems with? How about SMPP Prtotocol that used?? If we want to fetch all incoming messages from smsc, get-url paramater needed?? Or it's only for smsc_http type? I'm still confuse about this... thanx -- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com
Re: Configuring Kannel as an SMS Gateway
although a number of solutions are possible, I would consider the following to be the simplest: configure both smsc's as normal, then configure an smsbox tha can be used to post to both. then create a default service for each of the smsc's, which has a url pointing to the smsbox, and also passes the smsc to be delivered from. Here is a pseudo config: # group = smsc smsc = smpp smsc-id = SMSC-1 group = smsc smsc = smpp smsc-id= SMSC-2 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-2?username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-1 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-1username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-2 group = smsbox bearerbox-host = localhost sendsms-port = 8080 group = sendsms-user name = Test username = test2 password = test2 # Hope this helps, Kyriacos Sakkas Pablo Salinas wrote: Hi there, I want Kannel to work as an SMS Gateway between different SMSCs. But I don't know how to set on the config file so that messages from SMSC A are routed to SMSC B and viceversa. Could you send me a sample configuration file? Thanks in advance. regards, Pablo Salinas Advertencia: Este mensaje contiene la opinión personal del remitente y no implica asumir obligacion alguna en nombre de Hutchison Telecom Paraguay S.A. Los accionistas, directores y gerentes de Hutchison Telecom Paraguay S.A. no asumen responsabilidad alguna con relación al contenido del presente mensaje. ___ Disclaimer: This message represents the personal views and opinion of the individual sender and under no circumstances represents those of Hutchison Telecom Paraguay S.A. The shareholders, directors and management of Hutchison Telecom Paraguay S.A. accept no responsibility and accordingly shall have no liability to any party whatsoever with respect to the contents of this message. -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: [EMAIL PROTECTED] http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at [EMAIL PROTECTED] **
Re: Configuring Kannel as an SMS Gateway
Beats mine for simplicity... Kyriacos must re read the docs Sakkas. Gareth Reakes wrote: Hey, Take a look at reroute properties for SMS centers. I have not used them but they look like they should do what you want. http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN1085 Cheers, Gareth Ricky Wibowo wrote: Gareth Reakes wrote: Hi, Pablo Salinas wrote: Hi there, I want Kannel to work as an SMS Gateway between different SMSCs. But I don't know how to set on the config file so that messages from SMSC A are routed to SMSC B and viceversa. Could you send me a sample configuration file? It depends what protocols each are speaking. For example, if it was HTTP create a new http type in smsc_http and then either match all incoming messages from that smsc and send to another smsc in the geturl parameter. This is all explained in the docs (although it is hard to understand sometimes). What particular part of the docs are you having problems with? How about SMPP Prtotocol that used?? If we want to fetch all incoming messages from smsc, get-url paramater needed?? Or it's only for smsc_http type? I'm still confuse about this... thanx -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: [EMAIL PROTECTED] http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at [EMAIL PROTECTED] **
Re: Configuring Kannel as an SMS Gateway
By the way, sorry if i'm wrong, your configuration seems that if any incoming messages, it will be send again to the sender (MO)... thanx Kyriacos Sakkas wrote: although a number of solutions are possible, I would consider the following to be the simplest: configure both smsc's as normal, then configure an smsbox tha can be used to post to both. then create a default service for each of the smsc's, which has a url pointing to the smsbox, and also passes the smsc to be delivered from. Here is a pseudo config: # group = smsc smsc = smpp smsc-id = SMSC-1 group = smsc smsc = smpp smsc-id= SMSC-2 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-2?username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-1 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-1username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-2 group = smsbox bearerbox-host = localhost sendsms-port = 8080 group = sendsms-user name = Test username = test2 password = test2 # Hope this helps, Kyriacos Sakkas Pablo Salinas wrote: Hi there, I want Kannel to work as an SMS Gateway between different SMSCs. But I don't know how to set on the config file so that messages from SMSC A are routed to SMSC B and viceversa. Could you send me a sample configuration file? Thanks in advance. regards, Pablo Salinas Advertencia: Este mensaje contiene la opinión personal del remitente y no implica asumir obligacion alguna en nombre de Hutchison Telecom Paraguay S.A. Los accionistas, directores y gerentes de Hutchison Telecom Paraguay S.A. no asumen responsabilidad alguna con relación al contenido del presente mensaje. ___ Disclaimer: This message represents the personal views and opinion of the individual sender and under no circumstances represents those of Hutchison Telecom Paraguay S.A. The shareholders, directors and management of Hutchison Telecom Paraguay S.A. accept no responsibility and accordingly shall have no liability to any party whatsoever with respect to the contents of this message.
Re: Configuring Kannel as an SMS Gateway
/cgi-bin/ is created on the specified port by kannel, you do not need to create anything. As for where the delivery is to be made to, you never mentioned, if you wish to put a different delivery number feel free to put that in the get-url. The configuration I gave is just an example, it is very likely it has other errors too. If you need to do anything more inteligent than a prefix re write on the number (which can be done in the smsc group via the unified-prefix parameter) you will need an external script/aplication to do the translation/mapping. Kyriacos Sakkas. Ricky Wibowo wrote: By the way, sorry if i'm wrong, your configuration seems that if any incoming messages, it will be send again to the sender (MO)... thanx Kyriacos Sakkas wrote: although a number of solutions are possible, I would consider the following to be the simplest: configure both smsc's as normal, then configure an smsbox tha can be used to post to both. then create a default service for each of the smsc's, which has a url pointing to the smsbox, and also passes the smsc to be delivered from. Here is a pseudo config: # group = smsc smsc = smpp smsc-id = SMSC-1 group = smsc smsc = smpp smsc-id= SMSC-2 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-2?username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-1 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-1username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-2 group = smsbox bearerbox-host = localhost sendsms-port = 8080 group = sendsms-user name = Test username = test2 password = test2 # Hope this helps, Kyriacos Sakkas Pablo Salinas wrote: Hi there, I want Kannel to work as an SMS Gateway between different SMSCs. But I don't know how to set on the config file so that messages from SMSC A are routed to SMSC B and viceversa. Could you send me a sample configuration file? Thanks in advance. regards, Pablo Salinas Advertencia: Este mensaje contiene la opinión personal del remitente y no implica asumir obligacion alguna en nombre de Hutchison Telecom Paraguay S.A. Los accionistas, directores y gerentes de Hutchison Telecom Paraguay S.A. no asumen responsabilidad alguna con relación al contenido del presente mensaje. ___ Disclaimer: This message represents the personal views and opinion of the individual sender and under no circumstances represents those of Hutchison Telecom Paraguay S.A. The shareholders, directors and management of Hutchison Telecom Paraguay S.A. accept no responsibility and accordingly shall have no liability to any party whatsoever with respect to the contents of this message. -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: [EMAIL PROTECTED] http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at [EMAIL PROTECTED] **
Re: Configuring Kannel as an SMS Gateway
Hi Ricky, Ricky Wibowo wrote: By the way, sorry if i'm wrong, your configuration seems that if any incoming messages, it will be send again to the sender (MO)... group = smsc smsc = smpp smsc-id = SMSC-1 group = smsc smsc = smpp smsc-id= SMSC-2 Above you set up 2 smsc that talk smpp. group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-2?username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-1 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-1username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-2 Here you set up 2 services with the magic keyword default that only accept messages (all messages though) from 1 of the smsc. So incoming messages from each of the smsc will go to a particular sms-service. From there they call a sendsms - but notice the smsc=SMSC-x in the parameter list. This routes the message back to the other smsc to be sent out over smpp. Is that clear? :) Gareth -- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http://www.parthcomp.com
Re: Configuring Kannel as an SMS Gateway
I see.. but how about if i want to save all messages in my database (mysql, postgre), can (sendsms) do it? or i should create some script to do the list?? Kyriacos Sakkas wrote: /cgi-bin/ is created on the specified port by kannel, you do not need to create anything. As for where the delivery is to be made to, you never mentioned, if you wish to put a different delivery number feel free to put that in the get-url. The configuration I gave is just an example, it is very likely it has other errors too. If you need to do anything more inteligent than a prefix re write on the number (which can be done in the smsc group via the unified-prefix parameter) you will need an external script/aplication to do the translation/mapping. Kyriacos Sakkas. Ricky Wibowo wrote: By the way, sorry if i'm wrong, your configuration seems that if any incoming messages, it will be send again to the sender (MO)... thanx Kyriacos Sakkas wrote: although a number of solutions are possible, I would consider the following to be the simplest: configure both smsc's as normal, then configure an smsbox tha can be used to post to both. then create a default service for each of the smsc's, which has a url pointing to the smsbox, and also passes the smsc to be delivered from. Here is a pseudo config: # group = smsc smsc = smpp smsc-id = SMSC-1 group = smsc smsc = smpp smsc-id= SMSC-2 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-2?username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-1 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-1username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-2 group = smsbox bearerbox-host = localhost sendsms-port = 8080 group = sendsms-user name = Test username = test2 password = test2 # Hope this helps, Kyriacos Sakkas Pablo Salinas wrote: Hi there, I want Kannel to work as an SMS Gateway between different SMSCs. But I don't know how to set on the config file so that messages from SMSC A are routed to SMSC B and viceversa. Could you send me a sample configuration file? Thanks in advance. regards, Pablo Salinas Advertencia: Este mensaje contiene la opinión personal del remitente y no implica asumir obligacion alguna en nombre de Hutchison Telecom Paraguay S.A. Los accionistas, directores y gerentes de Hutchison Telecom Paraguay S.A. no asumen responsabilidad alguna con relación al contenido del presente mensaje. ___ Disclaimer: This message represents the personal views and opinion of the individual sender and under no circumstances represents those of Hutchison Telecom Paraguay S.A. The shareholders, directors and management of Hutchison Telecom Paraguay S.A. accept no responsibility and accordingly shall have no liability to any party whatsoever with respect to the contents of this message.
Re: Configuring Kannel as an SMS Gateway
No.. :-( i think i'm a little stupid in here... i just want to receive all messages inbound, and injected to mysql database and all connection via SMPP Protocol to the operator.. thanx Gareth Reakes wrote: Hi Ricky, Ricky Wibowo wrote: By the way, sorry if i'm wrong, your configuration seems that if any incoming messages, it will be send again to the sender (MO)... group = smsc smsc = smpp smsc-id = SMSC-1 group = smsc smsc = smpp smsc-id= SMSC-2 Above you set up 2 smsc that talk smpp. group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-2?username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-1 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-1username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-2 Here you set up 2 services with the magic keyword default that only accept messages (all messages though) from 1 of the smsc. So incoming messages from each of the smsc will go to a particular sms-service. From there they call a sendsms - but notice the smsc=SMSC-x in the parameter list. This routes the message back to the other smsc to be sent out over smpp. Is that clear? :) Gareth
Re: Configuring Kannel as an SMS Gateway
Ricky Wibowo wrote: No.. :-( i think i'm a little stupid in here... i just want to receive all messages inbound, and injected to mysql database This will need an external script/app that can handle http get requests, and can be in any language of your choice and all connection via SMPP Protocol to the operator.. for the connection the kannel documentation gives enough information on setup, but you will need to contact an operator to get some of the configuration details eg. port numbers. thanx Gareth Reakes wrote: Hi Ricky, Ricky Wibowo wrote: By the way, sorry if i'm wrong, your configuration seems that if any incoming messages, it will be send again to the sender (MO)... group = smsc smsc = smpp smsc-id = SMSC-1 group = smsc smsc = smpp smsc-id= SMSC-2 Above you set up 2 smsc that talk smpp. group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-2?username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-1 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-1username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-2 Here you set up 2 services with the magic keyword default that only accept messages (all messages though) from 1 of the smsc. So incoming messages from each of the smsc will go to a particular sms-service. From there they call a sendsms - but notice the smsc=SMSC-x in the parameter list. This routes the message back to the other smsc to be sent out over smpp. Is that clear? :) Gareth -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: [EMAIL PROTECTED] http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at [EMAIL PROTECTED] **
Re: Configuring Kannel as an SMS Gateway
And the flags are in : http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN3338 isn't??? this is my example script : (myCoding.php) ? $a = $_GET['a']; $fp = fopen(/tmp/textfile_name.txt, w); fwrite($fp, $a); fclose($fp); ? my config: group = smsc smsc = smpp smsc-id = 3345 host = xx port = 2775 receive-port = 2775 smsc-username = x smsc-password = x system-type = x address-range = keepalive = 10 log-file = /var/log/kannel/smsc-spice3.log log-level = 0 our-host = 127.0.0.1 reconnect-delay = 10 enquire-link-interval = 30 my-number = 3345 group = sms-service keyword = default text = No service specified accepted-smsc = 3345 get-url = http://127.0.0.1/myCoding.php?a=%a; catch-all = true send-sender = true omit-empty = true max-messages = 0 why in directory /tmp there isn't file named textfile_name.txt I think this becaused the get-url parameter isn't triggered by the incoming messages... Is my script right?? thanx Kyriacos Sakkas wrote: Ricky Wibowo wrote: No.. :-( i think i'm a little stupid in here... i just want to receive all messages inbound, and injected to mysql database This will need an external script/app that can handle http get requests, and can be in any language of your choice and all connection via SMPP Protocol to the operator.. for the connection the kannel documentation gives enough information on setup, but you will need to contact an operator to get some of the configuration details eg. port numbers. thanx Gareth Reakes wrote: Hi Ricky, Ricky Wibowo wrote: By the way, sorry if i'm wrong, your configuration seems that if any incoming messages, it will be send again to the sender (MO)... group = smsc smsc = smpp smsc-id = SMSC-1 group = smsc smsc = smpp smsc-id= SMSC-2 Above you set up 2 smsc that talk smpp. group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-2?username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-1 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-1username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-2 Here you set up 2 services with the magic keyword default that only accept messages (all messages though) from 1 of the smsc. So incoming messages from each of the smsc will go to a particular sms-service. From there they call a sendsms - but notice the smsc=SMSC-x in the parameter list. This routes the message back to the other smsc to be sent out over smpp. Is that clear? :) Gareth
Re: Configuring Kannel as an SMS Gateway
Do you have enough privilege to write on that folder? Some Linux distro can not do that by default even /tmp has 777. Maybe you have to touch the file first. To test whether kannel work or not why don't you use a simple push script? Some samples are available in the kannel's folder. Goodluck, I know you can do it :) Regards Willy Mularto Cell: +62 811 923 464 Y!: sangprabv http://www.transmedia.co.id http://www.duniamobile.com http://www.sangprabv.net http://www.mobile-trax.com - Original Message - From: Ricky Wibowo [EMAIL PROTECTED] To: Kyriacos Sakkas [EMAIL PROTECTED] Cc: users@kannel.org Sent: Wednesday, June 22, 2005 4:30 PM Subject: Re: Configuring Kannel as an SMS Gateway And the flags are in : http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN3338 isn't??? this is my example script : (myCoding.php) ? $a = $_GET['a']; $fp = fopen(/tmp/textfile_name.txt, w); fwrite($fp, $a); fclose($fp); ? my config: group = smsc smsc = smpp smsc-id = 3345 host = xx port = 2775 receive-port = 2775 smsc-username = x smsc-password = x system-type = x address-range = keepalive = 10 log-file = /var/log/kannel/smsc-spice3.log log-level = 0 our-host = 127.0.0.1 reconnect-delay = 10 enquire-link-interval = 30 my-number = 3345 group = sms-service keyword = default text = No service specified accepted-smsc = 3345 get-url = http://127.0.0.1/myCoding.php?a=%a; catch-all = true send-sender = true omit-empty = true max-messages = 0 why in directory /tmp there isn't file named textfile_name.txt I think this becaused the get-url parameter isn't triggered by the incoming messages... Is my script right?? thanx Kyriacos Sakkas wrote: Ricky Wibowo wrote: No.. :-( i think i'm a little stupid in here... i just want to receive all messages inbound, and injected to mysql database This will need an external script/app that can handle http get requests, and can be in any language of your choice and all connection via SMPP Protocol to the operator.. for the connection the kannel documentation gives enough information on setup, but you will need to contact an operator to get some of the configuration details eg. port numbers. thanx Gareth Reakes wrote: Hi Ricky, Ricky Wibowo wrote: By the way, sorry if i'm wrong, your configuration seems that if any incoming messages, it will be send again to the sender (MO)... group = smsc smsc = smpp smsc-id = SMSC-1 group = smsc smsc = smpp smsc-id= SMSC-2 Above you set up 2 smsc that talk smpp. group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-2?username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-1 group = sms-service keyword = default get-url = http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-1username=test2password=test2sender=%ptext=%arecipient=%P; accepted-smsc = SMSC-2 Here you set up 2 services with the magic keyword default that only accept messages (all messages though) from 1 of the smsc. So incoming messages from each of the smsc will go to a particular sms-service. From there they call a sendsms - but notice the smsc=SMSC-x in the parameter list. This routes the message back to the other smsc to be sent out over smpp. Is that clear? :) Gareth
Re: Configuring Kannel as an SMS Gateway
First of all, thanks everybody for all the responses. Now, let me be more specific on the my network scenario: As I said before, I need Kannel to work as an SMS-Gateway, this is the network configuration: Foreign Operator A -- - Server SMPP V3.4 Client- | My SMSC | | SMS GW |-| Routing Prefix| | | | | | 222 | | Routing |Server SMPP V 3.4 Client | | | Prefix|--| Kannel | | | | |Server SMPP V3.4 Client-- | 111 | | |-| Routing Prefix| --- |333 | - Foreign Operator B Numbers on my Network start with prefix 111, while I have two other Operators (A and B) connected to my SMS GW with number prefixes 222 and 333. I need SMSs from my SMSC to be routed to Operator A or B depending on the Destination Number Prefix. And I need SMSs coming from Operators A and B to be routed to my SMSC (In case its destinated to Numbers with Prefix 111). As you can see, only My SMSC works as an SMPP server, the other two network operators get connected to my SMS GW as SMPP Clients. I've tried the sendsms script in order to send SMSs to my SMSC, but it's not working, I'm getting an Unknown request. response. Although the reception from SMS sent to my SMSC are working fine. Also, let me say that only connection from my SMSC to SMS GW is private, connections from other Operators are public, so security issues should be taken into account. Find attached my configuration file: # Core Configuration group = core admin-port = 13000 smsbox-port = 13001 admin-password = xxx box-allow-ip = *.*.*.* access-log = /var/log/kannel/access.log ## # SMSC CONNECTIONS ### # My SMSC group = smsc smsc = smpp smsc-id = MYSMSC host = xxx.xxx.xxx.xxx port = receive-port = smsc-username = xxx smsc-password = xxx system-type = address-range = # SMSBOX SETUP ### # This part of the configuration file defines the SMS properties of Kannel group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 # there should be default always # SEND-SMS USERS # This part of the configuration file enable an SMS push. Each of these sendsms-user groups define one account, # which can be used for the SMS push, via HTTP interface group = sendsms-user username = xxx password = xxx ### # SERVICES group = sms-service keyword = default text = No service specified Can you give me more hints on how to implement my network configuration? Why the sendsms script isn't working? Thanks again. regards, Pablo Salinas -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Kyriacos Sakkas Enviado el: miércoles, 22 de junio de 2005 4:36 Para: users@kannel.org Asunto: Spam:Re: Configuring Kannel as an SMS Gateway Beats mine for simplicity... Kyriacos must re read the docs Sakkas. Gareth Reakes wrote: Hey, Take a look at reroute properties for SMS centers. I have not used them but they look like they should do what you want. http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN1085 Cheers, Gareth Ricky Wibowo wrote: Gareth Reakes wrote: Hi, Pablo Salinas wrote: Hi there, I want Kannel to work as an SMS Gateway between different SMSCs. But I don't know how to set on the config file so that messages from SMSC A are routed to SMSC B and viceversa. Could you send me a sample configuration file? It depends what protocols each are speaking. For example, if it was HTTP create a new http type in smsc_http and then either match all incoming messages from that smsc and send to another smsc in the geturl parameter. This