Quick and dirty solution is using php-curl. Call sendsms URL and loop in it.



sangprabv
[email protected]


On Jun 11, 2010, at 6:06 PM, steven edward wrote:

> hi!
> Am a new user of kannel and i want to send more than one sms am using header 
> to send sms it is okay but i don known how can i return to my page in order 
> to send another one to another phone number.
> my header
> http://localhost:13013/cgi-bin/sendsms?username=sedu&password=test&to=0715323232&text=Hello+world
> 
> also my kannel failed to redirect received sms to get-url address 
> 
> am using huawei modem E1550
> 
> this is my kannel.conf file
> 
> #
> # 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 = 12345
> status-password = 12345
> admin-deny-ip = "*.*.*.*"
> admin-allow-ip = "127.0.0.1"
> wapbox-port = 13002
> smsbox-port = 13001
> wdp-interface-name = "*"
> log-file = "/tmp/bearerbox.log"
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> 
> group = wapbox
> bearerbox-host = localhost
> log-file = "/tmp/wapbox.log"
> 
> group = smsc
> smsc = at
> smsc-id = vodamodem
> modemtype = auto
> device=/dev/ttyUSB0
> sms-center= "+255780000004"
> my-number = "+255763362219"
> connect-allow-ip = 127.0.0.1
> log-level = 0
> sim-buffering = true
> keepalive = 5
> 
> group = smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13013
> #global-sender = "+255763362219"
> global-sender = "+255763362219"
> log-level = 0
> log-file = "/tmp/smsbox.log"
> access-log = "/tmp/access.log"
> 
> group = sendsms-user
> username = manyasi
> password = manyasi
> concatenation= true
> max-messages = 10
> 
> group = sms-service
> keyword =
> #keyword-regex = .*
> catch-all = yes
> max-messages = 10
> get-url = "http://localhost/ams/sms/recieve.php?mobile=%p&content=%a";
> 
> group = modems
> id = huawei_e1550_00
> name = "Huawei E1550"
> name = "Generic Modem"
> detect-string = "huawei"
> init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
> #sim-buffering = true
> message-storage = "SM"
> need-sleep = true
> speed = 9600
> 

Reply via email to