Download Install Kannel Send and Receive SMS via Kannel PDF

TitleInstall Kannel Send and Receive SMS via Kannel
TagsAreas Of Computer Science Digital & Social Media Short Message Service Hypertext Transfer Protocol Computer Networking
File Size749.3 KB
Total Pages13
Document Text Contents
Page 13

Page 13 of 13

Sent SMS
Use url:

http://192.168.1.120:13014/cgi-

bin/sendsms?username=foo&password=bar&to=+84903460989&text=Hel

lo+world5

if send successful: webbrowsner return

0: Accepted for delivery

Receive SMS:
PHP Examples to Receive SMS.

Evironment: PHP/Apache environment
Creat a file receivesms.php on root of file web configure.

In file config, # SMS SERVICE, we use option:

get-url

=http://smart.jmango.vn/receivesms.php?sender=%p&text=%s


So, when reply or send sms via Kannel, you ‘ll get a content of receivesms.php
return.

(reference: http://www.visualgsm.com/tutorial011_send_sms_php.htm )


Note:

- When Kannel donot run, check file config kannel.conf. Ensure that kannel.conf
obey kannel document guide.

- When you sent sms to kannel gateway, your sms get any problem. Replaces

the SMS message sent back to user , Kannel can sent back

Request Failed : it mean Kannel could not contact http service

Could not fetch content, sorry: Kannel could not fetch content

Result could not be represented as an SMS message: Kannel could

not represent the result as a SMS message.

<Empty reply from service provider>: when Kannel get an empty sms

, Kannel set to "" to enable empty messages sent back user.

http://192.168.1.120:13014/cgi-bin/sendsms?username=foo&password=bar&to=+84903460989&text=Hello+world5
http://192.168.1.120:13014/cgi-bin/sendsms?username=foo&password=bar&to=+84903460989&text=Hello+world5
http://192.168.1.120:13014/cgi-bin/sendsms?username=foo&password=bar&to=+84903460989&text=Hello+world5
http://www.visualgsm.com/tutorial011_send_sms_php.htm

Similer Documents