
Hello guys, I am trying to retrieve sms sent from kannel fakesmsc on ubuntu jaunty jackalope.I am hoping to achieve that using php.Here is my kannel.conf # # Sample configuration file for Kannel bearerbox on Debian. # See the documentation for explanations of fields. # # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core admin-port = 13000 admin-password = bar admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" wapbox-port = 13002 wdp-interface-name = "*" log-file = "/var/log/kannel/bearerbox.log" box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" # Smsbox related smsbox-port = 13001 #box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" #unified-prefix = "00358,0" #white-list = "http://127.0.0.1/white-list.txt" #black-list = "http://127.0.0.1/black-list.txt" #store-file = "kannel.store" group = wapbox bearerbox-host = localhost log-file = "/var/log/kannel/wapbox.log" # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 #sendsms-chars = "0123456789 +-" #global-sender = 12345 log-file = "/var/log/kannel/smsbox.log" #log-level = 0 #access-log = "access.log" #white-list = #black-list = #reply-couldnotfetch = #reply-couldnotrepresent = #reply-requestfailed = #reply-emptymessage = # SMSC Fake group = smsc smsc = fake host = localhost port = 10000 #smsc-id= smsfaker #dlr_mask=1+2 #dlr_url="http://localhost/sms/index.php?type=%d" connect-allow-ip = "127.0.0.1" group = smsc smsc = http system-type = kannel smsc-username = george smsc-password = linkin port = 13015 send-url = " http://localhost/sms/index.php?phone=%p&text=%r&binary=%b&smsc=$i&time=%t" # SMS SERVICE GET-URL EXAMPLE group = sms-service keyword = www get-url = " http://localhost/sms/index.php?phone=%p&text=%r&binary=%b&smsc=$i&time=%t" group = sendsms-user username = kannel password = rL4y user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" default-sender=100 I want to know how to go about retrieving the sms from php.Please feel free to point out any mistakes and or omissions in my kannel.conf. Iam new to kannel Thanx in advance Regards George.

Are you running the fakesmsc program? (e.g. ./fakesmsc -m 1 "100 200 text www Hello world") Since you said you are using Ubuntu it should be in *"/usr/lib/kannel/test"*otherwise you need to install it. -Billy 2010/9/17 Gitau George <com00204@gmail.com>
Hello guys, I am trying to retrieve sms sent from kannel fakesmsc on ubuntu jaunty jackalope.I am hoping to achieve that using php.Here is my kannel.conf
# # Sample configuration file for Kannel bearerbox on Debian. # See the documentation for explanations of fields. #
# HTTP administration is disabled by default. Make sure you set the # password if you enable it.
group = core admin-port = 13000 admin-password = bar admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" wapbox-port = 13002 wdp-interface-name = "*" log-file = "/var/log/kannel/bearerbox.log" box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" # Smsbox related smsbox-port = 13001 #box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" #unified-prefix = "00358,0" #white-list = "http://127.0.0.1/white-list.txt" #black-list = "http://127.0.0.1/black-list.txt" #store-file = "kannel.store"
group = wapbox bearerbox-host = localhost log-file = "/var/log/kannel/wapbox.log"
# SMSBOX SETUP
group = smsbox bearerbox-host = localhost sendsms-port = 13013 #sendsms-chars = "0123456789 +-" #global-sender = 12345 log-file = "/var/log/kannel/smsbox.log" #log-level = 0 #access-log = "access.log" #white-list = #black-list = #reply-couldnotfetch = #reply-couldnotrepresent = #reply-requestfailed = #reply-emptymessage =
# SMSC Fake group = smsc smsc = fake host = localhost port = 10000 #smsc-id= smsfaker #dlr_mask=1+2 #dlr_url="http://localhost/sms/index.php?type=%d" connect-allow-ip = "127.0.0.1"
group = smsc smsc = http system-type = kannel smsc-username = george smsc-password = linkin port = 13015 send-url = " http://localhost/sms/index.php?phone=%p&text=%r&binary=%b&smsc=$i&time=%t"
# SMS SERVICE GET-URL EXAMPLE group = sms-service keyword = www get-url = " http://localhost/sms/index.php?phone=%p&text=%r&binary=%b&smsc=$i&time=%t"
group = sendsms-user username = kannel password = rL4y user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" default-sender=100
I want to know how to go about retrieving the sms from php.Please feel free to point out any mistakes and or omissions in my kannel.conf. Iam new to kannel
Thanx in advance
Regards George.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

According to my experience with kannel, to send an sms you should call a url like http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar... to do this from php you need CURL installed Your get-url looks in order but you need to set an IF statement to catch the variables being passed by the GET method.i use kannel to send texts with my safaricom modem since the interface doesnt work with ubuntu.Its a more practical way rather than using the fake smsc

I am able to send sms via fakesmsc....its just that i dont know how to retrieve it via php.I have a get-url in my sms-service group that points to a php page where i use $_GET[''] to retrieve the message and save it to the db.....the message never gets saved...i keep getting the following errors DEBUG: No client - multi-send or ACK to pull-reply 010-09-20 21:18:43 [6186] [4] WARNING: No translation found for <www hello it is i> from <100> to <300> 2010-09-20 21:18:43 [6186] [4] ERROR: request failed 2010-09-20 21:18:43 [6186] [4] DEBUG: message length 14, sending 1 messages 2010-09-20 21:18:43 [6186] [4] DEBUG: match found: ^[ ]*(www)[ ]* 2010-09-20 21:18:43 [6186] [4] WARNING: No translation found for <www hello it is i> from <100> to <300> 2010-09-20 21:18:43 [6186] [4] ERROR: request failed 2010-09-20 21:18:43 [6186] [4] DEBUG: message length 14, sending 1 messages 2010-09-20 21:18:43 [6186] [4] DEBUG: match found: ^[ ]*(www)[ ]* 2010-09-20 21:18:43 [6186] [4] WARNING: No translation found for <www hello it is i> from <100> to <300> 2010-09-20 21:18:43 [6186] [4] ERROR: request failed 2010-09-20 21:18:43 [6186] [4] DEBUG: message length 14, sending 1 messages 2010-09-20 21:18:43 [6186] [4] DEBUG: match found: ^[ ]*(www)[ ]* 2010-09-20 21:18:43 [6186] [4] WARNING: No translation found for <www hello it is i> from <100> to <300> 2010-09-20 21:18:43 [6186] [4] ERROR: request failed 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 7e864360-2ca0-4a9a-b759-ce20e8f2bb17 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 6b9929f0-0686-4d91-bd23-908d1af12a7d 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 2c4efa3a-c879-4213-939c-c583d560460d 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [4] DEBUG: message length 14, sending 1 messages 2010-09-20 21:18:43 [6186] [4] DEBUG: match found: ^[ ]*(www)[ ]* 2010-09-20 21:18:43 [6186] [4] WARNING: No translation found for <www hello it is i> from <100> to <300> 2010-09-20 21:18:43 [6186] [4] ERROR: request failed 2010-09-20 21:18:43 [6186] [4] DEBUG: message length 14, sending 1 messages 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 1a9d3ded-42cd-4695-98da-a64387f2d31c 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of a7de803e-62f6-4b4d-8c4c-86b2ddbdf979 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 9f836859-6921-4c1b-bffc-82fe33bb89da 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 130d7b13-49ba-49f8-8e86-88f782da8941 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 900d425e-5008-478a-91fb-8dae5e08ef6d 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply On Sun, Sep 19, 2010 at 3:03 PM, jamo njoroge <patjayke@gmail.com> wrote:
According to my experience with kannel, to send an sms you should call a url like http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar... to do this from php you need CURL installed Your get-url looks in order but you need to set an IF statement to catch the variables being passed by the GET method.i use kannel to send texts with my safaricom modem since the interface doesnt work with ubuntu.Its a more practical way rather than using the fake smsc _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

you dont have a default listener for incoming sms try changing the config on the sms service to # SMS SERVICE GET-URL EXAMPLE group = sms-service keyword = default concatenation = true catch-all = true send-sender=true max-messages = 0 get-url = "http://localhost/sms/index.php?phone=%p&text=%r&binary=%b&smsc=$i&time=%t" On 9/20/10, Gitau George <com00204@gmail.com> wrote:
I am able to send sms via fakesmsc....its just that i dont know how to retrieve it via php.I have a get-url in my sms-service group that points to a php page where i use $_GET[''] to retrieve the message and save it to the db.....the message never gets saved...i keep getting the following errors
DEBUG: No client - multi-send or ACK to pull-reply
010-09-20 21:18:43 [6186] [4] WARNING: No translation found for <www hello it is i> from <100> to <300> 2010-09-20 21:18:43 [6186] [4] ERROR: request failed 2010-09-20 21:18:43 [6186] [4] DEBUG: message length 14, sending 1 messages 2010-09-20 21:18:43 [6186] [4] DEBUG: match found: ^[ ]*(www)[ ]* 2010-09-20 21:18:43 [6186] [4] WARNING: No translation found for <www hello it is i> from <100> to <300> 2010-09-20 21:18:43 [6186] [4] ERROR: request failed 2010-09-20 21:18:43 [6186] [4] DEBUG: message length 14, sending 1 messages 2010-09-20 21:18:43 [6186] [4] DEBUG: match found: ^[ ]*(www)[ ]* 2010-09-20 21:18:43 [6186] [4] WARNING: No translation found for <www hello it is i> from <100> to <300> 2010-09-20 21:18:43 [6186] [4] ERROR: request failed 2010-09-20 21:18:43 [6186] [4] DEBUG: message length 14, sending 1 messages 2010-09-20 21:18:43 [6186] [4] DEBUG: match found: ^[ ]*(www)[ ]* 2010-09-20 21:18:43 [6186] [4] WARNING: No translation found for <www hello it is i> from <100> to <300> 2010-09-20 21:18:43 [6186] [4] ERROR: request failed 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 7e864360-2ca0-4a9a-b759-ce20e8f2bb17 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 6b9929f0-0686-4d91-bd23-908d1af12a7d 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 2c4efa3a-c879-4213-939c-c583d560460d 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [4] DEBUG: message length 14, sending 1 messages 2010-09-20 21:18:43 [6186] [4] DEBUG: match found: ^[ ]*(www)[ ]* 2010-09-20 21:18:43 [6186] [4] WARNING: No translation found for <www hello it is i> from <100> to <300> 2010-09-20 21:18:43 [6186] [4] ERROR: request failed 2010-09-20 21:18:43 [6186] [4] DEBUG: message length 14, sending 1 messages 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 1a9d3ded-42cd-4695-98da-a64387f2d31c 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of a7de803e-62f6-4b4d-8c4c-86b2ddbdf979 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 9f836859-6921-4c1b-bffc-82fe33bb89da 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 130d7b13-49ba-49f8-8e86-88f782da8941 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply 2010-09-20 21:18:43 [6186] [0] DEBUG: Got ACK (0) of 900d425e-5008-478a-91fb-8dae5e08ef6d 2010-09-20 21:18:43 [6186] [0] DEBUG: No client - multi-send or ACK to pull-reply
On Sun, Sep 19, 2010 at 3:03 PM, jamo njoroge <patjayke@gmail.com> wrote:
According to my experience with kannel, to send an sms you should call a url like http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar... to do this from php you need CURL installed Your get-url looks in order but you need to set an IF statement to catch the variables being passed by the GET method.i use kannel to send texts with my safaricom modem since the interface doesnt work with ubuntu.Its a more practical way rather than using the fake smsc _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
participants (4)
-
Billy
-
Chris Mwirigi
-
Gitau George
-
jamo njoroge